/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
*{
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    scroll-padding-top: 1rem;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}
/* Variables */
:root {
    --main-color:#d90429 ;
    --text-color:#020102 ;
    --bg-color:#fff ;
}
/* Custom Scroll Bar */
html::-webkit-scrollbar{
    width: 0.5rem;
    background: transparent;
}
html::-webkit-scrollbar-thumb{
  border-radius: 5rem;
  background: var(--text-color);
}
section{
    padding: 4rem 0 2rem;
}
img{
    width: 100%;
}
body{
    color: var(--text-color);
}
.container{
    max-width: 1068px;
    margin-left: auto;
    margin-right: auto;
}
header{
    display: block;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}
header.shadow{
    background: var(--bg-color);
    box-shadow: 4px 4px 20px rgb(15 54 55 / 10%);
    transition: 0.5s ease;
}
header.shadow #search-icon{
    color: var(--text-color);
}
.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 35px;
}
#menu-icon{
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    display: none;
}
.logo{
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}
.logo span{
    color: var(--main-color);
}
.navbar{
    display: flex;
    column-gap: 2rem;
}
.navbar a{
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}
.navbar a:hover,
.navbar .active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
#search-icon{
    font-size: 24px;
    cursor: pointer;
    color: var(--bg-color);
}
.search-box{
    position: absolute;
    top: 110%;
    right: 0;
    left: 0;
    background: var(--bg-color);
    box-shadow: 4px 4px 20px rgb(15 54v55 / 10%);
    border: 1px solid var(--main-color);
    border-radius: 0.5rem;
    clip-path: circle(0% at 100% 0%);
}
.search-box.active{
    clip-path: circle(144% at 100% 0%);
    transition:0.4s;
}
.search-box input{
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
}
.home{
    max-width: 1300px;
    margin: auto;
    width: 100%;
    min-height: 640px;
    display: flex;
    align-items: center;
    background: url(img/jpg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center left;
}
.home-text{
    padding-left: 130px;
}
.home-text h1{
    font-size: 2.4rem;
}
.home-text span{
    color: var(--main-color);
}
.home-text p{
    font-size: 0.938rem;
    font-weight: 300;
    margin: 0.5rem 0 1.2rem;
}
.btn{
    padding: 10px 22px;
    background-color: var(--main-color);
    color: var(--bg-color);
    font-weight: 400;
}
.btn:hover{
    background: #fd052f;
}
.heading{
    text-align: center;
}
.heading span{
    font-weight: 500;
    color: var(--main-color);
}
.heading p{
    font-size: 0.938rem;
    font-weight: 300;
}
/* Impor font Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

.headingg {
  font-family: 'Poppins', sans-serif; /* Gunakan font Poppins */
  text-align: center; /* Teks rata tengah */
  padding: 20px; /* Ruang di dalam elemen */
  margin: 0 auto; /* Elemen berada di tengah */
  max-width: 700px; /* Batas lebar maksimal */
  color: #333; /* Warna teks default */
  background: none; /* Tidak ada warna latar belakang */
  box-shadow: none; /* Menghapus efek bayangan */
}

.headingg span {
  display: block;
  font-size: 12px; /* Ukuran teks lebih kecil */
  font-weight: 600; /* Tebal untuk teks kecil */
  color: #ff6600; /* Warna teks oranye */
  margin-bottom: 8px; /* Jarak dengan elemen berikutnya */
  text-transform: uppercase; /* Huruf kapital semua */
}

.headingg h2 {
  font-size: 22px; /* Ukuran heading lebih kecil */
  font-weight: 600; /* Sedikit lebih ringan */
  color: #222; /* Warna heading lebih gelap */
  margin-bottom: 12px; /* Jarak dengan paragraf */
}

.headingg p {
  font-size: 14px; /* Ukuran teks paragraf lebih kecil */
  line-height: 1.6; /* Jarak antar baris teks lebih pendek */
  text-align: justify; /* Teks rata kiri-kanan */
  color: #555; /* Warna teks paragraf */
  margin-bottom: 16px; /* Jarak antar paragraf */
}

.headingg p strong {
  color: #d9534f; /* Warna merah untuk teks penting */
}

.headingg p:last-child {
  margin-bottom: 0; /* Menghapus margin di paragraf terakhir */
}

.headingg a {
  font-size: 14px; /* Ukuran font tautan */
  color: #007bff; /* Warna biru untuk tautan */
  text-decoration: none; /* Hilangkan garis bawah */
}

.headingg a:hover {
  text-decoration: underline; /* Garis bawah saat hover */
}



