*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link::after {
    transition: width 0.3s ease;
}

#navbar.scrolled {
    background: rgba(3, 8, 14, 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 .nav-link {
    color: #c5d3e0;
}

.mobile-link {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition: all 0.3s ease 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition: all 0.3s ease 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition: all 0.3s ease 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition: all 0.3s ease 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition: all 0.3s ease 0.3s; }

/* Scroll reveal — progressive enhancement only */
@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);
    }

    .product-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .product-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even if JS doesn't run */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal,
    .product-card {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .product-card {
        opacity: 1;
        transform: none;
    }
}

/* Subtle gold shimmer on hover for gold elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #060f18;
}

::-webkit-scrollbar-thumb {
    background: #1e4a75;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Image placeholder fallback */
img {
    image-rendering: auto;
}

/* Ensure contrast on all interactive elements */
button, a, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}
