/* Custom Styles for K & P Automotive Repair */

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

/* Service Card Hover Effect */
.service-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Mobile Menu Animation */
#mobile-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Fade In Animation for Scroll Reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Button Focus States */
button:focus, a:focus {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Form Input Focus */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

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