/* ============================================================
   GoPlay India — Animations & Keyframes  v3.0 (Cyberpunk Edition)
   Electric Blue · Neon Green · Glow FX
   assets/css/animations.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   CORE KEYFRAMES
══════════════════════════════════════════════════════════════ */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px currentColor; }
  50%       { opacity: 0.35; box-shadow: none; }
}

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

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes slideInLeft {
  from { transform: translateX(-110%); }
  to   { transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-110%); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

@keyframes floatAlt {
  0%, 100% { transform: translateY(-6px) rotate(-2deg); }
  50%       { transform: translateY(6px) rotate(2deg); }
}

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

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes progressBar {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   CYBERPUNK-SPECIFIC KEYFRAMES
══════════════════════════════════════════════════════════════ */

/* Animated button glow — electric blue pulse */
@keyframes btnGlow {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(0, 207, 255, 0.55),
      0 4px 20px rgba(0, 207, 255, 0.30),
      inset 0 1px 0 rgba(255,255,255,0.20);
  }
  50% {
    box-shadow:
      0 0 38px rgba(0, 207, 255, 0.85),
      0 8px 34px rgba(0, 207, 255, 0.55),
      0 0 60px rgba(0, 207, 255, 0.25),
      inset 0 1px 0 rgba(255,255,255,0.30);
  }
}

/* Neon green glow — for secondary elements */
@keyframes neonGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.40), 0 0 24px rgba(0, 255, 136, 0.15);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 255, 136, 0.75), 0 0 50px rgba(0, 255, 136, 0.30);
  }
}

/* Text glow for headings — electric blue */
@keyframes goldGlow {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(0, 207, 255, 0.40),
      0 0 20px rgba(0, 207, 255, 0.20);
  }
  50% {
    text-shadow:
      0 0 20px rgba(0, 207, 255, 0.80),
      0 0 40px rgba(0, 207, 255, 0.45),
      0 0 80px rgba(0, 207, 255, 0.15);
  }
}

/* Neon text glow — neon green */
@keyframes neonTextGlow {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(0, 255, 136, 0.50),
      0 0 16px rgba(0, 255, 136, 0.25);
  }
  50% {
    text-shadow:
      0 0 18px rgba(0, 255, 136, 0.90),
      0 0 36px rgba(0, 255, 136, 0.50),
      0 0 72px rgba(0, 255, 136, 0.20);
  }
}

/* Glitch flicker — for cyberpunk accents */
@keyframes glitch {
  0%, 92%, 100% { transform: translate(0); filter: none; }
  93%  { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
  95%  { transform: translate(2px, -1px); filter: hue-rotate(-90deg) brightness(1.3); }
  97%  { transform: translate(-1px, 0); filter: hue-rotate(45deg); }
}

/* Scanline sweep */
@keyframes scanline {
  0%   { transform: translateY(-100%); opacity: 0.06; }
  100% { transform: translateY(100vh); opacity: 0.02; }
}

/* Border run — animated gradient border */
@keyframes borderRun {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* Shimmer sweep for skeletons */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Ripple on click */
@keyframes ripple {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Card border glow */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 207, 255, 0.25), inset 0 0 0 1px rgba(0,207,255,0.12); }
  50%       { box-shadow: 0 0 32px rgba(0, 207, 255, 0.60), inset 0 0 0 1px rgba(0,207,255,0.30); }
}

/* 404 gold glow (kept for 404 page) */
@keyframes goldGlowText {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 207, 255, 0.5)); }
  50%       { filter: drop-shadow(0 0 24px rgba(0, 207, 255, 0.9)) drop-shadow(0 0 48px rgba(0, 255, 136, 0.3)); }
}

/* ══════════════════════════════════════════════════════════════
   UTILITY ANIMATION CLASSES
══════════════════════════════════════════════════════════════ */

.anim-fade-up    { animation: fadeInUp    0.6s ease both; }
.anim-fade-down  { animation: fadeInDown  0.6s ease both; }
.anim-fade-left  { animation: fadeInLeft  0.6s ease both; }
.anim-fade-right { animation: fadeInRight 0.6s ease both; }
.anim-scale-in   { animation: scaleIn     0.5s ease both; }
.anim-pop-in     { animation: popIn       0.4s cubic-bezier(0.34,1.56,0.64,1) both; }
.anim-float      { animation: float       3s ease-in-out infinite; }
.anim-float-alt  { animation: floatAlt    4s ease-in-out infinite; }
.anim-pulse      { animation: pulse       2s ease-in-out infinite; }
.anim-spin       { animation: spin        1.2s linear infinite; }
.anim-glow       { animation: glow        2.5s ease-in-out infinite; }
.anim-gold-glow  { animation: goldGlow    2.5s ease-in-out infinite; }
.anim-neon-glow  { animation: neonGlow    2s ease-in-out infinite; }
.anim-btn-glow   { animation: btnGlow     2.5s ease-in-out infinite; }
.anim-glitch     { animation: glitch      4s steps(1) infinite; }

/* Delay utilities */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* ══════════════════════════════════════════════════════════════
   SHIMMER SKELETON
