/* ==========================================================================
   Royal Blue Minimalist Light / Dark Mode Design System
   With 16:9 Cinematic Hero Background & Always-Inverted Footer Logo
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-glow: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;
  --royal-blue-gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  --royal-glow-radial: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(6, 10, 20, 0) 70%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Noto Sans Sinhala', var(--font-main);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Dark Theme (Obsidian & Royal Blue)
   ========================================================================== */
html[data-theme="dark"] {
  --bg-main: #060a14;
  --bg-surface: #0c1427;
  --bg-surface-elevated: #111d38;
  --bg-card: rgba(13, 22, 44, 0.82);
  --bg-card-hover: rgba(19, 33, 66, 0.92);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #475569;

  --border-subtle: rgba(59, 130, 246, 0.2);
  --border-active: rgba(96, 165, 250, 0.5);
  --border-glass: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);

  --logo-filter: brightness(0) invert(1);
  --preloader-bg: #04070d;
  --canvas-particle: rgba(59, 130, 246, 0.25);
  --canvas-line: rgba(59, 130, 246, 0.08);

  /* Hero 16:9 Background Overlay for Dark Theme */
  --hero-overlay-gradient: linear-gradient(
    90deg,
    rgba(6, 10, 20, 0.96) 0%,
    rgba(6, 10, 20, 0.92) 35%,
    rgba(6, 10, 20, 0.65) 65%,
    rgba(6, 10, 20, 0.25) 100%
  ),
  linear-gradient(
    180deg,
    rgba(6, 10, 20, 0.6) 0%,
    transparent 20%,
    transparent 65%,
    #060a14 100%
  );
  --hero-img-filter: brightness(0.9) contrast(1.08) saturate(1.05);
}

/* ==========================================================================
   Light Theme (Crisp White & Royal Blue)
   ========================================================================== */
html[data-theme="light"] {
  --bg-main: #f5f8fc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #e6effa;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 1);

  --text-primary: #0a0f1d;
  --text-secondary: #27374d;
  --text-muted: #526d82;
  --text-dim: #94a3b8;

  --border-subtle: rgba(37, 99, 235, 0.15);
  --border-active: rgba(37, 99, 235, 0.5);
  --border-glass: rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 4px 12px rgba(37, 99, 235, 0.06);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.12);
  --shadow-card: 0 10px 30px -10px rgba(37, 99, 235, 0.12), 0 0 0 1px var(--border-subtle);

  --logo-filter: brightness(0);
  --preloader-bg: #ffffff;
  --canvas-particle: rgba(37, 99, 235, 0.18);
  --canvas-line: rgba(37, 99, 235, 0.05);

  /* Hero 16:9 Background Overlay for Light Theme */
  --hero-overlay-gradient: linear-gradient(
    90deg,
    rgba(245, 248, 252, 0.96) 0%,
    rgba(245, 248, 252, 0.90) 40%,
    rgba(245, 248, 252, 0.60) 70%,
    rgba(245, 248, 252, 0.15) 100%
  ),
  linear-gradient(
    180deg,
    rgba(245, 248, 252, 0.5) 0%,
    transparent 20%,
    transparent 65%,
    #f5f8fc 100%
  );
  --hero-img-filter: brightness(1.0) contrast(1.02) saturate(1.05);
}

/* ==========================================================================
   Initial Preloader / Loading Screen
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--preloader-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  max-width: 380px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo-wrap {
  margin-bottom: 1.5rem;
  /* static logo */
}

.preloader-logo {
  height: 60px;
  width: auto;
  filter: var(--logo-filter);
  transition: filter var(--transition-normal);
}


  50% { transform: translateY(-8px); }
}

.preloader-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  gap: 2px;
}

.preloader-accent {
  color: var(--primary);
}

.char-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: charFade 0.7s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.char-reveal:nth-child(1) { animation-delay: 0.05s; }
.char-reveal:nth-child(2) { animation-delay: 0.10s; }
.char-reveal:nth-child(3) { animation-delay: 0.15s; }
.char-reveal:nth-child(4) { animation-delay: 0.20s; }
.char-reveal:nth-child(5) { animation-delay: 0.25s; }
.char-reveal:nth-child(6) { animation-delay: 0.30s; }
.char-reveal:nth-child(7) { animation-delay: 0.35s; }
.char-reveal:nth-child(8) { animation-delay: 0.40s; }
.char-reveal:nth-child(9) { animation-delay: 0.45s; }
.char-reveal:nth-child(10) { animation-delay: 0.50s; }

@keyframes charFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.preloader-progress-bar {
  width: 160px;
  height: 3px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-fill {
  width: 100%;
  height: 100%;
  background: var(--royal-blue-gradient);
  position: absolute;
  left: -100%;
  animation: progressFill 1.4s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes progressFill {
  0% { left: -100%; }
  50% { left: 0%; }
  100% { left: 100%; }
}

/* ==========================================================================
   Ambient Background Animation Canvas
   ========================================================================== */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* ==========================================================================
   Bilingual Display Control (Sinhala <-> English)
   ========================================================================== */
html[data-lang="si"] .lang-en { display: none !important; }
html[data-lang="si"] .lang-si { display: inline; }
html[data-lang="si"] blockquote.lang-si,
html[data-lang="si"] div.lang-si,
html[data-lang="si"] p.lang-si { display: block; }

html[data-lang="en"] .lang-si { display: none !important; }
html[data-lang="en"] .lang-en { display: inline; }
html[data-lang="en"] blockquote.lang-en,
html[data-lang="en"] div.lang-en,
html[data-lang="en"] p.lang-en { display: block; }

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.75rem;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul { list-style: none; }
img, svg { display: block; }

/* ==========================================================================
   Brand Logo Style
   ========================================================================== */
.brand-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.site-logo {
  height: 42px;
  width: auto;
  filter: var(--logo-filter);
  transition: filter var(--transition-normal), transform var(--transition-fast);
}

.brand-logo:hover .site-logo {
  transform: scale(1.05);
}

/* ==========================================================================
   Typography & Shared Utilities
   ========================================================================== */
.text-gradient {
  background: var(--royal-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.95rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius-full);
}

html[data-theme="dark"] .section-tag {
  color: var(--primary-light);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 400;
}

.section {
  padding-block: 6rem;
  position: relative;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: var(--royal-blue-gradient);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.65);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.inline-link {
  color: var(--primary);
}

html[data-theme="dark"] .inline-link {
  color: var(--primary-light);
}

.inline-link:hover {
  text-decoration: underline;
}

/* Toggle Controls */
.lang-toggle-btn, .theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover, .theme-toggle-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--border-active);
  color: var(--primary);
}

