/* ==========================================================================
   RCHEM - Royal & Electric Blue Minimalist Light / Dark Mode Design System
   Inspired by modern LMS design with responsive layout & smooth animations
   ========================================================================== */

:root {
  --primary: #38bdf8;
  --primary-glow: #0284c7;
  --primary-light: #7dd3fc;
  --primary-dark: #0369a1;
  --primary-accent: #60a5fa;
  --royal-blue-gradient: linear-gradient(135deg, #0c2340 0%, #0284c7 50%, #38bdf8 100%);
  --royal-glow-radial: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(12, 35, 64, 0) 70%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 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 (Midnight Navy & Electric Blue)
   ========================================================================== */
html[data-theme="dark"] {
  --bg-main: #040914;
  --bg-surface: #081326;
  --bg-surface-elevated: #0d1e3d;
  --bg-card: rgba(8, 19, 38, 0.85);
  --bg-card-hover: rgba(13, 30, 61, 0.95);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(56, 189, 248, 0.18);
  --border-active: rgba(56, 189, 248, 0.55);
  --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(56, 189, 248, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);

  --preloader-bg: #030712;
  --canvas-particle: rgba(56, 189, 248, 0.35);
  --canvas-line: rgba(56, 189, 248, 0.1);

  --hero-overlay-gradient: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(4, 9, 20, 0.8) 0%, #040914 100%);
}

/* ==========================================================================
   Light Theme (Crisp Ice Blue & White)
   ========================================================================== */
html[data-theme="light"] {
  --bg-main: #f0f7ff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #e0f2fe;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: rgba(255, 255, 255, 1);

  --text-primary: #040d1a;
  --text-secondary: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-subtle: rgba(14, 165, 233, 0.22);
  --border-active: rgba(14, 165, 233, 0.65);
  --border-glass: rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 4px 12px rgba(14, 165, 233, 0.08);
  --shadow-glow: 0 0 35px rgba(14, 165, 233, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(2, 132, 199, 0.12), 0 0 0 1px var(--border-subtle);

  --preloader-bg: #ffffff;
  --canvas-particle: rgba(14, 165, 233, 0.28);
  --canvas-line: rgba(14, 165, 233, 0.08);

  --hero-overlay-gradient: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(240, 247, 255, 0.8) 0%, #f0f7ff 100%);
}

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

.preloader-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.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; }

@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(56, 189, 248, 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;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Typography & Badges
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #030712;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  background: #7dd3fc;
  box-shadow: 0 6px 28px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.25rem 0;
}

.site-header.scrolled {
  padding: 0.8rem 0;
  background: rgba(4, 9, 20, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .site-header.scrolled {
  background: rgba(240, 247, 255, 0.88);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

.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(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions-desktop {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

html[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
html[data-theme="light"] .theme-toggle-btn .sun-icon { display: none; }
html[data-theme="light"] .theme-toggle-btn .moon-icon { display: block; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

.nav-actions-mobile {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay-gradient);
}

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

.hero-content {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.metric-card {
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Styling & Cards
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(14px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px -10px rgba(56, 189, 248, 0.2);
}

.about-card.highlight-card {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, rgba(8, 19, 38, 0.95) 0%, rgba(14, 165, 233, 0.08) 100%);
}

html[data-theme="light"] .about-card.highlight-card {
  background: linear-gradient(180deg, #ffffff 0%, rgba(14, 165, 233, 0.08) 100%);
}

.card-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Features Section (Why Choose Us)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(14px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: height var(--transition-fast);
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.feature-item:hover::before {
  height: 100%;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Classes / Batches Section
   ========================================================================== */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-card);
}

.class-card.highlighted-class {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(8, 19, 38, 0.95) 0%, rgba(14, 165, 233, 0.1) 100%);
  box-shadow: 0 12px 36px -8px rgba(56, 189, 248, 0.25);
}

html[data-theme="light"] .class-card.highlighted-class {
  background: linear-gradient(180deg, #ffffff 0%, rgba(14, 165, 233, 0.1) 100%);
}

.class-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.class-badge.badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

.class-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.class-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.class-modules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.class-modules li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.class-modules li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.class-action {
  margin-top: auto;
}

/* ==========================================================================
   Mentor Section
   ========================================================================== */
.mentor-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 3rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.mentor-img-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.mentor-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(4, 9, 20, 0.6) 100%);
}

.mentor-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.mentor-img-frame:hover .mentor-img {
  transform: scale(1.03);
}

.mentor-content {
  display: flex;
  flex-direction: column;
}

.mentor-name {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.mentor-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.mentor-institution {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.mentor-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.mentor-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.highlight-box {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.highlight-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.highlight-box-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion-container {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-active);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.75rem;
}

.faq-answer p {
  padding-bottom: 1.35rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.inline-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Contact & Registration Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-heading {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  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;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  transition: all var(--transition-fast);
}

.contact-channel-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.channel-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.form-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(4, 9, 20, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-textarea {
  background: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.btn-submit {
  margin-top: 1.5rem;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.credit-highlight a {
  color: var(--primary);
  font-weight: 600;
}

.credit-highlight a:hover {
  text-decoration: underline;
}

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

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid,
  .features-grid,
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mentor-card-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mentor-img {
    height: 380px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.85rem 0;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 1.75rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .nav-link {
    font-size: 1.15rem;
  }

  .nav-actions-desktop {
    display: none;
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .about-grid,
  .features-grid,
  .classes-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .mentor-highlights {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
