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

    html {
        scroll-behavior: smooth;
    }

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

    /* Scroll reveal — progressive enhancement, only when JS runs and motion is preferred */
    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        }
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #0a0f1a;
    }
    ::-webkit-scrollbar-thumb {
        background: #1e293b;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #334155;
    }

    /* Selection color */
    ::selection {
        background: rgba(212, 168, 67, 0.3);
        color: #f1f5f9;
    }

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

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

    /* Navbar glass effect */
    #navbar.scrolled {
        background: rgba(10, 15, 26, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    }

    /* Input autofill style override */
    input:-webkit-autofill,
    textarea:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }

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