/* ==========================================================================
   AROOS AL MOHIT — Animations Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Keyframes
   -------------------------------------------------------------------------- */

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  71%  { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}

@keyframes waveFlow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes compassSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

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

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

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

@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

@keyframes moveDot {
  0%   { offset-distance: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes routeDot {
  0%   { stroke-dashoffset: 200; opacity: 0.3; }
  50%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.3; }
}

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

@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

@keyframes checkDraw {
  from { stroke-dashoffset: 50; }
  to   { stroke-dashoffset: 0; }
}

@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.04; }
  50%       { opacity: 0.08; }
}

/* --------------------------------------------------------------------------
   2. Hero Entrance Animations (triggered via JS / GSAP)
   -------------------------------------------------------------------------- */
.hero-animate-in .hero__label {
  animation: slideRight 0.8s ease forwards 0.2s;
}
.hero-animate-in .hero__title {
  animation: fadeUp 0.9s ease forwards 0.5s;
}
.hero-animate-in .hero__subtitle {
  animation: fadeUp 0.9s ease forwards 0.8s;
}
.hero-animate-in .hero__ctas {
  animation: fadeUp 0.9s ease forwards 1.1s;
}

/* --------------------------------------------------------------------------
   3. AOS (Animate on Scroll) custom overrides
   -------------------------------------------------------------------------- */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

[data-aos="fade-up-gold"] {
  opacity: 0;
  transform: translateY(24px);
  transition-property: opacity, transform;
}
[data-aos="fade-up-gold"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. Animated Wave Footer SVG
   -------------------------------------------------------------------------- */
.wave-container {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
}

.wave-svg {
  width: 200%;
  height: 80px;
  animation: waveFlow 12s linear infinite;
}

.wave-svg-slow {
  animation-duration: 18s;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   5. Stats Count-up animation class
   -------------------------------------------------------------------------- */
.count-ready {
  animation: countUp 0.3s ease forwards;
}

/* --------------------------------------------------------------------------
   6. Timeline animated connector
   -------------------------------------------------------------------------- */
.timeline-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s ease;
}
.timeline-line.drawn {
  stroke-dashoffset: 0;
}

/* --------------------------------------------------------------------------
   7. Route map paths
   -------------------------------------------------------------------------- */
.route-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.route-path.drawn {
  stroke-dashoffset: 0;
}

.route-dot {
  animation: routeDot 3s ease infinite;
}

/* --------------------------------------------------------------------------
   8. Section entrance utilities
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   9. Loading / Shimmer effect
   -------------------------------------------------------------------------- */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}
.shimmer-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: shimmer 2.5s ease infinite;
}

/* --------------------------------------------------------------------------
   10. Compass rose ornament
   -------------------------------------------------------------------------- */
.compass-ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

.compass-ornament svg {
  animation: compassSpin 20s linear infinite;
}

/* --------------------------------------------------------------------------
   11. Float animation for hero elements
   -------------------------------------------------------------------------- */
.float-anim { animation: float 4s ease-in-out infinite; }
.float-anim-slow { animation: float 6s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   12. WhatsApp pulse
   -------------------------------------------------------------------------- */
.whatsapp-float { animation: pulseGold 2.5s ease infinite; }
.whatsapp-float:hover { animation: none; }

/* --------------------------------------------------------------------------
   13. Form success animation
   -------------------------------------------------------------------------- */
.form-success__icon {
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.check-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkDraw 0.5s ease forwards 0.4s;
}

/* --------------------------------------------------------------------------
   14. Background noise pulse
   -------------------------------------------------------------------------- */
.bg-pulse::before {
  animation: bgPulse 4s ease infinite;
}

/* --------------------------------------------------------------------------
   15. Gold underline on headings
   -------------------------------------------------------------------------- */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   16. Hover lift utility
   -------------------------------------------------------------------------- */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
