/* ==========================================================================
   ANIMATIONS.CSS - 3D Tilt Physics, Scroll Reveal & Lenis Parallax
   ========================================================================== */

/* 1. Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  z-index: 1000;
  box-shadow: 0 0 10px var(--accent-color);
  transition: width 0.1s linear;
}

/* 2. Scroll Reveal Animations (Lenis Smooth Entrance) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(45px) scale(0.96);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delay Variants */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* 3. 3D Perspective Card Setup */
body {
  perspective: 1200px;
}

/* 4. Keyframe Animations */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 5px var(--accent-color);
  }
  50% {
    box-shadow: 0 0 20px var(--accent-color);
  }
  100% {
    box-shadow: 0 0 5px var(--accent-color);
  }
}

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

.pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

.float-badge {
  animation: floatBadge 4s infinite ease-in-out;
}

/* Reduced Motion Fallback */
@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;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
