:root {
  /* Colors */
  --color-primary: #6B21A8; /* Purple 800 */
  --color-primary-hover: #581C87; /* Purple 900 */
  --color-secondary: #9333EA; /* Purple 600 */
  --color-accent: #F3E8FF; /* Purple 100 */
  --color-surface: #FFFFFF;
  --color-surface-off: #FAFAFA;
  --color-text-primary: #18181B; /* Zinc 900 */
  --color-text-secondary: #52525B; /* Zinc 600 */
  --color-border: #E4E4E7; /* Zinc 200 */
  --color-success: #16A34A; /* Green 600 */
  --color-success-bg: #DCFCE7; /* Green 100 */
  --color-warning: #F59E0B; 

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-primary-glow: 0 10px 15px -3px rgba(107, 33, 168, 0.3);

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* Ensure all main section headings are centered */
.section h2,
section h2,
.section-title,
.section-header h2,
#about h2,
#partner h2,
#counseling h2,
#counselling h2 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.text-lead {
  font-size: 1.125rem;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-light {
  background-color: var(--color-surface-off);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-surface);
  box-shadow: 0 4px 10px rgba(107, 33, 168, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(107, 33, 168, 0.5);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(107, 33, 168, 0.15);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-primary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.375rem;
}

.badge-trust {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.badge-accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 228, 231, 0.5);
  transition: transform 0.3s ease;
}

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

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

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

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

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  background: radial-gradient(circle at top right, var(--color-accent), transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero-visual {
  animation: float 6s ease-in-out infinite;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  top: 10%;
  left: 0;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  top: 40%;
  right: -20px;
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  bottom: 10%;
  left: 20%;
  animation-delay: -4s;
}

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

/* Trust Logos */
.trust-logos {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
    background: var(--color-background);
}

/* Floating Buttons Container */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* WhatsApp, Chatbot & Call Floating Buttons */
.whatsapp-float, .chatbot-float, .call-float {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    text-decoration: none;
}

@keyframes pulse-float {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(1);
  }
}

@keyframes pulse-call {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 122, 255, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
    transform: scale(1);
  }
}

@keyframes pulse-chatbot {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 33, 168, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(107, 33, 168, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(107, 33, 168, 0);
    transform: scale(1);
  }
}

.whatsapp-float {
    background-color: #25d366;
    animation: pulse-float 2.6s infinite ease-in-out;
}

.chatbot-float {
    position: fixed !important;
    bottom: 25px !important;
    left: 25px !important;
    right: auto !important;
    background-color: var(--color-primary);
    animation: pulse-chatbot 2.6s infinite ease-in-out;
    animation-delay: 1.6s;
    z-index: 1000;
}

.call-float {
    background-color: #007aff;
    animation: pulse-call 2.6s infinite ease-in-out;
    animation-delay: 0.8s;
}

.whatsapp-float:hover, .chatbot-float:hover, .call-float:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
    animation-play-state: paused;
}

/* Standalone floating buttons fallback when not in .floating-buttons container */
body > .whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

body > .call-float {
    position: fixed;
    bottom: 95px;
    right: 25px;
    z-index: 1000;
}

.logos-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.logos-track img {
  height: 40px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.logos-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Cards */
.card-premium {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(228, 228, 231, 0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(107, 33, 168, 0.1);
  border-color: rgba(107, 33, 168, 0.3);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(107, 33, 168, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 25px -8px rgba(139, 92, 246, 0.35), inset 0 2px 5px rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--color-primary), #ec4899, #3b82f6);
  opacity: 0;
  z-index: -1;
  filter: blur(10px);
  transition: opacity 0.4s ease;
}

.card-icon svg {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: visible;
}

.card-premium:hover .card-icon,
.card-premium:active .card-icon {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: white;
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 18px 35px -5px rgba(139, 92, 246, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}

.card-premium:hover .card-icon::after,
.card-premium:active .card-icon::after {
  opacity: 0.65;
}

.card-premium:hover .card-icon svg,
.card-premium:active .card-icon svg {
  transform: scale(1.12);
}

/* ==========================================
   PREMIUM CUSTOM SVG ICON MICRO-ANIMATIONS
   ========================================== */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes iconPulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

@keyframes iconSpinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes iconOrbit {
  0% { transform: rotate(0deg) scaleX(1); }
  50% { transform: rotate(180deg) scaleX(0.85); }
  100% { transform: rotate(360deg) scaleX(1); }
}

@keyframes iconBarRising1 {
  0%, 100% { height: 10px; transform: translateY(0); }
  50% { height: 16px; transform: translateY(-6px); }
}

@keyframes iconBarRising2 {
  0%, 100% { height: 16px; transform: translateY(0); }
  50% { height: 22px; transform: translateY(-6px); }
}

@keyframes iconBarRising3 {
  0%, 100% { height: 20px; transform: translateY(0); }
  50% { height: 26px; transform: translateY(-6px); }
}

@keyframes iconShieldPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes iconCheckPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(-4deg); }
}

@keyframes iconSparkleSpin {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.18); }
  100% { transform: rotate(360deg) scale(0.9); }
}

