/* Custom styles for Market Auto Driving School */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c8952e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Mobile link hover effect */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c8952e;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Service card hover glow */
.group:hover .bg-gold-500\/20 {
    background: rgba(200, 149, 46, 0.3) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 149, 46, 0.2);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98) !important;
}

/* Hero text animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero h1 {
    animation: fadeInUp 0.8s ease-out forwards;
}

#hero p {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

#hero .flex-col {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

#hero .flex-wrap {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold accent underline */
.text-gold-500 {
    position: relative;
}

/* Card shadow on hover */
.shadow-sm:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Image hover zoom */
.relative.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}
.relative.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Process step connector line (mobile) */
@media (max-width: 1023px) {
    .relative::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 24px;
        background: linear-gradient(to bottom, #c8952e, transparent);
    }
    .relative:last-child::after {
        display: none;
    }
}

/* Testimonial card hover */
.bg-gray-50:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}
