/* ==========================================================================
   BS SAFETY NETS - ANIMATIONS & MICRO-INTERACTIONS
   Smooth, Hardware-Accelerated Animations
   ========================================================================== */

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

@keyframes pulseBlueGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 132, 214, 0.5);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(0, 132, 214, 0);
  }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotateCaret {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.pulse-fast {
  animation: pulse 1.6s ease-in-out infinite;
}

.float-whatsapp {
  animation: pulseGlow 2.5s infinite;
}

.float-phone {
  animation: pulseBlueGlow 2.8s infinite;
}

/* Button Shimmer */
.btn-primary, .hfc-submit-btn, .btn-submit-quote {
  position: relative;
  overflow: hidden;
}

.btn-primary::after, .hfc-submit-btn::after, .btn-submit-quote::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg);
  pointer-events: none;
  animation: shimmer 4s infinite linear;
}

/* Scroll reveal triggers */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
