/* ==========================================================================
   MOTION GRAPHICS & 3D ANIMATION ENGINE — CRICKETBETTINGID.AI
   Cinematic lighting, ball spinning, sparks, smooth physics-based easing
   ========================================================================== */

/* Hero Glow Sweep */
@keyframes heroLightSweep {
  0% { transform: translate(-30%, -30%) rotate(0deg); }
  50% { transform: translate(30%, 30%) rotate(180deg); }
  100% { transform: translate(-30%, -30%) rotate(360deg); }
}

.anim-hero-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 201, 135, 0.18) 0%, rgba(255, 200, 74, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: heroLightSweep 18s linear infinite;
  z-index: 1;
}

/* Pulsing Gold Stumps Arc */
@keyframes goldArcPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(255, 200, 74, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(255, 200, 74, 0.85));
  }
}

.anim-gold-pulse {
  animation: goldArcPulse 3s ease-in-out infinite;
}

/* Ball Fast Spin on Hover */
.spin-on-hover {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spin-on-hover:hover {
  transform: rotate(360deg) scale(1.1);
}

/* Radar Sweep on Live Match Dot */
@keyframes radarSweep {
  0% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0.85; }
}

/* Shimmer Light across CTA */
@keyframes ctaShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.anim-cta-shimmer {
  background-size: 200% 100%;
  animation: ctaShimmer 4s linear infinite;
}

/* Respect Accessibility Reduced Motion */
@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;
  }
}
