/* General Transition Helpers */
.transition-all {
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.transition-opacity {
  transition: opacity 0.5s ease-out;
}

.transition-transform {
  transition: transform 0.8s var(--ease-out-expo);
}

/* Page fade transitions */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* Equalizer eq bar animation fallbacks (pure CSS fallback if GSAP is disabled) */
@keyframes bar-bounce {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

/* Clip path reveal transitions */
.clip-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease-out-expo);
}

.clip-reveal.is-active {
  clip-path: inset(0 0 0 0);
}

/* Text slide up char animations */
.text-mask {
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.char-slide-up {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-out-expo);
}

.char-slide-up.is-active {
  transform: translateY(0);
}

/* Loading Screen Animations */
.intro__counter {
  animation: counter-glow 2s infinite alternate ease-in-out;
}

.intro__line {
  background: linear-gradient(90deg, var(--color-gold) 0%, #e0d0b8 50%, var(--color-gold) 100%) !important;
  background-size: 200% 100% !important;
  animation: shimmer-line 1.5s linear infinite;
}

@keyframes counter-glow {
  0% {
    text-shadow: 0 0 5px rgba(124, 114, 98, 0.2);
    opacity: 0.8;
  }
  100% {
    text-shadow: 0 0 15px rgba(124, 114, 98, 0.8), 0 0 25px rgba(124, 114, 98, 0.4);
    opacity: 1;
  }
}

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

@keyframes intro-cloud-drift {
  0% {
    transform: scale(1.03) translate(-1.5%, -0.5%);
  }
  100% {
    transform: scale(1.03) translate(1.5%, 0.5%);
  }
}

/* Accessibility: Reduce motion for users who prefer it */
@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;
  }
}
