    /* Custom styles and overrides */
    
    :root {
        --scroll-behavior: smooth;
    }

    html {
        scroll-behavior: smooth;
    }

    /* Reduced motion preference */
    @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;
        }
    }

    /* Selection color */
    ::selection {
        background-color: #eab308;
        color: #102a43;
    }

    /* Scrollbar styling */
    ::-webkit-scrollbar {
        width: 8px;
    }

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

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

    ::-webkit-scrollbar-thumb:hover {
        background: #627d98;
    }

    /* Scroll reveal animations - progressive enhancement via JS */
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal {
            opacity: 0;
            transform: translateY(24px);
        }
        
        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Stagger delays for grid items */
    .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

    /* Mobile menu transition */
    #mobile-menu {
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-menu.open {
        transform: translateX(0);
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 0 1px 3px rgba(16, 42, 67, 0.08);
    }

    #navbar.scrolled .text-navy-900 {
        color: #102a43 !important;
    }

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

    /* Image lazy loading fade-in */
    img[loading="lazy"] {
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    /* Print styles */
    @media print {
        #navbar, #mobile-menu-btn, .scroll-reveal {
            display: none !important;
        }
        
        body {
            color: #000;
            background: #fff;
        }
        
        .bg-navy-900, .bg-navy-950 {
            background: #102a43 !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }
    }
