/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #0ea5e9;
    --accent-color: #38bdf8;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.65); 
    --text-main: #0f172a;
    --text-secondary: #475569;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.8s;
}

body.dark-mode {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.6); 
    --text-main: #f1f5f9;
    --text-secondary: #94a3b8;
    --nav-bg: rgba(15, 23, 42, 0.85);
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; transition: all 0.3s ease; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-main); overflow-x: hidden; }

/* =========================================
   2. NAVBAR
   ========================================= */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--nav-bg); backdrop-filter: blur(15px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 4%; box-shadow: var(--shadow); border-bottom: 1px solid rgba(128,128,128, 0.1);
}

.logo { 
    font-size: 1.3rem; font-weight: 800; color: var(--primary-color); 
    display: flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 1.2rem; list-style: none; }
.nav-links li { 
    cursor: pointer; position: relative; font-weight: 700; font-size: 0.75rem; 
    text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 0; opacity: 1; transition: opacity 0.3s;
}
.nav-links li:hover, .nav-links li.active { opacity: 2; color: var(--primary-color); }
.nav-links li::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background-color: var(--primary-color); transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-links li.active::after { width: 100%; }

.nav-links li a {
    text-decoration: none;
    color: inherit;       /* Mengambil warna dari <li> */
    display: inline-block; /* Supaya padding li tetap terasa */
    width: 100%;
    height: 100%;
}

.controls { display: flex; gap: 10px; align-items: center; }
.btn-icon, #themeToggle { 
    background: rgba(128,128,128,0.1); border: 1px solid rgba(128,128,128,0.2); 
    color: var(--text-main); width: 35px; height: 35px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; font-size: 0.9rem; transition: 0.3s;
}
.btn-icon:hover, #themeToggle:hover { 
    background: var(--primary-color); color: white; border-color: var(--primary-color); transform: rotate(15deg); 
}
.btn-icon-lang, #themeToggle { 
    background: rgba(128,128,128,0.1); border: 1px solid rgba(128,128,128,0.2); 
    color: var(--text-main); width: 35px; height: 35px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; font-size: 0.9rem; transition: 0.3s;
}
.btn-icon-lang:hover, #themeToggle:hover { 
    background: var(--primary-color); color: white; border-color: var(--primary-color); 
}

/* =========================================
   3. LAYOUT & SECTIONS
   ========================================= */
.slider-viewport { width: 100vw; height: 100vh; overflow: hidden; position: relative; }
.slider-track { display: flex; width: 800vw; height: 100%; transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.page-section {
    position: relative; width: 100vw; height: 100%; overflow-y: auto; overflow-x: hidden;
    padding: 130px 0 80px; display: flex; flex-direction: column; align-items: center; z-index: 1; 
}

/* Home Section */
#home { background: url('https://images.unsplash.com/photo-1579165466741-7f35a4755657?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover; }
#home::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 100%); z-index: -1;
}
#home h1 { 
    font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); background: none; -webkit-text-fill-color: initial;
}
#home p { font-size: 1.25rem; font-weight: 300; max-width: 800px; margin: 0 auto 2.5rem; }

.btn-cta {
    background: var(--primary-color); color: white; padding: 16px 45px; border: none; 
    border-radius: 50px; font-weight: 700; cursor: pointer; text-decoration: none; 
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4); transition: transform 0.2s; font-size: 1rem;
}
.btn-cta:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.6); }
.btn-outline { 
    background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); margin-left: 15px; box-shadow: none;
}
.btn-outline:hover { background: white; color: var(--primary-color); border-color: white; }

/* =========================================
   4. COMPONENTS (GRID, CARDS, TRACKING)
   ========================================= */
.grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 90%; max-width: 1600px; margin: 0 auto; padding: 10px; }
.process-container {
    display: flex;
    justify-content: center; /* KUNCI UTAMA: Biar item di dalamnya ke tengah */
    align-items: flex-start; /* Biar rata atas (opsional, tapi rapi) */
    flex-wrap: wrap;         /* Biar kalau kartunya banyak, dia turun ke bawah */
    gap: 2.5rem;
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;          /* Ini cuma nengahin container-nya, bukan isinya */
}

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 90%; max-width: 1600px; margin: 0 auto; }

