/* ==========================================================================
   GLOBAL EDGE TRAVELS - KEYFRAMES & MICRO-ANIMATIONS
   ========================================================================== */

/* Fade-Up Scroll Reveal Effect */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, opacity;
}

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

/* Delay modifiers for sequential elements */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Micro-Pulse for WhatsApp CTA */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: pulse-whatsapp 2.5s infinite;
}

/* Slow Pan for Hero Cover Photo (Ken Burns Effect) */
@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.06) translate(-1%, -1%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

.ken-burns {
  animation: kenburns 25s ease infinite;
}

/* Animated Scroll Indicator Dot */
@keyframes scroll-dot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

.scroll-indicator-dot {
  animation: scroll-dot 2s infinite;
}

/* Hover Zoom effect */
.hover-zoom {
  transition: var(--transition-smooth);
}
.hover-zoom:hover {
  transform: scale(1.05);
}

/* Card hover glow */
.premium-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Falling Chinar Leaves */
.chinar-leaves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.chinar-leaf-wrapper {
  position: absolute;
  top: -60px;
  will-change: transform;
  animation-name: fall-leaf;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.chinar-leaf-svg {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform-origin: center;
  animation-name: sway-and-rotate;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes fall-leaf {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  90% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(115vh);
    opacity: 0;
  }
}

@keyframes sway-and-rotate {
  0% {
    transform: translateX(-30px) rotate(0deg) rotateY(0deg);
  }
  50% {
    transform: translateX(30px) rotate(180deg) rotateY(90deg);
  }
  100% {
    transform: translateX(-30px) rotate(360deg) rotateY(0deg);
  }
}

/* Accessibility: Support prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .ken-burns,
  .scroll-indicator-dot,
  .whatsapp-pulse,
  .hover-zoom,
  .premium-card,
  .btn,
  .nav-link::after,
  .chinar-leaf-wrapper,
  .chinar-leaf-svg {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .chinar-leaves-container {
    display: none !important;
  }
}

