/* Custom styles for Prestige Auto Group */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A2342;
}
::-webkit-scrollbar-thumb {
    background: #6EE7B7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34D399;
}

/* Selection color */
::selection {
    background: #6EE7B7;
    color: #0A2342;
}

/* Service card hover animation */
.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);
}

/* Fade-in animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Header scroll state */
header.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    border-color: #34D399 !important;
    box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.2) !important;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Image aspect ratio fallbacks */
img {
    max-width: 100%;
    height: auto;
}
