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

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }

    body {
        overflow-x: hidden;
    }

    ::selection {
        background: rgba(200, 149, 108, 0.3);
        color: #FDFCFA;
    }

    /* Scroll reveal animations */
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(8, 15, 8, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(212, 175, 97, 0.1);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    #navbar.scrolled .nav-link {
        color: rgba(234, 217, 168, 0.8);
    }

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

    #mobileMenu.closed {
        opacity: 0;
        pointer-events: none;
    }

    .menu-line.active:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .menu-line.active:nth-child(2) {
        opacity: 0;
    }

    .menu-line.active:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    /* Mobile nav links */
    .mobile-nav-link {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
    }

    #mobileMenu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
    #mobileMenu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
    #mobileMenu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
    #mobileMenu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
    #mobileMenu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }

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

    ::-webkit-scrollbar-track {
        background: #080F08;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(to bottom, #C8956C, #D95A30);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(to bottom, #D4AF61, #EB7A54);
    }

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

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        .reveal {
            opacity: 1;
            transform: none;
            transition: none;
        }

        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Select dropdown styling */
    select option {
        background: #0F1A0F;
        color: #F9F4E8;
    }

    /* Range input styling */
    input[type="range"] {
        accent-color: #C8956C;
    }

    /* Smooth image loading */
    img {
        image-rendering: auto;
        loading: lazy;
    }

    /* Selection color for text */
    ::selection {
        background: rgba(200, 149, 108, 0.35);
        color: #FDFCFA;
    }
