/* ============================================
   ARCHITECTURAL STUDIO - DARK EMPIRE RED THEME
   ============================================ */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #212121;
  --secondary-color: #C62828;
  --accent-color: #E53935;
  --dark-bg: #121212;
  --light-text: #F5F5F5;
  --gray-text: #B0B0B0;
  --transition-speed: 0.3s;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--dark-bg) !important;
  color: var(--light-text) !important;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
.display-1, .display-3, .display-4 {
  font-weight: 700 !important;
  color: var(--light-text) !important;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--gray-text) !important;
  font-size: 1.25rem !important;
}

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

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

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

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

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(18, 18, 18, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0 !important;
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid rgba(198, 40, 40, 0.1);
}

.navbar.scrolled {
  background: rgba(18, 18, 18, 0.98) !important;
  box-shadow: 0 4px 20px rgba(198, 40, 40, 0.2);
}

.navbar-brand {
  color: var(--light-text) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.05);
}

.navbar-toggler {
  border-color: var(--secondary-color) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.25) !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%28245, 245, 245, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: var(--gray-text) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  position: relative;
  transition: all var(--transition-speed) ease;
}

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

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

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

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border-radius: 0 !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1rem !important;
}

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

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

.btn-dark:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(198, 40, 40, 0.3) !important;
}

.btn-light {
  background-color: var(--light-text) !important;
  border: 2px solid var(--light-text) !important;
  color: var(--primary-color) !important;
}

.btn-light:hover {
  background-color: transparent !important;
  border-color: var(--light-text) !important;
  color: var(--light-text) !important;
  transform: translateY(-2px);
}

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

.btn-outline-dark:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--light-text) !important;
}

.bg-danger {
  background-color: var(--secondary-color) !important;
}

.btn.bg-danger {
  border: 2px solid var(--secondary-color) !important;
  color: var(--light-text) !important;
}

.btn.bg-danger:hover {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 10px 25px rgba(229, 57, 53, 0.4) !important;
}

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

.filter-btn {
  background-color: rgba(198, 40, 40, 0.1) !important;
  border: 1px solid var(--secondary-color) !important;
  color: var(--light-text) !important;
  padding: 0.5rem 1.5rem !important;
  transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

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

@keyframes heroGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.hero-section .display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 10px rgba(198, 40, 40, 0.3);
}

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

.hero-section .lead {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section .metric-box {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ===== METRIC BOXES ===== */
.metric-box {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(198, 40, 40, 0.3) !important;
  border-radius: 0 !important;
  transition: all var(--transition-speed) ease;
  backdrop-filter: blur(10px);
}

.metric-box:hover {
  background: rgba(198, 40, 40, 0.1) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(198, 40, 40, 0.3) !important;
}

.counter {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: var(--secondary-color) !important;
  line-height: 1 !important;
}

/* ===== CARDS ===== */
.card {
  background: var(--primary-color) !important;
  border: 1px solid rgba(198, 40, 40, 0.2) !important;
  border-radius: 0 !important;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(198, 40, 40, 0.3) !important;
  border-color: var(--secondary-color) !important;
}

.card-body {
  padding: 2rem !important;
}

.card-title {
  color: var(--light-text) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

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

.card-img-top,
.card-img-wrapper img {
  transition: all 0.5s ease;
  object-fit: cover;
}

.card:hover .card-img-top,
.card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.card-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(18, 18, 18, 0.8) 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

.card:hover .card-img-wrapper::after {
  opacity: 1;
}

.program-card {
  cursor: pointer;
}

/* ===== BADGES ===== */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
}

/* ===== SECTIONS ===== */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

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

.pb-4 {
  padding-bottom: 3rem !important;
}

section {
  position: relative;
  overflow: hidden;
}

/* ===== IMAGES ===== */
.img-fluid {
  transition: all 0.5s ease;
  filter: grayscale(20%);
}

.img-fluid:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.shadow-lg {
  box-shadow: 0 15px 40px rgba(198, 40, 40, 0.2) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

.shadow {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(198, 40, 40, 0.3) !important;
  color: var(--light-text) !important;
  padding: 1rem !important;
  border-radius: 0 !important;
  transition: all var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.25) !important;
}

.form-control::placeholder {
  color: var(--gray-text) !important;
  opacity: 0.6;
}

.form-control-lg,
.form-select-lg {
  padding: 1.25rem !important;
  font-size: 1.125rem !important;
}

.bg-dark.form-control {
  background-color: var(--dark-bg) !important;
}

.border-bottom {
  border-bottom: 2px solid rgba(198, 40, 40, 0.3) !important;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(198, 40, 40, 0.5) !important;
}

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

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

.cookie-toggle {
  cursor: pointer;
}

/* ===== TIMELINE ===== */
.timeline-container {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
  animation: fadeInLeft 0.6s ease-out;
}

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

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color) !important;
  border: 3px solid var(--dark-bg);
  z-index: 2;
}

