    /* Custom styles beyond Tailwind */
    
    * {
        scroll-behavior: smooth;
    }

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

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Header scroll state */
    #header.scrolled {
        background: rgba(254, 253, 248, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
    }

    /* Selection color */
    ::selection {
        background: rgba(5, 150, 105, 0.2);
        color: #064e3b;
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #fdf9ee;
    }
    ::-webkit-scrollbar-thumb {
        background: #a7f3d0;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #34d399;
    }

    /* Fade-in animation */
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children */
    .stagger-children > * {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
    .stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
    .stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
    .stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
    .stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
    .stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
    .stagger-children.visible > *:nth-child(n+7) { transition-delay: 0.35s; }
    .stagger-children.visible > * {
        opacity: 1;
        transform: translateY(0);
    }

    /* Mobile menu transition */
    #mobileMenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }
    #mobileMenu.open {
        max-height: 400px;
    }

    /* Select styling */
    select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 9l-7 7-7-7'%3e%3c/path%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1.25em 1.25em;
        padding-right: 2.5rem;
    }

    /* Focus visible for accessibility */
    a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
        outline: 2px solid #059669;
        outline-offset: 2px;
        border-radius: 0.5rem;
    }
