/* ==========================================================================
   ANIMATIONS & DYNAMIC MICRO-INTERACTIONS
   ========================================================================== */

/* Ambient Floating Orbs */
@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, -40px) scale(1.1);
  }
  100% {
    transform: translate(-40px, 50px) scale(0.95);
  }
}

/* Shimmer Light Reflection on Cards */
@keyframes cardShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Subtle Pulse for Glow Accents */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Badge Live Radar Indicator */
@keyframes radarPing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.radar-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.radar-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Fade and Slide Up Entrance */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-entrance {
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger Animation Utility */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Glowing Border Sweep */
.glow-sweep {
  position: relative;
  overflow: hidden;
}

.glow-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  opacity: 0;
  transform: rotate(30deg);
  transition: opacity 0.4s, transform 0.6s;
  pointer-events: none;
}

.glow-sweep:hover::after {
  opacity: 1;
  transform: rotate(30deg) translate(20%, 20%);
}

/* Float Element Animation */
@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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