/* ==========================================================================
   UK CARE LEARNING PLATFORM - ANIMATIONS & MOTION SYSTEM
   ========================================================================== */

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

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(49, 86, 217, 0.4);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(49, 86, 217, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Helper animation classes */
.animate-float {
  animation: floatSlow 4.5s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Mobile App Keyframe Animations (Matching 13 Lumen EdTech App Reference) */
@keyframes float3D {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

@keyframes pulseSubtle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 18px rgba(36, 84, 198, 0.35);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 8px 26px rgba(36, 84, 198, 0.55);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes confettiFloat {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(80px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* App-style tap micro-interaction */
.tap-scale {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}
.tap-scale:active {
  transform: scale(0.95) !important;
}

.animate-float-3d {
  animation: float3D 4s ease-in-out infinite;
}

.animate-pulse-subtle {
  animation: pulseSubtle 2.8s infinite;
}

.animate-pop-in {
  animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hover micro-interactions */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg) !important;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .floating-badge,
  .animate-float-3d {
    animation: none !important;
  }
}
