/* ===== HERO SECTION ===== */
.hero-section {
    margin-top: 70px;
    min-height: 92vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b35 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.hero-title {
    color: var(--white);
    z-index: 2;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    color: var(--white);
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1800px;
    height: 92vh;
    max-height: 450px;
    margin: 0 auto 80px;
    z-index: 2;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: none;
    background: transparent;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 1800px;
}

.car-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.car-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-car-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover !important;
    object-position: center 42% !important;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 12px;
}

.hero-car-image:hover {
    transform: scale(1.05);
}

/* Specific targeting for slider car images */
.hero-slider .hero-car-image,
.slider-track .hero-car-image,
.car-grid .hero-car-image {
    object-fit: cover !important;
    object-position: center 42% !important;
}

/* Special styling for Mazda 6 image to display completely without cropping */
.hero-slider img[alt="Mazda 6"],
.slider-track img[alt="Mazda 6"],
.car-grid img[alt="Mazda 6"] {
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(0.95);
}

/* Special styling for Audi Q3 image to scale down */
.hero-slider img[alt="Audi Q3"],
.slider-track img[alt="Audi Q3"],
.car-grid img[alt="Audi Q3"] {
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(0.85);
}

/* Special styling for Renault Traffic Van image */
.hero-slider img[alt="Renault Traffic Van"],
.slider-track img[alt="Renault Traffic Van"],
.car-grid img[alt="Renault Traffic Van"] {
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(1.0);
}

/* Special styling for Toyota Rav4 image */
.hero-slider img[alt="Toyota Rav4"],
.slider-track img[alt="Toyota Rav4"],
.car-grid img[alt="Toyota Rav4"] {
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(0.9);
}

/* Special styling for Mercedes Benz E Class image */
.hero-slider img[alt="Mercedes Benz E Class"],
.slider-track img[alt="Mercedes Benz E Class"],
.car-grid img[alt="Mercedes Benz E Class"] {
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(0.95);
}

/* Special styling for Renault Koleos image to scale down */
.hero-slider img[alt="Renault Koleos"],
.slider-track img[alt="Renault Koleos"],
.car-grid img[alt="Renault Koleos"] {
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(0.85);
}

.car-name {
    padding: 12px 15px 8px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-similar-text {
    padding: 0 15px 12px 15px;
    text-align: center;
    font-size: 12px;
    color: orangered;
    font-style: italic;
    opacity: 0.8;
}

/* ===== SLIDER CONTROLS ===== */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.slider-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1279px) and (min-width: 1025px) {
    .hero-slider {
        max-height: 400px;
    }

    .hero-section {
        min-height: 85vh;
    }
}

@media (max-width: 1024px) and (min-width: 956px) {
    .hero-slider {
        max-height: 380px;
        margin-bottom: 140px;
    }

    .hero-section {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 955px) and (min-width: 769px) {
    .hero-slider {
        max-height: 380px;
        margin-bottom: 100px;
    }

    .hero-section {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        gap: 30px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        padding-bottom: 100px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-slider {
        max-width: 600px;
        margin-bottom: 30px;
    }

    .car-grid {
        gap: 10px;
        max-width: 800px;
    }

    .hero-car-image {
        aspect-ratio: 4/3;
        object-fit: cover !important;
        object-position: center 40% !important;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 50vh;
    }

    .hero-container {
        gap: 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .hero-slider {
        max-width: 400px;
        margin-bottom: 35px;
    }

    .car-grid {
        gap: 8px;
        max-width: 600px;
    }

    .hero-car-image {
        aspect-ratio: 4/3;
        object-fit: cover !important;
        object-position: center 38% !important;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}
