/*
  ============================================================
  THE SNOOGUMS ACADEMY - MAIN STYLESHEET
  File: css/style.css

  HOW CSS WORKS (Quick Lesson):
  CSS is made of "rules". Each rule has:
  1. A SELECTOR  — what element to style (e.g., .navbar, h1, #hero)
  2. A PROPERTY  — what aspect to change (e.g., color, font-size)
  3. A VALUE     — what to set it to (e.g., #D0006F, 24px)

  Example:
  .navbar {           ← selector
    background: red;  ← property: value
    color: white;
  }

  The dot (.) means CLASS selector → targets elements with that class attribute
  The hash (#) means ID selector   → targets element with that specific id
  No prefix means element selector → targets ALL elements of that type (e.g., h1)
  ============================================================
*/


/* ============================================================
   CSS CUSTOM PROPERTIES (Variables)
   Think of these like constants in programming.
   We define a colour ONCE here, then use it everywhere.
   If the client wants to change the brand pink, we change it
   in ONE place here — not hunt through 500 lines of code.
   All variables are declared inside :root (the entire page).
   We access them using var(--variable-name).
============================================================ */
:root {
  /* === BRAND COLOURS (from the TSA logo) === */
  --color-pink: #D0006F;           /* Primary brand colour — deep magenta/pink */
  --color-gold: #FFC200;           /* Secondary — warm gold/yellow from the logo */
  --color-purple: #6B0FA8;         /* Accent — deep purple */
  --color-dark: #0D0D1A;           /* Near-black for dark backgrounds */
  --color-dark-2: #1A1A2E;         /* Slightly lighter dark */
  --color-white: #FFFFFF;
  --color-light: #F8F7FF;          /* Very light purple tint for section backgrounds */
  --color-text: #2D2D2D;           /* Main body text colour — not pure black, easier on eyes */
  --color-text-light: #666680;     /* Muted text for subtitles, captions */
  --color-border: #E8E8F0;         /* Subtle border lines */

  /* === GRADIENTS === */
  /* A gradient blends two or more colours together */
  --gradient-pink: linear-gradient(135deg, #D0006F 0%, #6B0FA8 100%);
  --gradient-gold: linear-gradient(135deg, #FFC200 0%, #FF8C00 100%);
  --gradient-dark: linear-gradient(135deg, #0D0D1A 0%, #1A1A2E 100%);

  /* === TYPOGRAPHY (Font settings) === */
  --font-heading: 'Poppins', sans-serif;   /* Bold headings */
  --font-body: 'Nunito', sans-serif;       /* Friendly body text */

  /* === SPACING SYSTEM ===
     We use a consistent spacing scale (multiples of 8px).
     This makes the page feel orderly and professional.
     Instead of random values like 13px or 27px, we stick to the scale. */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-xxl: 5rem;     /* 80px */

  /* === BORDER RADIUS (rounded corners) === */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;  /* Makes anything a pill/circle shape */

  /* === SHADOWS === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-pink: 0 8px 32px rgba(208, 0, 111, 0.25);

  /* === TRANSITIONS (animation speed) === */
  /* Used on hover effects — controls how fast the change happens */
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;

  /* === NAVBAR HEIGHT === */
  /* We define this as a variable because multiple elements
     need to know how tall the navbar is (e.g., the hero needs
     padding-top equal to navbar height so content isn't hidden under it) */
  --navbar-height: 80px;
}


/* ============================================================
   CSS RESET / BASE STYLES
   Browsers have their own default styles that differ between
   Chrome, Firefox, Safari, etc. This "reset" removes those
   defaults so we start from a clean slate everywhere.
============================================================ */

/*
  The asterisk (*) targets EVERY element on the page.
  box-sizing: border-box — this changes how width/height is calculated.
  
  DEFAULT (content-box): width = content only. Padding adds ON TOP.
  So a div with width:200px and padding:20px becomes 240px wide. Surprising!
  
  border-box: width INCLUDES padding and border.
  A div with width:200px and padding:20px stays 200px wide. Makes sense!
  
  This one line prevents so much layout confusion.
*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;    /* Remove all default margins */
  padding: 0;   /* Remove all default padding */
}

/* Base styles for the page body */
body {
  font-family: var(--font-body);  /* Use our custom body font */
  color: var(--color-text);       /* Default text colour */
  background-color: var(--color-white);
  line-height: 1.6;               /* Space between lines of text (1.6 = 160% of font size) */
  overflow-x: hidden;             /* Hide any content that accidentally overflows horizontally */
}

/* Remove default list styling (bullets and numbering) */
ul {
  list-style: none;
}

/* Make all links inherit their parent's colour and remove underlines by default */
a {
  text-decoration: none;
  color: inherit;
}

/* Make all images responsive by default */
img {
  /*
    max-width: 100% means an image can NEVER be wider than its container.
    Without this, images overflow and break the layout on mobile.
    display: block removes the small gap that appears under inline images.
  */
  max-width: 100%;
  display: block;
}

/* ============================================================
   UTILITY CLASSES
   Small, reusable classes that do ONE thing.
   We use them throughout the HTML to apply common styles
   without writing the same CSS over and over.
============================================================ */

/* Container: centers content and limits max width for readability */
.container {
  width: 100%;
  max-width: 1200px;   /* On wide screens, content won't stretch past 1200px */
  margin: 0 auto;      /* auto left/right margins = center horizontally */
  padding: 0 var(--space-lg);  /* Side padding so content doesn't touch screen edges */
}

/* Section header shared styles */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.section-eyebrow {
  /* "Eyebrow" = small label above the main heading */
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;  /* em is relative to the current font-size */
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  /*
    clamp(min, preferred, max) — a responsive font size!
    - Never smaller than 1.8rem
    - Ideally 4vw (4% of viewport width — scales with screen)
    - Never larger than 2.8rem
    This replaces needing to write media queries for font sizes.
  */
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}


/* ============================================================
   BUTTON STYLES
   We have a consistent button system throughout the site.
   All buttons share the base .btn class.
   Variations (primary, outline, gold) add on top of it.
============================================================ */
.btn {
  /* display: inline-flex allows us to use flexbox to center
     the icon and text inside the button */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;          /* Space between icon and text */
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);  /* Pill-shaped buttons */
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;      /* Show hand cursor on hover */
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;  /* Don't let button text wrap to next line */
}

/* Primary button — filled pink */
.btn-primary {
  background: var(--gradient-pink);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  /*
    transform: translateY(-3px) — moves the button UP 3px on hover.
    Combined with box-shadow, this creates a "lifting" effect.
    This is a micro-interaction — small detail that feels polished.
  */
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(208, 0, 111, 0.4);
}

/* Outline button — transparent with pink border */
.btn-outline {
  background: transparent;
  color: var(--color-pink);
  border-color: var(--color-pink);
}

.btn-outline:hover {
  background: var(--color-pink);
  color: var(--color-white);
}

/* Gold button — for CTA sections */
.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-dark);
  font-weight: 700;
  border-color: transparent;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 194, 0, 0.4);
}

