/* Loader Container */
#loaderContainer {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e1e2f 0%, #2a2a3f 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

/* Bubble Loader */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #ff00cc, #3333ff);
  opacity: 0.8;
  animation: float 6s ease-in-out infinite,
             colorShift 8s linear infinite;
}

.bubble:nth-child(1) {
  width: 100px; height: 100px;
  left: 30%; top: 60%;
  animation-delay: 0s;
}
.bubble:nth-child(2) {
  width: 150px; height: 150px;
  left: 50%; top: 70%;
  animation-delay: 1s;
}
.bubble:nth-child(3) {
  width: 80px; height: 80px;
  left: 60%; top: 40%;
  animation-delay: 2s;
}
.bubble:nth-child(4) {
  width: 120px; height: 120px;
  left: 40%; top: 30%;
  animation-delay: 3s;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-40px) scale(1.1); opacity: 0.5; }
}

@keyframes colorShift {
  0%   { background: radial-gradient(circle at top left, #ff00cc, #3333ff); }
  25%  { background: radial-gradient(circle at top left, #ff9900, #ff0066); }
  50%  { background: radial-gradient(circle at top left, #00ffcc, #0066ff); }
  75%  { background: radial-gradient(circle at top left, #ffff00, #ff00ff); }
  100% { background: radial-gradient(circle at top left, #ff00cc, #3333ff); }
}

/* Hide loader when page loaded */
.loaded #loaderContainer {
  opacity: 0;
  pointer-events: none;
}
