/* Proposal P1: floating bubbles in the homepage hero.
   Design reference: soft, blurred pastel circles (BrokerFi-style decorative blobs),
   here given a slow, gentle drift. Overrides the site-wide "animation: none" rule
   for these decorative elements only. Motion is switched off for visitors who
   ask their device to reduce motion. */

.hero .bg-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero .bg-bubble {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0%, rgba(205, 131, 255, 0.35) 38%, rgba(135, 82, 250, 0.16) 70%, rgba(135, 82, 250, 0) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  opacity: 0.55;
  animation: bridgify-bubble-float var(--bub-dur, 16s) ease-in-out var(--bub-delay, 0s) infinite alternate !important;
}

/* Large, very soft "glow" bubbles (blurred, like the reference's 40-64px blur blobs) */
.hero .bub-1 { width: 220px; height: 220px; left: 6%;  top: 58%; filter: blur(28px); opacity: 0.45; --bub-dur: 19s; --bub-delay: -3s; }
.hero .bub-2 { width: 180px; height: 180px; right: 4%; top: 6%;  filter: blur(24px); opacity: 0.40; --bub-dur: 22s; --bub-delay: -9s; }
/* Crisp mid-size bubbles */
.hero .bub-3 { width: 64px;  height: 64px;  left: 46%; top: 14%; --bub-dur: 14s; --bub-delay: -2s; }
.hero .bub-4 { width: 38px;  height: 38px;  left: 30%; top: 78%; --bub-dur: 12s; --bub-delay: -6s; }
.hero .bub-5 { width: 92px;  height: 92px;  right: 14%; bottom: 8%; --bub-dur: 17s; --bub-delay: -11s; }
/* Small sparkle bubbles */
.hero .bub-6 { width: 18px;  height: 18px;  left: 54%; top: 70%; opacity: 0.7; --bub-dur: 10s; --bub-delay: -4s; }
.hero .bub-7 { width: 24px;  height: 24px;  left: 12%; top: 18%; opacity: 0.6; --bub-dur: 13s; --bub-delay: -8s; }
.hero .bub-8 { width: 14px;  height: 14px;  right: 38%; top: 40%; opacity: 0.7; --bub-dur: 11s; --bub-delay: -1s; }

@keyframes bridgify-bubble-float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(10px, -18px, 0) scale(1.04); }
  66%  { transform: translate3d(-8px, -30px, 0) scale(0.98); }
  100% { transform: translate3d(6px, -42px, 0) scale(1.02); }
}

@media (max-width: 639px) {
  .hero .bub-1 { width: 140px; height: 140px; left: -30px; top: 70%; }
  .hero .bub-2 { width: 120px; height: 120px; right: -30px; top: 2%; }
  .hero .bub-3 { left: 70%; top: 30%; width: 44px; height: 44px; }
  .hero .bub-5 { width: 60px; height: 60px; }
  .hero .bub-8 { display: none; }
}

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