.timeline-line {
  position: absolute;
  left: 10px;
  top: 20px;
  width: 2px;
  height: calc(100% + 2rem);
  background: linear-gradient(to bottom, var(--secondary-color) 0%, rgba(198, 40, 40, 0.3) 100%);
}

.timeline-item:last-child .timeline-line {
  display: none;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 0 !important;
  border: 1px solid rgba(198, 40, 40, 0.3) !important;
  background-color: rgba(198, 40, 40, 0.1) !important;
  color: var(--light-text) !important;
}

.alert-info {
  background-color: rgba(33, 150, 243, 0.1) !important;
  border-color: rgba(33, 150, 243, 0.3) !important;
}

/* ===== ACCORDION ===== */
.accordion {
  --bs-accordion-bg: var(--primary-color) !important;
  --bs-accordion-border-color: rgba(198, 40, 40, 0.2) !important;
}

.accordion-item {
  background-color: var(--primary-color) !important;
  border: 1px solid rgba(198, 40, 40, 0.2) !important;
  margin-bottom: 1rem;
}

.accordion-button {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--light-text) !important;
  font-weight: 600 !important;
  padding: 1.5rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
}

.accordion-button:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.25) !important;
}

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

.accordion-body {
  background-color: rgba(0, 0, 0, 0.2) !important;
  color: var(--gray-text) !important;
  padding: 1.5rem !important;
}

/* ===== CAROUSEL ===== */
.carousel {
  border-radius: 0 !important;
}

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

.carousel-control-prev,
.carousel-control-next {
  width: 5% !important;
  opacity: 0.8 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
}

.carousel-indicators button {
  background-color: var(--secondary-color) !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  margin: 0 5px !important;
}

/* ===== PRICING ===== */
.pricing-container {
  transition: all var(--transition-speed) ease;
}

.monthly-price,
.annual-price {
  transition: all var(--transition-speed) ease;
}

.benefit-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(198, 40, 40, 0.1);
  color: var(--gray-text) !important;
}

.benefit-item:last-child {
  border-bottom: none;
}

/* ===== ICONS ===== */
.bi {
  vertical-align: middle;
  transition: all var(--transition-speed) ease;
}

.bi-check-circle-fill {
  color: #4CAF50 !important;
}

.bi-x-circle {
  color: #757575 !important;
}

.fs-1 { font-size: 3rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

/* ===== UTILITIES ===== */
.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-none:hover {
  text-decoration: underline !important;
}

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

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

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

.sticky-lg-top {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  z-index: 1020;
}

.bg-white {
  background-color: #FFFFFF !important;
}

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

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

.rounded-3 {
  border-radius: 0 !important;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

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

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
}

/* ===== PRIVACY HERO ===== */
.privacy-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 5rem 0;
}

/* ===== COOKIE SETTINGS ===== */
.cookie-settings {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(198, 40, 40, 0.2) !important;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

.animate-slide-in {
  animation: slideInRight 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(18, 18, 18, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(198, 40, 40, 0.3);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .metric-box {
    margin-bottom: 1rem;
  }
  
  .sticky-lg-top {
    position: relative !important;
    top: auto !important;
  }
  
  .order-1 {
    order: 1 !important;
  }
  
  .order-2 {
    order: 2 !important;
  }
}

@media (max-width: 767px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.9rem !important;
  }
  
  .counter {
    font-size: 2rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 10% !important;
  }
}

@media (max-width: 575px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .metric-box {
    padding: 1.5rem !important;
  }
  
  .g-4 {
    --bs-gutter-y: 1rem !important;
  }
  
  .gap-3 {
    gap: 1rem !important;
  }
  
  .filter-btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.875rem !important;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: all var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(198, 40, 40, 0.3) !important;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-bg) !important;
  border-top: 1px solid rgba(198, 40, 40, 0.2);
  color: var(--gray-text) !important;
}

footer a {
  color: var(--gray-text) !important;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

footer .bi {
  color: var(--gray-text) !important;
  font-size: 1.5rem;
  transition: all var(--transition-speed) ease;
}

footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.2) rotate(5deg);
}

/* ===== LOADING STATES ===== */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--secondary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== SELECTION ===== */
::selection {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

::-moz-selection {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* ===== ACCESSIBILITY ===== */
.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;
}

.focus-visible:focus {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px !important;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}