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

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

    body {
        margin: 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Scroll reveal animations - progressive enhancement, only when JS runs */
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    /* Navbar transition */
    #navbar.scrolled {
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 0 1px 0 rgba(201, 149, 46, 0.1);
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #0a0f1e;
    }
    ::-webkit-scrollbar-thumb {
        background: #c9952e;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #d4a853;
    }

    /* Selection color */
    ::selection {
        background: rgba(201, 149, 46, 0.3);
        color: #fff;
    }

    /* Reduce motion preference */
    @media (prefers-reduced-motion: reduce) {
        .scroll-reveal {
            opacity: 1;
            transform: none;
            transition: none;
        }
        html {
            scroll-behavior: auto;
        }
        * {
            transition-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
        }
    }
