/* Custom styles for Miller's Garage */

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

/* Hero animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-images {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service cards */
.service-card {
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Feature rows */
.feature-row {
    opacity: 0;
    transform: translateX(-20px);
}

.feature-row.visible {
    animation: fadeInLeft 0.6s ease forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(15, 81, 50, 0.08);
}

.nav-scrolled #navbar a:not([href="tel:19722913828"]) {
    color: #1c1917;
}

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

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

::-webkit-scrollbar-thumb {
    background: #86efac;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Selection color */
::selection {
    background: #bbf7d0;
    color: #064e3b;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button hover effects */
a, button {
    transition: all 0.3s ease;
}

/* Image hover zoom */
.service-card img,
.about-images img {
    transition: transform 0.5s ease;
}

/* Print styles */
@media print {
    nav, #contact-form, .cta-banner {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
