/* Animations and Effects */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(106, 17, 203, 0.8), 0 0 30px rgba(37, 117, 252, 0.6);
  }
}

/* Header Animation */
.logo h2 {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

/* Hero Animation */
.hero h1 span {
  animation: pulse 2s ease-in-out infinite;
}

.glow-btn {
  animation: glow 3s infinite;
}

/* About Image Animation */
.about-image {
  animation: float 6s ease-in-out infinite;
}

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

/* Feature Animation */
.feature-icon {
  position: relative;
  overflow: hidden;
}

.feature-icon:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: rotate 10s linear infinite;
}

/* Contact Method Icon Animation */
.contact-method span {
  position: relative;
  overflow: hidden;
}

.contact-method span:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: rotate 10s linear infinite;
}

/* Button Hover Effect */
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
}

.btn:hover:after {
  transform: translateX(100%);
  transition: all 0.5s ease;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header, .about-content, .games-grid, .features, .contact-content {
  animation: fadeIn 1s ease-out;
}

/* Mobile Menu Animation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Glow Banner Animation */
.glow-banner {
  position: relative;
  overflow: hidden;
}

.glow-banner:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(106, 17, 203, 0.2),
    rgba(37, 117, 252, 0.2),
    transparent
  );
  animation: glowSweep 5s linear infinite;
}

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