/* ============================================
   ARCHITECTURAL STUDIO - ENERGETIC RED & CARBON
   Theme Colors: #D32F2F (Primary), #212121 (Secondary)
   ============================================ */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --accent-color: #FF5252;
  --dark-gray: #424242;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--secondary-color);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.1 !important;
}

.lead {
  font-weight: 400;
  opacity: 0.9;
}

h1, h2, h3, h4, h5, h6, .h4, .h5 {
  font-weight: 700;
  color: var(--secondary-color);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.15);
  transition: var(--transition);
  z-index: 1030;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(33, 33, 33, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem !important;
  color: var(--white) !important;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.3) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(211, 47, 47, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 50%, var(--dark-gray) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(211, 47, 47, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(211, 47, 47, 0.1) 0%, transparent 50%);
  z-index: 1;
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero-section .position-absolute {
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .text-white {
  color: var(--white) !important;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-section .display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  animation: fadeInUp 1.2s ease-out;
  color: rgba(255, 255, 255, 0.95) !important;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 1rem 3rem !important;
  font-size: 1.1rem !important;
}

.btn-lg:hover {
  background: #B71C1C !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4) !important;
}

.btn-outline-light {
  border: 2px solid var(--white) !important;
  color: var(--white) !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
}

.btn-outline-dark {
  border: 2px solid var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  background: transparent !important;
}

.btn-outline-dark:hover {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
}

.btn-light {
  background: var(--white) !important;
  color: var(--secondary-color) !important;
}

.btn-light:hover {
  background: var(--light-gray) !important;
  color: var(--primary-color) !important;
}

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  border: none !important;
  border-radius: 15px !important;
  transition: var(--transition);
  overflow: hidden;
  background: var(--white) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(211, 47, 47, 0.2) !important;
}

.card-body {
  position: relative;
  z-index: 1;
}

.program-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%) !important;
  border-left: 4px solid var(--primary-color) !important;
}

.program-card:hover {
  border-left-width: 8px !important;
}

/* ============================================
   ICONS
   ============================================ */

.bi {
  display: inline-block;
  vertical-align: middle;
}

[class*="bi-"] {
  color: var(--primary-color);
  transition: var(--transition);
}

.card:hover [class*="bi-"] {
  transform: scale(1.1) rotate(5deg);
}

.bi-person-arms-up,
.bi-lightning-charge,
.bi-egg-fried,
.bi-people-fill,
.bi-speedometer2,
.bi-heart-pulse,
.bi-fire,
.bi-star,
.bi-trophy,
.bi-graph-up-arrow {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 5rem 0;
  position: relative;
}

.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.bg-white {
  background: var(--white) !important;
}

.bg-light {
  background: var(--light-gray) !important;
}

.text-center {
  text-align: center !important;
}

/* ============================================
   IMAGES
   ============================================ */

.img-fluid {
  border-radius: 15px;
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.rounded {
  border-radius: 15px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.shadow-lg {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.shadow {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* ============================================
   FORMS
   ============================================ */

.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition);
  background: var(--white) !important;
  color: var(--secondary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.15) !important;
  outline: none;
}

.form-floating > label {
  color: #757575 !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-color) !important;
}

.form-check-input {
  border: 2px solid #E0E0E0 !important;
  width: 1.25rem;
  height: 1.25rem;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.15) !important;
}

.form-check-label {
  color: var(--secondary-color) !important;
  margin-left: 0.5rem;
}

.invalid-feedback {
  color: #D32F2F !important;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.valid-feedback {
  color: #4CAF50 !important;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.needs-validation .form-control.is-invalid {
  border-color: #D32F2F !important;
}

.needs-validation .form-control.is-valid {
  border-color: #4CAF50 !important;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
  border-radius: 10px !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
  color: var(--white) !important;
}

/* ============================================
   ACCORDION
   ============================================ */

.accordion {
  --bs-accordion-border-color: #E0E0E0;
}

.accordion-item {
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #E0E0E0 !important;
}

.accordion-button {
  background: var(--white) !important;
  color: var(--secondary-color) !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color) 0%, #E53935 100%) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.15) !important;
}

.accordion-button::after {
  filter: brightness(0) invert(0);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem !important;
  background: var(--light-gray) !important;
  color: var(--secondary-color) !important;
}

/* ============================================
   CAROUSEL
   ============================================ */

.carousel {
  border-radius: 15px;
  overflow: hidden;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-color) !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

/* ============================================
   TABLE
   ============================================ */

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-gray) 100%);
  color: var(--white) !important;
}

.table thead th {
  border: none !important;
  padding: 1rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.table-hover tbody tr {
  transition: var(--transition);
}

.table-hover tbody tr:hover {
  background: rgba(211, 47, 47, 0.05) !important;
  transform: scale(1.01);
}

.table tbody td {
  padding: 1rem !important;
  vertical-align: middle;
  color: var(--secondary-color) !important;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 4rem 0 2rem;
}

footer .h5 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer .h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary-color) !important;
  padding-left: 5px;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-white {
  color: var(--white) !important;
}

.text-dark {
  color: var(--secondary-color) !important;
}

.text-muted {
  color: #757575 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.fst-italic {
  font-style: italic !important;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-stretch {
  align-items: stretch !important;
}

.align-middle {
  vertical-align: middle !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.g-0 {
  gap: 0 !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1020;
}

.fixed-top {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1030 !important;
}

.top-0 {
  top: 0 !important;
}

.bottom-0 {
  bottom: 0 !important;
}

.start-0 {
  left: 0 !important;
}

.start-50 {
  left: 50% !important;
}

.end-0 {
  right: 0 !important;
}

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.translate-middle-x {
  transform: translateX(-50%) !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-90 {
  opacity: 0.9 !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-border {
  border-color: transparent !important;
  transition: var(--transition);
}

.hover-border:hover {
  border-color: var(--primary-color) !important;
}

.border-transparent {
  border-color: transparent !important;
}

.border-start {
  border-left: 1px solid !important;
}

.border-3 {
  border-width: 3px !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile First Approach */
@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  footer {
    padding: 3rem 0 1.5rem;
  }
  
  .navbar-collapse {
    background: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 767.98px) {
  .display-1 {
    font-size: 3rem !important;
  }
  
  .hero-section {
    min-height: 85vh;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 3rem !important;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
  }
  
  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.666667%;
  }
  
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }
  
  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  
  .col-lg-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.333333%;
  }
}

/* ============================================
   SCROLL ENHANCEMENTS
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B71C1C;
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--white);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .navbar,
  .btn,
  footer,
  .animate-bounce {
    display: none !important;
  }
  
  body {
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
}