    *, *::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 — progressive enhancement, only applies when JS is active */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

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

        /* Default state for reduced-motion or no-JS: always visible */
        .reveal {
            opacity: 1;
            transform: none;
        }
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

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

    /* Selection color */
    ::selection {
        background: rgba(217, 119, 6, 0.3);
        color: #fff;
    }

    /* Mobile menu animation */
    #mobile-menu {
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Subtle hover lift for cards */
    @media (prefers-reduced-motion: no-preference) {
        .reveal:hover {
            transform: translateY(-2px);
        }
    }
