/**
 * NEOMETIS Theme - 05-animations.css
 * Keyframes, micro-interactions, scroll reveals, particulas
 * Version: 1.0
 */

/* ===== SCROLL REVEAL BASE ===== */

.nm-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

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

/* Stagger delays */
.nm-reveal--d1 { transition-delay: 0.08s; }
.nm-reveal--d2 { transition-delay: 0.16s; }
.nm-reveal--d3 { transition-delay: 0.24s; }
.nm-reveal--d4 { transition-delay: 0.32s; }
.nm-reveal--d5 { transition-delay: 0.40s; }

/* Reveal variants */
.nm-reveal--left {
  transform: translateX(-28px);
}
.nm-reveal--left.is-visible {
  transform: translateX(0);
}

.nm-reveal--right {
  transform: translateX(28px);
}
.nm-reveal--right.is-visible {
  transform: translateX(0);
}

.nm-reveal--scale {
  transform: scale(0.96);
}
.nm-reveal--scale.is-visible {
  transform: scale(1);
}

/* ===== KEYFRAMES GLOBALES ===== */

@keyframes nm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes nm-slide-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes nm-float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-5px) rotate(1deg); }
  66%       { transform: translateY(-3px) rotate(-1deg); }
}

@keyframes nm-pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes nm-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes nm-scroll-line {
  0%, 100% { opacity: 0.25; transform: scaleY(1); }
  50%       { opacity: 0.8;  transform: scaleY(1.15); }
}

@keyframes nm-particle {
  0%   { transform: translate3d(0, 110vh, 0) scale(0.4); opacity: 0; }
  12%  { opacity: 0.72; }
  56%  { transform: translate3d(var(--nm-particle-drift, 0px), 36vh, 0) scale(1); opacity: 0.48; }
  90%  { opacity: 0.16; }
  100% { transform: translate3d(calc(var(--nm-particle-drift, 0px) * 1.35), -10vh, 0) scale(1.22); opacity: 0; }
}

@keyframes nm-glow-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

@keyframes nm-orbit {
  from { transform: rotate(0deg) translateX(18px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(18px) rotate(-360deg); }
}

@keyframes nm-draw-line {
  from { stroke-dashoffset: 400; }
  to   { stroke-dashoffset: 0; }
}

/* ===== HERO ANIMATIONS (staggered on load) ===== */

.hero-animate-1 { animation: nm-fade-up 0.9s var(--ease-out) 0.2s both; }
.hero-animate-2 { animation: nm-fade-up 0.9s var(--ease-out) 0.4s both; }
.hero-animate-3 { animation: nm-fade-up 0.9s var(--ease-out) 0.6s both; }
.hero-animate-4 { animation: nm-fade-up 0.9s var(--ease-out) 0.8s both; }
.hero-animate-5 { animation: nm-fade-up 0.9s var(--ease-out) 1.0s both; }
.hero-animate-6 { animation: nm-fade-up 0.9s var(--ease-out) 1.2s both; }

/* ===== PARTÍCULA ===== */

.nm-particle {
  position: absolute;
  border-radius: 50%;
  color: rgba(32, 188, 194, 0.78);
  background: radial-gradient(circle, currentColor 0%, rgba(243, 249, 250, 0.46) 36%, transparent 74%);
  opacity: 0;
  animation: nm-particle linear infinite;
  filter: blur(var(--nm-particle-blur, 0px));
  box-shadow: 0 0 12px currentColor;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ===== TICKER ===== */

.nm-ticker-wrap {
  overflow: hidden;
  position: relative;
}

.nm-ticker-inner {
  display: flex;
  width: max-content;
  animation: nm-ticker var(--ticker-duration, 35s) linear infinite;
}

.nm-ticker-wrap:hover .nm-ticker-inner {
  animation-play-state: paused;
}

/* ===== SCROLL INDICATOR ===== */

.nm-scroll-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nm-scroll-indicator__line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, rgba(212, 193, 178, 0.88), transparent);
  animation: nm-scroll-line 2.2s ease-in-out infinite;
}

.nm-scroll-indicator__text {
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

/* ===== UTILITY ANIMATION CLASSES ===== */

.nm-animate-float      { animation: nm-float 3.5s ease-in-out infinite; }
.nm-animate-float-slow { animation: nm-float-slow 5s ease-in-out infinite; }
.nm-animate-pulse      { animation: nm-glow-pulse 2.5s ease-in-out infinite; }
.nm-animate-spin       { animation: nm-spin 1.2s linear infinite; }

/* Hover float for decorative elements */
.nm-hover-float {
  transition: transform var(--dur-slow) var(--ease-spring);
}
.nm-hover-float:hover {
  transform: translateY(-6px);
}

/* ===== SABIA LOGO ANIMATION ===== */
.nm-logo-mark-outer {
  animation: nm-float-slow 6s ease-in-out infinite;
}

.nm-logo-mark-inner {
  animation: nm-orbit 8s linear infinite;
}

/* ===== CTA PULSE RING ===== */

.nm-cta-pulse {
  position: relative;
  display: inline-flex;
}

.nm-cta-pulse::before,
.nm-cta-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1.5px solid var(--nm-amber);
  opacity: 0;
}

.nm-cta-pulse::before {
  animation: nm-pulse-ring 2s var(--ease-out) 0.3s infinite;
}

.nm-cta-pulse::after {
  animation: nm-pulse-ring 2s var(--ease-out) 0.9s infinite;
}
