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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(196, 154, 53, 0.3);
    color: #F7F5F0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #05140E;
}
::-webkit-scrollbar-thumb {
    background: rgba(196, 154, 53, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 154, 53, 0.6);
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(5, 20, 14, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 154, 53, 0.1);
}

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

.mobile-menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-link {
    position: relative;
}

/* Hero animations */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #C49A35;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Image aspect ratio fallbacks */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
