/* Animations */

/* Jackpot Text Animation */
.animate-jackpot {
  animation: jackpotPulse 2s infinite;
}

@keyframes jackpotPulse {
  0% {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.4);
  }
  100% {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
}

/* Reel Animation */
@keyframes spin {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-320px); /* 4 symbols * 80px height */
  }
}

/* Button Glow Animation */
.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cta-button:hover::after {
  opacity: 1;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.2;
  }
}

/* Feature Card Hover Animation */
.feature-card:hover .feature-icon {
  animation: bounce 0.5s ease;
}

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

/* Step Animation */
.step:hover .step-icon {
  animation: rotate 0.5s ease;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Hamburger Menu Animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Submit Button Pulse */
.submit-button:hover {
  animation: buttonPulse 1.5s infinite;
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.8), 0 0 24px rgba(255, 0, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
}

/* Page Transitions */
.section {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back to Top Button Animation */
.back-to-top {
  animation: float 2s infinite ease-in-out;
}

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

/* Counter Animation */
@keyframes countUp {
  0% {
    content: "0";
  }
  20% {
    content: "20%";
  }
  40% {
    content: "40%";
  }
  60% {
    content: "60%";
  }
  80% {
    content: "80%";
  }
  100% {
    content: "100%";
  }
}