/*
Template Name: Maxus Luxury Auto
File: Index CSS (Updated with Animations, Fixes & Mobile Hero Size)
*/

/********************* Hero Slider & Animations ****************/
.carousel-item {
    overflow: hidden;
}
.carousel-item img {
    transform: scale(1.01);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}
.carousel-item.active img {
    transform: scale(1.08);
}

.carousel-caption {
    text-align: left;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 220px 10%;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carousel-caption h5 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #A0A0A0;
}
.carousel-caption h1 {
    font-size: 60px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 5px;
    line-height: 1.2;
}
.carousel-caption p {
    width: 50%;
    color: #E0E0E0;
    font-size: 16px;
    letter-spacing: 0.5px;
}
.carousel-indicators { bottom: 40px; z-index: 15; }
.center_home .carousel-indicators [data-bs-target] {
    background-color: #fff;
    height: 4px; 
    border-radius: 0;
    width: 40px;
    transition: 0.4s;
}
.center_home .carousel-indicators .active { 
    background-color: #004C97; 
    width: 60px;
}

/********************* Hero Buttons - FORCED Blue Theme ****************/
/* This targets ALL .button and .button_1 inside the hero slider */
#center .carousel-caption .button,
#center .carousel-caption .button_1,
.carousel-caption .button,
.carousel-caption .button_1 {
    display: inline-block !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    background: #004C97 !important;
    color: #fff !important;
    border: 2px solid #004C97 !important;
}

#center .carousel-caption .button:hover,
#center .carousel-caption .button_1:hover,
.carousel-caption .button:hover,
.carousel-caption .button_1:hover {
    background: #003670 !important;
    border-color: #003670 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 76, 151, 0.4) !important;
}

/********************* Booking Panel Fix ****************/
.main_3 {
    position: relative;
    margin-top: -80px;
    z-index: 20;
}
.booking_m {
    background: #fff;
    box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.1);
    padding: 40px 50px;
    border-radius: 2px;
    border-top: 4px solid #004C97;
    position: relative;
    transition: transform 0.3s ease;
}
.booking_m:hover {
    transform: translateY(-5px);
}

.booking-submit {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    border-radius: 2px;
    text-decoration: none;
}

/********************* Featured Models Auto-Scroll ****************/
.fleet-marquee-container {
    width: 100%;
    overflow: hidden;
    padding-bottom: 30px;
}
.fleet-marquee-track {
    display: flex;
    width: max-content;
    animation: scrollFleet 20s linear infinite;
}
.fleet-marquee-track:hover {
    animation-play-state: paused; 
}
.fleet-card {
    display: block;
    width: 350px;
    margin: 0 15px;
    background: #fff;
    border: 1px solid #EBEBEB;
    text-align: center;
    padding-bottom: 25px;
    transition: all 0.4s ease;
    border-bottom: 3px solid transparent;
    text-decoration: none !important;
}
.fleet-card:hover {
    box-shadow: 0 20px 40px rgba(0, 76, 151, 0.08);
    border-bottom: 3px solid #004C97;
    transform: translateY(-10px);
}
.fleet-card .model-img-wrap {
    overflow: hidden;
    background: #F4F7FA;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fleet-card .model-img-wrap img {
    width: 90%;
    transition: transform 0.5s ease;
}
.fleet-card:hover .model-img-wrap img {
    transform: scale(1.08);
}
.fleet-card h3 {
    transition: color 0.3s ease;
}
.fleet-card:hover h3 {
    color: #004C97 !important;
}

@keyframes scrollFleet {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/********************* Trip/Features ****************/
#trip { 
    margin-top: 60px;
}
.trip_2i {
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.03);
    padding: 40px 25px;
    background: #fff;
    border-bottom: 3px solid transparent;
    transition: 0.4s;
    height: 100%;
}
.trip_2i:hover {
    border-bottom: 3px solid #004C97;
    transform: translateY(-10px);
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.08);
}
.trip_2i span i {
    font-size: 45px;
    color: #004C97;
    transition: 0.4s;
}
.trip_2i:hover span i {
    transform: scale(1.1);
}

/********************* Footer & Social Fixes ****************/
ul.social-network {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}
ul.social-network li {
    list-style: none;
}
ul.social-network li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px;
    border-radius: 2px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.3s ease;
}
ul.social-network li a:hover {
    background: #004C97;
    color: #fff;
    transform: translateY(-3px);
}
.footer-map-container {
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
}

/********************* MOBILE RESPONSIVENESS ****************/
@media screen and (max-width : 767px){
    .carousel-item img {
        height: 65vh; 
        min-height: 480px; 
        object-fit: cover; 
        object-position: center;
    }
    .carousel-caption { 
        padding: 60px 10%; 
        justify-content: flex-end; 
        padding-bottom: 90px;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    }
    .carousel-caption h1 { font-size: 32px; }
    .carousel-caption p { width: 100%; font-size: 14px; }
    
    .main_3 { margin-top: -60px; padding: 0 15px; }
    .booking_m { padding: 25px; }
    
    ul.social-network { justify-content: center; margin-top: 20px; }
    
    .fleet-card { width: 280px; }

    /* Mobile hero buttons - blue theme */
    #center .carousel-caption .button,
    #center .carousel-caption .button_1,
    .carousel-caption .button,
    .carousel-caption .button_1 {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 10px !important;
        background: #004C97 !important;
        color: #fff !important;
        border: 2px solid #004C97 !important;
    }
    .carousel-caption .button.me-2 {
        margin-right: 0 !important;
    }
}