/* Custom styles for Finishing Touch Auto Body */

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

/* Prevent flash of hidden content - all content is visible by default */

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

#mobileMenu.open {
    max-height: 500px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(161, 26, 53, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #841a33;
}

/* Selection color */
::selection {
    background: #fad0d9;
    color: #3d0712;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #f6a8b6;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Mobile menu button active state */
#menuBtn.active #menuIcon {
    transform: rotate(90deg);
}

#menuBtn.active #menuIcon line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn.active #menuIcon line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active #menuIcon line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

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

/* Pulse animation for hero dot */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 0.8; }
}