══════════════════════════════════════════════════════════════ */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(0, 207, 255, 0.03) 25%,
    rgba(0, 207, 255, 0.09) 50%,
    rgba(0, 207, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════
   GRADIENT BORDER ANIMATION (cyberpunk multi-color)
══════════════════════════════════════════════════════════════ */
.gradient-border-anim {
  background: linear-gradient(90deg, #00cfff, #00ff88, #0080cc, #00ff88, #00cfff);
  background-size: 400% 400%;
  animation: borderRun 3s ease infinite;
}

/* ══════════════════════════════════════════════════════════════
   RIPPLE BUTTON EFFECT
══════════════════════════════════════════════════════════════ */
.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.40);
  transform: scale(0) translate(-50%, -50%);
  transform-origin: top left;
}
.btn-ripple:active::before { animation: ripple 0.5s ease-out; }

/* ══════════════════════════════════════════════════════════════
   FLOATING BADGE ANIMATION
══════════════════════════════════════════════════════════════ */
.floating-badge { animation: float 3.5s ease-in-out infinite; }
.floating-badge:nth-child(even) { animation: floatAlt 4s ease-in-out infinite; }

/* ══════════════════════════════════════════════════════════════
   CYBERPUNK SCANLINE OVERLAY
   Apply .scanlines to any section for the effect
══════════════════════════════════════════════════════════════ */
.scanlines {
  position: relative;
  overflow: hidden;
}
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   NEON BORDER CARD EFFECT
══════════════════════════════════════════════════════════════ */
.neon-card {
  position: relative;
  border-radius: 20px;
}
.neon-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,207,255,0.5), rgba(0,255,136,0.3), rgba(0,207,255,0.5));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  filter: blur(4px);
}
.neon-card:hover::after { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   TICKER / MARQUEE
══════════════════════════════════════════════════════════════ */
.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker-content {
  display: inline-block;
  animation: ticker 22s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL (JS adds .revealed class)
══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════════════════
   LOADING SPINNER — neon blue
══════════════════════════════════════════════════════════════ */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 207, 255, 0.18);
  border-top-color: #00cfff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  box-shadow: 0 0 12px rgba(0, 207, 255, 0.35);
}

/* ══════════════════════════════════════════════════════════════
   PROGRESS BAR — electric blue to neon green
══════════════════════════════════════════════════════════════ */
.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(0, 207, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00cfff, #00ff88);
  border-radius: 4px;
  animation: progressBar 2s ease forwards;
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.50);
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION PREFERENCE
══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   FUTURISTIC NEON GAMING — KEYFRAMES v1.0
══════════════════════════════════════════════════════════════ */

@keyframes nbGlowFire {
  0%, 100% { box-shadow: 0 0 10px rgba(255,60,20,0.45); border-color: rgba(255,80,30,0.65); }
  50%       { box-shadow: 0 0 22px rgba(255,60,20,0.85), 0 0 36px rgba(255,80,20,0.25); border-color: rgba(255,100,40,0.90); }
}
@keyframes nbGlowRed {
  0%, 100% { box-shadow: 0 0 10px rgba(255,40,70,0.40); }
  50%       { box-shadow: 0 0 20px rgba(255,40,70,0.85), 0 0 32px rgba(255,40,70,0.25); }
}
@keyframes nbGlowGreen {
  0%, 100% { box-shadow: 0 0 10px rgba(0,255,136,0.32); }
  50%       { box-shadow: 0 0 20px rgba(0,255,136,0.75), 0 0 30px rgba(0,255,136,0.20); }
}
@keyframes nbGlowPurple {
  0%, 100% { box-shadow: 0 0 10px rgba(170,100,255,0.35); }
  50%       { box-shadow: 0 0 20px rgba(190,130,255,0.72), 0 0 30px rgba(170,100,255,0.22); }
}
@keyframes nbGlowBlue {
  0%, 100% { box-shadow: 0 0 10px rgba(0,207,255,0.32); }
  50%       { box-shadow: 0 0 20px rgba(0,207,255,0.75), 0 0 30px rgba(0,207,255,0.20); }
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #ff3860, 0 0 16px rgba(255,56,96,0.40); }
  50%       { opacity: 0.35; box-shadow: 0 0 2px #ff3860; }
}
@keyframes dlBtnPulse {
  0%, 100% {
    box-shadow: 0 0 22px rgba(0,207,255,0.65), 0 0 44px rgba(0,207,255,0.25), 0 6px 24px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.28);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 38px rgba(0,207,255,0.90), 0 0 75px rgba(0,207,255,0.45), 0 0 110px rgba(0,255,136,0.18), 0 8px 32px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.35);
    transform: scale(1.012);
  }
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1);       opacity: 0.7; }
  33%       { transform: translate(30px, -20px) scale(1.08); opacity: 0.9; }
  66%       { transform: translate(-20px, 15px) scale(0.95); opacity: 0.6; }
}
@keyframes ambientPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.65; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes neonFlicker {
  0%, 18%, 20%, 50%, 52%, 90%, 92%, 100% { text-shadow: 0 0 12px rgba(0,207,255,0.85), 0 0 24px rgba(0,207,255,0.50); }
  19%, 51%, 91% { text-shadow: none; opacity: 0.88; }
}

.anim-neon-flicker { animation: neonFlicker  5s steps(1) infinite; }
.anim-orb-drift    { animation: orbDrift      8s ease-in-out infinite; }
.anim-dl-pulse     { animation: dlBtnPulse    2.2s ease-in-out infinite; }
