/* ===========================
   ANIMATIONS — Velnafa
   Keyframes & utility classes
   =========================== */

/* ---- Keyframes ---- */
@keyframes loaderPulse {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #22c55e; }
  50%       { opacity: 0.6; box-shadow: 0 0 16px #22c55e; }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollPulse {
  0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%  { opacity: 0.4; }
  100% { opacity: 0; transform: scaleY(0.3); transform-origin: bottom; }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shapeFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(-15deg) translateY(0); }
  50%       { transform: translate(-50%, -50%) rotate(-15deg) translateY(-10px); }
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(1.05); }
}

@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

/* ---- Reveal Elements ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-elegant),
              transform 0.8s var(--ease-elegant);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.reveal-up:nth-child(1) { transition-delay: 0ms; }
.reveal-up:nth-child(2) { transition-delay: 80ms; }
.reveal-up:nth-child(3) { transition-delay: 160ms; }
.reveal-up:nth-child(4) { transition-delay: 240ms; }
.reveal-up:nth-child(5) { transition-delay: 320ms; }
.reveal-up:nth-child(6) { transition-delay: 400ms; }

/* Service grid special stagger */
.services-grid .service-card:nth-child(1) { transition-delay: 0ms; }
.services-grid .service-card:nth-child(2) { transition-delay: 100ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 200ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 100ms; }
.services-grid .service-card:nth-child(5) { transition-delay: 200ms; }
.services-grid .service-card:nth-child(6) { transition-delay: 300ms; }

/* Process steps stagger */
.process-step:nth-child(1) { transition-delay: 0ms; }
.process-step:nth-child(2) { transition-delay: 100ms; }
.process-step:nth-child(3) { transition-delay: 200ms; }
.process-step:nth-child(4) { transition-delay: 300ms; }
.process-step:nth-child(5) { transition-delay: 400ms; }

/* Work cards stagger */
.work-card:nth-child(1) { transition-delay: 0ms; }
.work-card:nth-child(2) { transition-delay: 120ms; }
.work-card:nth-child(3) { transition-delay: 240ms; }

/* ---- Reduced Motion ---- */
@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;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

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

  .marquee-track {
    animation: none;
  }
}