/* White outline button — for dark backgrounds */
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
}

/* Size variants */
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

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


/* ============================================================
   SCROLL REVEAL ANIMATION
   Elements with class "reveal" start invisible and
   slide up into view when they scroll into the viewport.
   JavaScript adds the "visible" class when they're in view.
============================================================ */
.reveal {
  opacity: 0;              /* Start invisible */
  transform: translateY(40px);  /* Start 40px below normal position */
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;              /* Fade in */
  transform: translateY(0); /* Slide to normal position */
}

/* Stagger delays — so cards don't all animate at the same time */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }


/* ============================================================
   NAVIGATION BAR
============================================================ */
.navbar {
  position: fixed;   /* Fixed = stays at top even when you scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;     /* z-index = layer order. 1000 puts nav ABOVE all other content */
  transition: var(--transition);
  /* Start transparent so it blends with the hero image */
  background: transparent;
  /*
    NOTE: The navbar itself does NOT use overflow:hidden.
    The hiding/showing of the mobile dropdown menu (.nav-links)
    is handled entirely by that element's own transform,
    visibility, and opacity properties — see the mobile media
    query further down this file. This separation is what fixes
    the "sliver peeking through" bug some browsers had.
  */
}

/*
  When we scroll down, JavaScript adds the class "scrolled" to the navbar.
  This triggers this CSS, making the navbar solid with a shadow.
*/
.navbar.scrolled {
  background: rgba(13, 13, 26, 0.97);
  backdrop-filter: blur(12px); /* Frosted glass blur effect behind the nav */
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;             /* Flexbox puts children side by side */
  align-items: center;       /* Vertically center everything */
  justify-content: space-between; /* Push logo left, links right */
  height: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-img {
  height: 50px;
  width: 50px;
  object-fit: contain;  /* Scale image to fit without distorting */
  border-radius: 50%;   /* Make it circular */
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-white);
  /*
    We hide the text on smaller screens to save space.
    Done in the media query section at the bottom.
  */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

/* Hamburger button (mobile menu toggle) */
.hamburger {
  display: none;  /* Hidden on desktop, shown on mobile via media query */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* When hamburger is "open" (JS adds .open class), animate to X shape */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;     /* 100vh = 100% of the viewport height — full screen */
  display: flex;
  align-items: center;
  overflow: hidden;

  /* Hero background image — s20 (the African girl with MacBook) */
  background-image: url('../images/back1img.jpeg');
  background-size: cover;       /* Scale image to cover entire area */
  background-position: center;  /* Keep the image centered */
  background-attachment: fixed; /* Parallax-like effect as you scroll */
}

/* Dark overlay on top of the background image */
.hero-overlay {
  position: absolute;
  inset: 0;   /* Shorthand for top:0; right:0; bottom:0; left:0 */
  background: linear-gradient(
    135deg,
    rgba(13, 13, 26, 0.92) 0%,   /* Very dark on the left (where text is) */
    rgba(13, 13, 26, 0.4) 100%   /* Lighter on the right (let the image show) */
  );
  z-index: 1;
}

/* Animated floating circles (decorative) */
.hero-circles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none; /* Clicks go through these to elements underneath */
}

