    /* Custom styles for Locks & Locksmiths */

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

    /* Selection color */
    ::selection {
        background-color: #fbbf24;
        color: #3d0a14;
    }

    /* Scrollbar styling */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #fdf4f6;
    }
    ::-webkit-scrollbar-thumb {
        background: #b82847;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #9a1e3a;
    }

    /* Scroll reveal base styles - content always visible by default */
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    /* Progressive enhancement: animate only when JS adds the class */
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Initial state for JS-enhanced reveals */
    @media (prefers-reduced-motion: no-preference) {
        .reveal[data-reveal] {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .reveal[data-reveal].revealed {
            opacity: 1;
            transform: translateY(0);
        }
        .card-reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .card-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
        .feature-reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .feature-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Card hover effects */
    .card-reveal:hover img {
        transform: scale(1.1);
    }

    /* Mobile menu animation */
    #mobile-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    #mobile-menu.closed {
        opacity: 0;
        pointer-events: none;
    }

    /* Mobile link animation */
    .mobile-link {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    }
    #mobile-menu.open .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }
    #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
    #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
    #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
    #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
    #mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

    /* Nav text color transitions */
    .nav-logo-text {
        transition: color 0.4s ease;
    }
    .nav-subtext {
        transition: color 0.4s ease;
    }
    .nav-link {
        transition: color 0.3s ease;
    }
    
    /* Hero visible nav state */
    #navbar.hero-scrolled .nav-logo-text,
    #navbar:not(.hero-scrolled) .nav-logo-text {
        color: white;
    }
    #navbar.hero-scrolled .nav-subtext {
        color: rgba(253, 205, 184, 0.8);
    }

    /* Prevent layout shift on images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Focus visible for accessibility */
    *:focus-visible {
        outline: 2px solid #fbbf24;
        outline-offset: 2px;
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        .reveal,
        .reveal[data-reveal],
        .card-reveal,
        .feature-reveal {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
        .mobile-link {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
    }
