/* =========================================
   1. KONFIGURASI UTAMA & VARIABEL
   ========================================= */
:root {
    --primary-maroon: #a50000;
    --dark-maroon: #800000;
    --dark-bg: #1a1a1a;
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1eb956;
    --light-grey: #f8f9fa;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* =========================================
   2. NAVBAR (NAVIGASI)
   ========================================= */
.bg-ajt {
    background-color: var(--dark-bg) !important;
}

.brand-text {
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    background-color: var(--primary-maroon) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* =========================================
   3. HERO SECTION & SLIDER ANIMATION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh; /* Memenuhi layar */
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Wadah Utama Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%; /* 4 Gambar = 400% */
    height: 100%;
    display: flex;
    z-index: -1;
    /* Durasi disesuaikan: 20 detik agar tiap gambar tampil sekitar 5 detik */
    animation: slideHero 20s infinite; 
}

/* Pengaturan Tiap Slide */
.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay Gelap agar Teks Terbaca Jelas */
.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

/* DAFTAR GAMBAR (Ganti URL dengan gambar assets Anda) */
.slide-1 { 
    background-image: url('assets/Slide1.jpg'); 
} /* Gambar Mobil */

.slide-2 { 
    background-image: url('assets/Slide2.jpg'); 
} /* Gambar Motor */

.slide-3 { 
    background-image: url('assets/Slide3.jpg') 
} /* Gambar Wisata (Banyuwangi/Ijen) */
.slide-4 { 
    background-image: url('assets/Slide4.JPG') 
} /* Gambar Wisata (Banyuwangi/Ijen) */
/* Animasi Geser */
@keyframes slideHero {
   0%, 20% { transform: translateX(0); }            /* Slide 1 aktif */
    25%, 45% { transform: translateX(-25%); }       /* Geser ke Slide 2 */
    50%, 70% { transform: translateX(-50%); }       /* Geser ke Slide 3 */
    75%, 95% { transform: translateX(-75%); }       /* Geser ke Slide 4 */
    100% { transform: translateX(0); }               /* Kembali ke Slide 1 */
}

/* Konten di atas slider */
.hero-content {
    position: relative;
    z-index: 2;
}
/* =========================================
   4. ARMADA CARDS (MOBIL & MOTOR)
   ========================================= */
   .booking-card {
    /* Mengubah dari rgba(255,255,255, 0.98) menjadi putih solid */
    background: #ffffff !important; 
    padding: 35px;
    border-radius: 15px;
    /* Shadow dipertebal agar kartu terlihat "melayang" di atas slider */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); 
    position: relative;
    z-index: 5;
    color: #333;
}

/* Memastikan label input tetap berwarna gelap agar kontras dengan kartu putih */
.booking-card .form-label {
    color: #333 !important;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: #fff;
}
.section-padding {
    padding: 80px 0;
}

.car-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.car-card img {
    width: 100%;
    height: 210px;       /* Tinggi sedikit ditambah agar lebih lega */
    object-fit: contain;  /* SOLUSI: Menampilkan seluruh body tanpa terpotong */
    padding: 15px;       /* Memberi jarak aman agar body tidak mepet ke tepi */
    background-color: #ffffff; 
    transition: transform 0.3s ease;
}

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-maroon);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.price-info p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

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

.price-tag {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-maroon);
}

.border-maroon {
    border-color: var(--primary-maroon) !important;
}
/* E. Tour Card (Paket Wisata) */
.tour-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.tour-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tour-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Untuk wisata, gambar harus memenuhi kotak */
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-img-container img {
    transform: scale(1.1); /* Efek zoom saat di-hover */
}

.tour-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--primary-maroon);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.tour-features .badge {
    font-weight: 500;
    font-size: 11px;
    padding: 6px 10px;
}
/* =========================================
   5. TOMBOL (BUTTONS)
   ========================================= */
.btn-maroon {
    background-color: var(--primary-maroon);
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-maroon:hover {
    background-color: var(--dark-maroon);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 0, 0, 0.3);
}

