/* Custom styles for Fast Muffler and Tire */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf4f8;
}
::-webkit-scrollbar-thumb {
    background: #be185d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #831443;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(80, 7, 36, 0.98) !important;
    box-shadow: 0 4px 30px rgba(131, 20, 67, 0.3);
}

/* 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);
    }
}

/* Service card hover effect */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Pulse animation for the hero dot */
@keyframes pulse-custom {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.animate-pulse-custom {
    animation: pulse-custom 2s ease-in-out infinite;
}

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

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

/* Ensure proper spacing on mobile */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
    }
}

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