    /* Custom styles — progressive enhancement only; content is visible without JS */
    @media (prefers-reduced-motion: no-preference) {
        html {
            scroll-behavior: smooth;
        }

        .reveal {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

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

    /* Ensure above-the-fold content is always visible */
    header, header img {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Navbar background on scroll */
    #navbar.scrolled {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(51, 65, 85, 0.5);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

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

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

    /* Input autofill styling */
    input:-webkit-autofill,
    textarea:-webkit-autofill,
    select:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 30px #1e293b inset !important;
        -webkit-text-fill-color: #f1f5f9 !important;
    }
