:root {
    --primary: #d1d0d0;
    --primary-dark: #a8a7a7;
    --accent: #ff6b35;
    --dark: #0a0a0a;
    --dark-light: #1a1a1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --whatsapp-green: #25d366;
    --whatsapp-dark: #128c7e;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    overflow: hidden;
}

/* Image Slider */
.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    margin-top: 40px;
    /* Added margin to separate from header */
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary);
}

/* Search Bar */
.search-bar {
    background-color: var(--dark-light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.search-bar .btn-primary {
    background-color: var(--light-gray) !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-bar .btn-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--dark) !important;
    box-shadow: none !important;
}

.search-bar .form-select {
    height: 100% !important;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--dark);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--primary);
}

.section-title h2:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards */
.service-card {
    background: var(--dark-light);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #333 !important;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(209, 208, 208, 0.2) !important;
    border-color: var(--accent) !important;
}

.service-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 0.4;
}

.service-icon {
    text-align: center;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--accent);
    background: var(--dark-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.service-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.service-card .card-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card .card-text {
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    text-align: left;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-item i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 0.9rem;
}

.feature-item span {
    font-size: 0.95rem;
}

/* Cars Section */
.cars-section {
    padding: 30px 0;
    background-color: var(--dark);
}

/* Car Cards - Same as cars list page */
.car-card {
    background: var(--dark-light);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #333 !important;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(209, 208, 208, 0.2) !important;
    border-color: var(--accent) !important;
}

.car-image {
    height: 220px;
    overflow: hidden;
}

.car-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.3rem;
}

.car-price {
    color: var(--accent) !important;
    font-size: 1.4rem;
}

.text-accent {
    color: var(--accent) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--primary-dark) !important;
}

.car-details .row {
    margin: 0 -0.5rem;
}

.car-details .col-6 {
    padding: 0 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--dark) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--dark) !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #25D366; /* WhatsApp green */
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-link:hover {
    background-color: #128C7E; /* WhatsApp dark green */
    transform: scale(1.1);
}

.whatsapp-link i {
    color: white;
    font-size: 32px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        margin-top: 30px;
        /* Adjusted for mobile */
    }

    .search-bar {
        padding: 20px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .car-image,
    .service-image {
        height: 180px;
    }

    .service-icon i {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-link i {
        font-size: 28px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0 40px;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-top: 20px;
        /* Adjusted for mobile */
    }

    .search-bar {
        padding: 15px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .card-body {
        padding: 1rem;
    }

    .service-icon {
        margin-top: -40px;
    }

    .service-icon i {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }

    .whatsapp-float {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-link i {
        font-size: 24px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}
