/* ── Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ── Navigation ── */
#mainNav {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#mainNav.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Form Styles ── */
select option {
    background: white;
    color: #0a1628;
}

/* ── Custom Selection ── */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #0a1628;
}

/* ── Back to Top ── */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    img, .group img {
        transition: none;
    }
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 1px solid rgba(212, 168, 83, 0.6);
    outline-offset: 2px;
}

/* ── Mobile Menu Animation ── */
#mobileMenu {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Thin scrollbar for webkit ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.7);
}
