/* ===== SPEEDOMATHS PREMIUM DESIGN SYSTEM ===== */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors — refined palette */
  --dark-primary: #1a1118;
  --dark-secondary: #241820;
  --dark-card: #2a1e26;
  --gold: #f5a623;
  --gold-light: #fbc75e;
  --gold-dark: #d48b0a;
  --gold-glow: rgba(245, 166, 35, 0.35);
  --red: #e63946;
  --red-dark: #c62828;
  --red-glow: rgba(230, 57, 70, 0.3);
  --green: #2ecc71;
  --green-dark: #27ae60;
  --teal: #1abc9c;
  --brick: #c97b6b;

  /* Surface & Neutrals */
  --cream: #fdf8f0;
  --cream-light: #fffdf8;
  --warm-white: #fefcf9;
  --surface-glass: rgba(255, 255, 255, 0.65);
  --surface-dark-glass: rgba(26, 17, 24, 0.85);
  --text-dark: #1a1118;
  --text-body: #4a3d45;
  --text-muted: #8a7d84;
  --border-light: rgba(26, 17, 24, 0.06);
  --border-gold: rgba(245, 166, 35, 0.2);

  /* Shadows — layered depth system */
  --shadow-xs: 0 1px 3px rgba(26, 17, 24, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 17, 24, 0.06);
  --shadow-md: 0 4px 24px rgba(26, 17, 24, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 17, 24, 0.12);
  --shadow-xl: 0 20px 60px rgba(26, 17, 24, 0.16);
  --shadow-2xl: 0 32px 80px rgba(26, 17, 24, 0.2);
  --shadow-gold: 0 4px 30px rgba(245, 166, 35, 0.2);
  --shadow-gold-lg: 0 8px 50px rgba(245, 166, 35, 0.3);
  --shadow-red: 0 4px 30px rgba(230, 57, 70, 0.2);
  --shadow-red-lg: 0 8px 40px rgba(230, 57, 70, 0.3);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.1);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--warm-white);
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility Classes --- */
.section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  display: inline-block;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--dark-primary);
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.85;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--border-light), var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.03);
}

.nav-logo-img {
  height: 52px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.04));
}

.navbar.scrolled .nav-logo-img {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-body);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width var(--transition-normal);
  border-radius: 2px;
}

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
  color: #fff !important;
  padding: 11px 26px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  box-shadow: var(--shadow-red);
  transition: all var(--transition-fast) !important;
  border: 1px solid rgba(255,255,255,0.1);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-red-lg) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--dark-primary);
  border-radius: 3px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: 
    radial-gradient(ellipse 80% 50% at 70% 40%, rgba(245, 166, 35, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(230, 57, 70, 0.04) 0%, transparent 70%),
    linear-gradient(170deg, var(--cream-light) 0%, var(--cream) 35%, #fef0d0 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(-40px, 30px) scale(1.15); opacity: 1; }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeSlideUp 1s var(--ease-out) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.25);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 800;
  color: var(--dark-primary);
  line-height: 1.14;
  margin-bottom: 26px;
  letter-spacing: -0.035em;
}

.hero-title .highlight {
  color: var(--red);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 8px;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.15), rgba(230, 57, 70, 0.05));
  border-radius: 4px;
  z-index: -1;
}

.hero-title .highlight-gold {
  color: var(--gold-dark);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-gold::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 8px;
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.25), rgba(245, 166, 35, 0.08));
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 38px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 55px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-red), var(--shadow-inset);
  transition: all var(--transition-fast);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-red-lg);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(245, 166, 35, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-stats {
  display: flex;
  gap: 44px;
}

.hero-stat {
  text-align: center;
  position: relative;
}

.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--border-light), transparent);
}

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--dark-primary);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat .stat-number span {
  color: var(--gold-dark);
  font-weight: 700;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 5px;
}

.hero-visual {
  position: relative;
  animation: fadeSlideUp 1s var(--ease-out) 0.2s both;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 17, 24, 0.1) 100%);
  pointer-events: none;
}

.hero-image-wrapper img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease-out);
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: float 5s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.5);
}

