:root {
    --gold: #e3b129;
    --dark: #05152b;
}

body {
    font-family: Arial;
    background: #f5f5f5;
}

.hero-carousel-container {
    position: relative;
    height: 100vh;
    /* Matches your defined hero height constraint */
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

/* Forces the background carousel images to fit beautifully across full widths */
.hero-carousel-container .carousel,
.hero-carousel-container .carousel-inner,
.hero-carousel-container .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay matching the image layout style for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(5, 21, 43, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.vehicle-carousel {
    position: relative;
}

.vehicle-carousel .carousel-control-prev,
.vehicle-carousel .carousel-control-next {
    top: 50%;
    /* transform: translateY(-50%); */
    bottom: auto;
    width: 50px;
}

.vehicle-carousel .carousel-control-prev-icon,
.vehicle-carousel .carousel-control-next-icon {
    /* background-size: 100%, 100%; */
    color: white;
}

/* Keeps text perfectly layered on top of sliding background images */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
}

/* Feature Point Custom Icons Matching Image Layout */
.feature-icon-box {
    width: 42px;
    height: 42px;
    background-color: red;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
}

@media (max-width: 992px) {
    .hero {
        padding: 100px 0 70px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        margin: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-slider img {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-slider img {
        height: 260px;
    }
}

/* 1. Base Class (Added transition here for smooth animation) */
.cat,
.permit,
.config,
.vehicle {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    
    /* Smooth transition for transform and shadow (300ms is usually the sweet spot) */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform; /* Hint to browser for hardware-accelerated rendering */
}

/* 2. Hover State */
.cat:hover,
.permit:hover,
.config:hover,
.vehicle:hover {
    /* Lifts the card up by 4px (Y-axis -4px) and scales it up slightly to 1.02% */
    transform: translateY(-4px) scale(1.02);
    
    /* A deeper, more spread-out shadow to match the lifted physical height */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.config {
    background: var(--dark);
    color: #fff;
}

.stats,
.footer {
    background: var(--dark);
    color: #fff;
}

.btn-gold {
    background: var(--gold);
}

/* Section */
#buy-vehicles {
    padding-top: 60px;
    padding-bottom: 60px;
}

#buy-vehicles h2 {
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

/* Card */
.vehicle-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.35s ease;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Image */
.vehicle-carousel {
    overflow: hidden;
}

.vehicle-carousel img {
    height: 260px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vehicle-card:hover img {
    transform: scale(1.08);
}

/* Carousel Arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    opacity: 1;
}

.carousel-control-prev {
    left: 12px;
}

.carousel-control-next {
    right: 12px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 18px;
    height: 18px;
}

/* Content */
.vehicle-body {
    padding: 24px;
}

.vehicle-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Price */
.vehicle-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d6efd;
    margin-bottom: 22px;
}

/* Buttons */
.vehicle-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vehicle-actions .btn {
    flex: 1;
    min-width: 100px;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

/* Know More */
.btn-details {
    background: #0d6efd;
    color: white;
}

.btn-details:hover {
    background: #0b5ed7;
    color: white;
    transform: translateY(-2px);
}

/* Call */
.btn-call {
    background: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-call:hover {
    background: #bb2d3b;
    color: white;
    transform: translateY(-2px);
}

/* WhatsApp */
.btn-whatsapp {
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-whatsapp:hover {
    background: #1ebc57;
    color: white;
    transform: translateY(-2px);
}

.config {
    position: relative;
    overflow: hidden;
    border-radius: 24px;

    /* Premium Red Gradient */
    background: linear-gradient(135deg,
            #8b0000 0%,
            #c1121f 35%,
            #e63946 70%,
            #ff4d4d 100%);

    color: #fff;
    box-shadow: 0 20px 50px rgba(193, 18, 31, 0.35);
}

/* Decorative circles */
.config::before,
.config::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.config::before {
    width: 250px;
    height: 250px;
    top: -100px;
    right: -80px;
}

.config::after {
    width: 180px;
    height: 180px;
    bottom: -80px;
    left: -50px;
}

.config h3 {
    position: relative;
    z-index: 2;
    font-weight: 700;
    letter-spacing: 1px;
}

.cfg-item {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 24px 15px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cfg-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cfg-item i {
    font-size: 2.5rem;
    color: #fff;
}

.stats {
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(
        135deg,
        #7f0000 0%,
        #b71c1c 30%,
        #d32f2f 70%,
        #ef5350 100%
    ); */
    background-color: white;
}

/* Decorative glow */
.stats::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -150px;
    left: -100px;
}

.stats::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -120px;
    right: -80px;
}

.stat-card {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    color: #d30404;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-card h2 {
    /* color: #d30404; */
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-card p {
    /* color: rgba(255,255,255,0.9); */
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.post-vehicle-banner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin: 40px;

    background: linear-gradient(135deg,
            #7f0000 0%,
            #b71c1c 30%,
            #d32f2f 70%,
            #ef5350 100%);

    box-shadow: 0 20px 50px rgba(211, 47, 47, 0.35);
}

/* Decorative circles */
.post-vehicle-banner::before,
.post-vehicle-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.post-vehicle-banner::before {
    width: 280px;
    height: 280px;
    top: -120px;
    right: -80px;
}

.post-vehicle-banner::after {
    width: 220px;
    height: 220px;
    bottom: -100px;
    left: -60px;
}

.post-vehicle-banner .container {
    position: relative;
    z-index: 2;
}

.post-vehicle-banner h2 {
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.post-vehicle-banner p {
    font-size: 1.05rem;
}

/* Buttons */
.post-vehicle-banner .btn-light {
    border-radius: 50px;
    padding: 12px 28px;
    transition: all 0.3s ease;
}

.post-vehicle-banner .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

.post-vehicle-banner .btn-outline-light {
    border-radius: 50px;
    padding: 12px 28px;
    transition: all 0.3s ease;
}

.post-vehicle-banner .btn-outline-light:hover {
    background: #fff;
    color: #c1121f;
    transform: translateY(-3px);
}

.contact-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #b71c1c;
    margin-bottom: 10px;
}

.contact-section .text-center p {
    color: #666;
    font-size: 1.1rem;
}

/* FORM */

.contact-form {
    background: linear-gradient(135deg,
            #8b0000 0%,
            #b71c1c 35%,
            #d32f2f 70%,
            #ef5350 100%);

    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(211, 47, 47, 0.25);
}

.form-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-form .form-label {
    color: #fff;
    font-weight: 600;
}

.contact-form .form-control {
    border: none;
    border-radius: 12px;
    min-height: 50px;
    padding: 12px 15px;
}

.contact-form textarea.form-control {
    min-height: 130px;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.submit-btn {
    background: #fff;
    color: #c62828;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.25);
}

/* CONTACT CARD */

.contact-card {
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    height: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-card h4 {
    color: #b71c1c;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fdeaea;
    border-radius: 14px;
}

.icon-box i {
    color: #c62828;
    font-size: 1.2rem;
}

.contact-item h6 {
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-item p {
    margin: 0;
    color: #555;
}

.contact-item a {
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: #8b0000;
}

/* MAP */

.map-wrapper {
    margin-top: 25px;
    border-radius: 18px;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 280px;
    border: 0;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-form,
    .contact-card {
        padding: 25px;
    }

    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .post-vehicle-banner {
        text-align: center;
        border-radius: 20px;
    }

    .post-vehicle-banner h2 {
        font-size: 1.8rem;
    }

    .post-vehicle-banner .btn {
        width: 100%;
        margin-top: 10px;
    }
}

.vehicle-card .btn-primary {
    border-radius: 12px;
}

.vehicle-card .btn-outline-dark,
.vehicle-card .btn-success {
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.vehicle-card .btn-outline-dark:hover,
.vehicle-card .btn-success:hover {
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
    .stat-card {
        padding: 20px 15px;
    }

    .stat-card h2 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .vehicle-carousel img {
        height: 220px;
    }

    .vehicle-actions .btn {
        width: 100%;
        flex: unset;
    }
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
}

#navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
}
