/* Custom styles for Martin's Automotive Repair */

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

/* Custom selection color */
::selection {
    background-color: #156846;
    color: #fdfcf8;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(21, 104, 70, 0.08);
}

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

/* Intersection Observer animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 0.3s; }

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #93ddb7;
}

/* Image hover zoom container */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Service card tilt effect */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Print styles */
@media print {
    nav, #contact-form, .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-up {
        opacity: 1;
        transform: none;
    }
}
