/* ── Base & Utilities ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f1f5f9;
}

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b1116; }
::-webkit-scrollbar-thumb { background: #1e3040; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0d9488; }

/* ── Navbar ───────────────────────────────────────────────────────── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(11, 17, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(30, 48, 64, 0.5), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Reveal Animations (progressive enhancement) ──────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Gold shimmer on hover for cards ──────────────────────────────── */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* ── Custom select arrow ──────────────────────────────────────────── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Mobile menu animation ────────────────────────────────────────── */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Smooth focus styles ──────────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ── Image loading placeholder ────────────────────────────────────── */
img {
    background: linear-gradient(135deg, #16222c 0%, #1e3040 100%);
}
