/* ───────── BASE ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ───────── NAVBAR SCROLL STATE ───────── */
#navbar.scrolled {
    background: rgba(6, 15, 30, 0.97);
    box-shadow: 0 1px 0 rgba(125, 211, 192, 0.08);
}

/* ───────── MOBILE MENU ───────── */
#mobile-menu.open { display: block; }
#mobile-menu.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#mobile-menu.open .bar:nth-child(2) { opacity: 0; }
#mobile-menu.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* ───────── REVEAL ANIMATIONS ───────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-up.hidden-reveal,
    .reveal-left.hidden-reveal,
    .reveal-right.hidden-reveal {
        opacity: 0;
    }

    .reveal-up.hidden-reveal { transform: translateY(32px); }
    .reveal-left.hidden-reveal { transform: translateX(-32px); }
    .reveal-right.hidden-reveal { transform: translateX(32px); }
}

/* ───────── GALLERY STRIP HOVER ───────── */
section.py-4 img { transition: opacity 0.3s ease; }

/* ───────── CUSTOM SCROLLBAR ───────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A1A30; }
::-webkit-scrollbar-thumb { background: #1A3A64; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #234B80; }

/* ───────── FOCUS VISIBLE ───────── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #7DD3C0;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ───────── SELECTION ───────── */
::selection { background: rgba(125, 211, 192, 0.25); color: #0A1A30; }
</style>
