/* Custom styles for The Fix IT Spot - Yuba City Auto Repair */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF7;
}
::-webkit-scrollbar-thumb {
    background: #98c69c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #477a4b;
}

/* Selection color */
::selection {
    background: #c5dfc9;
    color: #1b361e;
}

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(250, 250, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Image hover zoom */
.group img,
img.hover-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.group:hover img,
img.hover-zoom:hover {
    transform: scale(1.03);
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(44, 87, 49, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Service card hover lift */
.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.group:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Form focus ring animation */
input:focus,
textarea:focus {
    animation: ring-pulse 2s ease infinite;
}

@keyframes ring-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(71, 122, 75, 0.2); }
    50% { box-shadow: 0 0 0 4px rgba(71, 122, 75, 0.1); }
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