.cars-container{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}
.cars-container .box{
    flex: 1 1 17rem;
    position: relative;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
}
.cars-container .box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}
.cars-container .box img:hover{
    transform: scale(1.1);
    transition: 0.5s;
}
.cars-container .box h2{
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-weight: 400;
    font-size: 1rem;
    background: var(--bg-color);
    padding: 8px;
    border-radius: 0.5rem;
}
.cars-container .box:hover h2{
    background: var(--main-color);
    color: var(--bg-color);
}
.cars .heading h2 .highlight {
    font-size: 19px;
    color: #000; /* Warna teks hitam */
    text-decoration: underline; /* Garis bawah */
    text-decoration-thickness: 3px; /* Tebalkan garis bawah */
    text-decoration-color: #ff4d4d; /* Garis bawah berwarna merah */
    font-weight: bold;
    line-height: 1; /* Mengurangi tinggi baris agar teks lebih rapat */
    position: relative; /* Memungkinkan penggunaan properti top */
    top: -17px; /* Menggeser teks ke atas sebesar 3px */
}

.about-text {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.about-text span {
    font-size: 16px;
    color: #777;
    text-transform: uppercase;
}

.about-text h2 {
    font-size: 24px; /* Ukuran lebih kecil */
    margin-bottom: 20px;
    color: #000;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 13px; /* Ukuran teks biasa lebih kecil */
}

.about-text .highlight {
    color: #000; /* Warna teks hitam */
    text-decoration: underline; /* Garis bawah */
    text-decoration-thickness: 3px; /* Tebalkan garis bawah */
    text-decoration-color: #ff4d4d; /* Garis bawah berwarna merah */
    font-size: 13px; /* Ukuran teks lebih kecil */
    margin-bottom: 8px; /* Jarak bawah antar elemen */
    font-weight: bold;
}

/* Container utama untuk carousel */
/* Container utama untuk carousel */
.poto-seleb {
    width: 80%;
    margin: 0 auto; /* Pusatkan carousel */
    position: relative;
}

/* Swiper wrapper untuk mengatur konten slide */
.swiper-wrapper {
    display: flex;
    align-items: center;
}

/* Setelan untuk setiap slide */
.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    
    
}

.swiper-slide img {
    width: 100%; /* Gambar mengisi slide */
    max-width: 600px; /* Batas maksimal lebar gambar */
    height: auto; /* Menjaga rasio gambar */
    border-radius: 10px; /* Sudut melengkung */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan */
    
}

/* Tombol navigasi Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: #393232; /* Warna untuk ikon */
    font-size: 18px; /* Ukuran ikon panah */
    transition: transform 0.3s ease; /* Efek transisi */
    position: absolute; /* Posisi di atas slider */
    top: 50%; /* Posisi vertikal di tengah */
    transform: translateY(-50%); /* Pusatkan vertikal */
    z-index: 10; /* Pastikan di atas slide */
    cursor: pointer; /* Ubah kursor menjadi pointer */
}

.swiper-button-next {
    right: 10px; /* Posisi tombol kanan */
}

.swiper-button-prev {
    left: 10px; /* Posisi tombol kiri */
}

/* Efek hover untuk tombol navigasi */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.2) translateY(-50%); /* Membesar sedikit saat hover */
    color: #ddd; /* Warna lebih terang saat hover */
}

/* Pagination bullets Swiper */
.swiper-pagination-bullet {
    background: #ddd;
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #000; /* Warna aktif */
}







.about{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}
.about-img{
    flex: 1 1 21rem;
}
.about-img {
    position: relative; /* Posisi relatif untuk memungkinkan elemen di dalamnya menggunakan posisi absolut */
    display: inline-block; /* Pastikan kontainer menyesuaikan ukuran dengan gambar */
}

.rounded-img {
    width: 100%; /* Lebar penuh untuk gambar */
    max-width: 600px; /* Batas maksimal ukuran gambar */
    height: auto; /* Menjaga rasio gambar */
    border-radius: 20px; /* Sudut melengkung */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan lembut */
}

.btn-in-img {
    position: absolute; /* Posisi absolut di dalam kontainer */
    bottom: 20px; /* Jarak dari bawah gambar */
    left: 20px; /* Jarak dari sisi kiri gambar */
    padding: 10px 20px; /* Ukuran tombol */
    background-color: #f00; /* Warna latar belakang tombol */
    color: #fff; /* Warna teks */
    font-size: 14px; /* Ukuran teks yang lebih kecil */
    border: none; /* Hilangkan border */
    border-radius: 10px; /* Sudut melengkung tombol */
    text-decoration: none; /* Hilangkan garis bawah */
    cursor: pointer; /* Ubah kursor menjadi pointer */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Bayangan lembut */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Efek transisi */
}

