/* ═══════════════════════════════════════════
   ZARABANDA SHIELD — Animations
   ═══════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(0, 212, 255, 0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

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

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

/* ── Stagger Delays ── */
.reveal.anim-1 {
    transition-delay: 0s;
}

.reveal.anim-2 {
    transition-delay: 0.15s;
}

.reveal.anim-3 {
    transition-delay: 0.3s;
}

.reveal.anim-4 {
    transition-delay: 0.45s;
}

.reveal.anim-5 {
    transition-delay: 0.6s;
}

/* ── Hover Animations ── */
.hover-lift {
    transition: transform 0.3s var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow {
    transition: box-shadow 0.3s, border-color 0.3s;
}

.hover-glow:hover {
    box-shadow: var(--glow);
    border-color: var(--border2);
}

/* ── Counter Animation (odometer style) ── */
.counter {
    font-family: var(--font-h);
    font-weight: 800;
    display: inline-block;
}

/* ── Hero Entry Animation ── */
.hero-anim {
    animation: fadeInUp 1s var(--ease-out) forwards;
    opacity: 0;
}

.hero-anim:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.7s;
}

.hero-anim:nth-child(5) {
    animation-delay: 0.9s;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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

    #shield-canvas {
        display: none;
    }
}