/* ==========================================
   1. GOOGLE FONTS & VARIABLE SETUP
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #059669;               /* Emerald Green */
    --primary-dark: #047857;
    --primary-light: #ecfdf5;
    --accent: #d97706;                /* Amber Gold */
    --accent-light: #fffbe2;
    --dark-bg: #0f172a;               /* Dark Slate Overlay */
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 15px 35px rgba(5, 150, 105, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================
   2. SCREEN WRAPPER & NAVBAR
   ========================================== */
.hero-screen-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    z-index: 1030;
    display: flex;
    align-items: center;
}

.brand-logo-nav {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    font-size: 1.1rem;
}

.text-green { color: var(--primary) !important; }
.text-gold { color: var(--accent) !important; }

/* ==========================================
   3. HERO SECTION & CAROUSEL
   ========================================== */
.hero-fullframe {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    overflow: hidden;
}

.fullframe-carousel,
.fullframe-carousel .carousel-inner,
.fullframe-carousel .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fullframe-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.90) 100%);
    padding-top: calc(var(--navbar-height) + 20px);
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-tag {
    background: rgba(5, 150, 105, 0.2);
    color: #a7f3d0;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    border: 1px solid rgba(5, 150, 105, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-top: 12px;
    margin-bottom: 12px;
}

.hero-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Track & Animasi Motor */
.motorbike-track {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 25px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.animated-bike {
    position: absolute;
    bottom: 2px;
    font-size: 1.5rem;
    color: var(--primary);
    animation: driveBike 9s linear infinite;
    filter: drop-shadow(0 2px 8px rgba(5, 150, 105, 0.6));
}

@keyframes driveBike {
    0% { left: -10%; transform: scaleX(1); }
    49% { transform: scaleX(1); }
    50% { left: 105%; transform: scaleX(-1); }
    99% { transform: scaleX(-1); }
    100% { left: -10%; transform: scaleX(1); }
}

/* ==========================================
   4. BUTTONS & CARDS
   ========================================== */
.btn-accent-green {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-accent-green:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.45);
}

.bright-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px 20px;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-soft);
}

.bright-card:hover {
    transform: translateY(-5px);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: var(--shadow-hover);
}

.icon-box-bright {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.icon-box-green { background: var(--primary-light); color: var(--primary-dark); }
.icon-box-gold { background: var(--accent-light); color: var(--accent); }
.icon-box-blue { background: #eff6ff; color: #2563eb; }

/* ==========================================
   5. SEARCH BOX
   ========================================== */
.hero-search-box {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-search-box .form-label {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    display: block;
}

.hero-search-box .input-group {
    display: flex;
    width: 100%;
}

.hero-search-box .form-control-lg {
    font-size: 0.9rem !important;
    padding: 10px 14px !important;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px 0 0 8px !important;
    border: none;
    flex: 1;
}

.hero-search-box .form-control-lg:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}

.hero-search-box .btn-success {
    font-size: 0.9rem;
    padding: 0 20px;
    height: 44px;
    border-radius: 0 8px 8px 0 !important;
    background-color: var(--primary);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.hero-search-box .btn-success:hover {
    background-color: var(--primary-dark);
}

/* ==========================================
   6. RESPONSIVE OPTIMIZATIONS (TABLET & HP)
   ========================================== */

/* Tablet & Mobile (Max-width: 991.98px) */
@media (max-width: 991.98px) {
    .hero-screen-wrapper,
    .hero-fullframe {
        height: auto;
        min-height: 100vh;
    }

    .hero-overlay {
        position: relative;
        height: auto;
        min-height: 100vh;
        padding-top: calc(var(--navbar-height) + 30px);
        padding-bottom: 40px;
        justify-content: flex-start;
    }

    .hero-title {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
    }

    .hero-search-box {
        max-width: 100% !important;
        margin-top: 15px;
    }
}

/* Mobile HP Small/Medium (Max-width: 576px) */
@media (max-width: 576px) {
    :root {
        --navbar-height: 58px;
    }

    .custom-navbar {
        padding: 8px 12px;
    }

    .brand-logo-nav {
        height: 32px;
    }

    .brand-text {
        font-size: 0.95rem;
    }

    .hero-overlay {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: calc(var(--navbar-height) + 20px);
        padding-bottom: 30px;
    }

    .badge-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .hero-title {
        font-size: 1.4rem !important;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 0.85rem !important;
        margin-bottom: 16px;
    }

    .motorbike-track {
        max-width: 100%;
        margin-bottom: 16px;
    }

    /* Penataan Ulang Input Search di Layar HP */
    .hero-search-box {
        padding: 12px;
    }

    .hero-search-box .input-group {
        flex-direction: column;
        gap: 8px;
    }

    .hero-search-box .form-control-lg {
        border-radius: 8px !important;
        width: 100%;
    }

    .hero-search-box .btn-success {
        border-radius: 8px !important;
        width: 100%;
    }

    .bright-card {
        padding: 18px 15px;
        margin-bottom: 12px;
    }
}
/* Custom Spacing & Adjustment untuk Mode Mobile (HP) */
@media (max-width: 576px) {
    /* 1. Jarak Badge "Official Registration Portal" */
    .badge-tag {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-top: 10px;
        margin-bottom: 14px !important; /* Jarak ke Judul Utama */
    }

    /* 2. Jarak Judul Utama */
    .hero-title {
        font-size: 1.45rem !important;
        line-height: 1.35;
        margin-bottom: 14px !important; /* Jarak ke Deskripsi */
    }

    /* 3. Jarak Deskripsi / Teks Selamat Datang */
    .hero-description {
        font-size: 0.85rem !important;
        line-height: 1.6;
        margin-bottom: 20px !important; /* Jarak ke Tombol Aksi */
    }

    /* 4. Jarak Group Tombol (Daftar & Scan) */
    .hero-overlay .d-flex.flex-wrap.gap-2 {
        margin-bottom: 24px !important; /* Memberikan ketegasan jarak sebelum ke Search */
    }

    /* 5. Pengaturan Box Pencarian (Search Box) agar Turun Lebih Ke Bawah */
    .hero-search-box {
        margin-top: 28px !important; /* Mendorong box search lebih ke bawah */
        padding: 16px 14px !important;
        background: rgba(15, 23, 42, 0.92) !important;
    }

    .hero-search-box .form-label {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    /* Penataan Form Search di Layar HP */
    .hero-search-box .input-group {
        flex-direction: column;
        gap: 10px; /* Jarak antara Input Text dan Tombol Cari */
    }

    .hero-search-box .form-control-lg {
        border-radius: 10px !important;
        width: 100%;
        height: 46px;
    }

    .hero-search-box .btn-success {
        border-radius: 10px !important;
        width: 100%;
        height: 44px;
    }
}


/* =========================================================
   STYLE TRACKING JADWAL KEGIATAN ALA MARKETPLACE
========================================================= */
.tracking-section {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
}

.tracking-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.tracking-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: #e2e8f0;
}

.tracking-item {
    position: relative;
    margin-bottom: 25px;
}

.tracking-item:last-child {
    margin-bottom: 0;
}

.tracking-icon {
    position: absolute;
    left: -30px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #cbd5e1;
    text-align: center;
    line-height: 14px;
}

.tracking-item.active .tracking-icon {
    background: #198754;
    box-shadow: 0 0 0 2px #198754;
}

.tracking-item.completed .tracking-icon {
    background: #0d6efd;
    box-shadow: 0 0 0 2px #0d6efd;
}

.tracking-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.tracking-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.tracking-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.tracking-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 3px 0;
}

.tracking-location {
    font-size: 0.85rem;
    color: #475569;
}