.btn-outline-maroon {
    border: 2px solid var(--primary-maroon);
    color: var(--primary-maroon);
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-maroon:hover {
    background-color: var(--primary-maroon);
    color: white;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* =========================================
   6. FITUR BERANDA (WHY CHOOSE US & PLACEHOLDER)
   ========================================= */
.bg-maroon {
    background-color: var(--primary-maroon) !important;
}

.border-dashed {
    border: 2px dashed #ddd !important;
}

.text-light-maroon {
    color: #ffcccc;
}

/* Responsive adjustments for cards on Home */
@media (max-width: 768px) {
    .car-card img {
        height: 150px;
    }
}
/* =========================================
   STYLE TRUST-STAT CARDS (PURE CSS)
   ========================================= */

/* Wadah Kartu Utama */
.trust-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 4px solid #eee !important; /* Border bawah tipis default */
    position: relative;
    z-index: 1;
}

/* Icon Box */
.trust-icon {
    width: 65px;
    height: 65px;
    background: rgba(165, 0, 0, 0.05); /* Maroon pucat */
    color: var(--primary-maroon);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

/* Badge untuk penekanan (VVIP/Resmi) */
.trust-badge {
    display: inline-block;
    background: var(--primary-maroon);
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
}

/* Animasi Muncul Bergantian */
.trust-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpTrust 0.8s forwards ease-out;
}

.trust-item:nth-child(1) { animation-delay: 0.1s; }
.trust-item:nth-child(2) { animation-delay: 0.2s; }
.trust-item:nth-child(3) { animation-delay: 0.3s; }
.trust-item:nth-child(4) { animation-delay: 0.4s; }
.trust-item:nth-child(5) { animation-delay: 0.5s; }
.trust-item:nth-child(6) { animation-delay: 0.6s; }

/* HOVER EFFECT */
.trust-card:hover {
    transform: translateY(-12px);
    background: #ffffff;
    border-bottom: 4px solid var(--primary-maroon) !important; /* Border bawah menebal maroon */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.trust-card:hover .trust-icon {
    background: var(--primary-maroon);
    color: #ffffff;
    transform: rotateY(180deg); /* Efek putar ikon */
}

.trust-card:hover h3 {
    transform: scale(1.1);
    transition: 0.3s;
}

/* Keyframes */
@keyframes fadeInUpTrust {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Style Khusus Ikon di Dalam Seksi Wisata */
.trust-icon-wrap {
    width: 70px;
    height: 70px;
    background: rgba(165, 0, 0, 0.05); /* Maroon transparan */
    color: var(--primary-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.feature-card-anim:hover .trust-icon-wrap {
    background: var(--primary-maroon);
    color: #ffffff;
    transform: rotateY(180deg);
}

/* Animasi Muncul Bergantian (Reuse dari yang sudah ada) */
.feature-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpTrust 0.8s forwards ease-out;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }
/* =========================================
   7. ABOUT & SERVICES HIGHLIGHT (BARU)
   ========================================= */
.service-mini-card {
    transition: all 0.3s ease;
    background-color: #ffffff;
    border: 1px solid #eee !important;
}

.service-mini-card:hover {
    background-color: var(--primary-maroon);
    border-color: var(--primary-maroon) !important;
    transform: translateY(-5px);
    cursor: pointer;
}

/* Mengubah warna teks dan icon saat card di-hover */
.service-mini-card:hover h6, 
.service-mini-card:hover small, 
.service-mini-card:hover i {
    color: #ffffff !important;
}

/* Border tebal untuk quote/prinsip */
.border-maroon-thick {
    border-left: 5px solid var(--primary-maroon) !important;
}

/* =========================================
   8. FOOTER STYLING
   ========================================= */
.footer-section {
    font-size: 0.9rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-maroon);
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--primary-maroon);
    color: white;
    transform: translateY(-5px);
}

.footer-contact i {
    width: 25px;
    color: var(--primary-maroon);
}
/* =========================================
   9. WHATSAPP FLOATING BUTTON (BAWAH KANAN)
   ========================================= */
.wa-floating {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px; /* Diubah dari left ke right */
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Teks label yang muncul di sebelah kiri tombol saat di-hover */
.wa-floating span {
    position: absolute;
    right: 70px; /* Muncul di sebelah kiri tombol */
    background-color: #333;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.wa-floating:hover {
    background-color: var(--whatsapp-hover);
    color: #FFF;
    transform: scale(1.1);
}

.wa-floating:hover span {
    opacity: 1;
    visibility: visible;
}

/* Penyesuaian untuk layar HP */
@media (max-width: 768px) {
    .wa-floating {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        right: 15px; /* Tetap di kanan saat di HP */
    }
    .wa-floating span {
        display: none;
    }
}
/* =========================================
   10. RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================= */

/* A. Tablet & Layar Kecil (Max 991px) */
@media (max-width: 991px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px; /* Memberi ruang untuk navbar */
    }

    .hero-content {
        text-align: center; /* Teks hero ke tengah di layar kecil */
    }

    .hero-content .d-flex {
        justify-content: center; /* Tombol ke tengah */
    }

    .booking-card {
        margin-top: 40px; /* Jarak antara teks hero dan form booking */
    }
}

/* B. Smartphone (Max 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0; /* Padding section lebih kecil di HP */
    }

    .section-padding {
        padding: var(--section-padding);
    }

    /* Penyesuaian Tipografi */
    h1.display-3 {
        font-size: 2.5rem !important; /* Judul utama tidak terlalu besar di HP */
    }

    h2.display-5 {
        font-size: 2rem !important;
    }

    /* Penyesuaian Kartu */
    .car-card img {
        height: 160px; /* Gambar armada lebih kecil di HP agar tidak memenuhi layar */
    }

    .tour-img-container {
        height: 180px; /* Gambar wisata lebih kecil */
    }

    /* Trust-Stat Cards */
    .trust-card {
        padding: 20px !important;
    }

    .trust-card h3.display-6 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-section {
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* C. Smartphone Kecil (Max 576px) */
@media (max-width: 576px) {
    .brand-text {
        font-size: 0.9rem; /* Nama brand di navbar tidak wrap/patah */
    }

    .btn-lg {
        width: 100%; /* Tombol hero memenuhi lebar layar di HP kecil */
        margin-bottom: 10px;
    }

    .hero-content .d-flex {
        flex-direction: column; /* Tombol jadi atas-bawah */
    }
}