/* Banner Animation Effects
------------------------------ */

/* Floating particles animation */
.banner-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

/* Generate different sized particles */
.particle:nth-child(1) {
  width: 2px;
  height: 2px;
  top: 20%;
  left: 10%;
  animation: particleAnimation 15s linear infinite;
}

.particle:nth-child(2) {
  width: 4px;
  height: 4px;
  top: 70%;
  left: 30%;
  animation: particleAnimation 20s linear infinite;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  top: 40%;
  left: 50%;
  animation: particleAnimation 25s linear infinite;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 30%;
  left: 70%;
  animation: particleAnimation 18s linear infinite;
}

.particle:nth-child(5) {
  width: 2px;
  height: 2px;
  top: 60%;
  left: 80%;
  animation: particleAnimation 22s linear infinite;
}

.particle:nth-child(6) {
  width: 3px;
  height: 3px;
  top: 80%;
  left: 20%;
  animation: particleAnimation 19s linear infinite;
}

.particle:nth-child(7) {
  width: 4px;
  height: 4px;
  top: 10%;
  left: 60%;
  animation: particleAnimation 21s linear infinite;
}

@keyframes particleAnimation {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}

/* Glowing effect for highlights */
.glow-effect {
  animation: glowAnimation 3s ease-in-out infinite alternate;
}

@keyframes glowAnimation {
  from {
    box-shadow: 0 0 10px rgba(216, 52, 176, 0.5),
                0 0 20px rgba(216, 52, 176, 0.3),
                0 0 30px rgba(216, 52, 176, 0.1);
  }
  to {
    box-shadow: 0 0 20px rgba(216, 52, 176, 0.8),
                0 0 30px rgba(216, 52, 176, 0.5),
                0 0 40px rgba(216, 52, 176, 0.3);
  }
}

/* Adding movement to banner elements */
.banner-element {
  transition: all 0.3s ease;
}

.banner-element:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Animated gradient button effect */
.btn-animated-gradient {
  background-size: 200% 200%;
  background-image: linear-gradient(45deg, 
                      var(--primary-color) 0%, 
                      var(--secondary-color) 25%, 
                      var(--primary-color) 50%, 
                      var(--secondary-color) 75%, 
                      var(--primary-color) 100%);
  animation: gradientAnimation 5s ease infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hero elements entrance animations */
.hero-title {
  animation: fadeInDown 1.2s ease-out forwards;
}

.hero-description {
  animation: fadeInLeft 1.4s ease-out forwards;
}

.hero-buttons {
  animation: fadeInUp 1.6s ease-out forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Floating game icons animation */
.floating-icon {
  position: absolute;
  z-index: 2;
  opacity: 0.3;
  filter: drop-shadow(0 0 5px rgba(216, 52, 176, 0.5));
}

.floating-icon:nth-child(1) {
  top: 15%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
  top: 60%;
  right: 20%;
  animation: float 8s ease-in-out infinite;
}

.floating-icon:nth-child(3) {
  top: 30%;
  right: 25%;
  animation: float 10s ease-in-out infinite;
}

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