/* Custom styles for LM Auto Repair & Service */

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

/* Body */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 30, 58, 0.08);
}

nav.scrolled .font-display,
nav.scrolled .text-burgundy-500 {
    color: #7B1E3A !important;
}

/* Mobile menu */
.mobile-link {
    display: block;
}

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

@keyframes float-delay {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-delay-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delay-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

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

.card-float-delay {
    animation: float-delay 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.card-float-delay-2 {
    animation: float-delay-2 3.8s ease-in-out infinite;
    animation-delay: 1s;
}

.card-float-delay-3 {
    animation: float-delay-3 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

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

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

/* Testimonial hover */
#testimonials .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonials .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(123, 30, 58, 0.1) !important;
}

/* Back to top button */
#backToTop.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Geometric decoration shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #e86f96;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .card-float,
    .card-float-delay,
    .card-float-delay-2,
    .card-float-delay-3 {
        animation: none;
    }
}