.btn-in-img:hover {
    background-color: #d00; /* Warna lebih gelap saat hover */
    transform: scale(1.1); /* Membesar sedikit saat hover */
}

.about-text{
    flex: 1 1 21rem;
}
.about-text span{
    font-weight: 500;
    color: var(--main-color);
}
.about-text h2{
    font-size: 1.7rem;
}
.about-text p{
    font-size: 0.938rem;
    margin: 0.5rem 0 1.4rem;
}
.parts-container{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}
.parts-container .box{
    flex: 1 1 17rem;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #f6f6f6;
    border-radius: 0.5rem;
}
.parts-container .box img{
    width: 100%;
    height: 150px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 1rem;
}
.parts-container .box h3{
    font-size: 1.1rem;
    font-weight: 600;
}
.parts-container .box span{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-color);
}
.parts-container .box .bx{
    color: var(--main-color);
    margin: 0.8rem 0;
}
.parts-container .box .btn{
    max-width: 120px;
}
.parts-container .box .details{
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 1.8rem;
    right: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}
.parts-container .box .details:hover{
    color: var(--main-color);
    text-decoration: underline;
}
.blog-container{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}
.blog-container .box{
    flex: 1 1 13rem;
    padding: 20px;
}
.blog-container .box:hover{
    background: #f6f6f6;
}
.blog-container .box span{
    font-size: 0.8rem;
    color: var(--main-color);
}
.blog-container h3{
    font-size: 1.2rem;
}
.blog-container .box p{
    font-size: 0.938rem;
    margin: 4px 0;
}
.blog-container .box .blog-btn{
    display: flex;
    align-items: center;
    column-gap: 4px;
    color: var(--text-color);
}
.blog-container .box .blog-btn .bx{
 font-size: 20px;
}
.blog-container .box .blog-btn:hover{
color: var(--main-color);
column-gap: 0.7rem;
transition: 0.4s;
}
.footer{
    background: var(--text-color);
    color: #f6f6f6;
    border-top: 2px solid var(--main-color);
}
.footer-container{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.footer-container .logo{
    color: var(--bg-color);
    margin-bottom: 1rem;
}
.footer-container .footer-box{
    display: flex;
    flex-direction: column;
}
.social{
    display: flex;
    align-items: center;
}
.social a{
    font-size: 24px;
    color: var(--bg-color);
    margin-right: 1rem;
}
.social a:hover{
    color: var(--main-color);
}
.footer-box h3{
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}
.footer-box a,
.footer-box p{
    color: #818181;
    margin-bottom: 10px;
}
.footer-box a:hover{
    color: var(--bg-color);
}
.copyright{
    padding: 20px;
    text-align: center;
    color: var(--bg-color);
    background: var(--text-color);
}

/* Responsive */
@media (max-width:1080px){
    .container{
        margin-left: 1rem;
        margin-right: 1rem;
    }
}
@media (max-width:991px){
.nav{
    padding: 15px 20px;
}
section{
    padding: 3rem 0 1rem;
}
.home-text{
    padding-left: 2rem;
}
.home-text h1{
    font-size: 2.1rem;
}
}
@media (max-width:920px){
    #search-icon{
        color: var(--text-color);
    }
}
@media (max-width:768px){
    .search-box input{
        padding: 15px;
    }
    .nav{
        padding: 1px 0;
    }
    #menu-icon{
        display: initial;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        row-gap: 0.5rem;
        text-align: center;
        box-shadow: 4px 4px 20px rgb(15 54 55 / 20%);
        clip-path: circle(0% at 0% 0%);
        transition: 0.6s;
    }
    .navbar a{
        display: block;
        padding: 15px;
    }
    .navbar a:hover,
    .navbar .active{
        border-bottom: none;
        background: var(--main-color);
        color: var(--bg-color);
    }
    .navbar.active{
        clip-path: circle(144% at 0% 0%);
    }
    .blog-container .box{
        padding: 4px;
    }
}
@media (max-width: 727px){
    .heading span{
        font-size: 0.9rem;
    }
    .heading h2{
        font-size: 1.4rem;
    }
    .about{
        flex-direction: column-reverse;
    }
    .about-text{
        align-items: center;
    }
    .about-text h2{
        font-size: 1.4rem;
    }
}
@media (max-width: 607px){
    .footer-container{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 360px){
    .search-box input{
        padding: 11px;
    }
    .home{
        min-height: 500px;
    }
    .home-text h1{
        font-size: 2rem;
    }
    .home-text p br{
        display: contents;
    }
}

