/* Custom Styles for Barney's Auto Service */

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

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

::-webkit-scrollbar-track {
    background: #0a1f0a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3d8b3d;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Scroll line animation */
@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Service card hover effect */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 31, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #faf9f6;
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.5);
    outline-offset: 2px;
}

/* Image hover container */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Gold glow effect */
.gold-glow {
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.2);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #c9a227 0%, #d4a843 50%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Parallax-like subtle movement */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        will-change: transform;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}
