    /* Custom styles for Rafter J Fencing & Welding */
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Selection color */
    ::selection {
        background-color: #942727;
        color: #fff8f6;
    }
    
    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #111111;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #374151;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #942727;
    }
    
    /* Navbar scroll state */
    .navbar-scrolled {
        background-color: rgba(10, 10, 10, 0.95) !important;
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(148, 39, 39, 0.2);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Fade-in animation for scroll reveals */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        
        .reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
        
        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }
        .reveal-delay-4 { transition-delay: 0.4s; }
        .reveal-delay-5 { transition-delay: 0.5s; }
        .reveal-delay-6 { transition-delay: 0.6s; }
    }
    
    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Focus visible styles */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 2px solid #dc6363;
        outline-offset: 2px;
    }
    
    /* Service card hover effect */
    .service-card:hover .service-icon {
        transform: scale(1.1) rotate(-5deg);
    }
    
    .service-icon {
        transition: transform 0.3s ease;
    }
    
    /* Gallery hover overlay */
    .gallery-item:hover .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    
    .gallery-overlay {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* Button press effect */
    button:active,
    a:active {
        transform: scale(0.98);
    }
    
    /* Input autofill styling */
    input:-webkit-autofill,
    textarea:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
        -webkit-text-fill-color: #fff !important;
    }
    
    /* Ensure images don't cause layout shift */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile menu transition */
    #mobileMenu {
        animation: slideDown 0.2s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Pulse animation for hero badge */
    @keyframes pulse-ring {
        0% {
            box-shadow: 0 0 0 0 rgba(245, 184, 184, 0.4);
        }
        70% {
            box-shadow: 0 0 0 6px rgba(245, 184, 184, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(245, 184, 184, 0);
        }
    }
    
    .animate-pulse-ring {
        animation: pulse-ring 2s infinite;
    }
    
    /* Gradient text utility */
    .gradient-text {
        background: linear-gradient(135deg, #f5b8b8, #ff845a, #f5b8b8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* Glassmorphism card */
    .glass-card {
        background: rgba(26, 26, 26, 0.8);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
