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

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

    body {
        overflow-x: hidden;
    }

    /* Scroll reveal animations */
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @media (prefers-reduced-motion: no-preference) {
        .reveal-up {
            opacity: 0;
            transform: translateY(40px);
        }
        .reveal-left {
            opacity: 0;
            transform: translateX(-40px);
        }
        .reveal-right {
            opacity: 0;
            transform: translateX(40px);
        }
        .reveal-up.revealed,
        .reveal-left.revealed,
        .reveal-right.revealed {
            opacity: 1;
            transform: none;
        }
    }

    /* Stagger children */
    .reveal-up > *:nth-child(1) { transition-delay: 0s; }
    .reveal-up > *:nth-child(2) { transition-delay: 0.1s; }
    .reveal-up > *:nth-child(3) { transition-delay: 0.2s; }
    .reveal-up > *:nth-child(4) { transition-delay: 0.3s; }
    .reveal-up > *:nth-child(5) { transition-delay: 0.4s; }

    /* Mobile menu */
    #mobile-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    .mobile-link {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
    }

    #mobile-menu.open .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }

    #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
    #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
    #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
    #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
    #mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

    /* Menu toggle animation */
    #menu-toggle.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }
    #menu-toggle.active .menu-line:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle.active .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
        width: 1.25rem;
    }

    /* Header background */
    #site-header.scrolled {
        background: rgba(26, 13, 31, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(91, 44, 111, 0.3);
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #1a0d1f;
    }
    ::-webkit-scrollbar-thumb {
        background: #5B2C6F;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #7c3aed;
    }

    /* Selection */
    ::selection {
        background: rgba(245, 158, 11, 0.3);
        color: #faf5ff;
    }

    /* Select styling */
    select option {
        background: #1a0d1f;
        color: #f3e8ff;
    }
