/* Custom styles and overrides */

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal classes — progressive enhancement, content visible without JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Nav active state */
nav.scrolled #navbar {
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.06);
}

/* Image hover zoom */
img.hover-zoom {
    transition: transform 0.5s ease;
}

img.hover-zoom:hover {
    transform: scale(1.03);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #eab308;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    loading: lazy;
}
