/* KPI Quiz - Animations */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.3); }
  100% { box-shadow: 0 0 0 16px rgba(14, 116, 144, 0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes progressGrow {
  from { width: 0; }
}
@keyframes borderDraw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

/* ─── ENTRY ANIMATIONS ─── */
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.6s ease forwards; }
.animate-slide-right { animation: slideInRight 0.6s ease forwards; }
.animate-scale { animation: scaleIn 0.5s ease forwards; }

/* ─── STAGGER DELAYS ─── */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }
.delay-6 { animation-delay: 0.6s; opacity: 0; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* ─── FLOATING ANIMATION ─── */
.float { animation: float 4s ease-in-out infinite; }
.float-delay { animation: float 4s ease-in-out infinite 1.5s; }

/* ─── PULSE ─── */
.pulse { animation: pulse-ring 2s ease-out infinite; }

/* ─── HERO ANIMATIONS ─── */
.hero-eyebrow { animation: fadeInUp 0.5s ease 0.1s both; }
.hero h1 { animation: fadeInUp 0.6s ease 0.2s both; }
.hero-desc { animation: fadeInUp 0.6s ease 0.35s both; }
.hero-actions { animation: fadeInUp 0.6s ease 0.45s both; }
.hero-stats { animation: fadeInUp 0.6s ease 0.55s both; }
.hero-visual { animation: fadeIn 0.8s ease 0.3s both; }

/* ─── LOADING STATES ─── */
.skeleton {
  background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ─── QUIZ TRANSITIONS ─── */
.quiz-question { animation: fadeInUp 0.4s ease; }
.quiz-result { animation: scaleIn 0.5s ease; }

/* ─── COUNTER ANIMATION ─── */
.stat-number.counting { animation: countUp 0.3s ease; }

/* ─── HOVER EFFECTS ─── */
.hover-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(11,36,71,0.14); }
.hover-scale { transition: transform 0.25s ease; }
.hover-scale:hover { transform: scale(1.03); }
.hover-glow:hover { box-shadow: 0 0 24px rgba(14,116,144,0.25); }

/* ─── PAGE TRANSITION ─── */
.page-transition { animation: fadeIn 0.4s ease; }

/* ─── MOBILE MENU ANIMATION ─── */
.nav-links { transition: all 0.3s ease; }
.nav-toggle span { transition: all 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── PROGRESS BAR ANIMATION ─── */
.quiz-progress-fill { transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-progress-fill { animation: progressGrow 1.5s ease 1s both; }

/* ─── STAT COUNTER ─── */
.stat-animated { animation: fadeInUp 0.5s ease both; }