html[data-theme="dark"] .lang-toggle-btn:hover,
html[data-theme="dark"] .theme-toggle-btn:hover {
  color: #ffffff;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  padding: 0;
}

.theme-label-text {
  display: none;
}

html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: block; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 10, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

html[data-theme="light"] .site-header {
  background: rgba(245, 248, 252, 0.85);
  border-bottom-color: rgba(37, 99, 235, 0.1);
}

.site-header.scrolled {
  background: rgba(6, 10, 20, 0.95);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.8rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.4rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions-desktop {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-actions-mobile {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   Hero Section with 16:9 Full Screen Background
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7.5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: var(--hero-img-filter);
  transition: filter var(--transition-normal);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay-gradient);
  transition: background var(--transition-normal);
}

.hero-container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.75rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.32;
  margin-bottom: 1.25rem;
  max-width: 580px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .hero-title {
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.6);
}

.hero-description {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.65;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .hero-description {
  text-shadow: none;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  max-width: 520px;
}

.metric-card {
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border-glass);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.about-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.about-card.highlight-card {
  border-color: rgba(37, 99, 235, 0.4);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, var(--bg-card) 100%);
}

.card-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

html[data-theme="dark"] .card-icon-wrapper {
  color: var(--primary-light);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 50%, var(--bg-main) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  border-color: var(--border-subtle);
  background: var(--bg-surface-elevated);
  transform: translateY(-3px);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.85;
  line-height: 1;
}

html[data-theme="dark"] .feature-number {
  color: var(--primary-light);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Classes Section
   ========================================================================== */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 980px;
  margin-inline: auto;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.class-card:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
}

.class-card.highlighted-class {
  border-color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.15) 0%, var(--bg-card) 100%);
  box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.25);
}

.class-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  background: var(--royal-blue-gradient);
  color: #ffffff;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.class-badge.badge-neutral {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

html[data-theme="light"] .class-badge.badge-neutral {
  background: rgba(0, 0, 0, 0.05);
}

.class-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.class-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.class-modules {
  margin-bottom: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.class-modules li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.class-modules li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

html[data-theme="dark"] .class-modules li svg {
  color: var(--primary-light);
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-accordion-container {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-subtle);
}

.faq-item.active {
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform var(--transition-normal), color var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

html[data-theme="dark"] .faq-item.active .faq-chevron {
  color: var(--primary-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding-inline: 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.35rem;
}

/* ==========================================================================
   Contact & Form Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-channel-item:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.channel-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.channel-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.channel-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-textarea {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  background: var(--bg-surface);
}

.form-select option {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
}

.btn-submit {
  margin-top: 0.5rem;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.85rem;
}

/* ==========================================================================
   Footer (Always Dark Obsidian Background with Always Inverted Logo)
   ========================================================================== */
.site-footer {
  background: #03060c !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  color: #f8fafc !important;
  position: relative;
  z-index: 10;
}

.footer-brand .site-logo.footer-logo-always-inverted,
.site-footer .site-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1) !important;
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 340px;
}

.footer-tagline {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #94a3b8 !important;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8 !important;
}

.footer-links a:hover {
  color: var(--primary-light) !important;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1 !important;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #64748b !important;
  flex-wrap: wrap;
  gap: 1rem;
}

.credit-highlight {
  color: var(--primary-light);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .hero-section {
    padding-top: 8rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-bg-img {
    object-position: 75% center;
  }

  .about-grid, .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-bg-media picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-bg-img {
    object-position: center top !important;
  }

  html[data-theme="dark"] .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(6, 10, 20, 0.72) 0%,
      rgba(6, 10, 20, 0.88) 45%,
      #060a14 100%
    );
  }

  html[data-theme="light"] .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(245, 248, 252, 0.78) 0%,
      rgba(245, 248, 252, 0.92) 45%,
      #f5f8fc 100%
    );
  }

  .nav-actions-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 4.8rem;
    left: 0;
    width: 100%;
    background: rgba(6, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }

  html[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-actions-mobile .control-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .nav-actions-mobile .control-row button {
    flex: 1;
    height: 40px;
    border-radius: var(--radius-full);
  }

  .nav-actions-mobile .control-row .theme-label-text {
    display: inline;
    margin-right: 0.25rem;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-section {
    min-height: 90vh;
    padding-top: 6.5rem;
  }

  .hero-bg-img {
    object-position: 80% center;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 1rem;
  }

  .metric-divider {
    width: 60px;
    height: 1px;
  }

  .about-grid, .features-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }
}
