/* ==========================================================================
   NYMERIA DIGITECH - KEYFRAME ANIMATIONS & UI MICRO-INTERACTIONS
   ========================================================================== */

/* Floating elements */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
  animation: float 7s ease-in-out 2s infinite;
}

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

.gradient-bg-animate {
  background: linear-gradient(-45deg, #0052FF, #1D4ED8, #0A2540, #0284C7);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

/* Pulsing Glow Indicator */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(0, 82, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 82, 255, 0);
  }
}

.pulse-indicator {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #38BDF8;
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

/* Shimmer scan line */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer-badge {
  position: relative;
  overflow: hidden;
}

.shimmer-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}

/* Fade In Up Reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Slow rotation */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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