/* Custom styles for Thruway Engine Clinic */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6B3A6B;
}

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

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

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

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

/* Pulse animation for CTA buttons */
@keyframes pulse-amber {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 166, 35, 0);
    }
}

.bg-amber-400:focus {
    animation: pulse-amber 2s infinite;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(184, 120, 184, 0.15);
}

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

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

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

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #6B3A6B, #F5A623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    
    #about .absolute {
        display: none;
    }
}