/* Card Styling */
.card, .process-card {
    background: var(--card-bg); 
    padding: 2.5rem; 
    border-radius: 25px; 
    box-shadow: var(--shadow); 
    text-align: left; 
    position: relative; 
    overflow: hidden; 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: transform 0.4s; 
    height: 100%; 
    display: flex; 
    flex-direction: column;
    flex: 1 1 400px; /* Grow 1, Shrink 1, Basis 400px */
    max-width: 500px; /* Batas maksimal biar gak kelebaran kalau cuma 1 card */
}
.card:hover, .process-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary-color); opacity: 0; transition: 0.3s;
}
.card:hover::before { opacity: 1; }
.card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.card h3 { margin-bottom: 1rem; font-size: 1.4rem; font-weight: 700; }
.card p, .process-card ol { flex-grow: 1; font-size: 1rem; line-height: 1.6; opacity: 0.9; }

/* Tracking */
.tracking-box {
    display: flex; gap: 15px; margin-bottom: 2rem; width: 90%; max-width: 700px; 
    background: var(--card-bg); padding: 10px; border-radius: 60px; border: 1px solid rgba(128,128,128,0.2); backdrop-filter: blur(10px); margin: 0 auto 2rem;
}
.tracking-box input { flex: 1; padding: 15px 30px; border: none; background: transparent; color: var(--text-main); font-size: 1.1rem; outline: none; }
.tracking-box button {
    padding: 12px 40px; border-radius: 40px; border: none; background: var(--primary-color); color: white; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 1rem;
}
.track-result {
    background: var(--card-bg); padding: 3rem; border-radius: 25px; width: 90%; max-width: 700px; margin: 0 auto;
    text-align: center; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(20px); box-shadow: var(--shadow);
}
.status-icon { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 1rem; }

/* Process & Scope */
.scope-list li { padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(128,128,128,0.1); position: relative; font-size: 1rem; }
.scope-list li::before { content: '✓'; color: var(--primary-color); font-weight: 900; position: absolute; left: 0; top: 12px; }
.process-card.lspro { border-top: 6px solid var(--primary-color); }
.process-card.mandiri { border-top: 6px solid #10b981; }
.process-card ol { padding-left: 20px; margin-top: 20px; line-height: 1.8; font-size: 1rem; }
.badge-process {
    position: absolute; top: 20px; right: 20px; background: rgba(14, 165, 233, 0.1); color: var(--primary-color); padding: 8px 18px; border-radius: 30px; font-size: 0.85rem; font-weight: 800;
}

/* Gallery & Animations */
.gallery-item { border-radius: 20px; overflow: hidden; height: 300px; position: relative; cursor: pointer; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.15); }

