:root {
    --primary-blue: #0b5ed7;
    --primary-dark: #072a60;
    --accent-gold: #f59e0b;
    --bg-soft: #f4f7fb;
    --dark-analytics: #0b1120;
}

html, body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden; /* Mencegah bocor/terpotong di layar HP saat AOS animasi */
    width: 100%;
    scroll-behavior: smooth;
}

.fw-extrabold {
    font-weight: 800;
}

.text-primary-dark {
    color: var(--primary-dark);
}

.text-gold {
    color: #d97706;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
}

/* NAVBAR */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #334155;
    font-size: 0.93rem;
    padding: 8px 14px !important;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
    background: rgba(11, 94, 215, 0.06);
}

.btn-admin-nav {
    background: var(--primary-dark);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: 50px;
    transition: 0.25s;
}

.btn-admin-nav:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

/* HERO SLIDESHOW (SWIPER) */
.hero-section {
    margin-top: 68px;
    position: relative;
}

.heroSwiper {
    width: 100%;
    height: 520px;
}

.hero-slide-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 6s ease;
}

.swiper-slide-active .hero-slide-img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 25, 54, 0.88) 0%, rgba(7, 25, 54, 0.55) 55%, rgba(7, 25, 54, 0.15) 100%);
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: #111827;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
}

.hero-subtitle {
    color: #e2e8f0;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    max-width: 580px;
    margin-bottom: 24px;
}

.hero-nav-btn {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
    width: 46px !important;
    height: 46px !important;
    border-radius: 50%;
    backdrop-filter: blur(6px);
}

.hero-nav-btn::after {
    font-size: 1.1rem !important;
    font-weight: bold;
}

/* BAR TRAFFIC CEPAT */
.traffic-strip-wrapper {
    margin-top: -42px;
    position: relative;
    z-index: 20;
}

.traffic-strip {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 26px;
    border: 1px solid #e2e8f0;
}

.strip-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.bg-soft-blue { background: #e0f2fe; }
.bg-soft-green { background: #dcfce7; }
.bg-soft-amber { background: #fef3c7; }
.bg-gradient-gold { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* SECTIONS & SKEW BADGE (Sesuai Referensi) */
.section-py {
    padding: 75px 0;
}

.bg-soft-section {
    background-color: var(--bg-soft);
}

.skew-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0c6395, var(--primary-blue));
    color: #ffffff;
    font-weight: 800;
    font-style: italic;
    padding: 8px 26px;
    border-radius: 10px 4px 10px 4px;
    transform: skewX(-12deg);
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    box-shadow: 0 6px 15px rgba(12, 99, 149, 0.25);
}

.section-title {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* KARTU PRODUK MOBIL (Mirip Referensi namun Lebih Elegan & Hidup) */
.car-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(7, 42, 96, 0.1);
    border-color: #93c5fd;
}

.car-img-box {
    width: 100%;
    aspect-ratio: 4 / 3; /* Membuat dimensi kotak konsisten untuk semua kartu */
    display: block; /* Menghilangkan flex center agar tidak bentrok dengan cover */
    background: #f1f5f9;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    padding: 0; /* Hapus padding agar foto menempel ke ujung kotak */
}

.car-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memaksa foto memenuhi seluruh kotak tanpa gepeng */
    object-position: center 80%; /* Memastikan titik fokus selalu di tengah foto */
    transition: transform 0.4s ease;
}

.car-card:hover .car-img-box img {
    transform: scale(1.07);
}

.car-title {
    font-size: 1.18rem;
    font-weight: 800;
    text-align: center;
    color: #0f172a;
    margin-bottom: 14px;
}

.car-specs-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.spec-bar {
    background: #0c6395;
    color: #ffffff;
    padding: 9px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-bar:nth-child(2) {
    background: #0e7490;
}

.spec-bar:nth-child(3) {
    background: #0f766e;
}

.btn-buy-unit {
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
    transition: all 0.25s;
}

.btn-buy-unit:hover {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: #ffffff;
    transform: scale(1.01);
}

/* STEP CARDS & PAYMENT */
.step-card-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 22px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: 0.3s;
}

.step-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.step-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
}

