/* Animations */
@keyframes glow {
  0% {
    text-shadow: 0 0 10px rgba(0, 179, 255, 0.4), 0 0 20px rgba(0, 179, 255, 0.2);
  }
  100% {
    text-shadow: 0 0 15px rgba(0, 179, 255, 0.8), 0 0 30px rgba(0, 179, 255, 0.4);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* Apply animations to elements */
.game-card {
  animation: fadeInUp 0.5s ease-out forwards;
}

.games-grid .game-card:nth-child(1) { animation-delay: 0.1s; }
.games-grid .game-card:nth-child(2) { animation-delay: 0.2s; }
.games-grid .game-card:nth-child(3) { animation-delay: 0.3s; }
.games-grid .game-card:nth-child(4) { animation-delay: 0.4s; }
.games-grid .game-card:nth-child(5) { animation-delay: 0.5s; }
.games-grid .game-card:nth-child(6) { animation-delay: 0.6s; }

.feature-icon {
  animation: float 3s ease-in-out infinite;
}

.features-grid .feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.features-grid .feature-card:nth-child(2) .feature-icon { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(3) .feature-icon { animation-delay: 0.6s; }
.features-grid .feature-card:nth-child(4) .feature-icon { animation-delay: 0.9s; }

.btn-primary, .btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary:after, .btn-secondary:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover:after, .btn-secondary:hover:after {
  animation: shine 1.5s ease;
}

@keyframes shine {
  0% {
    opacity: 0;
    left: -50%;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}