    *, *::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;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    ::selection {
        background: #7e22ce;
        color: #fff;
    }

    /* Scroll reveal base — content is visible by default, JS adds the animated state */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 1;
            transform: none;
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

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

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

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

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #faf5ff;
    }
    ::-webkit-scrollbar-thumb {
        background: #c084fc;
        border-radius: 999px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #9333ea;
    }

    /* Mobile menu transitions */
    #mobileMenu {
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }
    #mobileMenu.open {
        max-height: 500px;
        opacity: 1;
    }
    #mobileMenu.closed {
        max-height: 0;
        opacity: 0;
    }

    /* Nav text color when transparent vs solid */
    .nav-text {
        color: #1e1b4b;
    }
    #navbar.scrolled .nav-text {
        color: #1e1b4b;
    }

    /* Hero overlay gradient for text readability */
    #heroOverlay {
        background: linear-gradient(
            to right,
            rgba(59, 7, 100, 0.92) 0%,
            rgba(59, 7, 100, 0.78) 50%,
            rgba(88, 28, 135, 0.55) 100%
        );
    }
