/* animations.css — Keyframes & Scroll Reveal */

/* ── Keyframes ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--glow-purple); }
  50%       { box-shadow: var(--glow-neon); }
}

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

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

@keyframes orbPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(1.1); }
}

/* ── Scroll-reveal base states ── */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s var(--transition-slow);
}

[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-left"]  { transform: translateX(-40px); }
[data-animate="fade-right"] { transform: translateX(40px); }
[data-animate="scale-in"]   { transform: scale(0.88); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Stagger delays for service cards ── */
.service-card:nth-child(1)[data-animate] { transition-delay: 0s; }
.service-card:nth-child(2)[data-animate] { transition-delay: 0.15s; }
.service-card:nth-child(3)[data-animate] { transition-delay: 0.30s; }

/* ── Portfolio items stagger ── */
.portfolio-item:nth-child(1)[data-animate]  { transition-delay: 0s; }
.portfolio-item:nth-child(2)[data-animate]  { transition-delay: 0.07s; }
.portfolio-item:nth-child(3)[data-animate]  { transition-delay: 0.14s; }
.portfolio-item:nth-child(4)[data-animate]  { transition-delay: 0.21s; }
.portfolio-item:nth-child(5)[data-animate]  { transition-delay: 0.28s; }
.portfolio-item:nth-child(6)[data-animate]  { transition-delay: 0.35s; }
.portfolio-item:nth-child(7)[data-animate]  { transition-delay: 0.42s; }
.portfolio-item:nth-child(8)[data-animate]  { transition-delay: 0.49s; }
.portfolio-item:nth-child(9)[data-animate]  { transition-delay: 0.56s; }
.portfolio-item:nth-child(10)[data-animate] { transition-delay: 0.63s; }
.portfolio-item:nth-child(11)[data-animate] { transition-delay: 0.70s; }
.portfolio-item:nth-child(12)[data-animate] { transition-delay: 0.77s; }
.portfolio-item:nth-child(13)[data-animate] { transition-delay: 0.84s; }
.portfolio-item:nth-child(14)[data-animate] { transition-delay: 0.91s; }
.portfolio-item:nth-child(15)[data-animate] { transition-delay: 0.98s; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* ── Guardrail global de movimiento reducido (incluye scroll suave de Lenis) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
