/* ==========================================================================
   UTKAL ATELIERS — ANIMATIONS & REVEALS
   Subtle, editorial, smooth transitions and Intersection Observer effects
   ========================================================================== */

/* --- Scroll Reveal Base States --- */
.reveal {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-fade-in {
  opacity: 0;
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
}

/* Revealed active states */
.reveal.is-revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Image Clip-path Reveal */
.reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  opacity: 0;
}

.reveal-clip.is-revealed {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* Subtle Floating / Ambient Keyframes */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.floating-element {
  animation: subtleFloat 6s ease-in-out infinite;
}

/* Subtle Line Expand */
.line-expand {
  width: 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-expand.is-revealed {
  width: 100%;
}

/* Shimmer Loading State for Images */
.img-loading {
  background: linear-gradient(90deg, #EAE6DF 25%, #F7F5F0 50%, #EAE6DF 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ACCESSIBILITY: Respect prefers-reduced-motion */
@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;
  }
  
  .reveal,
  .reveal-fade-up,
  .reveal-fade-in,
  .reveal-fade-left,
  .reveal-fade-right,
  .reveal-scale,
  .reveal-clip {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  
  .hero-bg-img {
    animation: none !important;
    transform: none !important;
  }
  
  .scroll-indicator-line::after {
    animation: none !important;
  }
}
