    /* Custom styles beyond Tailwind */

    html {
        scroll-behavior: smooth;
    }

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

    /* Navbar scroll state */
    nav.scrolled {
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    }

    nav.scrolled .font-serif,
    nav.scrolled span:first-of-type {
        color: #0a2540;
    }

    /* Selection color */
    ::selection {
        background: #40b5a6;
        color: #0a2540;
    }

    /* Focus visible */
    :focus-visible {
        outline: 2px solid #40b5a6;
        outline-offset: 2px;
    }

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

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

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

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

    ::-webkit-scrollbar-thumb:hover {
        background: #a0a098;
    }

    /* Animation keyframes */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation delays */
    .stagger-1 { transition-delay: 0.1s; }
    .stagger-2 { transition-delay: 0.2s; }
    .stagger-3 { transition-delay: 0.3s; }
    .stagger-4 { transition-delay: 0.4s; }
    .stagger-5 { transition-delay: 0.5s; }
    .stagger-6 { transition-delay: 0.6s; }

    /* Mobile menu animation */
    #mobileMenu {
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Service card hover lift */
    .group:hover {
        transform: translateY(-2px);
    }

    /* Button press effect */
    button:active, a:active {
        transform: scale(0.98);
    }
