/* ================================================================
VJKM Platform - animations.css
Premium Motion System
=============================================================== */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.word-reveal {
  display: inline-block;
  overflow: visible;
}

.word-reveal-inner {
  display: inline-block;
  transform: none;
  transition: none;
  will-change: auto;
}

.word-reveal.visible .word-reveal-inner {
  transform: translate3d(0, 0, 0);
}

.word-reveal:nth-child(1) .word-reveal-inner { transition-delay: 0.04s; }
.word-reveal:nth-child(2) .word-reveal-inner { transition-delay: 0.11s; }
.word-reveal:nth-child(3) .word-reveal-inner { transition-delay: 0.18s; }
.word-reveal:nth-child(4) .word-reveal-inner { transition-delay: 0.25s; }
.word-reveal:nth-child(5) .word-reveal-inner { transition-delay: 0.32s; }

.fade-up,
.slide-left,
.slide-right,
.scale-in {
  opacity: 0;
  will-change: opacity, transform;
}

.fade-up {
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 0.78s var(--ease-out),
    transform 0.78s var(--ease-out);
}

.slide-left {
  transform: translate3d(-36px, 0, 0);
  transition:
    opacity 0.82s var(--ease-out),
    transform 0.82s var(--ease-out);
}

.slide-right {
  transform: translate3d(36px, 0, 0);
  transition:
    opacity 0.82s var(--ease-out),
    transform 0.82s var(--ease-out);
}

.scale-in {
  transform: scale(0.94);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-spring);
}

.fade-up.visible,
.slide-left.visible,
.slide-right.visible,
.scale-in.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero .fade-up,
.catalog-hero .fade-up,
.hero .slide-left,
.hero .slide-right,
.catalog-hero .slide-left,
.catalog-hero .slide-right {
  opacity: 1;
  transform: none;
  transition: none;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.42s; }

@keyframes hero-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

.float {
  animation: hero-float 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 0 rgba(0, 0, 0, 0),
      0 0 14px rgba(255, 122, 26, 0.18);
  }

  50% {
    box-shadow:
      0 0 0 rgba(0, 0, 0, 0),
      0 0 26px rgba(255, 122, 26, 0.28);
  }
}

.glow-pulse:hover {
  animation: glowPulse 1.8s ease-in-out infinite;
}

@keyframes hero-intro {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

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

.hero-intro {
  animation: none;
}

@keyframes press {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.98); }
}

.btn-call:active,
.btn-primary:active,
.btn-secondary:active,
.whatsapp-float:active {
  animation: press 0.25s ease;
}

@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;
  }

  .fade-up,
  .slide-left,
  .slide-right,
  .scale-in,
  .word-reveal-inner {
    opacity: 1 !important;
    transform: none !important;
  }
}
