    /* Custom styles and overrides */
    
    html {
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Scroll reveal animations - progressive enhancement */
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal {
            opacity: 0;
            transform: translateY(24px);
        }
        
        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Staggered animation delays */
    .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.6s; }
    
    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #94a3b8;
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }
    
    /* Selection color */
    ::selection {
        background: #14b8a6;
        color: white;
    }
    
    /* Focus visible styles */
    *:focus-visible {
        outline: 2px solid #14b8a6;
        outline-offset: 2px;
    }
    
    /* Smooth image loading */
    img {
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    img[loading="lazy"] {
        opacity: 0;
    }
    
    img[loading="lazy"].loaded {
        opacity: 1;
    }
    
    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    #navbar.scrolled .font-serif {
        color: #0f172a;
    }
    
    /* Mobile menu animation */
    #mobileMenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    #mobileMenu.open {
        max-height: 400px;
    }
    
    /* Print styles */
    @media print {
        nav, #contactForm, .scroll-reveal {
            display: none;
        }
        
        body {
            color: #000;
            background: #fff;
        }
    }
    
    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
        
        html {
            scroll-behavior: auto;
        }
    }
