/* Aurora Borealis Effect */
.aurora-borealis {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.3;
  pointer-events: none;
  mix-blend-mode: soft-light;
  filter: blur(60px);
  transform: translateZ(0);
  will-change: transform;
}

.aurora-borealis .aurora-band {
  position: absolute;
  width: 300%;
  height: 40%;
  background: linear-gradient(90deg, 
    rgba(120, 0, 255, 0) 0%,
    rgba(120, 0, 255, 0.05) 15%,
    rgba(100, 60, 255, 0.15) 30%,
    rgba(80, 170, 255, 0.25) 50%,
    rgba(100, 60, 255, 0.15) 70%,
    rgba(120, 0, 255, 0.05) 85%,
    rgba(120, 0, 255, 0) 100%
  );
  opacity: 0;
  transform-origin: center;
  animation: aurora-wave 35s ease-in-out infinite;
  mix-blend-mode: plus-lighter;
}

.aurora-band:nth-child(1) {
  top: 5%;
  height: 35%;
  animation-delay: 0s;
  animation-duration: 45s;
  background: linear-gradient(90deg, 
    rgba(100, 0, 255, 0) 0%,
    rgba(100, 0, 255, 0.04) 15%,
    rgba(140, 60, 255, 0.12) 30%,
    rgba(180, 120, 255, 0.2) 50%,
    rgba(140, 60, 255, 0.12) 70%,
    rgba(100, 0, 255, 0.04) 85%,
    rgba(100, 0, 255, 0) 100%
  );
}

.aurora-band:nth-child(2) {
  top: 25%;
  height: 40%;
  animation-delay: -15s;
  animation-duration: 50s;
  background: linear-gradient(90deg, 
    rgba(0, 50, 255, 0) 0%,
    rgba(0, 50, 255, 0.05) 15%,
    rgba(60, 120, 255, 0.15) 30%,
    rgba(100, 180, 255, 0.22) 50%,
    rgba(60, 120, 255, 0.15) 70%,
    rgba(0, 50, 255, 0.05) 85%,
    rgba(0, 50, 255, 0) 100%
  );
}

.aurora-band:nth-child(3) {
  top: 45%;
  height: 30%;
  animation-delay: -25s;
  animation-duration: 55s;
  background: linear-gradient(90deg, 
    rgba(80, 0, 255, 0) 0%,
    rgba(80, 0, 255, 0.04) 15%,
    rgba(150, 100, 255, 0.12) 30%,
    rgba(180, 130, 255, 0.18) 50%,
    rgba(150, 100, 255, 0.12) 70%,
    rgba(80, 0, 255, 0.04) 85%,
    rgba(80, 0, 255, 0) 100%
  );
}

.aurora-band:nth-child(4) {
  top: 65%;
  height: 35%;
  animation-delay: -35s;
  animation-duration: 60s;
  background: linear-gradient(90deg, 
    rgba(100, 30, 255, 0) 0%,
    rgba(100, 30, 255, 0.04) 15%,
    rgba(170, 100, 255, 0.1) 30%,
    rgba(200, 150, 255, 0.15) 50%,
    rgba(170, 100, 255, 0.1) 70%,
    rgba(100, 30, 255, 0.04) 85%,
    rgba(100, 30, 255, 0) 100%
  );
}

/* Wave animation for aurora bands */
@keyframes aurora-wave {
  0% {
    transform: translateX(-40%) scaleY(1) rotate(-1deg);
    opacity: 0.2;
  }
  25% {
    transform: translateX(-30%) scaleY(1.1) rotate(-0.5deg);
    opacity: 0.35;
  }
  50% {
    transform: translateX(-45%) scaleY(0.9) rotate(0.2deg);
    opacity: 0.4;
  }
  75% {
    transform: translateX(-35%) scaleY(1.05) rotate(0.7deg);
    opacity: 0.3;
  }
  100% {
    transform: translateX(-40%) scaleY(1) rotate(-1deg);
    opacity: 0.2;
  }
}

/* Aurora glow spots */
.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: plus-lighter;
  opacity: 0;
  animation: aurora-glow 25s ease-in-out infinite;
}

.aurora-glow:nth-child(5) {
  width: 400px;
  height: 400px;
  top: 15%;
  left: 25%;
  background: radial-gradient(circle, rgba(140, 80, 255, 0.3) 0%, rgba(140, 80, 255, 0) 70%);
  animation-delay: 0s;
  animation-duration: 30s;
}

.aurora-glow:nth-child(6) {
  width: 500px;
  height: 500px;
  top: 45%;
  left: 65%;
  background: radial-gradient(circle, rgba(80, 140, 255, 0.25) 0%, rgba(80, 140, 255, 0) 75%);
  animation-delay: -10s;
  animation-duration: 35s;
}

.aurora-glow:nth-child(7) {
  width: 450px;
  height: 450px;
  top: 75%;
  left: 15%;
  background: radial-gradient(circle, rgba(180, 100, 255, 0.2) 0%, rgba(180, 100, 255, 0) 70%);
  animation-delay: -20s;
  animation-duration: 40s;
}

/* Glow animation */
@keyframes aurora-glow {
  0%, 100% {
    opacity: 0.05;
    transform: scale(0.85) translateY(5px);
  }
  40% {
    opacity: 0.18;
    transform: scale(1.05) translateY(-7px);
  }
  60% {
    opacity: 0.15;
    transform: scale(1.0) translateY(-2px);
  }
}