    /* Custom styles for Hobaugh Auto Detailing */

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }

    /* Scroll reveal animations - progressive enhancement */
    @media (prefers-reduced-motion: no-preference) {
        .service-card,
        .gallery-item {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(253, 252, 248, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    }

    /* Hero text animation - only below the fold content gets animations */
    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

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

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

    ::-webkit-scrollbar-thumb:hover {
        background: #15803d;
    }

    /* Focus visible styles */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 2px solid #16a34a;
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* Form input transitions */
    input, select, textarea {
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }

    /* Button press effect */
    button:active {
        transform: scale(0.98) translateY(0) !important;
    }

    /* Image loading placeholder */
    img {
        background-color: #f5f5f4;
    }

    /* Mobile menu animation */
    #mobile-menu {
        animation: slideDown 0.2s ease-out;
    }

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

    /* Gallery item hover */
    @media (prefers-reduced-motion: no-preference) {
        .gallery-item img {
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
    }
