/* ---------------------------------------------------
   MODERN VIDVANZA REDESIGN - 2026
   Advanced animations, gradients, and modern UI
--------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------
   CSS VARIABLES - Modern Color Palette
--------------------------------------------------- */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --accent: #14b8a6;
  --success: #10b981;
  --warning: #f59e0b;
  --background: #ffffff;
  --surface: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --nav-height: 80px;
}

/* ---------------------------------------------------
   BASE STYLES
--------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  padding-top: var(--nav-height);
}

/* ---------------------------------------------------
   MODERN NAVIGATION BAR
--------------------------------------------------- */
.modern-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.modern-navbar.scrolled {
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.navbar-logo {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
  animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.modern-navbar.scrolled .navbar-logo {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  padding: 0.6rem 1.5rem !important;
  border-radius: 25px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(102, 102, 241, 0.3);
}

.nav-link-cta::after {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ---------------------------------------------------
   ANIMATED BACKGROUND
--------------------------------------------------- */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.05;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--gradient-secondary);
  top: 60%;
  right: 10%;
  animation-delay: 5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--gradient-accent);
  bottom: 20%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, -50px) rotate(90deg);
  }
  50% {
    transform: translate(100px, 50px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, 100px) rotate(270deg);
  }
}

/* ---------------------------------------------------
   TYPOGRAPHY
--------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ---------------------------------------------------
   MODERN BUTTONS
--------------------------------------------------- */
.modern-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1;
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: -1;
}

.modern-btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 102, 241, 0.6);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6);
}

