/* =========================================================
   VeriStake — Animations
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Fade / rise-in for scroll reveals (paired with AOS-like data-reveal attr) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }

/* Floating ambient motion */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float-anim { animation: float-y 6s ease-in-out infinite; }
.float-anim-slow { animation: float-y 9s ease-in-out infinite; }
.float-anim-delay { animation-delay: 1.5s; }

/* Pulse glow for live indicators */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(0,255,136,0.5); opacity: 1; }
  50% { box-shadow: 0 0 16px rgba(0,255,136,0.9); opacity: 0.75; }
}
.pulse-live { animation: pulse-glow 1.8s ease-in-out infinite; }

/* Spinner */
.spinner-veri {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(34, 197, 94, 0.15);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
.spinner-veri.sm { width: 20px; height: 20px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success check draw */
.check-draw {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-check 0.6s ease forwards 0.15s;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }

.success-pop {
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes pop-in {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Ripple button effect */
.btn-ripple { position: relative; overflow: hidden; }
.ripple-el {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(2.5); opacity: 0; }
}

/* Animated gradient border for hero headline underline / CTA */
.gradient-border-anim {
  position: relative;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--neon), var(--primary));
  background-size: 300% 100%;
  animation: gradient-shift 6s linear infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Progress bar animated fill */
.progress-veri {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
  height: 8px;
}
.progress-veri__fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--neon));
  background-size: 200% 100%;
  animation: progress-shine 2.5s linear infinite;
  transition: width 1s ease;
}
@keyframes progress-shine {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

/* Counter tick (used with JS number animation, just enables smoothing) */
.counter-value { font-variant-numeric: tabular-nums; }

/* Slide-down for mobile sidebar / dropdowns */
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-down-anim { animation: slide-down 0.25s ease forwards; }