@keyframes iconWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(12deg); }
  75% { transform: rotate(-10deg); }
}

.anim-float { animation: iconFloat 3.5s ease-in-out infinite; }
.anim-pulse { animation: iconPulseGlow 2.5s ease-in-out infinite; }
.anim-spin { animation: iconSpinSlow 12s linear infinite; transform-origin: center; }
.anim-orbit { animation: iconOrbit 8s linear infinite; transform-origin: center; }
.anim-shield { animation: iconShieldPulse 3s ease-in-out infinite; transform-origin: center; }
.anim-check { animation: iconCheckPop 2s ease-in-out infinite; transform-origin: center; }
.anim-sparkle { animation: iconSparkleSpin 4s linear infinite; transform-origin: center; }
.anim-wave { animation: iconWave 3s ease-in-out infinite; transform-origin: bottom center; }

.anim-bar-1 { animation: iconBarRising1 2.2s ease-in-out infinite; }
.anim-bar-2 { animation: iconBarRising2 2.2s ease-in-out infinite 0.3s; }
.anim-bar-3 { animation: iconBarRising3 2.2s ease-in-out infinite 0.6s; }

/* Tutors Carousel & Slide Buttons */
.tutors-carousel-wrapper {
  position: relative;
  width: 100%;
}

.tutors-carousel {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: flex-start !important;
  gap: 0 !important; /* Removed gap, using margin on cards */
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-top: 0.5rem !important;
  padding-right: 0.5rem !important;
  padding-bottom: 2rem !important;
  padding-left: 0 !important; /* Explicitly 0 */
  margin: 0 !important;
  width: 100% !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tutors-carousel::after {
  content: '';
  flex: 1 0 auto;
  min-width: 1px;
}
.tutors-carousel::-webkit-scrollbar {
  display: none;
}

.tutor-slide-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  user-select: none;
  outline: none;
}
.tutor-slide-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}
.tutor-slide-btn:active {
  transform: scale(0.94);
}

.tutors-carousel .tutor-card {
  flex: 0 0 calc(33.333% - 1.25rem);
  min-width: 305px;
  max-width: 370px;
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .tutors-carousel .tutor-card {
    flex: 0 0 calc(50% - 1rem);
    min-width: 295px;
  }
}

@media (max-width: 640px) {
  .tutors-carousel .tutor-card {
    flex: 0 0 100%;
    min-width: 280px;
  }
}

.tutor-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(228, 228, 231, 0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* bouncy ease */
}

.tutor-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(107, 33, 168, 0.2);
  border-color: var(--color-primary-light);
}

.tutor-img-wrapper {
  height: 240px;
  overflow: hidden;
  background: var(--color-surface-off);
}

.tutor-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.tutor-content {
  padding: 1.5rem;
}

.tutor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.tutor-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Learning Process */
.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 64px;
  height: 64px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: dashed 2px var(--color-border);
    z-index: 1;
  }
}

.process-step {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.process-step:hover {
  transform: translateY(-10px);
}

.process-step:hover .process-number {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(107, 33, 168, 0.3);
}

/* Stats */
.stat-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-item:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(107, 33, 168, 0.15);
}

.stat-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--color-accent, #3b82f6); /* Use an accent color or a fallback blue */
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text); /* Use text color, but make it distinct if wanted */
  margin-bottom: 0.5rem;
}

.stat-item:hover .stat-value {
  color: var(--color-primary);
}

/* Final CTA */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-surface);
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--color-surface);
}

.cta-section p {
  color: var(--color-accent);
}