/* ---------------------------------------------------
   LEARNING CHARACTERS ANIMATION
--------------------------------------------------- */
.learning-characters {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lottie Hero Animation */
.lottie-hero-animation {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  animation: float-gentle 4s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Lottie Floating Icons */
.lottie-icon {
  position: absolute;
  z-index: 3;
  animation: float-spin 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.lottie-book {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.lottie-trophy {
  top: 15%;
  right: 10%;
  animation-delay: 2s;
}

.lottie-bulb {
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

@keyframes float-spin {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-20px) rotate(3deg);
  }
}

.character {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  animation: bounce 2s infinite ease-in-out;
}

.boy-character {
  top: 20%;
  left: 10%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation-delay: 0s;
}

.girl-character {
  top: 20%;
  right: 10%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  animation-delay: 0.5s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.learning-icon {
  position: absolute;
  font-size: 40px;
  animation: float-icon 3s infinite ease-in-out;
}

.book-icon {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}

.brain-icon {
  top: 70%;
  left: 30%;
  animation-delay: 1s;
}

.lightbulb-icon {
  top: 70%;
  right: 30%;
  animation-delay: 2s;
}

@keyframes float-icon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
    opacity: 1;
  }
}

.thought-bubble {
  position: absolute;
  background: white;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  animation: bubble-pop 4s infinite ease-in-out;
}

.bubble-boy {
  top: 5%;
  left: 20%;
  animation-delay: 0s;
}

.bubble-girl {
  top: 5%;
  right: 20%;
  animation-delay: 2s;
}

@keyframes bubble-pop {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  10%, 90% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------------------------------------------------
   MODERN CARDS
--------------------------------------------------- */
.modern-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.modern-card:hover::before {
  transform: scaleX(1);
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* ---------------------------------------------------
   GLASSMORPHISM EFFECTS
--------------------------------------------------- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* ---------------------------------------------------
   SCROLL ANIMATIONS
--------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------------------------------------------------
   MODERN HERO SECTION
--------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: slide-down 0.8s ease;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------
   PULSE ANIMATION FOR ICONS
--------------------------------------------------- */
.pulse-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ---------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --nav-height: 70px;
  }

  body {
    padding-top: var(--nav-height);
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-link-cta {
    margin-top: 1rem;
  }

  .hero-section {
    min-height: auto;
    padding: 3rem 0;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  .lottie-hero-animation {
    width: 90%;
    height: 90%;
  }
}

@media (max-width: 768px) {
  .learning-characters {
    height: 350px;
  }

  .lottie-hero-animation {
    width: 100%;
    height: 100%;
  }

  .lottie-icon lottie-player {
    width: 60px !important;
    height: 60px !important;
  }
  
  .character {
    width: 80px;
    height: 80px;
    font-size: 40px;
  }
  
  .learning-icon {
    font-size: 25px;
  }
  
  .modern-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .thought-bubble {
    font-size: 12px;
    padding: 8px 15px;
  }

  .modern-card {
    margin-bottom: 1.5rem;
  }

  .navbar-logo {
    height: 40px;
  }

  h1 {
    font-size: 2rem !important;
  }
}

@media (max-width: 576px) {
  .learning-characters {
    height: 300px;
  }

  .lottie-hero-animation {
    width: 100%;
    height: 100%;
  }

  .lottie-icon {
    display: none; /* Hide floating Lottie icons on very small screens */
  }

  .character {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .modern-btn {
    width: 100%;
    justify-content: center;
  }

  .glass-card {
    padding: 1.5rem !important;
  }

  .carousel-item p {
    font-size: 1rem !important;
  }

  .navbar-logo {
    height: 35px;
  }

  /* Adjust Lottie sizes for mobile */
  .modern-card lottie-player {
    width: 80px !important;
    height: 80px !important;
  }

  .testimonial-badge lottie-player {
    width: 70px !important;
    height: 70px !important;
  }
}

/* Enhanced animations for better performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
  }

  .modern-navbar {
    background: rgba(15, 23, 42, 0.95);
  }

  .modern-card {
    background: var(--surface);
    border-color: var(--border);
  }

  .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Additional modern animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-on-scroll {
  animation: fade-in-up 0.6s ease-out;
}

/* Loading state */
.loading {
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    var(--border) 50%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Utility classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ---------------------------------------------------
   STATS SECTION
--------------------------------------------------- */
.stats-card {
  padding: 2rem 1rem;
  transition: all 0.3s ease;
}

.stats-icon {
  font-size: 3rem;
  animation: bounce-gentle 2s ease-in-out infinite;
}

@keyframes bounce-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

.stats-label {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------------------------------------------------
   MODERN TESTIMONIAL SECTION
--------------------------------------------------- */
.testimonial-section {
  padding: 5rem 0;
}

.testimonial-bg-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.testimonial-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float-testimonial 15s infinite ease-in-out;
}

.testimonial-shape-1 {
  width: 300px;
  height: 300px;
  background: white;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.testimonial-shape-2 {
  width: 200px;
  height: 200px;
  background: white;
  bottom: -50px;
  right: 10%;
  animation-delay: 3s;
}

.testimonial-shape-3 {
  width: 150px;
  height: 150px;
  background: white;
  top: 50%;
  right: -75px;
  animation-delay: 6s;
}

@keyframes float-testimonial {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.testimonial-badge {
  display: inline-block;
  animation: pulse-badge 2s infinite;
}

.badge-icon {
  font-size: 4rem;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover::before {
  transform: scaleX(1);
}

.modern-glass-card {
  animation: card-entrance 0.6s ease-out backwards;
}

@keyframes card-entrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(102, 102, 241, 0.3);
  animation: avatar-pulse 3s ease-in-out infinite;
}

@keyframes avatar-pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(102, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(102, 102, 241, 0.5);
  }
}

.avatar-emoji {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.testimonial-meta {
  flex: 1;
  min-width: 150px;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.testimonial-stars {
  font-size: 1rem;
  letter-spacing: 2px;
  animation: stars-twinkle 2s ease-in-out infinite;
}

@keyframes stars-twinkle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.testimonial-content {
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--primary-light);
  opacity: 0.3;
  line-height: 0;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
  position: relative;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.trust-icon {
  font-size: 1.5rem;
}

.trust-text {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Responsive Testimonials */
@media (max-width: 992px) {
  .testimonial-section {
    padding: 4rem 0;
  }
  
  .testimonial-card {
    margin-bottom: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .testimonial-badge .badge-icon {
    font-size: 3rem;
  }
  
  .testimonial-header {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .quote-icon {
    font-size: 3rem;
  }
  
  .trust-badges {
    gap: 1rem;
  }
  
  .trust-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* ---------------------------------------------------
   ANIMATED ICONS - CSS Animations
--------------------------------------------------- */
.animated-icon {
  display: inline-block;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-learning-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.learning-character {
  display: inline-block;
  animation: bounce-learning 3s ease-in-out infinite;
}

.learning-character.character-1 {
  animation-delay: 0s;
}

.learning-character.character-2 {
  animation-delay: 0.5s;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-elements span {
  position: absolute;
  animation: float-around 4s ease-in-out infinite;
}

.element-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.element-2 {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.element-3 {
  bottom: 15%;
  left: 20%;
  animation-delay: 2s;
}

.bounce-icon {
  animation: bounce-continuous 2s ease-in-out infinite;
}

.pulse-icon {
  animation: pulse-continuous 2s ease-in-out infinite;
}

.glow-icon {
  animation: glow-pulse 2s ease-in-out infinite;
}

.pulse-scale {
  animation: pulse-scale-anim 2s ease-in-out infinite;
}

.shake-icon {
  animation: shake-continuous 3s ease-in-out infinite;
}

.rotate-icon {
  animation: rotate-continuous 4s linear infinite;
}

.pulse-glow {
  animation: pulse-glow-anim 2s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes bounce-learning {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes float-around {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-15px) translateX(10px) rotate(5deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) translateX(0) rotate(-5deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) translateX(-10px) rotate(3deg);
    opacity: 1;
  }
}

@keyframes bounce-continuous {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse-continuous {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 193, 7, 0.5));
    transform: scale(1);
  }
  50% {
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 193, 7, 0.8));
    transform: scale(1.1);
  }
}

@keyframes pulse-scale-anim {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes shake-continuous {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(-5deg) scale(1.05);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(5deg) scale(1.05);
  }
}

@keyframes rotate-continuous {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow-anim {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9));
  }
}

/* Print styles */
@media print {
  .modern-navbar,
  .animated-background,
  .floating-shapes {
    display: none;
  }

  body {
    padding-top: 0;
  }
}
