@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    overflow-x: hidden;
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

.carousel-text {
    height: 300px;
}

.carousel-text h5 {
    font-size: 40px;
}

.section-omset {
    margin-top: 20px;
    height: 400px;
    /* background-color: aquamarine; */
}

.omset-heading {
    padding-top: 70px;
}

/* navbar */
.navbar .navbar-nav .nav-item .nav-link:hover,
.navbar .navbar-nav .nav-item .nav-link.active {
    color: #d90429;
}

.navbar .navbar-nav .nav-item .nav-link {
    color: white;
}

a {
    text-decoration: none;
}

/* card */
.column {
    float: left;
    width: 33.3%;
    margin-bottom: 16px;
    padding: 0 18px;
}

.card-models {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.card-models:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-omset {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.card-omset:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.container {
    padding: 0 16px;
    /* width: 100%;
    max-width: 100%; */
}

.container::after,
.row::after {
    content: "";
    clear: both;
    display: table;
}

.title {
    color: grey;
}

.button {
    border: none;
    outline: 0;
    display: inline-block;
    padding: 8px;
    color: white;
    background-color: #252525;
    text-align: center;
    cursor: pointer;
    width: 100%;
}

.button:hover {
    background-color: #555;
}

.section-aboutme {
    margin-top: 50px;
    height: 620px;
}

.section-aboutme .img-aboutme {
    height: 420px;
    width: 550px;
    border-radius: 10px;
}

.section-aboutme .p-aboutme {
    text-align: justify;
}

.section-product-price {
    margin-top: 80px;
    /* height: 890px; */
    /* background-color: #555; */
}

.section-product-price .center-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.section-model {
    height: 100%;
    background: #000;
}

.hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
}

.section-contact {
    margin-top: 80px;
    padding: 60px 0;
}

.section-contact .contact-box {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
        rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}
.section-contact .contact-box i {
    font-size: 24px;
    color: #000;
}

.product-image.active {
    border: 4px solid white; /* Warna border */
    border-radius: 10px; /* Agar tetap rounded */
    padding: 5px;
}

.image-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.hover-image {
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .hover-image {
    transform: scale(1.1);
}

/* car style */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.overlay-subtitle {
    font-size: 14px;
    margin: 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    /* text-align: center; */
    font-size: 18px;
    /* background: #fff; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.text-overlay {
    position: absolute;
    top: 10%; /* Posisikan teks di atas gambar */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5); /* Latar belakang hitam transparan */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    font-weight: 300;
}

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

.swiper {
    width: 100%;
    height: 700px;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.mySwiper2 {
    height: 80%;
    width: 100%;
}

.mySwiper {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}

.mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
}

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

/* call-to-action */
.call-to-action {
    --background-color: #000000;
    --default-color: #ffffff;
    --contrast-color: #ffffff;
    padding: 250px 0;
    position: relative;
    clip-path: inset(0);
    height: 70vh;
}

.call-to-action img {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.call-to-action:before {
    content: "";
    background: color-mix(in srgb, var(--background-color), transparent 50%);
    position: absolute;
    inset: 0;
    z-index: 2;
}

.call-to-action .container {
    position: relative;
    z-index: 3;
}

.call-to-action h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--default-color);
}

.call-to-action p {
    color: var(--default-color);
}

.call-to-action .cta-btn {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 40px;
    border-radius: 5px;
    transition: 0.5s;
    margin: 10px;
    border: 2px solid var(--contrast-color);
    color: var(--contrast-color);
}

.call-to-action .cta-btn:hover {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
}

@media screen and (max-width: 768px) {
    .call-to-action {
        height: 50vh; /* Kurangi tinggi agar pas di layar kecil */
        padding: 80px 0; /* Sesuaikan padding agar kontennya tetap rapi */
    }

    .call-to-action img {
        position: fixed;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .call-to-action h3 {
        font-size: 26px;
        font-weight: 500;
        color: var(--default-color);
    }

    .call-to-action p {
        color: var(--default-color);
    }

    .carousel .carousel-item {
        height: 50vh; /* Sesuaikan dengan kebutuhan */
    }

    .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .text-overlay {
        display: none;
    }
}

@media screen and (min-width: 1024px) {
    .carousel-text {
        height: 200px;
    }

    .section-news {
        margin-top: 120px;
        /* background-color: aquamarine; */
    }

    .section-models {
        margin-top: 230px;
    }

    .hero-section {
        background-attachment: scroll; /* Nonaktifkan parallax di mobile */
        background-size: cover; /* Pastikan gambar tetap penuh */
    }
}
