/* Custom styles for Mario's Used Tire Shop and Auto */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 252, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(4, 120, 87, 0.1);
}

.nav-scrolled .nav-link {
    color: #064e3b !important;
}

.nav-scrolled .nav-link:hover {
    background: #d1fae5 !important;
}

.nav-scrolled .font-heading {
    color: #064e3b !important;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link hover effect */
.mobile-link {
    transition: all 0.2s ease;
}

.mobile-link:hover {
    transform: translateX(4px);
}

/* Hero pattern animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Service card hover glow */
.group:hover .rounded-2xl.bg-emerald-100 {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Back to top button animation */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 0.3s ease-out;
}

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

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Subtle pulse for decorative elements */
@keyframes softPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* Print styles */
@media print {
    nav, #back-to-top, .bg-emerald-800 {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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