/* =====================================================
   CRITICALYX - DESIGN 3: VIBRANT EDTECH
   Energetic, gradient-heavy, Duolingo-inspired
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Nunito:wght@400;600;700&display=swap');

:root {
  /* Vibrant EdTech Palette */
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --bg-accent: #0f3460;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-lime: #84cc16;
  --accent-orange: #f97316;
  --gradient-primary: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.light-mode {
  --bg-dark: #f0f4f8;
  --bg-card: #ffffff;
  --bg-accent: #e2e8f0;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --accent-purple: #7c3aed;
  --accent-pink: #db2777;
  --accent-cyan: #0891b2;
  --gradient-primary: linear-gradient(135deg, #7c3aed, #db2777);
  --gradient-hero: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Performance â€” GPU hints */
.hero-canvas, .sparkles-canvas {
  will-change: transform;
  contain: layout style paint;
}

.team-card, .pricing-card, .faq-card {
  will-change: transform;
  contain: layout style;
}

.features-marquee-track {
  will-change: transform;
  backface-visibility: hidden;
}

/* Reduce paint cost on glassmorphism */
.team-card, .plan-btn, .btn {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.light-mode .navbar {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.light-mode .navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.light-mode .nav-links a {
  color: #1a1a2e;
}

.light-mode .logo {
  color: #1a1a2e;
}

.light-mode .tutor-quote blockquote {
  color: #1a1a2e;
}

.light-mode .tutor-quote {
  background: #f8fafc;
}

/* Light mode â€” Pricing */
.light-mode .pricing {
  background: #f8f9fc;
}

.light-mode .pricing-bg-grid {
  background-image: 
    linear-gradient(to right, rgba(139,92,246,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139,92,246,0.06) 1px, transparent 1px);
}

.light-mode .pricing-glow {
  background: radial-gradient(circle at center, var(--accent-purple) 0%, transparent 70%);
  opacity: 0.08;
}

.light-mode .card-inner {
  background: linear-gradient(165deg, #ffffff 0%, #f8f9fc 50%, #f0f2f8 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.light-mode .pricing-card::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.02) 100%);
}

.light-mode .pricing-card h3 {
  color: #1a1a2e;
}

.light-mode .pricing-price .currency,
.light-mode .pricing-price .amount {
  color: #1a1a2e;
}

.light-mode .card-desc,
.light-mode .features-list li,
.light-mode .features-list h4 {
  color: #64748b;
}

.light-mode .plan-btn.outline {
  background: linear-gradient(180deg, #ffffff 0%, #f0f2f8 100%);
  border-color: #e2e8f0;
  color: #1a1a2e;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.light-mode .plan-btn.outline:hover {
  border-color: var(--accent-purple);
}

.light-mode .pricing-card.popular .card-inner {
  background: linear-gradient(165deg, #f5f0ff 0%, #ede5ff 50%, #f0eaff 100%);
  box-shadow: 
    0 -8px 50px -10px rgba(139,92,246,0.15),
    0 4px 30px rgba(139,92,246,0.1);
}

.light-mode .pricing-card.popular::before {
  background: linear-gradient(180deg, rgba(139,92,246,0.25) 0%, rgba(139,92,246,0.05) 100%);
}

.light-mode .pricing-note {
  color: #64748b;
}

.light-mode .toggle-track {
  background: #e2e8f0;
  border-color: #d1d5db;
}

.light-mode .toggle-btn {
  color: #64748b;
}

.light-mode .toggle-btn.active {
  color: #fff;
}

/* ================================================
   NAVBAR â€” Floating Glassmorphism + Gradient Hover
   ================================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 1100px;
  padding: 10px 20px;
  background: rgba(26, 26, 46, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 60px;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Nav Links â€” Gradient Hover Style */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.4s ease;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

/* Expand on hover */
.nav-links a:hover {
  width: auto;
  padding: 0 18px;
  border-radius: 20px;
  color: #fff;
}

/* Gradient background on hover */
.nav-links li::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.nav-links li:nth-child(1)::before { background: linear-gradient(45deg, #a955ff, #ea51ff); }
.nav-links li:nth-child(2)::before { background: linear-gradient(45deg, #8b5cf6, #06b6d4); }
.nav-links li:nth-child(3)::before { background: linear-gradient(45deg, #8b5cf6, #ec4899); }
.nav-links li:nth-child(4)::before { background: linear-gradient(45deg, #06b6d4, #84cc16); }
.nav-links li:nth-child(5)::before { background: linear-gradient(45deg, #ec4899, #f97316); }

.nav-links li:hover::before {
  opacity: 1;
  border-radius: 20px;
}

/* Glow under hovered link */
.nav-links li::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 10%;
  right: 10%;
  height: 20px;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -2;
}

.nav-links li:nth-child(1)::after { background: linear-gradient(45deg, #a955ff, #ea51ff); }
.nav-links li:nth-child(2)::after { background: linear-gradient(45deg, #8b5cf6, #06b6d4); }
.nav-links li:nth-child(3)::after { background: linear-gradient(45deg, #8b5cf6, #ec4899); }
.nav-links li:nth-child(4)::after { background: linear-gradient(45deg, #06b6d4, #84cc16); }
.nav-links li:nth-child(5)::after { background: linear-gradient(45deg, #ec4899, #f97316); }

.nav-links li:hover::after {
  opacity: 0.4;
}

.nav-links a span {
  display: inline-block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

/* Light mode navbar */
.light-mode .navbar {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
}

.light-mode .navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .mobile-menu-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 8px 16px;
    top: 10px;
    width: calc(100% - 20px);
  }
  
  .logo img {
    height: 36px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  }
  
  .light-mode .nav-links {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    width: 100%;
    border-radius: 12px;
    padding: 0 16px;
    height: 44px;
    justify-content: flex-start;
  }
  
  .nav-links a:hover {
    width: 100%;
  }
  
  .nav-links li::before {
    border-radius: 12px;
  }
  
  .nav-links li:hover::before {
    border-radius: 12px;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .navbar .btn {
    display: none;
  }
}

/* ================================================
   HERO â€” 21st.dev Glowy Waves
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Canvas for animated waves */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Background glow orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-orb--1 {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.hero-orb--2 {
  bottom: 10%;
  right: 5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
}

.hero-orb--3 {
  top: 40%;
  left: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

/* Hero content */
.hero .container {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
  color: var(--accent-purple);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}

.hero-badge-icon {
  width: 16px;
  height: 16px;
}

/* Main heading */
.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Highlight pills */
.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.hero-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.hero-pill:hover {
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  padding: 28px 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  opacity: 0.7;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode hero */
.light-mode .hero-orb--1 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

.light-mode .hero-orb--2 {
  background: radial-gradient(circle, rgba(219, 39, 119, 0.08) 0%, transparent 70%);
}

.light-mode .hero-pill {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.light-mode .hero-pill:hover {
  border-color: rgba(124, 58, 237, 0.25);
}

.light-mode .hero-stats {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

/* Responsive â€” Hero */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  
  .hero-stat-value {
    font-size: 1.5rem;
  }
  
  .hero-pills {
    gap: 8px;
  }
  
  .hero-pill {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
  
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}


/* Hero Image Strip */
.hero-image-strip {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-strip-img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.hero-strip-img:hover {
  opacity: 1;
  transform: scale(1.03);
  border-color: rgba(139, 92, 246, 0.35);
}

.light-mode .hero-strip-img {
  border-color: rgba(124, 58, 237, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .hero-image-strip {
    gap: 10px;
    margin-top: 24px;
  }
  
  .hero-strip-img {
    width: 100px;
    height: 70px;
    border-radius: 10px;
  }
}

/* Subject Pages Hero â€” inherits .hero canvas + orbs */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.page-hero .hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.page-hero .container {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 700px;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .page-hero {
    min-height: 50vh;
    padding-top: 100px;
    padding-bottom: 50px;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* Subject Cards */
.subjects {
  background: var(--bg-card);
}

.subject-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.subject-card {
  background: var(--bg-dark);
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.subject-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-10px);
}

.subject-card:hover::before {
  transform: scaleX(1);
}

.subject-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.subject-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.subject-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.subject-card .btn {
  width: 100%;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  text-align: center;
  padding: 40px 30px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 25px;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
}

/* Results */
.results {
  background: var(--bg-card);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.result-item h3 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.result-item p {
  color: var(--text-secondary);
}

/* ================================================
   TESTIMONIALS â€” 21st.dev Infinite Scrolling Columns
   ================================================ */
.testimonials {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

.testimonials-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.08);
  margin-bottom: 16px;
}

.testimonials-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.testimonials-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Columns wrapper â€” 3 columns with mask fade */
.testimonials-columns-wrapper {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-height: 740px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* Single column */
.testimonials-column {
  display: flex;
  flex-direction: column;
  width: 340px;
  flex-shrink: 0;
}

/* Scrolling inner container */
.testimonials-column-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: scrollUp 20s linear infinite;
}

.testimonials-column-inner--reverse {
  animation: scrollDown 24s linear infinite;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Testimonial card â€” 21st.dev style */
.testimonial-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.08);
  max-width: 340px;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.testimonial-card .testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.testimonial-card .author-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.testimonial-card .author-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
  line-height: 1.3;
}

/* Light mode testimonials */
.light-mode .testimonials {
  background: #f8f9fc;
}

.light-mode .testimonials-badge {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}

.light-mode .testimonial-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.light-mode .testimonial-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.1);
}

/* Light mode — course card overrides */
.light-mode .testimonial-card[data-course="biology"] {
  border-color: rgba(132, 204, 22, 0.15);
}
.light-mode .testimonial-card[data-course="biology"]:hover {
  border-color: rgba(101, 163, 13, 0.4);
  box-shadow: 0 6px 28px rgba(132, 204, 22, 0.1);
}
.light-mode .testimonial-card[data-course="biology"] .card-course-badge {
  background: rgba(132, 204, 22, 0.1);
  color: #4d7c0f;
  border-color: rgba(132, 204, 22, 0.2);
}
.light-mode .testimonial-card[data-course="biology"] .author-avatar {
  border-color: rgba(132, 204, 22, 0.3);
}

.light-mode .testimonial-card[data-course="math"] {
  border-color: rgba(6, 182, 212, 0.15);
}
.light-mode .testimonial-card[data-course="math"]:hover {
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 6px 28px rgba(6, 182, 212, 0.1);
}
.light-mode .testimonial-card[data-course="math"] .card-course-badge {
  background: rgba(6, 182, 212, 0.1);
  color: #0e7490;
  border-color: rgba(6, 182, 212, 0.2);
}
.light-mode .testimonial-card[data-course="math"] .author-avatar {
  border-color: rgba(6, 182, 212, 0.3);
}

.light-mode .testimonial-card[data-course="ai"] {
  border-color: rgba(139, 92, 246, 0.15);
}
.light-mode .testimonial-card[data-course="ai"]:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.1);
}
.light-mode .testimonial-card[data-course="ai"] .card-course-badge {
  background: rgba(139, 92, 246, 0.1);
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.2);
}
.light-mode .testimonial-card[data-course="ai"] .author-avatar {
  border-color: rgba(139, 92, 246, 0.3);
}

.light-mode .card-course-badge {
  font-weight: 700;
}

/* Responsive â€” testimonials */
@media (max-width: 1024px) {
  .testimonials-column--right {
    display: none;
  }
  
  .testimonials-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .testimonials-column--middle {
    display: none;
  }
  
  .testimonials-column {
    width: 100%;
    max-width: 380px;
  }
  
  .testimonial-card {
    max-width: 100%;
  }
  
  .testimonials-header h2 {
    font-size: 1.8rem;
  }
  
  .testimonials {
    padding: 60px 0;
  }
}

/* AI Future */
.ai-future {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  text-align: center;
}

.ai-future h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.ai-future p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
}

/* ================================================
   PRICING â€” 21st.dev Inspired
   ================================================ */
.pricing {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

/* Grid background pattern */
.pricing-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 70px 80px;
  mask-image: radial-gradient(50% 50%, white, transparent);
  -webkit-mask-image: radial-gradient(50% 50%, white, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Sparkles canvas */
.sparkles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

/* Center glow */
.pricing-glow {
  position: absolute;
  top: -50px;
  left: 10%;
  right: 10%;
  width: 80%;
  height: 600px;
  background: radial-gradient(circle at center, var(--accent-purple) 0%, transparent 70%);
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.pricing .container {
  position: relative;
  z-index: 10;
}

/* Header */
.pricing-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

.pricing-section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Toggle Switch */
.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.toggle-track {
  position: relative;
  display: flex;
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 50px;
  padding: 4px;
  gap: 0;
}

.toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 50px;
  background: linear-gradient(180deg, var(--accent-purple), #6d28d9);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.toggle-thumb.yearly {
  transform: translateX(100%);
}

.toggle-btn {
  position: relative;
  z-index: 1;
  padding: 10px 28px;
  border: none;
  background: transparent;
  color: #999;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s;
  border-radius: 50px;
}

.toggle-btn.active {
  color: #fff;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.card-inner {
  background: linear-gradient(165deg, #1e1e3a 0%, #16162a 50%, #1a1a30 100%);
  border-radius: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 32px 28px 20px;
}

.card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}

.pricing-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-price .period {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-content {
  padding: 0 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Plan Buttons */
.plan-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  margin-bottom: 24px;
}

.plan-btn.outline {
  background: linear-gradient(180deg, #1a1a30 0%, #0f0f20 100%);
  border: 1px solid #333;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.plan-btn.outline:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 24px rgba(139,92,246,0.2);
}

.plan-btn.primary {
  background: linear-gradient(180deg, var(--accent-purple) 0%, #6d28d9 100%);
  color: #fff;
  border: 1px solid var(--accent-purple);
  box-shadow: 0 4px 24px rgba(139,92,246,0.4);
}

.plan-btn.primary:hover {
  box-shadow: 0 6px 32px rgba(139,92,246,0.6);
  transform: translateY(-1px);
}

/* Features List */
.features-list {
  margin-top: auto;
}

.features-list h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.features-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.features-list li .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  flex-shrink: 0;
}

/* POPULAR CARD â€” glow effect */
.pricing-card.popular {
  z-index: 5;
}

.pricing-card.popular:hover {
  transform: translateY(-8px) scale(1.02);
}

.pricing-card.popular .card-inner {
  background: linear-gradient(165deg, #1e1e40 0%, #18183a 50%, #1a1a38 100%);
  box-shadow: 
    0 -8px 60px -10px rgba(99, 50, 255, 0.35),
    0 0 40px -10px rgba(99, 50, 255, 0.2);
}

.pricing-card.popular::before {
  background: linear-gradient(180deg, rgba(139,92,246,0.4) 0%, rgba(139,92,246,0.05) 100%);
}

.pricing-card.popular .features-list li .dot {
  background: var(--accent-purple);
}

.pricing-card.popular .pricing-price .amount {
  background: linear-gradient(135deg, #fff, var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pricing note */
.pricing-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* AI Pricing (inherits .pricing styles) */
.ai-pricing {
  padding-top: 60px;
}

.ai-pricing .pricing-section-title {
  font-size: 2.5rem;
}

.ai-pricing-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  text-align: center;
}

.final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.final-cta p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Footer */
.footer {
  background: var(--bg-card);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 5px;
}

.footer-brand h3 {
  font-size: 1.6rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-pink);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: wa-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3); }
  70% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Subject Pages */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--gradient-hero);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Why */
.why-section {
  background: var(--bg-card);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.why-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.why-list {
  list-style: none;
}

.why-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: transform 0.3s ease;
}

.why-image:hover {
  transform: scale(1.02);
}

.light-mode .why-image {
  border-color: rgba(124, 58, 237, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Method */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.method-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 35px;
  text-align: center;
}

.method-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.method-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.method-card p {
  color: var(--text-secondary);
}

/* Topics */
.topics-section {
  background: var(--bg-card);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 800px;
  margin: 0 auto;
}

.topic-item {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.topic-item:hover {
  background: var(--bg-accent);
  transform: translateX(8px);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .subject-cards,
  .steps-grid,
  .results-grid,
  .method-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card.popular {
    order: -1;
  }

  .pricing-card.popular:hover {
    transform: translateY(-6px) scale(1);
  }

  .pricing-section-title {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .why-grid,
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 45px;
  }
  
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 20px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .light-mode .nav-links {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .light-mode .nav-links a {
    color: #1a1a2e;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ==================== FAQ SECTION â€” 21st.dev Card Style ==================== */
.faq-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.faq-section .container {
  max-width: 800px;
}

/* Header */
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--text-secondary);
}

.faq-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.faq-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0.7;
}

/* FAQ Items â€” Card style */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

 /* =====================================================
   CRITICALYX - DESIGN 3: VIBRANT EDTECH
   Energetic, gradient-heavy, Duolingo-inspired
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Nunito:wght@400;600;700&display=swap');

:root {
  /* Vibrant EdTech Palette */
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --bg-accent: #0f3460;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-lime: #84cc16;
  --accent-orange: #f97316;
  --gradient-primary: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.light-mode {
  --bg-dark: #f0f4f8;
  --bg-card: #ffffff;
  --bg-accent: #e2e8f0;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --accent-purple: #7c3aed;
  --accent-pink: #db2777;
  --accent-cyan: #0891b2;
  --gradient-primary: linear-gradient(135deg, #7c3aed, #db2777);
  --gradient-hero: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Performance â€” GPU hints */
.hero-canvas, .sparkles-canvas {
  will-change: transform;
  contain: layout style paint;
}

.team-card, .pricing-card, .faq-card {
  will-change: transform;
  contain: layout style;
}

.features-marquee-track {
  will-change: transform;
  backface-visibility: hidden;
}

/* Reduce paint cost on glassmorphism */
.team-card, .plan-btn, .btn {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.light-mode .navbar {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.light-mode .navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.light-mode .nav-links a {
  color: #1a1a2e;
}

.light-mode .logo {
  color: #1a1a2e;
}

/* Light mode â€” Pricing */
.light-mode .pricing {
  background: #f8f9fc;
}

.light-mode .pricing-bg-grid {
  background-image: 
    linear-gradient(to right, rgba(139,92,246,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139,92,246,0.06) 1px, transparent 1px);
}

.light-mode .pricing-glow {
  background: radial-gradient(circle at center, var(--accent-purple) 0%, transparent 70%);
  opacity: 0.08;
}

.light-mode .card-inner {
  background: linear-gradient(165deg, #ffffff 0%, #f8f9fc 50%, #f0f2f8 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.light-mode .pricing-card::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.02) 100%);
}

.light-mode .pricing-card h3 {
  color: #1a1a2e;
}

.light-mode .pricing-price .currency,
.light-mode .pricing-price .amount {
  color: #1a1a2e;
}

.light-mode .card-desc,
.light-mode .features-list li,
.light-mode .features-list h4 {
  color: #64748b;
}

.light-mode .plan-btn.outline {
  background: linear-gradient(180deg, #ffffff 0%, #f0f2f8 100%);
  border-color: #e2e8f0;
  color: #1a1a2e;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.light-mode .plan-btn.outline:hover {
  border-color: var(--accent-purple);
}

.light-mode .pricing-card.popular .card-inner {
  background: linear-gradient(165deg, #f5f0ff 0%, #ede5ff 50%, #f0eaff 100%);
  box-shadow: 
    0 -8px 50px -10px rgba(139,92,246,0.15),
    0 4px 30px rgba(139,92,246,0.1);
}

.light-mode .pricing-card.popular::before {
  background: linear-gradient(180deg, rgba(139,92,246,0.25) 0%, rgba(139,92,246,0.05) 100%);
}

.light-mode .pricing-note {
  color: #64748b;
}

.light-mode .toggle-track {
  background: #e2e8f0;
  border-color: #d1d5db;
}

.light-mode .toggle-btn {
  color: #64748b;
}

.light-mode .toggle-btn.active {
  color: #fff;
}

/* ================================================
   NAVBAR â€” Floating Glassmorphism + Gradient Hover
   ================================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 1100px;
  padding: 10px 20px;
  background: rgba(26, 26, 46, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 60px;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Nav Links â€” Gradient Hover Style */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.4s ease;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

/* Expand on hover */
.nav-links a:hover {
  width: auto;
  padding: 0 18px;
  border-radius: 20px;
  color: #fff;
}

/* Gradient background on hover */
.nav-links li::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.nav-links li:nth-child(1)::before { background: linear-gradient(45deg, #a955ff, #ea51ff); }
.nav-links li:nth-child(2)::before { background: linear-gradient(45deg, #8b5cf6, #06b6d4); }
.nav-links li:nth-child(3)::before { background: linear-gradient(45deg, #8b5cf6, #ec4899); }
.nav-links li:nth-child(4)::before { background: linear-gradient(45deg, #06b6d4, #84cc16); }
.nav-links li:nth-child(5)::before { background: linear-gradient(45deg, #ec4899, #f97316); }

.nav-links li:hover::before {
  opacity: 1;
  border-radius: 20px;
}

/* Glow under hovered link */
.nav-links li::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 10%;
  right: 10%;
  height: 20px;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -2;
}

.nav-links li:nth-child(1)::after { background: linear-gradient(45deg, #a955ff, #ea51ff); }
.nav-links li:nth-child(2)::after { background: linear-gradient(45deg, #8b5cf6, #06b6d4); }
.nav-links li:nth-child(3)::after { background: linear-gradient(45deg, #8b5cf6, #ec4899); }
.nav-links li:nth-child(4)::after { background: linear-gradient(45deg, #06b6d4, #84cc16); }
.nav-links li:nth-child(5)::after { background: linear-gradient(45deg, #ec4899, #f97316); }

.nav-links li:hover::after {
  opacity: 0.4;
}

.nav-links a span {
  display: inline-block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

/* Light mode navbar */
.light-mode .navbar {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
}

.light-mode .navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .mobile-menu-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 8px 16px;
    top: 10px;
    width: calc(100% - 20px);
  }
  
  .logo img {
    height: 36px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  }
  
  .light-mode .nav-links {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    width: 100%;
    border-radius: 12px;
    padding: 0 16px;
    height: 44px;
    justify-content: flex-start;
  }
  
  .nav-links a:hover {
    width: 100%;
  }
  
  .nav-links li::before {
    border-radius: 12px;
  }
  
  .nav-links li:hover::before {
    border-radius: 12px;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .navbar .btn {
    display: none;
  }
}

/* ================================================
   HERO â€” 21st.dev Glowy Waves
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Canvas for animated waves */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Background glow orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-orb--1 {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.hero-orb--2 {
  bottom: 10%;
  right: 5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
}

.hero-orb--3 {
  top: 40%;
  left: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

/* Hero content */
.hero .container {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
  color: var(--accent-purple);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}

.hero-badge-icon {
  width: 16px;
  height: 16px;
}

/* Main heading */
.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Highlight pills */
.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.hero-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.hero-pill:hover {
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  padding: 28px 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  opacity: 0.7;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode hero */
.light-mode .hero-orb--1 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

.light-mode .hero-orb--2 {
  background: radial-gradient(circle, rgba(219, 39, 119, 0.08) 0%, transparent 70%);
}

.light-mode .hero-pill {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.light-mode .hero-pill:hover {
  border-color: rgba(124, 58, 237, 0.25);
}

.light-mode .hero-stats {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

/* Responsive â€” Hero */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  
  .hero-stat-value {
    font-size: 1.5rem;
  }
  
  .hero-pills {
    gap: 8px;
  }
  
  .hero-pill {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
  
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Subject Pages Hero â€” inherits .hero canvas + orbs */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.page-hero .hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.page-hero .container {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 700px;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .page-hero {
    min-height: 50vh;
    padding-top: 100px;
    padding-bottom: 50px;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* Subject Cards */
.subjects {
  background: var(--bg-card);
}

.subject-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.subject-card {
  background: var(--bg-dark);
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.subject-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-10px);
}

.subject-card:hover::before {
  transform: scaleX(1);
}

.subject-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.subject-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.subject-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.subject-card .btn {
  width: 100%;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  text-align: center;
  padding: 40px 30px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 25px;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
}

/* Results */
.results {
  background: var(--bg-card);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.result-item h3 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.result-item p {
  color: var(--text-secondary);
}

/* ================================================
   TESTIMONIALS â€” 21st.dev Infinite Scrolling Columns
   ================================================ */
.testimonials {
  background: var(--bg-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

.testimonials-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.08);
  margin-bottom: 16px;
}

.testimonials-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.testimonials-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Columns wrapper â€” 3 columns with mask fade */
.testimonials-columns-wrapper {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-height: 740px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* Single column */
.testimonials-column {
  display: flex;
  flex-direction: column;
  width: 340px;
  flex-shrink: 0;
}

/* Scrolling inner container */
.testimonials-column-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: scrollUp 20s linear infinite;
}

.testimonials-column-inner--reverse {
  animation: scrollDown 24s linear infinite;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Testimonial card â€” 21st.dev style */
.testimonial-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.08);
  max-width: 340px;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.testimonial-card .testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.testimonial-card .author-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.testimonial-card .author-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
  line-height: 1.3;
}

/* Light mode testimonials */
.light-mode .testimonials {
  background: #f8f9fc;
}

.light-mode .testimonials-badge {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}

.light-mode .testimonial-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.light-mode .testimonial-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.1);
}

/* Light mode — course card overrides */
.light-mode .testimonial-card[data-course="biology"] {
  border-color: rgba(132, 204, 22, 0.15);
}
.light-mode .testimonial-card[data-course="biology"]:hover {
  border-color: rgba(101, 163, 13, 0.4);
  box-shadow: 0 6px 28px rgba(132, 204, 22, 0.1);
}
.light-mode .testimonial-card[data-course="biology"] .card-course-badge {
  background: rgba(132, 204, 22, 0.1);
  color: #4d7c0f;
  border-color: rgba(132, 204, 22, 0.2);
}
.light-mode .testimonial-card[data-course="biology"] .author-avatar {
  border-color: rgba(132, 204, 22, 0.3);
}

.light-mode .testimonial-card[data-course="math"] {
  border-color: rgba(6, 182, 212, 0.15);
}
.light-mode .testimonial-card[data-course="math"]:hover {
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 6px 28px rgba(6, 182, 212, 0.1);
}
.light-mode .testimonial-card[data-course="math"] .card-course-badge {
  background: rgba(6, 182, 212, 0.1);
  color: #0e7490;
  border-color: rgba(6, 182, 212, 0.2);
}
.light-mode .testimonial-card[data-course="math"] .author-avatar {
  border-color: rgba(6, 182, 212, 0.3);
}

.light-mode .testimonial-card[data-course="ai"] {
  border-color: rgba(139, 92, 246, 0.15);
}
.light-mode .testimonial-card[data-course="ai"]:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.1);
}
.light-mode .testimonial-card[data-course="ai"] .card-course-badge {
  background: rgba(139, 92, 246, 0.1);
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.2);
}
.light-mode .testimonial-card[data-course="ai"] .author-avatar {
  border-color: rgba(139, 92, 246, 0.3);
}

.light-mode .card-course-badge {
  font-weight: 700;
}

/* Responsive â€” testimonials */
@media (max-width: 1024px) {
  .testimonials-column--right {
    display: none;
  }
  
  .testimonials-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .testimonials-column--middle {
    display: none;
  }
  
  .testimonials-column {
    width: 100%;
    max-width: 380px;
  }
  
  .testimonial-card {
    max-width: 100%;
  }
  
  .testimonials-header h2 {
    font-size: 1.8rem;
  }
  
  .testimonials {
    padding: 60px 0;
  }
}

/* AI Future */
.ai-future {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  text-align: center;
}

.ai-future h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.ai-future p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
}

/* ================================================
   PRICING â€” 21st.dev Inspired
   ================================================ */
.pricing {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

/* Grid background pattern */
.pricing-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 70px 80px;
  mask-image: radial-gradient(50% 50%, white, transparent);
  -webkit-mask-image: radial-gradient(50% 50%, white, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Sparkles canvas */
.sparkles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

/* Center glow */
.pricing-glow {
  position: absolute;
  top: -50px;
  left: 10%;
  right: 10%;
  width: 80%;
  height: 600px;
  background: radial-gradient(circle at center, var(--accent-purple) 0%, transparent 70%);
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.pricing .container {
  position: relative;
  z-index: 10;
}

/* Header */
.pricing-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

.pricing-section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Toggle Switch */
.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.toggle-track {
  position: relative;
  display: flex;
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 50px;
  padding: 4px;
  gap: 0;
}

.toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 50px;
  background: linear-gradient(180deg, var(--accent-purple), #6d28d9);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.toggle-thumb.yearly {
  transform: translateX(100%);
}

.toggle-btn {
  position: relative;
  z-index: 1;
  padding: 10px 28px;
  border: none;
  background: transparent;
  color: #999;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s;
  border-radius: 50px;
}

.toggle-btn.active {
  color: #fff;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.card-inner {
  background: linear-gradient(165deg, #1e1e3a 0%, #16162a 50%, #1a1a30 100%);
  border-radius: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 32px 28px 20px;
}

.card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}

.pricing-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-price .period {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-content {
  padding: 0 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Plan Buttons */
.plan-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  margin-bottom: 24px;
}

.plan-btn.outline {
  background: linear-gradient(180deg, #1a1a30 0%, #0f0f20 100%);
  border: 1px solid #333;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.plan-btn.outline:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 24px rgba(139,92,246,0.2);
}

.plan-btn.primary {
  background: linear-gradient(180deg, var(--accent-purple) 0%, #6d28d9 100%);
  color: #fff;
  border: 1px solid var(--accent-purple);
  box-shadow: 0 4px 24px rgba(139,92,246,0.4);
}

.plan-btn.primary:hover {
  box-shadow: 0 6px 32px rgba(139,92,246,0.6);
  transform: translateY(-1px);
}

/* Features List */
.features-list {
  margin-top: auto;
}

.features-list h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.features-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.features-list li .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  flex-shrink: 0;
}

/* POPULAR CARD â€” glow effect */
.pricing-card.popular {
  z-index: 5;
}

.pricing-card.popular:hover {
  transform: translateY(-8px) scale(1.02);
}

.pricing-card.popular .card-inner {
  background: linear-gradient(165deg, #1e1e40 0%, #18183a 50%, #1a1a38 100%);
  box-shadow: 
    0 -8px 60px -10px rgba(99, 50, 255, 0.35),
    0 0 40px -10px rgba(99, 50, 255, 0.2);
}

.pricing-card.popular::before {
  background: linear-gradient(180deg, rgba(139,92,246,0.4) 0%, rgba(139,92,246,0.05) 100%);
}

.pricing-card.popular .features-list li .dot {
  background: var(--accent-purple);
}

.pricing-card.popular .pricing-price .amount {
  background: linear-gradient(135deg, #fff, var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pricing note */
.pricing-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* AI Pricing (inherits .pricing styles) */
.ai-pricing {
  padding-top: 60px;
}

.ai-pricing .pricing-section-title {
  font-size: 2.5rem;
}

.ai-pricing-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  text-align: center;
}

.final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.final-cta p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Footer */
.footer {
  background: var(--bg-card);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 5px;
}

.footer-brand h3 {
  font-size: 1.6rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-pink);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: wa-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3); }
  70% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Subject Pages */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--gradient-hero);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Why */
.why-section {
  background: var(--bg-card);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.why-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.why-list {
  list-style: none;
}

.why-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: transform 0.3s ease;
}

.why-image:hover {
  transform: scale(1.02);
}

.light-mode .why-image {
  border-color: rgba(124, 58, 237, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Method */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.method-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 35px;
  text-align: center;
}

.method-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.method-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.method-card p {
  color: var(--text-secondary);
}

/* Topics */
.topics-section {
  background: var(--bg-card);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 800px;
  margin: 0 auto;
}

.topic-item {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.topic-item:hover {
  background: var(--bg-accent);
  transform: translateX(8px);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .subject-cards,
  .steps-grid,
  .results-grid,
  .method-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card.popular {
    order: -1;
  }

  .pricing-card.popular:hover {
    transform: translateY(-6px) scale(1);
  }

  .pricing-section-title {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .why-grid,
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 45px;
  }
  
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 20px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .light-mode .nav-links {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .light-mode .nav-links a {
    color: #1a1a2e;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ==================== FAQ SECTION â€” 21st.dev Card Style ==================== */
.faq-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.faq-section .container {
  max-width: 800px;
}

/* Header */
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--text-secondary);
}

.faq-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.faq-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0.7;
}

/* FAQ Items â€” Card style */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.faq-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
  transition: padding-left 0.2s ease;
}

.faq-card:hover .faq-trigger {
  padding-left: 32px;
}

.faq-trigger .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
  opacity: 0.6;
}

.faq-card.active .faq-trigger .chevron {
  transform: rotate(180deg);
  color: var(--accent-purple);
  opacity: 1;
}

/* Answer â€” smooth expand */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 28px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.7;
}

.faq-answer-inner a {
  color: var(--accent-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.faq-footer {
  text-align: center;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-footer a {
  color: var(--accent-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-footer a:hover {
  color: var(--accent-pink);
}

/* Light mode */
.light-mode .faq-section {
  background: #f8f9fc;
}

.light-mode .faq-icon-circle {
  background: rgba(124, 58, 237, 0.08);
}

.light-mode .faq-card {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.08);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.light-mode .faq-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.light-mode .faq-trigger .chevron {
  color: #94a3b8;
}

.light-mode .faq-card.active .faq-trigger .chevron {
  color: var(--accent-purple);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-header h2 {
    font-size: 2rem;
  }
  
  .faq-trigger {
    font-size: 0.95rem;
    padding: 18px 22px;
  }
  
  .faq-answer-inner {
    padding: 0 22px 20px;
    font-size: 0.9rem;
  }
}


/* ==================== FLIPPING CARD ==================== */
.flip-card-wrapper {
  perspective: 1000px;
  display: inline-block;
}

.flip-card {
  position: relative;
  width: 100%;
  height: 320px;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card-wrapper:hover .flip-card {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  overflow: hidden;
}

.flip-card-front {
  background: var(--bg-card);
  z-index: 2;
}

.flip-card-back {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  border-color: rgba(139, 92, 246, 0.25);
}

.flip-card-front-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.flip-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
.flip-card-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.flip-card-front h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.flip-card-front p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flip-card-hint {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.flip-card-back h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.flip-card-back p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.flip-card-back .btn {
  font-size: 0.9rem;
  padding: 10px 24px;
}

.light-mode .flip-card-front {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.light-mode .flip-card-back {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(219, 39, 119, 0.06));
  border-color: rgba(124, 58, 237, 0.15);
}

@media (max-width: 768px) {
  .flip-card { height: 280px; }
}

/* ==================== SUBJECT CARDS ï¿½ Flip Grid ==================== */
.subject-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .subject-cards {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
}
/* ==================== TUTORS PAGE ï¿½ Glassmorphism ==================== */
.tutors-section {
  background: var(--bg-dark);
  padding: 100px 0;
}

.tutors-header {
  text-align: center;
  margin-bottom: 60px;
}

.tutors-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.tutors-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tutors-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

.tutors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

/* Glassmorphism Card */
.team-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
}

.team-card:hover::before {
  transform: scaleX(1);
}

.team-card-avatar { margin-bottom: 20px; }

.team-card-avatar-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .team-card-avatar-img {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35);
}

.team-card-info { text-align: center; }
.team-card-info h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }

.team-card-role {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 14px; border-radius: 50px; margin-bottom: 10px;
}

.team-card-location { font-size: 0.8rem; color: var(--text-secondary); opacity: 0.6; margin-bottom: 14px; }
.team-card-bio { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }

.team-card-quote {
  background: rgba(139, 92, 246, 0.06);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px; margin-bottom: 18px; text-align: left;
}

.team-card-quote blockquote {
  font-style: italic; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0;
}

.team-card-skills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 20px;
}

.team-card-skill {
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.06);
  color: var(--accent-purple);
  transition: all 0.3s ease;
}

.team-card:hover .team-card-skill {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}

.team-card-socials { display: flex; justify-content: center; gap: 8px; }

.team-card-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.9rem; text-decoration: none;
  transition: all 0.3s ease;
}

.team-card-social:hover {
  border-color: var(--accent-purple);
  color: white;
  background: var(--accent-purple);
  transform: translateY(-2px);
}

.team-cta-card { max-width: 560px; margin: 50px auto 0; text-align: center; }

.team-cta-inner {
  background: rgba(139, 92, 246, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 24px; padding: 44px 36px;
}

.team-cta-inner h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.team-cta-inner p { color: var(--text-secondary); margin-bottom: 22px; }

/* ================================================
   TUTOR CARDS — Premium Full-Bleed + Floating Overlay
   ================================================ */
.tutor-card-premium {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 520px;
  cursor: pointer;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutor-card-premium:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
  transform: translateY(-4px);
}

/* Full-bleed background image */
.tutor-card-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.tutor-card-premium:hover .tutor-card-bg {
  transform: scale(1.05);
  filter: brightness(0.5);
}

/* Gradient overlay — always visible at bottom */
.tutor-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  transition: all 0.4s ease;
  z-index: 2;
}

.tutor-card-premium:hover .tutor-card-overlay {
  height: 100%;
  background: linear-gradient(to top, rgba(10,10,30,0.95) 0%, rgba(10,10,30,0.7) 50%, rgba(10,10,30,0.5) 100%);
}

/* Base info — always visible */
.tutor-card-base {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutor-card-base h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tutor-card-role-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  backdrop-filter: blur(8px);
}

.tutor-card-premium:hover .tutor-card-base {
  bottom: auto;
  top: 28px;
}

/* Floating details — revealed on hover */
.tutor-card-details {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  top: 100%;
  padding: 0 28px 28px;
  z-index: 3;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.tutor-card-premium:hover .tutor-card-details {
  top: 120px;
  opacity: 1;
  padding: 0 28px 28px;
}

.tutor-card-details-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tutor-card-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.tutor-card-bio {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.tutor-card-quote {
  padding: 12px 16px;
  border-left: 3px solid rgba(139, 92, 246, 0.5);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0 12px 12px 0;
  margin: 0;
}

.tutor-card-quote blockquote {
  font-size: 0.82rem;
  color: #ffffff;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

.tutor-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tutor-card-skills span {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.tutor-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.tutor-card-btn {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: #ffffff;
}

.tutor-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.tutor-card-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
}

.tutor-card-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* Light mode tutor cards */
.light-mode .tutors-section { background: #f8f9fc; }
.light-mode .tutor-card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%) !important; }
.light-mode .tutor-card-premium:hover .tutor-card-overlay { background: linear-gradient(to top, rgba(10,10,30,0.92) 0%, rgba(10,10,30,0.65) 50%, rgba(10,10,30,0.4) 100%) !important; }

.light-mode .tutor-card-bio { color: rgba(255,255,255,0.9); }
.light-mode .tutor-card-quote {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 3px solid var(--accent-purple);
}
.light-mode .tutor-card-quote blockquote { color: #1a1a2e; }
.light-mode .team-card { background: rgba(255, 255, 255, 0.7); border-color: rgba(124, 58, 237, 0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.light-mode .team-card:hover { background: rgba(255,255,255,0.9); border-color: rgba(124,58,237,0.2); box-shadow: 0 16px 48px rgba(124,58,237,0.1); }
.light-mode .team-card-quote { background: rgba(124,58,237,0.03); }
.light-mode .team-card-social { border-color: rgba(0,0,0,0.08); background: rgba(255,255,255,0.8); }
.light-mode .team-card-social:hover { background: var(--accent-purple); border-color: var(--accent-purple); }
.light-mode .team-cta-inner { background: rgba(255,255,255,0.8); border-color: rgba(124,58,237,0.1); }

/* ==================== FEATURES SECTION ==================== */
.features-section {
  background: var(--bg-dark);
  padding: 80px 0 100px;
  overflow: hidden;
}

.features-marquee-wrapper { max-width: 1000px; margin: 0 auto 60px; position: relative; overflow: hidden; }
.features-marquee-wrapper::before, .features-marquee-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 10; pointer-events: none;
}
.features-marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.features-marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }

.features-marquee-row { overflow: hidden; padding: 6px 0; }
.features-marquee-track { display: flex; gap: 12px; animation: marqueeScroll 35s linear infinite; width: max-content; }
.features-marquee-row--reverse .features-marquee-track { animation-direction: reverse; }

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.features-marquee-item {
  flex-shrink: 0; padding: 8px 18px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 500; white-space: nowrap;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  color: var(--text-secondary);
}

.features-grid-21 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-left: 1px solid rgba(255,255,255,0.06);
}

.feature-card-21 {
  padding: 36px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

.feature-card-21:hover { background: rgba(139, 92, 246, 0.04); }
.feature-icon-21 { font-size: 2.2rem; margin-bottom: 20px; }
.feature-text-21 h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1.3; }
.feature-text-21 p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.light-mode .features-section { background: #f8f9fc; }
.light-mode .features-marquee-wrapper::before { background: linear-gradient(to right, #f8f9fc, transparent); }
.light-mode .features-marquee-wrapper::after { background: linear-gradient(to left, #f8f9fc, transparent); }
.light-mode .features-marquee-item { background: rgba(124,58,237,0.04); border-color: rgba(124,58,237,0.08); }
.light-mode .features-grid-21 { border-color: rgba(0,0,0,0.06); }
.light-mode .feature-card-21 { border-color: rgba(0,0,0,0.05); }
.light-mode .feature-card-21:hover { background: rgba(124,58,237,0.02); }

@media (max-width: 1024px) {
  .tutors-grid { grid-template-columns: 1fr; max-width: 500px; }
  .features-grid-21 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tutors-section { padding: 60px 0; }
  .tutors-header h2 { font-size: 2rem; }
  .team-card { padding: 28px 22px; }
  .features-grid-21 { grid-template-columns: 1fr; }
  .feature-card-21 { border-right: none; }
  .features-section { padding: 50px 0 60px; }
}

.faq-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
  transition: padding-left 0.2s ease;
}

.faq-card:hover .faq-trigger {
  padding-left: 32px;
}

.faq-trigger .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
  opacity: 0.6;
}

.faq-card.active .faq-trigger .chevron {
  transform: rotate(180deg);
  color: var(--accent-purple);
  opacity: 1;
}

/* Answer â€” smooth expand */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 28px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.7;
}

.faq-answer-inner a {
  color: var(--accent-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.faq-footer {
  text-align: center;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-footer a {
  color: var(--accent-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-footer a:hover {
  color: var(--accent-pink);
}

/* Light mode */
.light-mode .faq-section {
  background: #f8f9fc;
}

.light-mode .faq-icon-circle {
  background: rgba(124, 58, 237, 0.08);
}

.light-mode .faq-card {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.08);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.light-mode .faq-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.light-mode .faq-trigger .chevron {
  color: #94a3b8;
}

.light-mode .faq-card.active .faq-trigger .chevron {
  color: var(--accent-purple);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-header h2 {
    font-size: 2rem;
  }
  
  .faq-trigger {
    font-size: 0.95rem;
    padding: 18px 22px;
  }
  
  .faq-answer-inner {
    padding: 0 22px 20px;
    font-size: 0.9rem;
  }
}


/* ==================== FLIPPING CARD ==================== */
.flip-card-wrapper {
  perspective: 1000px;
  display: inline-block;
}

.flip-card {
  position: relative;
  width: 100%;
  height: 320px;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card-wrapper:hover .flip-card {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  overflow: hidden;
}

.flip-card-front {
  background: var(--bg-card);
  z-index: 2;
}

.flip-card-back {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  border-color: rgba(139, 92, 246, 0.25);
}

.flip-card-front-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.flip-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
.flip-card-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.flip-card-front h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.flip-card-front p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flip-card-hint {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.flip-card-back h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.flip-card-back p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.flip-card-back .btn {
  font-size: 0.9rem;
  padding: 10px 24px;
}

.light-mode .flip-card-front {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.light-mode .flip-card-back {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(219, 39, 119, 0.06));
  border-color: rgba(124, 58, 237, 0.15);
}

@media (max-width: 768px) {
  .flip-card { height: 280px; }
}

/* ==================== SUBJECT CARDS ï¿½ Flip Grid ==================== */
.subject-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .subject-cards {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
}
/* ==================== TUTORS PAGE ï¿½ Glassmorphism ==================== */
.tutors-section {
  background: var(--bg-dark);
  padding: 100px 0;
}

.tutors-header {
  text-align: center;
  margin-bottom: 60px;
}

.tutors-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.tutors-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tutors-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

.tutors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

/* Glassmorphism Card */
.team-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
}

.team-card:hover::before {
  transform: scaleX(1);
}
/* =====================================================
   COUNTDOWN TIMER — Between Testimonials & Pricing
   ===================================================== */
.countdown-section {
  padding: 60px 0;
  position: relative;
}

.countdown-container {
  position: relative;
  text-align: center;
  padding: 3rem 2.5rem;
  background: rgba(22, 33, 62, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 60px rgba(139, 92, 246, 0.05);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.countdown-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.countdown-container:hover::before {
  transform: scaleX(1);
}

.countdown-container h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.countdown-container h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: start;
  justify-items: center;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.time-box {
  width: 100%;
  aspect-ratio: 1;
  max-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.digit {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: all 0.3s ease;
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.separator {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  align-self: flex-start;
  margin-top: 0.6rem;
  animation: pulse-sep 1.5s ease-in-out infinite;
}

@keyframes pulse-sep {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.target-date {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  opacity: 0.8;
}

.target-date span {
  color: var(--accent-cyan);
  font-weight: 600;
}

.light-mode .countdown-container {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(139, 92, 246, 0.15);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

.light-mode .time-box {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.1);
}

.light-mode .digit {
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.light-mode .time-box:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

@media (max-width: 768px) {
  .countdown-section {
    padding: 40px 0;
  }

  .countdown-container {
    padding: 2rem 1.2rem;
    border-radius: 20px;
  }

  .countdown-container h1 {
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
  }

  .countdown-grid {
    gap: 0.75rem;
  }

  .time-box {
    border-radius: 12px;
  }

  .digit {
    font-size: 2rem;
  }

  .label {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

  .separator {
    font-size: 1.8rem;
    margin-top: 0.4rem;
  }

  .target-date {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .countdown-container {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .countdown-container h1 {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
  }

  .countdown-grid {
    gap: 0.5rem;
  }

  .digit {
    font-size: 1.6rem;
  }

  .separator {
    font-size: 1.5rem;
  }

  .time-box {
    min-height: 60px;
  }
}
