/* Base & Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    min-height: 100vh;
}

/* Selection */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #f0f0f0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f14;
}
::-webkit-scrollbar-thumb {
    background: #2f3d52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d4f66;
}

/* Reveal animations — progressive enhancement, hidden by default via JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Navbar state */
.navbar-scrolled {
    background: rgba(11, 15, 20, 0.95) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Mobile menu */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open .mobile-menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-open .mobile-menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .mobile-menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) scaleX(1.4);
}

/* Mobile links animation */
.mobile-menu-open .mobile-link {
    animation: fadeSlideIn 0.4s ease forwards;
}
.mobile-menu-open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Gold shimmer on buttons */
button::after,
a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

button:hover::after,
a:hover::after {
    left: 100%;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .js-enabled .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .mobile-link {
        animation: none !important;
        opacity: 1 !important;
    }
}
