/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Gallery Scroll Animation ── */
@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    gap: 1rem;
    animation: scroll-gallery 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* ── Navbar Transition ── */
#nav.scrolled {
    background: rgba(181, 48, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ── Selection ── */
::selection {
    background: #d94022;
    color: white;
}

/* ── Focus ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d94022;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ── Smooth scroll offset for fixed nav ── */
section[id] {
    scroll-margin-top: 80px;
}
