/* New background styles with gradient and particle animation */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  position: relative;
  /* Dark gradient background with blue tones */
  background: linear-gradient(135deg, #0a1220 0%, #132135 25%, #1a2940 50%, #132135 75%, #0a1220 100%) !important;
  background-attachment: fixed !important;
  overflow-x: hidden;
  z-index: 1;
}

/* Subtle overlay pattern for more depth */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(3, 138, 255, 0.03) 2%, transparent 2.5%),
    radial-gradient(circle at 85% 85%, rgba(3, 138, 255, 0.03) 2%, transparent 2.5%);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* Particle Container */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

/* Individual particle styling */
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px 2px rgba(66, 153, 225, 0.6);
  pointer-events: none;
  z-index: -1;
  animation: floatParticle var(--duration) ease-in-out infinite, fadeInOut var(--duration) ease-in-out infinite;
}

/* Blue-tinted particles */
.particle-blue {
  background: rgba(66, 153, 225, 0.6);
  box-shadow: 0 0 10px 3px rgba(66, 153, 225, 0.8);
}

/* Fade in and out animation for particles */
@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
  }
  5%, 95% {
    opacity: var(--opacity);
  }
}

/* Float animation for particles */
@keyframes floatParticle {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(var(--move-x), var(--move-y));
  }
  50% {
    transform: translate(var(--move-x-alt), var(--move-y-alt));
  }
  75% {
    transform: translate(var(--move-x-rev), var(--move-y-rev));
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Content overlay to ensure text remains readable */
.content-overlay {
  position: relative;
  z-index: 2;
}
