/* ==========================================================================
   GPU-Friendly Water & Reveal Animations (Respects prefers-reduced-motion)
   ========================================================================== */

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

.water-bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(45, 212, 247, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: floatBubble linear infinite;
  will-change: transform, opacity;
}

.water-bubble.b1 { width: 18px; height: 18px; left: 8%; animation-duration: 11s; animation-delay: 0s; }
.water-bubble.b2 { width: 28px; height: 28px; left: 22%; animation-duration: 15s; animation-delay: 2s; }
.water-bubble.b3 { width: 14px; height: 14px; left: 41%; animation-duration: 10s; animation-delay: 4s; }
.water-bubble.b4 { width: 34px; height: 34px; left: 64%; animation-duration: 17s; animation-delay: 1s; }
.water-bubble.b5 { width: 20px; height: 20px; left: 80%; animation-duration: 13s; animation-delay: 3s; }
.water-bubble.b6 { width: 12px; height: 12px; left: 92%; animation-duration: 9s; animation-delay: 5s; }

@keyframes floatBubble {
  0% {
    transform: translate3d(0, 0, 0) scale(0.85);
    opacity: 0;
  }
  15% {
    opacity: 0.65;
  }
  85% {
    opacity: 0.45;
  }
  100% {
    transform: translate3d(18px, -110vh, 0) scale(1.15);
    opacity: 0;
  }
}

/* Gentle levitation for hero floating badges */
.float-gentle {
  animation: floatGentle 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatGentle {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

/* Water ripple effect on interactive buttons */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleExpand 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleExpand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Scroll-triggered reveals */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* WhatsApp pulse halo */
.whatsapp-fab::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: waPulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  75%, 100% { transform: scale(1.32); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .water-bubble,
  .float-gentle,
  .whatsapp-fab::after,
  .ripple-wave {
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
