/* GLOBAL RESET & OPTIMIZATION */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; scroll-behavior: smooth; }
body { background: #0a0a0a; color: white; overflow-x: hidden; width: 100%; -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; width: 100%; }

/* HEADER RESPONSIVE */
header { 
    background: rgba(0,0,0,0.95); 
    padding: 10px 0; /* Dikurangi sedikit agar lebih ringkas */
    position: fixed; 
    width: 100%; 
    z-index: 1000; 
    border-bottom: 2px solid #d32f2f; 
}
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 5%; 
    width: 100%;
}
.logo { 
    font-size: clamp(0.9rem, 4vw, 1.2rem); /* Mengecil otomatis di HP */
    font-weight: 800; 
    letter-spacing: 1px; 
    white-space: nowrap;
}
.logo span { color: #d32f2f; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: clamp(10px, 3vw, 25px); }
.nav-links a { color: white; text-decoration: none; font-size: clamp(11px, 2vw, 13px); font-weight: bold; text-transform: uppercase; transition: 0.3s; }

/* HERO RESPONSIVE */
.hero { height: 100vh; height: 100svh; background: url('hero.jpg') no-repeat center center/cover; display: flex; align-items: center; justify-content: center; position: relative; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.65); }
.hero-content { position: relative; z-index: 2; padding: 0 5%; width: 100%; }
.hero-content h1 { 
    font-size: clamp(1.8rem, 8vw, 4.5rem); /* Lebih fleksibel di berbagai layar */
    font-weight: 900; 
    margin-bottom: 15px; 
    line-height: 1.1; 
    text-transform: uppercase; 
}
.hero-content p { 
    font-size: clamp(0.9rem, 3vw, 1.2rem); 
    color: #eee; 
    margin-bottom: 30px; 
}

/* BUTTONS GLOBAL RESPONSIVE */
.btn-primary, .btn-card, .btn-consult, .form-submit { 
    background: #d32f2f; 
    color: white; 
    padding: clamp(12px, 2vw, 16px) 30px; 
    border-radius: 5px; 
    font-weight: 800; 
    text-decoration: none; 
    border: none; 
    cursor: pointer; 
    transition: 0.3s; 
    display: inline-block; 
    text-transform: uppercase; 
    font-size: clamp(13px, 1.5vw, 14px); 
    text-align: center;
}

/* SECTIONS COMMON */
.cars-section, .spk-section, .test-drive-section { padding: clamp(60px, 10vh, 100px) 0; }
.section-title { text-align: center; color: white; margin-bottom: 10px; font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; }
.section-sub { text-align: center; color: #888; margin-bottom: 40px; font-size: clamp(14px, 2vw, 16px); padding: 0 5%; }

/* SWIPER CARDS RESPONSIVE */
.swiper { width: 100%; padding: 20px 0 60px 0; }
.car-card { background: #1a1a1a; border-radius: 15px; border: 1px solid #333; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: 0.4s; }
.car-img-box { width: 100%; height: clamp(180px, 25vh, 220px); background: #000; display: flex; align-items: center; justify-content: center; padding: 15px; }
.car-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.car-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.car-info h3 { color: #d32f2f; margin-bottom: 10px; font-size: 20px; text-align: center; font-weight: 800; }
.car-info p { font-size: 14px; color: #bbb; text-align: center; margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }
.btn-card { width: 100%; background: transparent; border: 2px solid #d32f2f; }

/* SPK GALLERY RESPONSIVE */
.spk-item { 
    background: #161616; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #333; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
}
.spk-img { 
    width: 100%; 
    aspect-ratio: 4 / 3; 
    background: #222; 
    overflow: hidden; 
}
.spk-img img { width: 100%; height: 100%; object-fit: cover; }
.spk-desc { 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}
.spk-desc h4 { 
    color: #d32f2f; 
    font-size: 16px; 
    margin-bottom: 5px; 
    min-height: 40px; 
}
.spk-desc p { color: #bbb; font-size: 13px; }

.spkSwiper .swiper-slide {
    height: auto !important;
    display: flex;
}

/* MODAL RESPONSIVE */
.modal { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(8px); overflow-y: auto; }
.modal-content { background: #121212; margin: 20px auto; width: 95%; max-width: 850px; border-radius: 15px; border: 1px solid #333; position: relative; }
.close { position: absolute; right: 15px; top: 5px; font-size: 40px; color: #fff; cursor: pointer; z-index: 100; }
.modal-grid { display: grid; grid-template-columns: 1.2fr 1fr; }
.modal-left { background: #1a1a1a; padding: 20px; display: flex; align-items: center; }
.modal-left img { width: 100%; object-fit: contain; }
.modal-right { padding: 30px; }
.modal-right h2 { color: #d32f2f; font-size: clamp(24px, 5vw, 32px); font-weight: 800; margin-bottom: 10px; }
.modal-subtext { color: #ccc; font-size: 14px; margin-bottom: 20px; }
.feature-list { list-style: none; margin-bottom: 20px; }
.feature-list li { color: #eee; font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; }
.feature-list li::before { content: '\f058'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #d32f2f; margin-right: 10px; }
.modal-price { color: #d32f2f; font-size: clamp(20px, 4vw, 26px); font-weight: 800; margin-bottom: 20px; padding-top: 15px; border-top: 1px solid #333; }
.btn-consult { background: #d32f2f; border-radius: 10px; width: 100%; }

/* FORM RESPONSIVE */
.test-drive-form { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 0 5%; }
.test-drive-form input, .test-drive-form select { padding: 14px; background: #111; border: 1px solid #333; color: white; border-radius: 8px; font-size: 14px; width: 100%; }
.form-submit { grid-column: span 3; width: 100%; }

/* FOOTER */
footer { padding: 40px 0; background: #080808; text-align: center; border-top: 1px solid #222; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-icons a { color: white; font-size: 24px; transition: 0.3s; }
.copyright { font-size: 12px; color: #666; }

/* SWIPER PAGINATION */
.swiper-pagination-bullet { background: white !important; opacity: 0.5; }
.swiper-pagination-bullet-active { background: #d32f2f !important; opacity: 1; }

/* MEDIA QUERIES FOR MOBILE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .test-drive-form { grid-template-columns: 1fr; }
    .form-submit { grid-column: span 1; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-left { height: 200px; }
    .modal-right { padding: 20px; }
    .hero { background-attachment: scroll; }
    
    /* Tombol di Mobile dipaksa lebar penuh agar gampang diklik */
    .btn-primary, .btn-card, .btn-consult, .form-submit {
        width: 100%;
        min-height: 48px; 
        display: flex;
        align-items: center;
        justify-content: center;
    }
}