/* ==========================================================================
   Karwan-e-Harman | Animations & Motion Stylesheet
   Choreographed animations with strict prefers-reduced-motion fallback
   ========================================================================== */

/* --- Keyframe Animations --- */

/* Floating Lanterns (Gentle sway and buoyancy) */
@keyframes lanternFloatLeft {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(12px) rotate(1.2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes lanternFloatRight {
  0% {
    transform: translateY(6px) rotate(0.8deg);
  }
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
  100% {
    transform: translateY(6px) rotate(0.8deg);
  }
}

.lantern-float-left {
  animation: lanternFloatLeft 6s ease-in-out infinite;
  transform-origin: top center;
}

.lantern-float-right {
  animation: lanternFloatRight 7s ease-in-out infinite;
  transform-origin: top center;
}

/* Gold Heading Shimmer */
@keyframes goldShimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.gold-shimmer-active {
  animation: goldShimmer 6s linear infinite;
}

/* Subtle Breathing Pulse on WhatsApp floating elements */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-whatsapp {
  animation: whatsappPulse 2.8s infinite;
}

/* Soft Glow for the Sacred Calligraphy */
@keyframes calligraphyGlow {
  0%, 100% {
    text-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
  }
  50% {
    text-shadow: 0 4px 28px rgba(232, 213, 181, 0.7);
  }
}

.arabic-calligraphy {
  animation: calligraphyGlow 5s ease-in-out infinite;
}

/* --- Scroll Reveal Defaults (Prepared for GSAP or CSS fallback) --- */
.gsap-reveal {
  opacity: 0;
  transform: translateY(24px);
  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;
}

.gsap-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Strict Prefers Reduced Motion Fallback --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }

  .lantern-float-left,
  .lantern-float-right,
  .gold-shimmer-active,
  .pulse-whatsapp,
  .arabic-calligraphy {
    animation: none !important;
    transform: none !important;
  }

  .hero-bg-img {
    transform: none !important;
  }

  .gsap-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .package-card:hover,
  .service-card:hover,
  .step-card:hover {
    transform: none !important;
  }

  .package-card:hover .package-img {
    transform: none !important;
  }
}
