/* ========================================
   ENTRANCE & SCROLL ANIMATIONS
   Load this file LAST: .animate-on-scroll.visible must win over the
   section styles (it also resets their hover transform once revealed).
   ======================================== */

/* ---------- On Page Load (hero) ---------- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-in:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-in:nth-child(2) {
    animation-delay: 0.3s;
}

.animate-in:nth-child(3) {
    animation-delay: 0.5s;
}

.animate-in:nth-child(4) {
    animation-delay: 0.7s;
}

.animate-in:nth-child(5) {
    animation-delay: 0.9s;
}

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

/* ---------- On Scroll (toggled by js/scroll-reveal.js) ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
