    /* Custom styles & overrides */
    html {
        scroll-behavior: smooth;
    }

    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

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

        /* Stagger children */
        .reveal-group > *:nth-child(1) { transition-delay: 0ms; }
        .reveal-group > *:nth-child(2) { transition-delay: 100ms; }
        .reveal-group > *:nth-child(3) { transition-delay: 200ms; }
    }

    /* Ensure reduced motion gets visible content */
    @media (prefers-reduced-motion: reduce) {
        .reveal {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }

    /* Navbar transition */
    #navbar.scrolled {
        background: rgba(10, 15, 26, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    /* Selection color */
    ::selection {
        background: rgba(22, 101, 52, 0.3);
        color: inherit;
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #111827;
    }
    ::-webkit-scrollbar-thumb {
        background: #166534;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #15803d;
    }

    /* Form focus styles */
    input:focus, select:focus, textarea:focus {
        outline: none;
    }

    /* Mobile menu animation */
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #mobile-menu.open {
        max-height: 500px;
    }

    /* Smooth image loading */
    img {
        opacity: 1;
        transition: opacity 0.3s ease;
    }
</style>