.hero-float-card.card-1 {
  bottom: 30px;
  left: -30px;
}

.hero-float-card.card-2 {
  top: 40px;
  right: -20px;
  animation-delay: -2.5s;
}

.float-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.float-card-icon.gold {
  background: linear-gradient(145deg, rgba(245, 166, 35, 0.18), rgba(245, 166, 35, 0.06));
  color: var(--gold-dark);
}

.float-card-icon.green {
  background: linear-gradient(145deg, rgba(46, 204, 113, 0.18), rgba(46, 204, 113, 0.06));
  color: var(--green);
}

.float-card-text h4 {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.float-card-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Floating Shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.06;
}

.shape-1 {
  top: 15%;
  left: 5%;
  width: 60px;
  height: 60px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  animation: floatSlow 10s ease-in-out infinite;
}

.shape-2 {
  top: 60%;
  right: 8%;
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 10px;
  animation: floatSlow 7s ease-in-out infinite reverse;
  transform: rotate(45deg);
}

.shape-3 {
  bottom: 20%;
  left: 15%;
  width: 30px;
  height: 30px;
  border: 3px solid var(--green);
  animation: floatSlow 8s ease-in-out infinite;
}

/* ===== PROGRAMS OVERVIEW ===== */
.programs-strip {
  padding: 0;
  margin-top: -70px;
  position: relative;
  z-index: 10;
}

.programs-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.program-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.program-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245, 166, 35, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover::after {
  opacity: 1;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.program-card-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
}

.program-card:hover .program-card-icon {
  transform: scale(1.1) rotate(-3deg);
}

.program-card-icon.abacus {
  background: linear-gradient(145deg, rgba(245, 166, 35, 0.14), rgba(245, 166, 35, 0.04));
  color: var(--gold-dark);
}

.program-card-icon.vedic {
  background: linear-gradient(145deg, rgba(230, 57, 70, 0.12), rgba(230, 57, 70, 0.03));
  color: var(--red);
}

.program-card-icon.portal {
  background: linear-gradient(145deg, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0.03));
  color: var(--green);
}

.program-card-icon.book {
  background: linear-gradient(145deg, rgba(201, 123, 107, 0.14), rgba(201, 123, 107, 0.04));
  color: var(--brick);
}

.program-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--dark-primary);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.015em;
}

.program-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ===== STUDENT GALLERY MARQUEE ===== */
.gallery-marquee {
  padding: 80px 0 60px;
  background: var(--warm-white);
  overflow: hidden;
  position: relative;
}

.gallery-marquee .gallery-label {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-marquee .gallery-label .section-label {
  justify-content: center;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  width: 220px;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.marquee-item:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: var(--shadow-xl);
  z-index: 2;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.marquee-item:hover img {
  transform: scale(1.08);
}

.marquee-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 17, 24, 0.5) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.marquee-item:hover::after {
  opacity: 1;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Second row reversed */
.marquee-track.reverse {
  animation: marqueeScrollReverse 55s linear infinite;
}

@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ===== ABOUT / WHY SECTION ===== */
.why-section {
  padding: var(--section-padding);
  background: #fff;
  position: relative;
}

.why-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.why-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.why-image-block {
  position: relative;
}

.why-image-main {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.why-image-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(26, 17, 24, 0.08) 100%);
  pointer-events: none;
}

.why-image-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.why-image-main:hover img {
  transform: scale(1.03);
}

.why-image-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.why-image-accent:hover {
  transform: scale(1.05);
}

.why-image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-content .section-title {
  margin-bottom: 18px;
}

.why-description {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 40px;
  line-height: 1.9;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.why-feature:hover {
  background: #fff;
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.why-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--gold), var(--gold-light));
  color: var(--dark-primary);
  box-shadow: var(--shadow-gold);
}

.why-feature h4 {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.why-feature p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== COURSES SECTION ===== */
.courses-section {
  padding: var(--section-padding);
  background: 
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245, 166, 35, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
}

.courses-header {
  text-align: center;
  margin-bottom: 70px;
}

.courses-header .section-subtitle {
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.course-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  position: relative;
}

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

.course-card-image {
  height: 270px;
  overflow: hidden;
  position: relative;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.course-card:hover .course-card-image img {
  transform: scale(1.06);
}

.course-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 17, 24, 0.15) 100%);
  pointer-events: none;
}

