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

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

    body {
        overflow-x: hidden;
    }

    /* Mobile menu animation */
    #mobile-menu.open .mobile-line-1 {
        transform: translateY(5px) rotate(45deg);
    }
    #mobile-menu.open .mobile-line-2 {
        opacity: 0;
    }
    #mobile-menu.open .mobile-line-3 {
        transform: translateY(-5px) rotate(-45deg);
    }

    /* Scroll reveal base — content is visible by default */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }
    }

    /* Reduced motion — disable all scroll animations */
    @media (prefers-reduced-motion: reduce) {
        .reveal {
            opacity: 1;
            transform: none;
        }
        html {
            scroll-behavior: auto;
        }
    }

    /* Navbar transition */
    #navbar.scrolled {
        background: rgba(17, 24, 39, 0.95);
        backdrop-blur-lg;
        box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    }

    #navbar.scrolled .nav-link {
        color: rgba(255,255,255,0.85);
    }

    #navbar.scrolled .nav-title {
        color: #fff;
    }

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

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #1f2937;
    }
    ::-webkit-scrollbar-thumb {
        background: #4b5563;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #6b7280;
    }

    /* Selection color */
    ::selection {
        background: rgba(240, 82, 58, 0.2);
        color: #1f2937;
    }
