/* ==========================================================================
   SARAN HOMESTAY — Animation Engine & Motion Tokens
   ========================================================================== */

/* Directional Image Reveals & Wrappers */
.reveal-wrapper {
  overflow: hidden;
  position: relative;
}

.reveal-left {
  will-change: transform, opacity;
}

.reveal-right {
  will-change: transform, opacity;
}

.reveal-up {
  will-change: transform, opacity;
}

/* Subtle Zoom & Parallax Classes */
.parallax-bg {
  will-change: transform;
}

/* Gallery Crossfade Keyframes */
@keyframes fadeInScale {
  0% {
    opacity: 0.7;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-fade {
  animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bounce Indicator */
@keyframes bounceSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.animate-bounce-subtle {
  animation: bounceSubtle 1.8s infinite ease-in-out;
}

/* Accessible Reduced-Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
