/* ============================================
   WALKMAN STUDIOS — Animations
   ============================================ */

/* ---- Initial States (before GSAP triggers) ---- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

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

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

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

.anim-scale-in {
  opacity: 0;
  transform: scale(0.92);
}

.anim-reveal-line {
  width: 0;
}

.anim-clip-up {
  clip-path: inset(100% 0 0 0);
}

/* ---- Keyframe Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

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

@keyframes lineExpand {
  from { width: 0; }
  to   { width: 60px; }
}

@keyframes scrollIndicator {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* ---- Utility Animation Classes ---- */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-accent-dark) 0%,
    var(--color-accent-light) 50%,
    var(--color-accent-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

.animate-scroll-indicator {
  animation: scrollIndicator 2s ease-in-out infinite;
}

/* ---- Parallax Container ---- */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}

/* ---- Image Hover Effects ---- */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform var(--duration-slow) var(--ease-out);
}

.img-hover-zoom:hover img {
  transform: scale(1.05);
}

/* ---- Grayscale to Color ---- */
.img-hover-color {
  overflow: hidden;
}

.img-hover-color img {
  filter: grayscale(100%);
  transition: filter var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.img-hover-color:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

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

  html {
    scroll-behavior: auto;
  }

  .anim-fade-up,
  .anim-fade-in,
  .anim-fade-left,
  .anim-fade-right,
  .anim-scale-in,
  .anim-clip-up {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
