    /* ===== RESET & BASE ===== */
    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

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

    body {
        overflow-x: hidden;
    }

    /* ===== SCROLL REVEAL ANIMATIONS ===== */
    .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);
    }

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

    /* Hidden state for scroll-reveal — applied by JS only for progressive enhancement */
    @media (prefers-reduced-motion: no-preference) {
        .reveal-hidden {
            opacity: 0;
            transform: translateY(30px);
        }
    }

    /* ===== NAVBAR ===== */
    #navbar {
        background: transparent;
        transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    }

    #navbar.scrolled {
        background: rgba(59, 7, 100, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    }

    /* ===== MOBILE MENU ===== */
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #mobile-menu.open {
        max-height: 400px;
    }

    /* ===== BUTTON HOVER EFFECTS ===== */
    a, button {
        -webkit-tap-highlight-color: transparent;
    }

    /* ===== CUSTOM SCROLLBAR ===== */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #faf5ff;
    }

    ::-webkit-scrollbar-thumb {
        background: #c084fc;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #a855f7;
    }

    /* ===== SELECTION ===== */
    ::selection {
        background: #c084fc;
        color: #3b0764;
    }

    /* ===== FORM FOCUS STYLES ===== */
    input:focus, textarea:focus, select:focus {
        outline: none;
    }

    /* ===== IMAGE LOADING ===== */
    img {
        background-color: #f3e8ff;
    }

    /* ===== REDUCED MOTION ===== */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .reveal {
            opacity: 1 !important;
            transform: none !important;
        }
    }