.circle {
  position: absolute;
  border-radius: 50%;
  /*
    @keyframes animation is defined below.
    animation: name duration timing-function delay iteration-count;
  */
  animation: floatCircle 8s ease-in-out infinite;
}

.circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(208,0,111,0.12) 0%, transparent 70%);
  top: -100px;
  right: 5%;
  animation-duration: 10s;
}

.circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(107,15,168,0.1) 0%, transparent 70%);
  bottom: 10%;
  left: 10%;
  animation-duration: 12s;
  animation-delay: -3s;  /* Negative delay = starts partway through the animation cycle */
}

.circle-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,194,0,0.08) 0%, transparent 70%);
  top: 30%;
  right: 20%;
  animation-duration: 7s;
  animation-delay: -5s;
}

/* The floating animation keyframes */
@keyframes floatCircle {
  /* keyframes define what happens at each point in the animation */
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Hero content layout */
.hero-content {
  position: relative;
  z-index: 2;         /* Sit above the overlay (z-index: 1) */
  max-width: 600px;
  padding: calc(var(--navbar-height) + 2rem) var(--space-xxl) var(--space-xxl);
  /*
    calc() — lets us do maths in CSS!
    padding-top = navbar height + extra space, so content is below the fixed nav.
  */
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 194, 0, 0.15);
  border: 1px solid rgba(255, 194, 0, 0.3);
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  /* Entrance animation */
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease 0.2s both;
  /* "both" means: apply the initial state (invisible) before the delay,
     and keep the final state (visible) after the animation ends */
}

.hero-title-highlight {
  /* 
    background-clip: text + transparent color = gradient TEXT!
    The gradient is applied as a background, but we clip it
    to the shape of the text, then make the text colour transparent
    so you see the gradient through the text shape.
  */
  background: var(--gradient-gold);
  -webkit-background-clip: text;  /* Webkit prefix for Safari compatibility */
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-sm);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.typewriter-text {
  color: var(--color-gold);
  font-weight: 700;
  /* The blinking cursor effect is added by JavaScript */
}

.hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;  /* Buttons stack on mobile */
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* Social proof area */
.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-dark);
  margin-left: -10px; /* Overlap the avatars */
}

