/* ==========================================================================
   Texvian IT — CSS ANIMATION UTILITIES
   Lightweight, dependency-free motion for elements that don't need GSAP's
   scroll-orchestration. GSAP (via ScrollTrigger) is reserved for the more
   elaborate homepage reveal sequences built in later phases.
   ========================================================================== */

@keyframes nx-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes nx-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nx-fade-down {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nx-scale-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes nx-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes nx-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes nx-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.nx-animate-fade-in {
  animation: nx-fade-in var(--nx-duration-slow) var(--nx-ease-standard) both;
}

.nx-animate-fade-up {
  animation: nx-fade-up var(--nx-duration-slow) var(--nx-ease-emphasized) both;
}

.nx-animate-fade-down {
  animation: nx-fade-down var(--nx-duration-slow) var(--nx-ease-emphasized) both;
}

.nx-animate-scale-in {
  animation: nx-scale-in var(--nx-duration-slow) var(--nx-ease-emphasized) both;
}

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

.nx-animate-float {
  animation: nx-float 4.5s ease-in-out infinite;
}

/* Stagger helpers for lists of cards/items animated together */
.nx-stagger>* {
  animation-fill-mode: both;
}

.nx-stagger>*:nth-child(1) {
  animation-delay: 0ms;
}

.nx-stagger>*:nth-child(2) {
  animation-delay: 90ms;
}

.nx-stagger>*:nth-child(3) {
  animation-delay: 180ms;
}

.nx-stagger>*:nth-child(4) {
  animation-delay: 270ms;
}

.nx-stagger>*:nth-child(5) {
  animation-delay: 360ms;
}

.nx-stagger>*:nth-child(6) {
  animation-delay: 450ms;
}

/* Marquee track (used later for client-logo strips, ticker bars) */
.nx-marquee {
  display: flex;
  width: max-content;
  animation: nx-marquee 24s linear infinite;
}

.nx-marquee:hover {
  animation-play-state: paused;
}

/* Scroll-reveal base state — JS (GSAP/IntersectionObserver) toggles
   .is-revealed; without JS, content remains visible (progressive
   enhancement, not a requirement for viewing the page). */
.nx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--nx-duration-slow) var(--nx-ease-emphasized),
    transform var(--nx-duration-slow) var(--nx-ease-emphasized);
}

.nx-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.no-js .nx-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .nx-marquee {
    animation: none;
  }

  .nx-reveal {
    opacity: 1;
    transform: none;
  }
}