    /* Base & Utilities */
    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    body {
        overflow-x: hidden;
    }

    ::selection {
        background-color: rgba(13, 148, 136, 0.2);
        color: #0f766e;
    }

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

    #navbar.scrolled .nav-logo-text {
        color: #0f172a !important;
    }

    #navbar.scrolled .nav-link {
        color: rgba(30, 41, 59, 0.8) !important;
    }

    #navbar.scrolled .nav-link:hover {
        color: #0d9488 !important;
    }

    #navbar.scrolled .mobile-nav-call {
        background-color: #0d9488;
        border-color: #0d9488;
    }

    #navbar.scrolled .menu-line {
        background-color: #0f172a !important;
    }

    /* Mobile menu open state */
    #mobile-menu.open {
        transform: translateX(0);
    }

    /* Hamburger animation */
    #menu-toggle.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    #menu-toggle.active .menu-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    #menu-toggle.active .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
        width: 1.25rem;
    }

    /* Smooth image loading */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* Focus styles */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
        outline: 2px solid #14b8a6;
        outline-offset: 2px;
    }

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

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

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

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        .reveal {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
        .group:hover img {
            transform: none !important;
        }
    }

    /* Tablet and up adjustments */
    @media (min-width: 768px) {
        .reveal {
            opacity: 0;
            transform: translateY(32px);
        }
    }
