/* ============================================================================
   SECTIONS.CSS — Page Section Styles
   ============================================================================
   Styles specific to each named section of the landing page.
   Components used within sections are defined in components.css.
   
   Section index:
     1. HERO (#hero)
     2. ABOUT (#about)
     3. FEATURES (#features)
     4. PREMIUM EXPERIENCE (#premium-experience)
     5. WHY CHOOSE (#why-choose)
     6. STATISTICS (#statistics)
     7. ECOSYSTEM (#ecosystem)
     8. OPPORTUNITIES (#opportunities)
     9. ADMISSION JOURNEY (#admission-journey)
    10. STUDENT JOURNEY (#student-journey)
    11. TESTIMONIALS (#testimonials)
    12. PARTNERS (#partners)
    13. FAQ (#faq)
    14. DOWNLOAD APP (#download-app)
    15. NEWSLETTER (#newsletter)
   ============================================================================ */


/* ===========================================================================
   1. HERO (#hero)
   ===========================================================================
   Full-viewport hero with animated canvas background, gradient text,
   and a two-column layout (text + illustration).
   =========================================================================== */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;    /* Clear fixed navbar */
  padding-bottom: var(--space-16);
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Content grid — text | illustration */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero text block */
.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: var(--text-display);
  margin-bottom: var(--space-6);
  color: var(--color-text-dark);
  line-height: var(--leading-tight);
}

/* Gradient text highlight */
.hero-text h1 span.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Illustration container */
.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration svg,
.hero-illustration img {
  width: 100%;
  max-width: 550px;
  height: auto;
}

/* Floating decorative elements */
.hero-float-element {
  position: absolute;
  animation: float ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

.hero-float-element:nth-child(1) {
  animation-duration: 6s;
}

.hero-float-element:nth-child(2) {
  animation-duration: 8s;
  animation-delay: 1s;
}

.hero-float-element:nth-child(3) {
  animation-duration: 7s;
  animation-delay: 2s;
}

.hero-float-element:nth-child(4) {
  animation-duration: 9s;
  animation-delay: 0.5s;
}

/* ── Hero Responsive ────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-content {
    gap: var(--space-10);
  }

  .hero-illustration svg,
  .hero-illustration img {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: var(--space-12);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text p {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-illustration {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 72px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }
}


/* ===========================================================================
   2. ABOUT (#about)
   ===========================================================================
   Two-column layout with content and pillars grid.
   =========================================================================== */

#about {
  background: var(--color-bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-content h2 span {
  color: var(--color-primary);
}

.about-content p {
  margin-bottom: var(--space-4);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}

.about-content p:last-of-type {
  margin-bottom: var(--space-8);
}

/* Pillars grid */
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pillar-item {
  text-align: left;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-1) var(--space-4);
  align-items: start;
}

.pillar-item:hover {
  background: var(--color-bg-white);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  grid-row: 1 / 3;
  border-radius: var(--radius-md);
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
  transition: all var(--transition-normal);
}

.pillar-item:hover .pillar-icon {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.pillar-item h4 {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-dark);
}

/* ── About Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .about-grid {
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-pillars {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .about-pillars {
    gap: var(--space-4);
  }
}


/* ===========================================================================
   3. FEATURES (#features)
   ===========================================================================
   3-column grid of feature cards.
   =========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}


/* ===========================================================================
   4. PREMIUM EXPERIENCE (#premium-experience)
   ===========================================================================
   Dark section with floating glass cards, glow nodes, and connection lines.
   =========================================================================== */

#premium-experience {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  overflow: hidden;
}

#premium-experience .section-header h2 {
  color: var(--color-text-white);
}

#premium-experience .section-header p {
  color: var(--color-text-light);
}

.premium-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating glass cards */
.floating-card {
  position: absolute;
  background: var(--glass-bg-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  color: var(--color-text-white);
  font-size: var(--text-small);
  animation: float ease-in-out infinite;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

@supports not (backdrop-filter: blur(1px)) {
  .floating-card {
    background: rgba(15, 23, 42, 0.95);
  }
}

/* Stagger the float animations for organic movement */
.floating-card:nth-child(1) { animation-duration: 6s; animation-delay: 0s; }
.floating-card:nth-child(2) { animation-duration: 7s; animation-delay: 0.5s; }
.floating-card:nth-child(3) { animation-duration: 8s; animation-delay: 1s; }
.floating-card:nth-child(4) { animation-duration: 6.5s; animation-delay: 1.5s; }
.floating-card:nth-child(5) { animation-duration: 7.5s; animation-delay: 2s; }
.floating-card:nth-child(6) { animation-duration: 9s; animation-delay: 0.3s; }

/* Glow nodes — small pulsing dots */
.glow-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: var(--shadow-glow-blue);
  animation: pulse 3s ease-in-out infinite;
}

.glow-node:nth-child(odd) {
  animation-delay: 0.5s;
}

/* Connection lines between elements */
.connection-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
  opacity: 0.3;
  pointer-events: none;
}