/* Footer - Premium Modern Slate-Lavender Redesign */
.footer {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  color: #475569;
  padding: 5rem 0 2.5rem;
  border-top: 2px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  margin-bottom: 3.5rem;
}

.footer-col-brand {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  }
  .footer-col-brand {
    grid-column: span 1;
  }
}

.footer-logo-img,
.footer .nav-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: none !important;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0F172A;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Social Media Circle Buttons */
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--color-primary);
  color: #ffffff !important;
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

/* Popular Tutors Pill Tags */
.footer-tag-pill {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #CBD5E1;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.footer-tag-pill:hover {
  background: var(--color-primary);
  color: #ffffff !important;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
  color: #64748B;
  font-size: 0.9rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

@media (max-width: 768px) {
  .footer {
    padding-bottom: 9rem !important;
  }
}

/* Animation Utilities (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

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

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-primary);
  cursor: pointer;
}

@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-actions {
    display: none;
  }
  
  .navbar.mobile-active {
    background: white !important;
  }
  
  .navbar.mobile-active .container {
    flex-wrap: wrap;
    height: auto;
    min-height: 5rem;
  }
  
  .navbar.mobile-active .nav-brand {
    flex: 1;
  }
  
  .navbar.mobile-active .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    gap: 1.5rem;
    order: 3;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
  }
  
  .navbar.mobile-active .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0 2rem;
    order: 4;
    gap: 1rem;
  }
}

/* 3D Illustration Styles */
.animated-line {
  stroke-dasharray: 10 10;
  animation: dash 30s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -1000; }
}

.illustration-orb {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.illustration-orb:nth-of-type(2) { animation-delay: -2s; }
.illustration-orb:nth-of-type(3) { animation-delay: -4s; }

.orb-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(107, 33, 168, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255,255,255, 0.9);
  transition: transform 0.3s ease;
}

.illustration-orb:hover .orb-icon {
  transform: scale(1.1);
}

.orb-label {
  background: var(--color-surface);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.floating-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--color-surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  z-index: 3;
  white-space: nowrap;
}

.badge-bounce-1 { animation: bounceFloat 5s ease-in-out infinite; }
.badge-bounce-2 { animation: bounceFloat 6s ease-in-out infinite reverse; animation-delay: -1s; }
.badge-bounce-3 { animation: bounceFloat 7s ease-in-out infinite; animation-delay: -3s; }

@keyframes bounceFloat {
  0% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-15px); }
  100% { transform: translate(-50%, -50%) translateY(0); }
}

@keyframes pulseLocation {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.pulse-animation {
  animation: pulseLocation 2s infinite;
}

/* Marquee Animations for Reviews */
@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-350px * 4 - 2rem * 4)); } /* Assuming 4 cards */
}
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  padding: 1rem 0;
}
.marquee-content {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-marquee 30s linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}
.marquee-content .review-card {
  width: 400px;
  flex-shrink: 0;
  white-space: normal;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.marquee-content .review-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(107, 33, 168, 0.15);
  border-color: var(--color-primary-light);
}

@media (max-width: 768px) {
  .marquee-content .review-card {
    width: 320px;
  }
  .section, .cta-section {
    padding: 3rem 0;
  }
  .hero {
    padding: 12rem 0 4rem;
  }
}

/* News Side Button (Compact & Sleek) */
#news-side-btn {
  position: fixed;
  top: 38%;
  right: 0;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
  color: white;
  padding: 14px 8px;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: -2px 0 12px rgba(0,0,0,0.18);
  z-index: 999;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#news-side-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), #4338ca);
  transform: translateY(-50%) scale(1.05);
  box-shadow: -4px 0 18px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  #news-side-btn {
    top: 35%;
    padding: 10px 6px;
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 768px) {
  #news-side-btn {
    top: auto;
    bottom: 120px;
    right: 0;
    transform: none;
    padding: 12px 8px;
    font-size: 0.95rem;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.15);
  }
  #news-side-btn:hover {
    transform: none;
  }
}

