/* Animation Keyframes */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 var(--color-blue), -0.05em -0.025em 0 var(--color-lilac);
    transform: skewX(0deg);
  }
  25% {
    text-shadow: -0.05em 0 0 var(--color-blue), 0.025em 0.025em 0 var(--color-lilac);
    transform: skewX(10deg);
  }
  50% {
    text-shadow: -0.05em -0.05em 0 var(--color-blue), -0.025em 0.05em 0 var(--color-lilac);
    transform: skewX(-10deg);
  }
  75% {
    text-shadow: 0.05em 0.05em 0 var(--color-blue), 0.05em 0 0 var(--color-lilac);
    transform: skewX(5deg);
  }
  100% {
    text-shadow: 0.05em 0 0 var(--color-blue), -0.05em -0.025em 0 var(--color-lilac);
    transform: skewX(0deg);
  }
}

/* Applied Animations */
.logo, .shape, .feature-icon, .abstract-art {
  animation: pulse 6s infinite ease-in-out;
}

.banner-heading {
  animation: glitch 5s infinite alternate;
}

.shape-1 {
  animation: float 8s infinite ease-in-out;
}

.shape-2 {
  animation: float 12s infinite ease-in-out reverse;
}

.shape-3 {
  animation: float 10s infinite ease-in-out;
}

.cta-button, .play-button, .submit-button {
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

.game-card:hover {
  animation: pulse 2s infinite ease-in-out;
}

.nav-link:hover::before {
  animation: shimmer 2s infinite linear;
}

.feature-icon::before {
  animation: rotate 10s infinite linear;
}

.nav-item, .game-card, .feature, .info-item {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Animation Delays */
.nav-item:nth-child(1), .game-card:nth-child(1), .feature:nth-child(1) {
  animation-delay: 0.1s;
}

.nav-item:nth-child(2), .game-card:nth-child(2), .feature:nth-child(2) {
  animation-delay: 0.2s;
}

.nav-item:nth-child(3), .game-card:nth-child(3), .feature:nth-child(3) {
  animation-delay: 0.3s;
}

.nav-item:nth-child(4), .game-card:nth-child(4) {
  animation-delay: 0.4s;
}

.game-card:nth-child(5) {
  animation-delay: 0.5s;
}

.game-card:nth-child(6) {
  animation-delay: 0.6s;
}