/* ── Premium Experience Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .premium-visual {
    min-height: 350px;
  }

  .floating-card {
    font-size: var(--text-xs);
    padding: var(--space-3) var(--space-4);
  }
}

@media (max-width: 480px) {
  .premium-visual {
    min-height: 280px;
  }
}


/* ===========================================================================
   5. WHY CHOOSE (#why-choose)
   ===========================================================================
   Uses .comparison-grid component from components.css.
   Inherits section spacing from .section class.
   =========================================================================== */

#why-choose {
  background: var(--color-bg-secondary);
}


/* ===========================================================================
   6. STATISTICS (#statistics)
   ===========================================================================
   Gradient background section with 4-column stats grid.
   =========================================================================== */

#statistics {
  background: var(--gradient-hero);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    gap: var(--space-4);
  }
}


/* ===========================================================================
   7. ECOSYSTEM (#ecosystem)
   ===========================================================================
   Orbital layout — center logo with orbiting nodes connected by lines.
   =========================================================================== */

.ecosystem-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center logo hub */
.ecosystem-center {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-bg-white);
  box-shadow: var(--shadow-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.ecosystem-center img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Orbiting nodes */
.ecosystem-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: nodeFloat ease-in-out infinite;
}

/* Stagger node float durations for organic feel */
.ecosystem-node:nth-child(1) { animation-duration: 5s; }
.ecosystem-node:nth-child(2) { animation-duration: 6s; animation-delay: 0.5s; }
.ecosystem-node:nth-child(3) { animation-duration: 7s; animation-delay: 1s; }
.ecosystem-node:nth-child(4) { animation-duration: 5.5s; animation-delay: 1.5s; }
.ecosystem-node:nth-child(5) { animation-duration: 6.5s; animation-delay: 0.3s; }
.ecosystem-node:nth-child(6) { animation-duration: 8s; animation-delay: 0.8s; }

.node-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  border: 2px solid var(--color-bg-white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.ecosystem-node:hover .node-dot {
  background: var(--color-primary);
  color: var(--color-text-white);
  transform: scale(1.2);
  box-shadow: var(--shadow-glow-blue);
}

.node-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-dark);
  white-space: nowrap;
}

/* Connection lines from center to nodes */
.ecosystem-line {
  position: absolute;
  background: var(--color-primary-100);
  height: 1px;
  transform-origin: left center;
  z-index: 1;
  pointer-events: none;
}

/* ── Ecosystem Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .ecosystem-visual {
    min-height: 400px;
  }

  .ecosystem-center {
    width: 80px;
    height: 80px;
  }

  .ecosystem-center img {
    width: 48px;
    height: 48px;
  }

  .node-dot {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .node-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .ecosystem-visual {
    min-height: 320px;
  }
}


/* ===========================================================================
   8. OPPORTUNITIES (#opportunities)
   ===========================================================================
   5-column card grid.
   =========================================================================== */

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .opportunity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .opportunity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .opportunity-grid {
    gap: var(--space-4);
  }
}


/* ===========================================================================
   9. ADMISSION JOURNEY (#admission-journey)
   ===========================================================================
   Uses .timeline.vertical component from components.css.
   =========================================================================== */

#admission-journey {
  background: var(--color-bg-secondary);
}

/* Center the timeline within a narrower container */
#admission-journey .timeline.vertical {
  max-width: 700px;
  margin: 0 auto;
}


/* ===========================================================================
   10. STUDENT JOURNEY (#student-journey)
   ===========================================================================
   Uses .timeline.horizontal component from components.css.
   =========================================================================== */

#student-journey {
  background: var(--color-bg-white);
}


/* ===========================================================================
   11. TESTIMONIALS (#testimonials)
   ===========================================================================
   3-column testimonial cards grid.
   =========================================================================== */

#testimonials {
  background: var(--color-bg-secondary);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}


/* ===========================================================================
   12. PARTNERS (#partners)
   ===========================================================================
   Uses .marquee-container component from components.css.
   =========================================================================== */

#partners {
  background: var(--color-bg-white);
  padding: var(--space-16) 0;
}


/* ===========================================================================
   13. FAQ (#faq)
   ===========================================================================
   Uses .faq-list component from components.css.
   =========================================================================== */

#faq {
  background: var(--color-bg-white);
}


/* ===========================================================================
   14. DOWNLOAD APP (#download-app)
   ===========================================================================
   Gradient background section with download CTA and phone mockup.
   =========================================================================== */

#download-app {
  background: var(--gradient-hero);
  position: relative;
}

/* Subtle decorative background glow */
#download-app::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

#download-app .container {
  position: relative;
  z-index: 1;
}


/* ===========================================================================
   15. NEWSLETTER (#newsletter)
   ===========================================================================
   Uses .newsletter-card component from components.css.
   =========================================================================== */

#newsletter {
  background: var(--color-bg-secondary);
}

#newsletter .section-header {
  margin-bottom: var(--space-8);
}
