/* Custom styles for Texas Auto Spa */

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(91, 58, 140, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4a3073;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hover effects for service cards */
.group:hover .group-hover\:bg-plum-600 {
    background-color: #5B3A8C;
}

.group:hover .group-hover\:stroke-white {
    stroke: white;
}

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

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* Hero parallax effect */
#hero {
    background-attachment: fixed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Loading animation for images */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}
