/**
 * Background Animation CSS
 * Animated floating dots
 */

/* ============================================
   Background Dots Container
   ============================================ */
.background-dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* ============================================
   Individual Dot
   ============================================ */
.background-dot {
  position: absolute;
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
  will-change: transform;
}

/* ============================================
   Float Animations (multiple variations)
   ============================================ */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(40px, 10px) scale(1.05);
  }
}

.background-dot:nth-child(2n) {
  animation: floatAlt1 25s ease-in-out infinite;
}

@keyframes floatAlt1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(-40px, 30px) rotate(120deg) scale(1.15);
  }
  66% {
    transform: translate(20px, -40px) rotate(240deg) scale(0.85);
  }
}

.background-dot:nth-child(3n) {
  animation: floatAlt2 30s ease-in-out infinite;
}

@keyframes floatAlt2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(50px, 20px) scale(0.9);
  }
  40% {
    transform: translate(-30px, -40px) scale(1.2);
  }
  60% {
    transform: translate(10px, 50px) scale(1);
  }
  80% {
    transform: translate(-50px, -20px) scale(0.95);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .background-dot {
    /* Smaller dots on mobile for better performance */
    transform: scale(0.7);
  }
}
