/* Custom styles for Larry Hice Custom & Collision */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(196, 149, 106, 0.3);
    color: #fdfbf7;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c4956a, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 149, 106, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
.mobile-menu-open {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Subtle glow on interactive elements */
.glow-hover:hover {
    box-shadow: 0 0 30px rgba(196, 149, 106, 0.2);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #b8401f !important;
    box-shadow: 0 0 0 3px rgba(184, 64, 31, 0.15);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #ec986e, #d4b05a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated background pattern */
.pattern-bg {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(196, 149, 106, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(184, 64, 31, 0.03) 0%, transparent 50%);
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec986e, #d4b05a);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 100%;
}

/* Reduced motion preference */
@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;
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    .service-card,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .font-display,
    h1, h2, h3 {
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    input,
    select,
    textarea {
        border-width: 2px;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #c4956a;
    outline-offset: 2px;
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 640px) {
    a, button, input, select, textarea {
        min-height: 44px;
    }
}