/* Give each avatar a distinct colour */
.av1 { background: linear-gradient(135deg, #FF6B6B, #FF8E53); margin-left: 0; }
.av2 { background: linear-gradient(135deg, #4ECDC4, #45B7D1); }
.av3 { background: linear-gradient(135deg, #96CEB4, #FFEAA7); }
.av4 { background: linear-gradient(135deg, #DDA0DD, #BA68C8); }

.proof-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.proof-text strong {
  color: var(--color-gold);
}

/* Hero image (right side on desktop) */
.hero-image-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(var(--navbar-height) + 2rem) var(--space-xl) var(--space-xl) 0;
}

.hero-image-card {
  position: relative;
  width: 420px;
  max-width: 90%;
  animation: fadeInRight 1s ease 0.3s both;
}

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

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  aspect-ratio: 3/4;   /* Maintain a portrait aspect ratio */
}

/* Floating badges on the hero image */
.floating-badge {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.badge-top {
  top: -16px;
  right: -20px;
  color: var(--color-pink);
}

.badge-bottom {
  bottom: 30px;
  left: -30px;
  animation-delay: -2s; /* Offset so they don't float in sync */
}

.badge-top i, .badge-bottom i {
  color: var(--color-pink);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* fadeInUp animation (used on many elements) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   STATS BAR
============================================================ */
.stats-bar {
  background: var(--gradient-dark);
  padding: var(--space-xl) 0;
}

.stats-grid {
  display: grid;
  /* auto-fit + minmax = responsive grid without media queries!
     Each column is at least 180px wide. As the screen gets smaller,
     columns wrap to the next row automatically. */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-md);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(208, 0, 111, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-pink);
  margin-bottom: 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
}
.forced-flex{
  display: flex;
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

/* Numbers glow gold when counting is complete (JS adds .done class) */
.stat-number.done {
  color: var(--color-gold);
  transition: color 0.3s ease;
}


/* ============================================================
   HOW IT WORKS SECTION
============================================================ */
.how-it-works {
  padding: var(--space-xxl) 0;
  background: var(--color-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}

.step-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-pink);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-pink);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(208,0,111,0.1), rgba(107,15,168,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-pink);
  margin: var(--space-sm) auto var(--space-md);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.hiw-cta {
  text-align: center;
}


/* ============================================================
   COURSES PREVIEW
============================================================ */
.courses-preview {
  padding: var(--space-xxl) 0;
  background: var(--color-white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.course-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;  /* Clip the thumbnail image to the card's rounded corners */
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.course-thumbnail {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumbnail img {
  transform: scale(1.05); /* Zoom image slightly on card hover */
}

.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient-pink);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
}

.new-badge {
  background: var(--gradient-gold);
  color: var(--color-dark);
}

.course-body {
  padding: var(--space-md);
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.course-category {
  font-size: 0.8rem;
  color: var(--color-pink);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.course-level {
  font-size: 0.75rem;
  background: rgba(107, 15, 168, 0.1);
  color: var(--color-purple);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.course-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.course-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
}

.course-info {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.course-info i {
  color: var(--color-pink);
}

.courses-cta {
  text-align: center;
}


/* ============================================================
   ABOUT SECTION
============================================================ */
.about-strip {
  padding: var(--space-xxl) 0;
  background: var(--color-light);
}

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

/* Images side */
.about-images {
  position: relative;
  height: 500px;
}

.about-img-main {
  position: absolute;
  width: 70%;
  top: 0;
  left: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  width: 55%;
  bottom: 0;
  right: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-lg);
}

.about-img-secondary img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.about-float-card {
  position: absolute;
  bottom: 30%;
  left: -20px;
  background: var(--gradient-pink);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  max-width: 200px;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.about-float-card i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Text side */
.about-desc {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.value-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-pink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;  /* Don't let the icon shrink when text is long */
  font-size: 1rem;
}

.value-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.value-item p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}


/* ============================================================
   LIVE CLASS SECTION
============================================================ */
.live-class-section {
  padding: var(--space-xxl) 0;
  background: var(--color-dark);
}

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

.live-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.live-text .section-eyebrow {
  color: var(--color-gold);
}

.live-text .section-title {
  color: var(--color-white);
}

.live-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.live-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

.live-feature i {
  color: var(--color-pink);
  font-size: 1.1rem;
}

/* Images */
.live-images {
  position: relative;
}

.live-img-main {
  width: 80%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.live-img-overlay {
  position: absolute;
  bottom: -30px;
  right: 0;
  width: 55%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--color-dark);
  box-shadow: var(--shadow-lg);
}

.live-img-secondary {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* "LIVE NOW" badge */
.live-badge {
  position: absolute;
  top: 20px;
  left: -15px;
  background: var(--color-pink);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-pink);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  /* Pulsing glow animation */
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}


/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials {
  padding: var(--space-xxl) 0;
  background: var(--color-light);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  /* JavaScript moves this track left/right to reveal different cards */
}

.testimonial-card {
  min-width: 100%;  /* Each card takes full width of the slider */
  padding: 0 var(--space-lg);
  text-align: center;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.ta1 { background: linear-gradient(135deg, #D0006F, #6B0FA8); }
.ta2 { background: linear-gradient(135deg, #FFC200, #FF8C00); }
.ta3 { background: linear-gradient(135deg, #4ECDC4, #45B7D1); }

.testimonial-author strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--color-pink);
  width: 28px;
  border-radius: var(--radius-full);  /* Elongates to pill shape when active */
}


/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  position: relative;
  padding: var(--space-xxl) 0;
  background-image: url('../images/s16.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,26,0.92), rgba(107,15,168,0.85));
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--color-dark);
  padding: var(--space-xxl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xxl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  margin-bottom: var(--space-sm);
  object-fit: contain;
}

.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--color-pink);
  color: white;
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--color-gold);
  padding-left: 5px;  /* Slides text right on hover */
}

.footer-contact p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.6;
}

.footer-contact i {
  color: var(--color-pink);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}


/* ============================================================
   MEDIA QUERIES (Responsive Design)
   
   HOW MEDIA QUERIES WORK:
   @media screen and (max-width: 768px) { ... }
   This block of styles ONLY applies when the screen is
   768px wide or SMALLER (tablets and phones).
   
   We write "mobile-last" — desktop styles first,
   then override for smaller screens inside media queries.
   
   Common breakpoints:
   1200px = large desktop
   992px  = small desktop / large tablet
   768px  = tablet
   480px  = mobile
============================================================ */

@media screen and (max-width: 992px) {
  .about-grid,
  .live-grid {
    grid-template-columns: 1fr;  /* Stack columns on tablets */
  }

  .about-images {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;  /* 2-column footer on tablet */
  }

  .hero-image-wrap {
    display: none;  /* Hide the hero image panel on tablet to save space */
  }

  .hero-content {
    max-width: 100%;
    padding: calc(var(--navbar-height) + 2rem) var(--space-xl) var(--space-xl);
  }
}

@media screen and (max-width: 768px) {
  /* Mobile navigation */
  .hamburger {
    display: flex;  /* Show the hamburger button */
  }

  .nav-links {
    /*
      On mobile, the nav becomes a full-width dropdown panel
      that sits directly below the navbar.

      THE BUG WE'RE FIXING:
      Previously, this element was only hidden using
      transform: translateY(-110%). A transform MOVES an element
      visually, but the element is still technically "in flow" —
      still occupying space, still part of the accessibility tree,
      and on some browsers/zoom levels the rounded -110% offset
      doesn't fully clear the element's own height, so a sliver
      of it remains visible at the very top of the screen.

      THE FIX — we now hide it with THREE properties working together:
      1. visibility: hidden  → makes it fully invisible AND removes it
         from the tab order / screen readers (better accessibility too)
      2. opacity: 0          → fades it out, smoothing the transition
      3. pointer-events: none → so it can't be accidentally clicked/tapped
         while it's supposed to be closed
      Combined with the transform, there is now NO way for any part
      of this menu to be visible or interactive while closed.
    */
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: 80vh;
    /* max-height: calc(100vh - var(--navbar-height));  */
    /* never taller than the screen */
    overflow-y: auto;          /* scrolls internally if there are many links */
    background: rgba(13, 13, 26, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;    /* Stack links vertically */
    /* align-items: stretch; */
    padding: var(--space-lg);
    /* gap: var(--space-xs); */
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 999;

    /* --- The closed (default) state --- */
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    /*
      We transition all three properties together so the close
      animation looks smooth rather than the menu "snapping" away
      the instant the class is removed.
    */
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav-links.open {
    /* --- The open state --- */
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .logo-text {
    display: none;  /* Hide the text on mobile, keep just the logo */
  }

  .footer-grid {
    grid-template-columns: 1fr;  /* Single column footer on mobile */
  }

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

  .hero {
    background-attachment: scroll; /* Parallax causes performance issues on mobile */
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --space-xxl: 3rem;  /* Reduce large spacing on small phones */
  }

  .about-images {
    display: none;  /* Hide overlapping images on very small screens */
  }

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

  .live-features {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/*
  ACCESSIBILITY: Respects user's "prefer reduced motion" setting.
  Some users (especially those with vestibular disorders) are bothered
  by animation. This media query turns off animations for them.
*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   GLOBAL RESPONSIVE FIXES
   Applied across ALL pages — ensures nothing breaks
   on tablets and phones.
============================================================ */

/* ---- Tablet (max 992px) ---- */
@media screen and (max-width: 992px) {

  /* Hero: full width, centred text */
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-attachment: scroll;
  }

  .hero-content {
    padding: calc(var(--navbar-height) + 3rem) var(--space-lg) var(--space-xl);
    max-width: 100%;
  }

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

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

  /* About: images stack, reduce height */
  .about-images {
    height: 320px;
  }

  .about-img-main {
    width: 65%;
  }

  .about-img-secondary {
    width: 50%;
  }

  /* Live class grid stacks */
  .live-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .live-images {
    order: -1; /* Show image ABOVE the text on tablet */
  }

  .live-img-main {
    width: 100%;
  }

  /* Footer: 2-col grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

/* ---- Mobile (max 768px) ---- */
@media screen and (max-width: 768px) {

  /* Navbar */
  .hamburger { display: flex; }

  /*
    NOTE: .nav-links and .nav-links.open are NOT redefined here.
    They are already fully defined once, earlier in this file
    (the authoritative mobile navigation rule with visibility/opacity/
    pointer-events included). Defining them a second time here was
    the original cause of the "sliver of menu visible" bug — two
    competing rules of equal specificity, with the second one missing
    properties the first one had. Keeping ONE definition removes
    that conflict for good.
  */

  .logo-text { display: none; }

  /* Hero */
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Stats: 2 columns */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Courses: 1 column */
  .courses-grid { grid-template-columns: 1fr; }

  /* About: image stack hidden, just show text */
  .about-grid { grid-template-columns: 1fr; }

  .about-images { display: none; }

  /* Live class features: 1 column */
  .live-features { grid-template-columns: 1fr; }

  /* CTA buttons */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Footer: 1 column */
  .footer-grid { grid-template-columns: 1fr; }

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

/* ---- Small phones (max 480px) ---- */
@media screen and (max-width: 480px) {

  :root {
    --space-xxl: 3rem;
    --space-xl: 2rem;
  }

  /* Stats: 1 column on tiny screens */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .stat-number { font-size: 2.2rem; }

  /* Steps: already 1 col via auto-fit, just reduce padding */
  .step-card { padding: var(--space-lg) var(--space-md); }

  /* Section headers */
  .section-title { font-size: 1.6rem; }

  /* How it works CTA */
  .hiw-cta .btn,
  .courses-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Scroll indicator hidden on tiny screens */
  .scroll-indicator { display: none; }
}

/* ============================================================
   ANTHEM AUDIO PLAYER
   Fixed bottom-left floating player
============================================================ */
.anthem-player {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2000;
  animation: slideInLeft 0.6s ease 1s both;
}

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

.anthem-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(13, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(208, 0, 111, 0.3);
  border-radius: 99px;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.anthem-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-pink);
  border: none;
  color: white;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.anthem-btn:hover { transform: scale(1.1); }

.anthem-info {
  display: flex; flex-direction: column; gap: 0.2rem;
  min-width: 120px;
}

.anthem-title {
  font-family: var(--font-heading);
  font-size: 0.75rem; font-weight: 700;
  color: var(--color-gold);
}

.anthem-bar {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px; overflow: hidden;
}

.anthem-progress {
  height: 100%; width: 0%;
  background: var(--gradient-pink);
  border-radius: 99px;
  transition: width 0.5s linear;
}

.anthem-close {
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem; cursor: pointer;
  padding: 2px; transition: all 0.3s ease;
  flex-shrink: 0;
}

.anthem-close:hover { color: var(--color-pink); }

@media screen and (max-width: 480px) {
  .anthem-player { bottom: 1rem; left: 1rem; }
  .anthem-info { min-width: 90px; }
}
