.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 25%, #0f2847 50%, #1a0033 75%, #0a0e27 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

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

.pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(0, 212, 255, 0.02) 25%, rgba(0, 212, 255, 0.02) 26%, transparent 27%, transparent 74%, rgba(0, 212, 255, 0.02) 75%, rgba(0, 212, 255, 0.02) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(255, 0, 110, 0.02) 25%, rgba(255, 0, 110, 0.02) 26%, transparent 27%, transparent 74%, rgba(255, 0, 110, 0.02) 75%, rgba(255, 0, 110, 0.02) 76%, transparent 77%, transparent);
  background-size: 80px 80px;
  pointer-events: none;
  animation: patternShift 30s linear infinite;
}

@keyframes patternShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.particles-float {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.8), transparent);
  border-radius: 50%;
  animation: float 20s infinite;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-duration: 15s;
  animation-delay: 0s;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.particle:nth-child(2) {
  left: 80%;
  top: 10%;
  animation-duration: 18s;
  animation-delay: 2s;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.8), transparent);
  box-shadow: 0 0 8px rgba(255, 0, 110, 0.6);
}

.particle:nth-child(3) {
  left: 50%;
  top: 80%;
  animation-duration: 22s;
  animation-delay: 4s;
  background: radial-gradient(circle, rgba(255, 190, 11, 0.8), transparent);
  box-shadow: 0 0 8px rgba(255, 190, 11, 0.6);
}

.particle:nth-child(4) {
  left: 20%;
  top: 70%;
  animation-duration: 20s;
  animation-delay: 6s;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.particle:nth-child(5) {
  left: 90%;
  top: 60%;
  animation-duration: 25s;
  animation-delay: 3s;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.8), transparent);
  box-shadow: 0 0 8px rgba(255, 0, 110, 0.6);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

.light-rays {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.light-ray {
  position: absolute;
  width: 2px;
  height: 200px;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.3), transparent);
  transform-origin: top center;
}

.light-ray:nth-child(1) {
  left: 20%;
  top: 0;
  animation: rayPulse 4s ease-in-out infinite;
}

.light-ray:nth-child(2) {
  left: 50%;
  top: 0;
  animation: rayPulse 5s ease-in-out infinite 1s;
}

.light-ray:nth-child(3) {
  left: 80%;
  top: 0;
  animation: rayPulse 6s ease-in-out infinite 2s;
}

@keyframes rayPulse {
  0%, 100% {
    opacity: 0;
    height: 100px;
  }
  50% {
    opacity: 1;
    height: 300px;
  }
}

.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  animation: glowPulse 8s ease-in-out infinite;
}

.glow-spot:nth-child(1) {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.5), transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.glow-spot:nth-child(2) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.5), transparent);
  bottom: 10%;
  right: 10%;
  animation-delay: 2s;
}

.glow-spot:nth-child(3) {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 190, 11, 0.3), transparent);
  top: 50%;
  right: 5%;
  animation-delay: 4s;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.05;
    transform: scale(1);
  }
  50% {
    opacity: 0.15;
    transform: scale(1.1);
  }
}
