/* ==========================================================================
   Lightweight custom animations + AOS tuning
   ========================================================================== */

/* Keep AOS animations short & smooth so pages feel fast, not gimmicky */
[data-aos] { transition-duration: 700ms !important; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float-anim { animation: floatY 5s ease-in-out infinite; }

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(196,160,90,0.45); }
  70% { box-shadow: 0 0 0 16px rgba(196,160,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(196,160,90,0); }
}
.pulse-anim { animation: pulseRing 2.4s infinite; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-up { animation: fadeSlideUp 0.6s ease forwards; }

/* Preloader */
.preloader {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader-spinner {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 4px solid var(--color-primary-light);
  border-top-color: var(--color-primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Button micro-interaction */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.25);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 0;
}
.btn:active::after { transform: scaleX(1); }
.btn > * { position: relative; z-index: 1; }

/* Card hover lift already handled in style.css via transform; add subtle shadow grow */
.service-card, .testimonial-card, .contact-info-card {
  will-change: transform;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-aos], .float-anim, .pulse-anim, .reveal-up { animation: none !important; transition: none !important; }
}
