/* Custom Animations & Utilities */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll Reveal Logic - Progressive Enhancement */
/* Default state: visible (no JS) */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* JS adds this class to trigger animation */
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .animate-fade-in-up {
        animation: none;
    }
}

/* Smooth Scroll Offset for Fixed Header */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 80px;
}
