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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #FAF8F5;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #07110d;
}
::-webkit-scrollbar-thumb {
    background: #1f4230;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a563e;
}

/* ─── SELECT STYLES ─── */
select option {
    background: #143324;
    color: #FAF8F5;
}

/* ─── REVEAL ANIMATIONS (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    /* Staggered delays */
    .reveal:nth-child(1) { transition-delay: 0ms; }
    .reveal:nth-child(2) { transition-delay: 100ms; }
    .reveal:nth-child(3) { transition-delay: 200ms; }
    .reveal:nth-child(4) { transition-delay: 300ms; }
    .reveal:nth-child(5) { transition-delay: 400ms; }
    .reveal:nth-child(6) { transition-delay: 500ms; }
}

/* Always visible for reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ─── NAVBAR SCROLL STATE ─── */
#navbar.scrolled {
    background: rgba(7, 17, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .flex.items-center.justify-between {
    padding-top: 0;
    padding-bottom: 0;
}

/* ─── MOBILE MENU ─── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ─── GOLD SHIMMER ON HEADLINES ─── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-transparent.bg-clip-text {
    background-size: 200% auto;
}

@media (prefers-reduced-motion: no-preference) {
    .text-transparent.bg-clip-text {
        animation: shimmer 8s linear infinite;
    }
}

/* ─── PULSE DOT ─── */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ─── IMAGE PLACEHOLDER FALLBACKS ─── */
img {
    max-width: 100%;
    height: auto;
}

/* ─── FORM FOCUS RING ─── */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ─── HOVER TRANSITIONS ─── */
a, button {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── RESPONSIVE TYPE ─── */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
}