.section-title { 
    font-size: 3rem; margin-bottom: 3rem; font-weight: 800; display: inline-block; text-align: center;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content { 
    text-align: center; 
    width: 100%; 
    max-width: 100%; 
    padding: 0 20px;
    /* LOGIKA TENGAH VERTIKAL (MAGIC TRICK) */
    margin-top: auto;    /* Dorong dari atas */
    margin-bottom: auto; /* Dorong dari bawah */
    
    /* Pastikan isinya juga rapi di tengah horizontal */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.page-section .hero-content, .page-section .grid-container, .page-section .process-container { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.page-section.active-anim .hero-content, .page-section.active-anim .grid-container, .page-section.active-anim .process-container { opacity: 1; transform: translateY(0); }

.lab-watermark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; opacity: 0.09; width: 100%; max-width: 1000px; pointer-events: none; animation: labFloat 8s ease-in-out infinite;
}
.lab-watermark img { width: 100%; display: block; }
@keyframes labFloat { 0%,100%{transform:translate(-50%,-50%) translateY(0) scale(1);} 50%{transform:translate(-50%,-50%) translateY(-30px) scale(1.05);} }

.floating-wa {
    position: fixed; bottom: 80px; right: 25px; width: 65px; height: 65px; background: #25D366; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2.2rem; text-decoration: none; z-index: 1001; animation: pulseWa 2s infinite;
}
@keyframes pulseWa { 0%{box-shadow:0 0 0 0 rgba(37,211,102,0.7);} 70%{box-shadow:0 0 0 15px rgba(37,211,102,0);} }
footer { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    background: var(--nav-bg); 
    backdrop-filter: blur(15px); 
    padding: 5px 0; 
    text-align: center; 
    font-size: 0.85rem; border-top: 1px solid rgba(128,128,128,0.1); }

/* =========================================
   5. CONTACT & MAP (DESKTOP DEFAULT)
   ========================================= */
.contact-wrapper { display: flex; gap: 2rem; width: 90%; max-width: 1600px; margin: 0 auto; }
.form-card { flex: 1.5; }
.contact-sidebar { flex: 1; display: flex; flex-direction: column; }

/* Contact Sidebar Styling */
.contact-sidebar ul li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.95rem; line-height: 1.6; word-break: break-word; }
.contact-sidebar ul li i { margin-top: 4px; flex-shrink: 0; }
.wa-link, .email-link { text-decoration: none; color: var(--text-main); transition: 0.3s; font-weight: 500; }
.wa-link:hover { color: #25D366; text-decoration: underline; }
.email-link:hover { color: var(--primary-color); text-decoration: underline; }
body.dark-mode .wa-link, body.dark-mode .email-link { color: var(--text-main); }
body.dark-mode .wa-link:hover { color: #25D366; }
body.dark-mode .email-link:hover { color: var(--primary-color); }

/* Form Styles */
.adc-form .form-group { margin-bottom: 15px; }
.adc-form input, .adc-form textarea {
    width: 100%; padding: 15px 20px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05); color: var(--text-main); font-family: 'Inter', sans-serif; font-size: 1rem; outline: none; transition: 0.3s;
}
.adc-form input:focus, .adc-form textarea:focus { background: rgba(255,255,255,0.15); border-color: var(--primary-color); box-shadow: 0 0 15px rgba(14, 165, 233, 0.3); }
.btn-submit {
    width: 100%; padding: 15px; background: var(--primary-color); color: white; font-weight: 800; border: none;
    border-radius: 50px; cursor: pointer; transition: 0.3s; font-size: 1rem; box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(14, 165, 233, 0.5); background: white; color: var(--primary-color); }

/* Map Styles (Desktop) */
.map-wrapper { position: relative; width: 90%; max-width: 1600px; margin: 0 auto; }
.map-container { 
    width: 100%; max-width: 1600px; margin: 0 auto; border-radius: 25px; overflow: hidden; 
    box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.1); background: var(--card-bg); padding: 10px; backdrop-filter: blur(20px);
}
.map-container iframe { display: block; border-radius: 20px; width: 100%; }
.map-container:hover { transform: translateY(-5px); border-color: var(--primary-color); transition: 0.3s; }
.btn-maps-direct {
    display: inline-block; margin-top: -25px; background: var(--primary-color); color: white; padding: 12px 30px; border-radius: 50px;
    text-decoration: none; font-weight: 700; box-shadow: 0 10px 20px rgba(0,0,0,0.3); position: relative; z-index: 10; transition: transform 0.3s, box-shadow 0.3s; border: 2px solid white;
}
.btn-maps-direct:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(14, 165, 233, 0.5); background: white; color: var(--primary-color); border-color: var(--primary-color); }

/* =========================================
   6. SECURITY & LIGHTBOX
   ========================================= */
body { -webkit-user-select: none; user-select: none; }
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }

.lightbox-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(5px);
}
.lightbox-overlay.active { display: flex; animation: fadeIn 0.3s; }
#lightbox-img { max-width: 90%; max-height: 85vh; border-radius: 10px; box-shadow: 0 0 50px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.1); }
.lightbox-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); border: none; color: white; font-size: 2rem;
    width: 60px; height: 60px; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center;
}
.lightbox-btn:hover { background: var(--primary-color); transform: translateY(-50%) scale(1.1); }
.lightbox-btn.prev { left: 30px; } .lightbox-btn.next { right: 30px; }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: rgba(255, 255, 255, 0.7); font-size: 2.5rem; cursor: pointer; transition: 0.3s; }
.lightbox-close:hover { color: var(--primary-color); transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) {
    .lightbox-btn { width: 40px; height: 40px; font-size: 1.2rem; } .lightbox-btn.prev { left: 10px; } .lightbox-btn.next { right: 10px; } .lightbox-close { top: 20px; right: 20px; font-size: 2rem; }
}

/* =========================================
   7. MOBILE RESPONSIVE (THE REAL FIX)
   ========================================= */
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 1024px) {
    /* 1. Reset Global HP */
    .page-section { 
        padding: 100px 0 60px !important; 
        justify-content: flex-start !important;
        overflow-x: hidden !important; /* KUNCI: Biar gak bisa goyang kanan kiri */
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 20px; /* Padding aman kiri-kanan */
        box-sizing: border-box;
        
        /* LOGIKA TENGAH VERTIKAL (MAGIC TRICK) */
        margin-top: auto;    /* Dorong dari atas */
        margin-bottom: auto; /* Dorong dari bawah */
        
        /* Pastikan isinya juga rapi di tengah horizontal */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 2. Fix Horizontal Swipe (Layanan & Galeri) */
    .grid-container, .process-container, .gallery-grid {
        display: flex !important;
        overflow-x: auto !important;
        width: 100vw !important;
        padding: 10px 20px 40px !important;
        margin-left: 0 !important;
        -webkit-overflow-scrolling: touch;
    }
    .card, .process-card, .gallery-item {
        min-width: 280px !important;
        max-width: 280px !important;
        margin-right: 15px !important;
    }

    /* 3. FIX TRACKING BOX (TUMPUK RAPI) */
    .tracking-box {
        flex-direction: column !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        gap: 10px !important;
    }
    .tracking-box input {
        width: 100% !important;
        background: var(--card-bg) !important;
        border-radius: 15px !important;
        padding: 15px !important;
    }
    .tracking-box button { width: 100% !important; border-radius: 50px !important; }

    /* 4. FIX COMPLAINTS (DIAGRAM TUMPUK) */
    /* Pastikan container complaints pake column biar gak ganggu flex lain */
.complaints-section-custom .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.complaint-flow-container {
    display: flex;
    flex-direction: row; /* Desktop: Berjejer */
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    width: 95%;
    max-width: 1600px;
    margin: 2rem auto;
    padding: 20px 0;
}

/* --- ANIMASI STEP (STAY ISOLATED) --- */
.complaints-section-custom .flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    /* State Awal Animasi */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Trigger Animasi saat Section Aktif */
.active-anim.complaints-section-custom .flow-step {
    opacity: 1;
    transform: translateY(0);
}

/* Delay Animasi Berurutan */
.active-anim.complaints-section-custom .flow-step:nth-child(1) { transition-delay: 0.2s; }
.active-anim.complaints-section-custom .flow-step:nth-child(2) { transition-delay: 0.4s; }
.active-anim.complaints-section-custom .flow-step:nth-child(3) { transition-delay: 0.6s; }
.active-anim.complaints-section-custom .flow-step:nth-child(4) { transition-delay: 0.8s; }
.active-anim.complaints-section-custom .flow-step:nth-child(5) { transition-delay: 1.0s; }

/* --- RESPONSIVE COMPLAINTS (HP) --- */
@media (max-width: 1024px) {
    .complaints-section-custom .complaint-flow-container {
        flex-direction: column !important; /* HP: Tumpuk ke bawah */
        align-items: center;
        gap: 3rem;
        width: 100%;
    }

    .complaints-section-custom .flow-step {
        width: 100%;
        max-width: 400px;
        opacity: 1; /* Di HP langsung muncul aja biar gak berat */
        transform: none;
    }

    /* Sembunyikan panah di HP biar gak semrawut */
    .complaints-section-custom .flow-arrow {
        display: none;
    }
}

    /* 5. FIX CONTACT & MAP (SAMA LEBAR) */
    .contact-section-custom .contact-wrapper {
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
        padding: 0 !important;
    }
    .contact-section-custom .card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .map-wrapper {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 20px !important;
    }
    .map-container, .map-container iframe {
        width: 100% !important;
        height: 250px !important;
        border-radius: 15px !important;
    }

    /* 6. Typography HP */
    h1 { font-size: 2rem !important; }
    .section-title { font-size: 1.8rem !important; }
    
    /* Navbar */
    .nav-links {
        display: none; 
        flex-direction: column; 
        position: absolute;
        top: 75px; /* Jarak dari nav atas */
        right: 20px; 
        
        /* GUNAKAN WARNA SOLID / LEBIH PEKAT */
        background: var(--bg-color) !important; /* Pakai warna dasar body agar tidak tembus */
        opacity: 1 !important;
        
        width: 240px; 
        padding: 1.5rem; 
        border-radius: 20px;
        
        /* TAMBAHKAN BORDER & SHADOW LEBIH TEGAS */
        border: 2px solid var(--primary-color) !important; 
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        
        z-index: 1002; /* Pastikan di atas segalanya */
    }

    /* Pastikan teks di dalam menu terlihat jelas */
    .nav-links li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(128, 128, 128, 0.1);
        width: 100%;
        font-size: 1rem !important;
        opacity: 1 !important; /* Hilangkan transparansi teks */
        color: var(--text-main) !important;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
}

/* Link Styling */
.wa-link, .email-link { text-decoration: none; color: var(--text-main); font-weight: 500; }

/* =========================================
   8. CONTACT SECTION CUSTOM (TERISOLASI)
   ========================================= */
.contact-section-custom .contact-wrapper {
    display: flex; gap: 2rem; width: 90%; max-width: 1400px; margin: 0 auto;
}
.contact-section-custom .card { flex: 1; min-width: 0 !important; max-width: none !important; }
.contact-section-custom .form-card { flex: 1.5; }

.wa-list { list-style: none; padding: 0; }
.wa-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.wa-list i { color: #25D366; font-size: 1.2rem; width: 20px; }

/* =========================================
   9. MOBILE RESPONSIVE (AUDITED)
   ========================================= */
@media (max-width: 1024px) {
    /* Global Section Fix */
    .page-section { padding: 110px 0 80px; justify-content: flex-start !important; }
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 20px; /* Padding aman kiri-kanan */
        box-sizing: border-box;
        
        /* LOGIKA TENGAH VERTIKAL (MAGIC TRICK) */
        margin-top: auto;    /* Dorong dari atas */
        margin-bottom: auto; /* Dorong dari bawah */
        
        /* Pastikan isinya juga rapi di tengah horizontal */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Complaints Mobile */
    .complaint-flow-container { flex-direction: column; align-items: center; gap: 2.5rem; }
    .flow-arrow { transform: rotate(90deg); top: auto; bottom: -2rem; right: auto; left: 50%; margin-left: -10px; }
    .flow-step { opacity: 1; transform: none; width: 100%; }

    /* Contact Mobile (Anti-Overflow) */
    .contact-section-custom .contact-wrapper { flex-direction: column; width: 100% !important; padding: 0 !important; }
    .contact-section-custom .card { width: 100% !important; margin-bottom: 1rem !important; padding: 1.5rem !important; }
    
    /* Tracking Box Fix */
    .tracking-box { flex-direction: column; background: transparent; border: none; padding: 0; width: 100%; gap: 10px; }
    .tracking-box input { width: 100%; background: var(--card-bg); border-radius: 15px; padding: 15px; border: 1px solid rgba(128,128,128,0.2); }
    .tracking-box button { width: 100%; padding: 15px; border-radius: 50px; }

    /* Map Mobile Fix */
    .map-wrapper { width: 100% !important; margin-top: 2rem; padding: 0 !important; }
    .map-container { border-radius: 15px; padding: 0; }
    .map-container iframe { height: 300px; }
}

@media (max-width: 1024px) {
    /* --- SCOPE SLIDER MOBILE --- */
    .scope-flex-container {
        display: flex !important;
        flex-wrap: nowrap !important; /* Paksa satu baris memanjang ke kanan */
        justify-content: flex-start !important; /* Mulai dari kiri biar bisa di-swipe */
        overflow-x: auto !important; /* Aktifkan geser horizontal */
        scroll-snap-type: x mandatory; /* Kartu nempel otomatis pas digeser */
        
        width: 100vw !important; /* Lebar selebar layar HP */
        margin-left: -20px !important; /* Geser dikit biar mentok layar (kompensasi padding) */
        padding: 20px 20px 40px !important; /* Padding bawah buat ruang shadow */
        
        -webkit-overflow-scrolling: touch; /* Biar gesernya halus di iPhone */
        scrollbar-width: none; /* Hilangkan scrollbar di Firefox */
    }

    .scope-flex-container::-webkit-scrollbar {
        display: none; /* Hilangkan scrollbar di Chrome/Safari */
    }

    .scope-card {
        min-width: 85vw !important; /* Kartu hampir selebar layar HP */
        max-width: 85vw !important;
        scroll-snap-align: center; /* Kartu otomatis berhenti di tengah layar */
        margin-right: 15px !important;
        opacity: 1 !important; /* Langsung muncul aja di HP biar gak berat */
        transform: none !important;
    }
}

/* --- SWIPE INDICATOR STYLE --- */
.swipe-indicator {
    display: none; /* Sembunyikan di Desktop */
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

.hand-icon {
    font-size: 1.2rem;
    animation: handSwipe 2s infinite ease-in-out;
}

/* Animasi Tangan Geser */
@keyframes handSwipe {
    0% { transform: translateX(10px); opacity: 0.3; }
    50% { transform: translateX(-10px); opacity: 1; }
    100% { transform: translateX(10px); opacity: 0.3; }
}

@media (max-width: 1024px) {
    .swipe-indicator {
        display: flex; /* Munculkan hanya di HP */
    }
    
    /* Trik Faded Edge: Memberi kesan ada kartu yang ngintip di kanan */
    .scope-flex-container {
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
}


/* =========================================
   SPECIAL ISOLATED CONTACT SECTION
   ========================================= */

/* Pastikan section tidak bisa melebar keluar layar */
.contact-section-custom {
    overflow-x: hidden !important;
    width: 100vw !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wrapper Utama (Desktop) */
.contact-section-custom .contact-wrapper {
    display: flex;
    flex-direction: row; /* Jejer samping di desktop */
    gap: 2rem;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Card Khusus di Dalam Section ini (Biar gak kena aturan swipe 300px) */
.contact-section-custom .card {
    min-width: 0 !important; /* RESET aturan min-width 300px */
    max-width: none !important; /* RESET aturan max-width 300px */
    flex: 1;
    width: auto;
}

.contact-section-custom .form-card {
    flex: 1.5;
}

/* Map Wrapper Terisolasi */
.contact-section-custom .map-wrapper {
    width: 90%;
    max-width: 1400px;
    margin: 3rem auto 0;
    box-sizing: border-box;
}

.contact-section-custom .map-container {
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   RESPONSIVE FIX (KHUSUS KONTAK)
   ========================================= */
@media (max-width: 1024px) {
    .contact-section-custom .contact-wrapper {
        flex-direction: column !important; /* Tumpuk bawah di HP */
        width: 100% !important;
        padding: 0 20px !important;
    }

    /* Paksa Card Full di HP */
    .contact-section-custom .card {
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
        margin-top: 1.5rem;
    }

    /* Map Sama Lebar dengan Card */
    .contact-section-custom .map-wrapper {
        width: 100% !important;
        padding: 0 20px !important;
        margin-top: 1.5rem;
    }

    /* Atur Ulang Margin Hero Content di HP */
    .contact-section-custom .hero-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
}

/* =========================================
   COMPLAINT FLOW DIAGRAM (HORIZONTAL)
   ========================================= */
.complaint-flow-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    width: 95%;
    max-width: 1600px;
    margin: 2rem auto;
}

.flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    z-index: 2;
    border: 4px solid var(--bg-color);
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.step-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Panah antar langkah (Desktop) */
.flow-arrow {
    position: absolute;
    top: 35px;
    right: -15%;
    color: var(--primary-color);
    opacity: 0.3;
    font-size: 1.2rem;
}

.flow-step.highlight .step-icon {
    background: #10b981; /* Warna hijau untuk step terakhir */
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* RESPONSIVE COMPLAINTS (HP) */
@media (max-width: 1024px) {
    .complaint-flow-container {
        flex-direction: column; /* Tumpuk bawah di HP */
        align-items: center;
        gap: 3rem;
    }

    .flow-arrow {
        top: auto;
        bottom: -2.5rem;
        right: auto;
        left: 50%;
        transform: translateX(-50%) rotate(90deg); /* Panah hadap bawah */
    }

    .flow-step {
        width: 100%;
        max-width: 400px;
    }
}

/* State Awal: Sembunyi dan agak turun sedikit */
.complaint-flow-container .flow-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* State Aktif: Muncul saat section dapet class 'active-anim' */
.active-anim .complaint-flow-container .flow-step {
    opacity: 1;
    transform: translateY(0);
}

/* Efek Berurutan (Stagger) */
.active-anim .flow-step:nth-child(1) { transition-delay: 0.2s; }
.active-anim .flow-step:nth-child(2) { transition-delay: 0.4s; }
.active-anim .flow-step:nth-child(3) { transition-delay: 0.6s; }
.active-anim .flow-step:nth-child(4) { transition-delay: 0.8s; }
.active-anim .flow-step:nth-child(5) { transition-delay: 1.0s; }

/* Animasi Icon Berdenyut pelan */
.step-icon {
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* =========================================
   RUANG LINGKUP CUSTOM SECTION
   ========================================= */
.scope-section-custom { overflow-x: hidden; }

.scope-filter-bar {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 22px; border-radius: 50px; border: 1px solid var(--primary-color);
    background: transparent; color: var(--text-main); cursor: pointer;
    font-weight: 700; font-size: 0.85rem; transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary-color); color: white; box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3); }

/* GRID CONFIG */
.scope-grid-container {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px; width: 95%; max-width: 1600px; margin: 0 auto;
}

/* CARD DESIGN */
.scope-card {
    background: var(--card-bg); padding: 2rem; border-radius: 25px; border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; flex-direction: column; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; transform: translateY(20px);
}
.scope-card.active-anim { opacity: 1; transform: translateY(0); }
.scope-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }

.scope-header i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1.2rem; display: block; }
.scope-header h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

.sni-tag {
    display: inline-block; padding: 4px 12px; background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color); border-radius: 30px; font-size: 0.75rem; font-weight: 800; margin-bottom: 1.5rem;
}

.test-list { list-style: none; padding: 1.5rem 0 0; border-top: 1px solid rgba(128,128,128,0.1); }
.test-list li {
    font-size: 0.85rem; margin-bottom: 8px; position: relative; padding-left: 20px; opacity: 0.85; text-align: left;
}
.test-list li::before { content: '•'; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .scope-grid-container { grid-template-columns: 1fr; width: 100%; padding: 0 10px; }
    .scope-card { opacity: 1 !important; transform: none !important; }
}

/* =========================================
   RUANG LINGKUP - HORIZONTAL CENTERED
   ========================================= */
.scope-flex-container {
    display: flex;
    flex-direction: row;      /* Tetap horizontal */
    flex-wrap: wrap;         /* Biar kalau banyak otomatis turun baris */
    justify-content: center; /* KUNCI: Membuat kartu selalu di tengah secara horizontal */
    align-items: stretch;    /* Biar tinggi kartu sama kalau jejer */
    gap: 25px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.scope-card {
    /* flex: grow | shrink | basis */
    flex: 0 1 380px;         /* Kartu tidak akan melebar lebih dari 380px */
    min-width: 320px;        /* Batas minimal lebar agar tidak terlalu ciut */
    
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    
    display: flex;
    flex-direction: column;
    transition: 0.4s ease;
    
    /* Efek Animasi Muncul */
    opacity: 0;
    transform: translateY(20px);
}

.scope-card.active-anim {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effect */
.scope-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

/* Responsif untuk HP Kecil */
@media (max-width: 480px) {
    .scope-card {
        flex: 0 1 100%;      /* Di HP sangat kecil baru jadi full width */
        min-width: 0;
    }
}

/* --- TRACKING TIMELINE STYLES --- */
.track-detail-info {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-container {
    text-align: left;
    margin-top: 30px;
    position: relative;
    padding-left: 20px;
}

/* Garis Vertikal Utama */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px; /* Posisi garis */
    width: 2px;
    background: #444;
}

.timeline-item {
    position: relative;
    padding-left: 30px; /* Jarak teks dari titik */
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Titik (Dot) */
.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #444; /* Warna default (abu) */
    border: 2px solid #222;
    z-index: 1;
}

/* Item yang SUDAH SELESAI (Completed) */
.timeline-item.completed .timeline-dot {
    background: #10b981; /* Hijau */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.timeline-item.completed h4 {
    color: #10b981;
}

/* Judul & Tanggal */
.timeline-content h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ccc;
}

.timeline-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    display: block;
    font-family: monospace;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
}

/* Garis Hijau nyambung jika completed */
.timeline-item.completed::after {
    content: '';
    position: absolute;
    top: 14px; /* Mulai dari bawah titik */
    left: 6px;
    width: 2px;
    height: calc(100% - 14px);
    background: #10b981;
    z-index: 0;
}
/* Hapus garis hijau di item terakhir */
.timeline-item:last-child::after {
    display: none;
}

/* --- DETAIL TOGGLE STYLES --- */
.btn-toggle-detail {
    background: transparent;
    border: 1px solid #0ea5e9;
    color: #0ea5e9;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 15px 0;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-toggle-detail:hover {
    background: #0ea5e9;
    color: white;
}

.detail-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: none; /* Default Hidden */
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    vertical-align: top;
}

.detail-table td:first-child {
    width: 40%;
    color: #aaa;
    font-weight: 500;
}

.detail-table td:last-child {
    color: #fff;
    font-weight: 600;
    padding-left: 10px;
}

.detail-table tr:last-child td {
    border-bottom: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tombol Toggle */
.btn-toggle-detail {
    background: transparent;
    border: 1px solid #0ea5e9;
    color: #0ea5e9;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 15px 0;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-toggle-detail:hover {
    background: #0ea5e9;
    color: white;
}

/* Kotak Container Detail */
.detail-container {
    /* Default (Light Mode) */
    background: #f8f9fa; 
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: none; /* Default Hidden */
    animation: slideDown 0.4s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Override untuk Dark Mode */
body.dark-mode .detail-container {
    background: rgba(20, 20, 20, 0.6); /* Lebih gelap transparan */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Tabel Detail */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left; /* RATA KIRI */
}

.detail-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef; /* Garis Light Mode */
    font-size: 0.95rem;
    vertical-align: top;
    line-height: 1.6;
}

/* Warna Garis di Dark Mode */
body.dark-mode .detail-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Kolom Kiri (Label) */
.detail-table td:first-child {
    width: 35%;
    color: #6c757d; /* Abu Gelap (Light Mode) */
    font-weight: 500;
}

body.dark-mode .detail-table td:first-child {
    color: #aaa; /* Abu Terang (Dark Mode) */
}

/* Kolom Kanan (Value) */
.detail-table td:last-child {
    color: #212529; /* Hitam (Light Mode) */
    font-weight: 600;
    padding-left: 15px;
}

body.dark-mode .detail-table td:last-child {
    color: #fff; /* Putih (Dark Mode) */
}

/* Hapus border baris terakhir */
.detail-table tr:last-child td {
    border-bottom: none;
}

/* Animasi Muncul */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}