/* Custom styles for Eugene's Auto */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Navbar scroll effect */
header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Service card hover glow */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Gradient text animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Input focus animations */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(77, 128, 86, 0.2);
}

/* Button hover effects */
button:hover, a:hover {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Floating animation timing */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for map marker */
@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; }
}

.animate-pulse {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}
