*, *::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-color: rgba(201, 162, 39, 0.3);
    color: #FDF9F3;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B0B0B;
}
::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3A3A3A;
}

/* Navbar transitions */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4AF61, #E8D5A3);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animation */
#mobile-menu.open #bar1 {
    transform: translateY(5px) rotate(45deg);
}
#mobile-menu.open #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu.open #bar3 {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }
}

/* Fallback: always show content if JS is disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

html:not(.js) .reveal,
.no-js .reveal {
    opacity: 1;
    transform: none;
}

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

/* Subtle glow effects */
.shadow-gold {
    box-shadow: 0 0 40px rgba(212, 175, 97, 0.1);
}

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

/* Mobile menu link hover */
.mobile-link {
    position: relative;
    display: block;
}

/* Smooth image loading */
img {
    loading: lazy;
    will-change: transform;
}

/* Active nav link */
.nav-link.active {
    color: #D4AF61;
}
.nav-link.active::after {
    width: 100%;
}
