/* ============================================
   Poppu Math Kids — Animations
   ============================================ */

@keyframes cloud-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100vw + 200px));
  }
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop-in {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(108, 180, 238, 0.4),
      0 4px 12px rgba(108, 180, 238, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(108, 180, 238, 0.55),
      0 6px 18px rgba(108, 180, 238, 0.3);
  }
}

.fade-in {
  animation: fade-in 0.35s ease both;
}

.shake {
  animation: shake 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