.course-card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.course-card-badge.abacus-badge {
  background: var(--gold);
  color: var(--dark-primary);
}

.course-card-badge.vedic-badge {
  background: var(--red);
  color: #fff;
}

.course-card-body {
  padding: 32px;
}

.course-card-body h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--dark-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.course-card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.course-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-body);
  font-weight: 500;
}

.course-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold-dark);
}

.course-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--red);
  transition: all var(--transition-fast);
  position: relative;
}

.course-card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

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

.course-card-link:hover {
  gap: 14px;
}

.course-card-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.course-card-link:hover svg {
  transform: translateX(4px);
}

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: var(--section-padding);
  background: var(--dark-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(245, 166, 35, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.how-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse at 30% 100%, rgba(230, 57, 70, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.how-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.how-header .section-title {
  color: #fff;
}

.how-header .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.15), transparent);
}

.how-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-step-number {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  color: var(--dark-primary);
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.3), var(--shadow-inset);
  transition: all var(--transition-fast);
}

.how-step:hover .how-step-number {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 40px rgba(245, 166, 35, 0.45);
}

.how-step h4 {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
}

.how-step p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

/* ===== PRACTICE PORTAL ===== */
.portal-section {
  padding: var(--section-padding);
  background: 
    radial-gradient(ellipse 50% 50% at 20% 50%, rgba(46, 204, 113, 0.06) 0%, transparent 70%),
    linear-gradient(135deg, var(--cream) 0%, #fef0d0 100%);
  position: relative;
  overflow: hidden;
}

.portal-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.portal-content .section-title {
  margin-bottom: 18px;
}

.portal-description {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 40px;
  line-height: 1.9;
}

.portal-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.8);
  transition: all var(--transition-fast);
}

.portal-feature:hover {
  background: #fff;
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 204, 113, 0.2);
}

.portal-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

.portal-feature h4 {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.portal-feature p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.portal-visual {
  position: relative;
}

.portal-mockup {
  background: var(--dark-primary);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: var(--shadow-2xl);
  transition: transform var(--transition-normal);
}

.portal-mockup:hover {
  transform: translateY(-6px);
}

.portal-mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.portal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.portal-dot.red { background: #ff5f57; }
.portal-dot.yellow { background: #febc2e; }
.portal-dot.green { background: #28c840; }

.portal-mockup-body {
  background: linear-gradient(180deg, var(--dark-secondary), #130e11);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.portal-mockup-body::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portal-mockup-body .mockup-abacus {
  font-size: 3rem;
  margin-bottom: 8px;
}

.portal-mockup-body h4 {
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.portal-mockup-body p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
}

.portal-mockup-body .mockup-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.mockup-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast);
}

.mockup-btn:hover {
  transform: translateY(-2px);
}

.mockup-btn.flash { background: var(--gold); color: var(--dark-primary); box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3); }
.mockup-btn.audio { background: var(--green); color: #fff; box-shadow: 0 4px 16px rgba(46, 204, 113, 0.3); }
.mockup-btn.games { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3); }

/* ===== FOUNDER SECTION ===== */
.founder-section {
  padding: var(--section-padding);
  background: #fff;
  position: relative;
}

.founder-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.founder-section .container {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 70px;
  align-items: center;
}

.founder-image-wrapper {
  position: relative;
}

.founder-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(245, 166, 35, 0.08);
  background: var(--cream);
}

.founder-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.founder-image:hover img {
  transform: scale(1.03);
}

.founder-image-border {
  position: absolute;
  inset: -10px;
  border: 2.5px solid var(--gold);
  border-radius: calc(var(--radius-2xl) + 6px);
  opacity: 0.25;
  pointer-events: none;
}

.founder-content .section-title {
  margin-bottom: 10px;
}

.founder-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--dark-primary);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.founder-role {
  font-size: 0.92rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 26px;
  letter-spacing: 0.3px;
}