/* Toppers Section */
.topper-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 1.5rem;
}
.topper-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.topper-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 4px solid var(--color-primary);
}
.topper-details {
  padding: 1.5rem 1rem 0;
}
.topper-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}
.topper-class {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.topper-achievement {
  display: inline-block;
  background: var(--color-primary-light, #f3e8ff);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Chatbot Styles */
.chatbot-window {
  position: fixed;
  bottom: 95px;
  left: 25px;
  right: auto;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  animation: slideUp 0.3s ease-out;
}

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

.chatbot-header {
  background: var(--color-primary);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-message {
  max-width: 80%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.bot-message {
  background: white;
  color: var(--color-text-primary);
  border: 1px solid #e5e7eb;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.user-message {
  background: var(--color-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chatbot-input-area {
  padding: 15px;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
}

.chatbot-input-area input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #d1d5db;
  border-radius: 50px;
  outline: none;
  font-size: 0.95rem;
}

.chatbot-input-area input:focus {
  border-color: var(--color-primary);
}

@media (max-width: 480px) {
  .chatbot-float {
    left: 15px !important;
    bottom: 20px !important;
  }
  .chatbot-window {
    left: 15px;
    bottom: 85px;
    width: calc(100vw - 30px);
    height: 400px;
  }
}

/* =========================================================
   STUNNING ANIMATIONS & MOBILE TOUCH / SCROLL FEEDBACK
========================================================= */

/* Hero Floating Badges */
.hero-float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1.15rem;
  border-radius: 18px;
  box-shadow: 0 15px 35px -5px rgba(107, 33, 168, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  will-change: transform;
}

.hero-float-badge:hover {
  transform: scale(1.06) translateY(-4px) !important;
  box-shadow: 0 20px 40px -5px rgba(107, 33, 168, 0.35);
}

.badge-top-right {
  top: 5%;
  right: -10px;
  animation: floatAnim1 5s ease-in-out infinite alternate;
}

.badge-bottom-left {
  bottom: 5%;
  left: -10px;
  animation: floatAnim2 6s ease-in-out infinite alternate;
}

.badge-top-left {
  top: 45%;
  left: -20px;
  animation: floatAnim3 7s ease-in-out infinite alternate;
}

.float-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F3E8FF, #E9D5FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.15);
  animation: pulseIcon 3s infinite;
}

.hero-float-badge strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.hero-float-badge span {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  display: block;
}

@keyframes floatAnim1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
  100% { transform: translateY(6px) rotate(-1deg); }
}

@keyframes floatAnim2 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(14px) rotate(-2deg); }
  100% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes floatAnim3 {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.03); }
  100% { transform: translateY(8px) scale(0.98); }
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); box-shadow: 0 0 16px rgba(147, 51, 234, 0.45); }
  100% { transform: scale(1); }
}

@keyframes rotateStar {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); }
}

/* Card Icons Enhanced Shimmer & Glow */
.card-icon {
  position: relative;
  overflow: hidden;
  animation: iconFloatSoft 4s ease-in-out infinite alternate;
}

@keyframes iconFloatSoft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px) scale(1.04); }
}

/* Mobile & Touch Screen Responsive Animations */
@media (max-width: 768px) {
  .hero-float-badge {
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    gap: 0.5rem;
  }
  .float-icon-circle {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .hero-float-badge strong {
    font-size: 0.82rem;
  }
  .hero-float-badge span {
    font-size: 0.72rem;
  }
  .badge-top-right {
    top: -8px;
    right: 5px;
  }
  .badge-bottom-left {
    bottom: -8px;
    left: 5px;
  }
  .badge-top-left {
    top: 15px;
    left: 5px;
  }
  .counselling-box {
    padding: 2.5rem 1.25rem !important;
    gap: 2.5rem !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .counselling-text {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .counselling-text h2 {
    font-size: 2.2rem !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .counselling-text p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .counselling-badge {
    left: 8px !important;
    bottom: -15px !important;
    padding: 0.75rem 1rem !important;
  }
}

/* Tactile Touch Active State for Mobile (Spring feedback on tap/touch) */
.touch-active,
.card-premium:active,
.tutor-card:active,
.process-step:active,
.stat-item:active {
  transform: scale(0.96) translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(107, 33, 168, 0.28) !important;
  border-color: var(--color-primary-light) !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease !important;
}

.btn:active {
  transform: scale(0.93) !important;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.35) !important;
  transition: transform 0.1s ease !important;
}

/* Smooth Hardware-Accelerated Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.continuous-marquee {
  display: flex;
  width: max-content;
  animation: scroll-strip 40s linear infinite;
}
.continuous-marquee:hover {
  animation-play-state: paused;
}
@keyframes scroll-strip {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}
