/* Animations CSS */

/* Glitch Text Effect */
.glitch-text {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #0fe0e0;
  text-shadow: 
    0 0 5px rgba(15, 224, 224, 0.7),
    0 0 10px rgba(15, 224, 224, 0.5),
    0 0 15px rgba(15, 224, 224, 0.3);
  animation: glitch 2s infinite alternate-reverse;
}

@keyframes glitch {
  0% {
    text-shadow: 
      0 0 5px rgba(15, 224, 224, 0.7),
      0 0 10px rgba(15, 224, 224, 0.5);
  }
  
  20% {
    text-shadow: 
      0 0 5px rgba(15, 224, 224, 0.7),
      0 0 10px rgba(15, 224, 224, 0.5),
      0 0 15px rgba(15, 224, 224, 0.3),
      1px 1px 0 #ff00ff,
      -1px -1px 0 #00ffff;
  }
  
  40% {
    text-shadow: 
      0 0 5px rgba(15, 224, 224, 0.7),
      0 0 10px rgba(15, 224, 224, 0.5);
  }
  
  60% {
    text-shadow: 
      0 0 5px rgba(15, 224, 224, 0.7),
      0 0 10px rgba(15, 224, 224, 0.5),
      0 0 15px rgba(15, 224, 224, 0.3),
      -1px 1px 0 #ff00ff,
      1px -1px 0 #00ffff;
  }
  
  100% {
    text-shadow: 
      0 0 5px rgba(15, 224, 224, 0.7),
      0 0 10px rgba(15, 224, 224, 0.5);
  }
}

/* Neon Text */
.neon-text {
  color: #0fe0e0;
  text-shadow: 
    0 0 5px rgba(15, 224, 224, 0.7),
    0 0 10px rgba(15, 224, 224, 0.5),
    0 0 15px rgba(15, 224, 224, 0.3);
  animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
  from {
    text-shadow: 
      0 0 5px rgba(15, 224, 224, 0.7),
      0 0 10px rgba(15, 224, 224, 0.5),
      0 0 15px rgba(15, 224, 224, 0.3);
  }
  to {
    text-shadow: 
      0 0 5px rgba(15, 224, 224, 0.7),
      0 0 10px rgba(15, 224, 224, 0.5),
      0 0 15px rgba(15, 224, 224, 0.3),
      0 0 20px rgba(15, 224, 224, 0.2);
  }
}

/* Button Glow Effect */
.cta-button, .play-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button:hover, .play-button:hover {
  box-shadow: 
    0 0 10px rgba(15, 224, 224, 0.7),
    0 0 20px rgba(15, 224, 224, 0.5);
  transform: translateY(-2px);
}

.cta-button:before, .play-button:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.cta-button:hover:before, .play-button:hover:before {
  opacity: 1;
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translateX(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Nav Link Hover Effect */
.nav-links a {
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #0fe0e0, #ff00ff);
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

/* Slot Icon Animation */
.slot-icon {
  display: inline-block;
  margin-left: 8px;
  animation: spin 3s infinite;
}

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

/* Game Card Hover Animation */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(15, 224, 224, 0.5),
    0 0 15px rgba(255, 0, 255, 0.3);
}

/* Game Overlay Animation */
.game-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

.game-image:hover .game-overlay {
  opacity: 1;
}

/* Mobile Menu Animation */
.mobile-menu-toggle {
  transition: transform 0.3s ease;
}

.mobile-menu-toggle.active {
  transform: rotate(90deg);
}

.mobile-menu-toggle span {
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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