.founder-bio {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 32px;
}

.founder-awards {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.founder-award {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.founder-award:hover {
  background: #fff;
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.founder-award-icon {
  font-size: 1.3rem;
}

.founder-award-text {
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
}

/* ===== ACHIEVEMENTS / AWARDS ===== */
.achievements-section {
  padding: var(--section-padding);
  background: 
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(245, 166, 35, 0.04) 0%, transparent 70%),
    var(--cream-light);
}

.achievements-header {
  text-align: center;
  margin-bottom: 70px;
}

.achievements-header .section-subtitle {
  margin: 0 auto;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.achievement-card {
  text-align: center;
  padding: 24px 20px 28px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.5s var(--ease-out);
  border-radius: 3px;
}

.achievement-card:hover::before {
  width: 60%;
}

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

.achievement-card-img {
  width: 100%;
  height: 200px;
  margin: 0 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(245, 166, 35, 0.2);
  padding: 10px;
  background: linear-gradient(180deg, #fefcf9, #f9f4ea);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.achievement-card:hover .achievement-card-img {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.2);
  background: #fff;
}

.achievement-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius-md) - 6px);
  transition: transform 0.4s var(--ease-out);
}

.achievement-card:hover .achievement-card-img img {
  transform: scale(1.05);
}

.achievement-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.achievement-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: var(--section-padding);
  background: #fff;
  position: relative;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 70px;
}

.testimonials-header .section-subtitle {
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--cream-light);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: none;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 24px;
  font-size: 5.5rem;
  font-family: var(--font-serif);
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: #fff;
  border-color: var(--border-gold);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
}

.testimonial-stars svg {
  width: 17px;
  height: 17px;
  fill: var(--gold);
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 26px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-primary);
  box-shadow: var(--shadow-gold);
}

.testimonial-author-info h5 {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.testimonial-author-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== STATS / NUMBERS SECTION ===== */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-primary), var(--dark-secondary));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(245, 166, 35, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(230, 57, 70, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 30px 10px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, rgba(245, 166, 35, 0.2), transparent);
}

.stat-big-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(245, 166, 35, 0.2);
}

.stat-big-number span {
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 800;
}

.stat-item-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(145deg, var(--dark-primary), var(--dark-secondary));
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

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

.cta-content .section-title {
  color: #fff;
  margin-bottom: 18px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.15rem;
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.85;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  color: var(--dark-primary);
  padding: 18px 42px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold-lg), var(--shadow-inset);
  transition: all var(--transition-fast);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 50px rgba(245, 166, 35, 0.4);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline-white:hover {
  border-color: var(--gold);
  background: rgba(245, 166, 35, 0.08);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-secondary);
  color: rgba(255, 255, 255, 0.55);
  padding: 90px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.15), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo {
  display: inline-block;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-logo:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.25);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.06);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--dark-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.footer-col h4 {
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 7px 0;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.footer-bottom a {
  color: var(--gold);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

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

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

/* Scroll reveal animation class */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin: 0 auto 36px;
  }

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

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

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-float-card.card-1 {
    left: 10px;
  }

  .hero-float-card.card-2 {
    right: 10px;
  }

  .programs-strip .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-section .container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-steps::before {
    display: none;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-section .container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .founder-section .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .founder-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .founder-awards {
    justify-content: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .marquee-item {
    width: 180px;
    height: 230px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--warm-white);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-normal);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-image-wrapper img {
    height: 380px;
  }

  .hero-float-card {
    display: none;
  }

  .programs-strip .container {
    grid-template-columns: 1fr 1fr;
  }

  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .marquee-item {
    width: 160px;
    height: 200px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-big-number {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .programs-strip .container {
    grid-template-columns: 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

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

  .portal-mockup-body .mockup-buttons {
    flex-direction: column;
  }

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

  .btn-gold,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .marquee-item {
    width: 140px;
    height: 180px;
  }
}

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 17, 24, 0.5);
  backdrop-filter: blur(6px);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Selection color */
::selection {
  background: rgba(245, 166, 35, 0.2);
  color: var(--dark-primary);
}
