/* ==========================================
   NewAccess Web v3 — Animations
   ========================================== */

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered delay for grid children */
.grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.grid .reveal:nth-child(5) { transition-delay: 0.15s; }
.grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.grid .reveal:nth-child(7) { transition-delay: 0.1s; }
.grid .reveal:nth-child(8) { transition-delay: 0.2s; }

/* Steps staggered */
.steps .reveal:nth-child(2) { transition-delay: 0.15s; }
.steps .reveal:nth-child(3) { transition-delay: 0.3s; }

/* --- Hero background animation --- */
.hero__shape {
    animation: float 15s ease-in-out infinite;
}

.hero__shape--2 {
    animation-delay: -5s;
    animation-duration: 18s;
}

.hero__shape--3 {
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-10px, 20px); }
    75% { transform: translate(15px, 10px); }
}

.hero__shape--3 {
    animation-name: floatCenter;
}

@keyframes floatCenter {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-45%, -55%); }
    50% { transform: translate(-55%, -45%); }
    75% { transform: translate(-48%, -52%); }
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__shape {
        animation: none;
    }
}
