/* Shared refinements layered on top of each page's inline styles.
   Goal: keep the existing look and effects, but make motion calmer,
   smoother and more accessible. */

/* Smooth, consistent card motion (gentler than the original snap). */
.card-glass {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease, border-color 0.5s ease !important;
  will-change: transform;
}

/* Softer hover lift so cards feel lighter, not springy. */
.card-glass:hover {
  transform: translateY(-6px) !important;
}

/* Calmer, slower pulse on the accent glow. */
.pulse-glow {
  animation: pulseGlow 3.2s ease-in-out infinite alternate !important;
}

/* Gentler float for the logo/decorative elements. */
.floating {
  animation: floating 8s ease-in-out infinite !important;
}

/* Buttons: smooth, subtle lift. */
.btn-primary,
.btn-outline {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease, color 0.35s ease, background 0.35s ease !important;
}

/* Respect users who prefer less motion: freeze looping/decorative
   animation and disable the 3D tilt, keeping the layout intact. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .particles-container {
    display: none !important;
  }
  .floating,
  .pulse-glow {
    animation: none !important;
  }
}

/* Keep images/video from causing layout shift. */
img,
video {
  max-width: 100%;
  height: auto;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 9998;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  line-height: 1;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
  .whatsapp-float:hover {
    transform: none;
  }
}
