/* ==========================================================================
   Uyanbi Landing Page - Animations & Keyframes
   ========================================================================== */

/* Floating Easing */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }
}

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

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(14px) rotate(-1.5deg);
  }
}

/* Mascot Head / Mask Wiggle */
@keyframes poncikWiggle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.03) rotate(-3deg);
  }
  75% {
    transform: scale(1.03) rotate(3deg);
  }
}

/* Alarm Pulse & Ring */
@keyframes alarmRing {
  0% { transform: scale(1) rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: scale(1.08) rotate(-7deg); }
  20%, 40%, 60%, 80% { transform: scale(1.08) rotate(7deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 199, 0, 0.4), 0 0 20px rgba(255, 199, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(255, 199, 0, 0), 0 0 40px rgba(255, 199, 0, 0.4);
  }
}

@keyframes pulseGlowRed {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5), 0 0 30px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 0 22px rgba(239, 68, 68, 0), 0 0 60px rgba(239, 68, 68, 0.5);
  }
}

@keyframes pulseGlowGreen {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5), 0 0 25px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(16, 185, 129, 0), 0 0 45px rgba(16, 185, 129, 0.4);
  }
}

/* Gradient Flow */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Laser Scanner Sweep for AI Object Scan */
@keyframes laserSweep {
  0% {
    top: 5%;
    opacity: 0.8;
  }
  50% {
    top: 90%;
    opacity: 1;
  }
  100% {
    top: 5%;
    opacity: 0.8;
  }
}

/* Shimmer Loading / Highlight */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

/* Badge Rotating Border */
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Bounce in effect */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(20px);
  }
  70% {
    opacity: 1;
    transform: scale(1.05) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Coin Pop */
@keyframes coinPop {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 0;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-40px) scale(1);
    opacity: 0;
  }
}

/* Utilities for classes */
.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-gentle {
  animation: floatGentle 4s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 7s ease-in-out infinite;
}

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

.animate-ring {
  animation: alarmRing 0.8s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}
