/* Bubble Background Component (Luxury Dark Theme)
   Animated bubbles for hero and decorative sections
*/
.bubble-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: floatBubble ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  opacity: 0.7;
}

/* Luxury gold palette bubbles */
.bubble.color-1 {
  background: radial-gradient(circle at 30% 30%, rgba(246, 226, 166, 0.6), rgba(246, 226, 166, 0.05) 70%);
  box-shadow:
    inset 0 -20px 40px rgba(246, 226, 166, 0.15),
    inset 0 20px 40px rgba(255, 255, 255, 0.15),
    0 10px 40px rgba(246, 226, 166, 0.1);
}

.bubble.color-2 {
  background: radial-gradient(circle at 30% 30%, rgba(202, 162, 75, 0.55), rgba(202, 162, 75, 0.05) 70%);
  box-shadow:
    inset 0 -20px 40px rgba(202, 162, 75, 0.15),
    inset 0 20px 40px rgba(255, 255, 255, 0.15),
    0 10px 40px rgba(202, 162, 75, 0.1);
}

.bubble.color-3 {
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0.05) 70%);
  box-shadow:
    inset 0 -20px 40px rgba(212, 175, 55, 0.12),
    inset 0 20px 40px rgba(255, 255, 255, 0.15),
    0 10px 40px rgba(212, 175, 55, 0.1);
}

.bubble.color-4 {
  background: radial-gradient(circle at 30% 30%, rgba(139, 90, 43, 0.4), rgba(139, 90, 43, 0.05) 70%);
  box-shadow:
    inset 0 -20px 40px rgba(139, 90, 43, 0.1),
    inset 0 20px 40px rgba(255, 255, 255, 0.12),
    0 10px 40px rgba(139, 90, 43, 0.08);
}

.bubble.color-5 {
  background: radial-gradient(circle at 30% 30%, rgba(166, 124, 40, 0.45), rgba(166, 124, 40, 0.05) 70%);
  box-shadow:
    inset 0 -20px 40px rgba(166, 124, 40, 0.1),
    inset 0 20px 40px rgba(255, 255, 255, 0.12),
    0 10px 40px rgba(166, 124, 40, 0.08);
}

.bubble.color-6 {
  background: radial-gradient(circle at 30% 30%, rgba(246, 226, 166, 0.55), rgba(246, 226, 166, 0.05) 70%);
  box-shadow:
    inset 0 -20px 40px rgba(246, 226, 166, 0.12),
    inset 0 20px 40px rgba(255, 255, 255, 0.18),
    0 10px 40px rgba(246, 226, 166, 0.1);
}

/* Smooth float animation */
@keyframes floatBubble {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -40px) scale(1.05);
  }
  50% {
    transform: translate(-20px, -80px) scale(0.95);
  }
  75% {
    transform: translate(-40px, -30px) scale(1.02);
  }
}

/* Interactive mode: blur all but the closest */
.bubble-background[data-interactive].mouse-over .bubble:not(.closest) {
  filter: blur(2px);
  opacity: 0.5;
}

.bubble-background[data-interactive] .bubble.closest {
  filter: blur(0) brightness(1.15);
  opacity: 1;
  transform: scale(1.15);
  z-index: 1;
}

/* Responsive: reduce bubble count visibility on small screens */
@media (max-width: 768px) {
  .bubble {
    opacity: 0.6;
  }
}

@media (max-width: 480px) {
  .bubble {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
  }
}