.pay-method-card {
    background: var(--bg-soft);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* TESTIMONI */
.testi-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* ANALYTICS DARK SECTION */
.bg-dark-analytics {
    background: var(--dark-analytics);
}

.status-pill {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.analytics-kpi-card {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 22px;
    border-radius: 16px;
    height: 100%;
}

.analytics-kpi-card.accent-kpi {
    background: linear-gradient(135deg, #0c6395, #0284c7);
    border-color: #38bdf8;
}

.analytics-panel {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 24px;
    border-radius: 16px;
}

.improvement-ul {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.88rem;
    color: #e2e8f0;
    margin-bottom: 0;
}

/* POPUP PILIH 3 SALES */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
}

.sales-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.25s;
    background: #f8fafc;
    gap: 12px;
}

.sales-item-card:hover {
    border-color: #22c55e;
    background: #f0fdf4;
    transform: translateX(4px);
}

.sales-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #22c55e;
    flex-shrink: 0;
}

/* FLOATING CS */
.floating-cs-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1030;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s;
}

.floating-cs-btn:hover {
    transform: scale(1.06);
    background: #1da851;
}

.footer-section {
    background: #060913;
}

/* RESPONSIVE FIXES UNTUK TABLET & HP */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #e2e8f0;
    }
}

@media (max-width: 767.98px) {
    .heroSwiper {
        height: 400px;
    }
    .hero-nav-btn {
        display: none !important;
    }
    .traffic-strip-wrapper {
        margin-top: 15px;
    }
    .traffic-strip {
        padding: 16px;
    }
    .section-py {
        padding: 50px 0;
    }
    .sales-item-card {
        flex-direction: column;
        text-align: center;
    }
    .sales-item-card .btn {
        width: 100%;
    }
    .floating-cs-btn span {
        display: none;
    }
    .floating-cs-btn {
        padding: 14px;
        border-radius: 50%;
    }
}

/* =======================================================
   MAP CARD INTERACTIVE STYLING
   ======================================================= */
.map-card-interactive {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.map-card-interactive:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 94, 215, 0.15) !important;
}

.map-bg-image {
    height: 320px;
    background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    position: relative;
    border-bottom: 3px solid var(--accent-gold);
}

.map-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 42, 96, 0.5); /* Overlay gelap agar tombol mencolok */
    transition: background 0.3s ease;
}

.map-card-interactive:hover .map-bg-image::before {
    background: rgba(7, 42, 96, 0.3); /* Menerang saat di-hover */
}

.map-bg-image > * {
    position: relative;
    z-index: 2;
}

.map-pulse-marker {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ef4444; /* Merah khas Google Maps */
    font-size: 3.5rem;
    animation: pulseMarker 2s infinite;
}

/* Animasi Marker Berdetak (Hidup) */
@keyframes pulseMarker {
    0% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0.7)); }
    70% { transform: translate(-50%, -50%) scale(1.15); filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0)); }
    100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0)); }
}

@media (max-width: 767.98px) {
    .map-bg-image {
        height: 250px;
    }
}


/* =======================================================
   TIM PENGEMBANG (GRID CARD KECIL)
   ======================================================= */
.team-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    border-color: #22c55e;
    background: #f0fdf4;
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(34, 197, 94, 0.1);
}

.team-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-soft);
    color: var(--primary-blue);
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-icon {
    background: #22c55e;
    color: #ffffff;
}

.team-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
    line-height: 1.2;
    /* Pengaturan agar teks bisa turun jadi 2 baris jika kepanjangan */
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-nim {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
    font-weight: 500;
}

/* =======================================================
   SHOPEE STYLE GALLERY (PRODUCT DETAIL)
   ======================================================= */
.shopee-gallery .main-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    border-radius: 12px;
    overflow: hidden;
    padding: 0; /* Hilangkan padding */
}
.shopee-gallery .main-img-box:hover {
    border-color: var(--primary-blue);
}
.shopee-gallery .thumb-list::-webkit-scrollbar {
    height: 6px;
}
.shopee-gallery .thumb-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Mengatur titik fokus gambar di popup detail mobil */
#detailMainImage {
    object-position: center 80%;
}

.detail-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #fff;
    padding: 2px;
    transition: 0.2s;
    flex-shrink: 0;
}
.detail-thumb:hover, .detail-thumb.active {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}
