/* eCargo System v7.5.0 - PT AURORA GROUP INDONESIA
    Status: Clean, Optimized, & Fully Integrated
    Revision: 19 Dec 2025
*/

/* --- 0. FONT IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-green: #009945;
    --dark-green: #00662e;
    --highlight-green: #80ffaa;
    --text-main: #333333;
    --text-muted: #666;
    --transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow-deep: 0 15px 35px rgba(0,0,0,0.2);
    --transition-bounce: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- 1. GLOBAL RESET & STICKY FOOTER --- */
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background: var(--primary-green) !important;
    color: var(--text-main); 
    overflow-x: hidden; 
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.main-wrapper {
    flex: 1 0 auto;
}

/* --- 2. AURORA CORE COMPONENTS --- */
.aurora-main-card {
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: var(--shadow-deep);
    padding: 30px;
    margin: 0 auto 30px;
    width: 100%;
    max-width: 1100px;
    border: none;
}

.section { padding: 40px 0; }

/* Navigation */
.navbar { 
    background: #fff; 
    padding: 10px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; top: 0; z-index: 100; 
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

.btn-login { 
    background: var(--primary-green); color: #fff; padding: 8px 25px; 
    border-radius: 50px; text-decoration: none; font-weight: 600; 
    font-size: 0.85rem; transition: var(--transition);
}

.btn-login:hover { background: var(--dark-green); transform: scale(1.05); }

/* --- 3. TRACKING & FEATURES --- */
.tracking-box { 
    background: #fcfcfc; padding: 18px; border-radius: 12px; 
    max-width: 480px; margin: 25px auto 0; border: 1px solid #eee; 
}

.tracking-form { display: flex; gap: 8px; }
.tracking-form input { 
    flex: 1; padding: 15px; border: 1px solid #ddd; 
    border-radius: 8px; outline: none; font-size: 1rem;
}

#resultInline {
    margin-top: 25px; 
    width: 100%; 
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUpCling 0.6s var(--transition) forwards;
}

.grid-3 { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

.feature-item { text-align: center; padding: 15px; }
.feature-item h3 { color: var(--primary-green); margin-bottom: 8px; font-size: 1.1rem; font-weight: 700; }
.feature-item p { color: var(--text-muted); font-size: 0.85rem; }
.icon { font-size: 2.5rem; margin-bottom: 10px; display: block; }

/* --- 4. GALLERY SLIDER (STABLE) --- */
.gallery-wrapper { position: relative; width: 100%; overflow: hidden; }
.gallery-track { 
    display: flex !important; overflow-x: hidden; scroll-behavior: smooth; 
    scrollbar-width: none; 
}
.gallery-track::-webkit-scrollbar { display: none; }
.slide-group { flex: 0 0 100% !important; min-width: 100% !important; padding: 0 10px; }
.gallery-grid { display: flex !important; justify-content: space-between !important; gap: 10px; }
.img-box { width: 23% !important; text-align: center; }
.img-box img { 
    width: 100%; border-radius: 10px; border: 2px solid #333; 
    aspect-ratio: 9/19; object-fit: cover; 
}
.img-box span { display: block; margin-top: 8px; font-size: 0.75rem; font-weight: 600; color: #555; }
.nav-btn { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: var(--primary-green); color: #fff; border: none; 
    width: 40px; height: 40px; border-radius: 50%; z-index: 10; cursor: pointer;
}

/* --- EFEK ZOOM TAMBAHAN GALLERY--- */
.img-box {
    transition: transform 0.3s ease-in-out; /* Bikin animasi halus */
    cursor: pointer; /* Ubah kursor jadi tangan */
    position: relative; /* Biar z-index jalan */
}

.img-box:hover {
    transform: scale(1.1); /* Zoom sebesar 10% */
    z-index: 100; /* Pastikan dia melayang di atas temannya */
}



/* --- 5. AURORA PREMIUM TIMELINE --- */
.aurora-timeline { margin-top: 30px; position: relative; }
.aurora-timeline ul::before {
    content: ''; position: absolute; top: 10px; bottom: 10px; left: 110px; 
    width: 2px; background: #e0e0e0; 
}
.timeline-item { display: flex; position: relative; margin-bottom: 35px; align-items: flex-start; }
.timeline-time { width: 95px; text-align: right; padding-right: 30px; flex-shrink: 0; }
.timeline-time .date-str { display: block; font-size: 13px; font-weight: 700; color: #333; }
.timeline-time .time-str { display: block; font-size: 12px; color: #888; }
.timeline-dot {
    width: 14px; height: 14px; background: #ccc; border: 3px solid #fff;
    border-radius: 50%; position: absolute; left: 104px; top: 3px; z-index: 2;
}
.timeline-item.active .timeline-dot {
    background: #0ca14a; width: 18px; height: 18px; left: 102px;
    box-shadow: 0 0 0 4px rgba(12, 161, 74, 0.2);
}
.timeline-content { flex: 1; padding-left: 30px; text-align: left; }
.timeline-content h4 { margin-bottom: 5px; font-size: 15px; font-weight: 700; color: #222; }

/* --- 6. SIDE NAV DOCK & MODAL SYSTEM --- */
.nav-dock-item.active-green {
    width: 45px !important; height: 45px !important;
    background: var(--primary-green); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; flex: none !important;
    transition: var(--transition); margin-bottom: 8px;
}
.nav-dock-item.active-green:hover {
    background: var(--dark-green);
    transform: scale(1.1) translateX(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.aurora-modal {
    display: none; position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}
.modal-content {
    margin: 50px auto; width: 95%; max-width: 800px;
    animation: clingPop 0.5s var(--transition) forwards;
}
.close-btn {
    float: right; font-size: 28px; font-weight: bold;
    color: var(--primary-green); cursor: pointer; line-height: 1;
}

/* --- 7. FOOTER STICKY --- */
.footer { 
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%); 
    color: #fff; padding: 30px 0; margin-top: auto; width: 100%;
}
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-badges img { height: 32px; filter: brightness(0) invert(1); }
.f-right { text-align: right; }

/* --- 8. ANIMATIONS SYSTEM --- */
@keyframes clingPop {
    0% { transform: scale(0.7); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUpCling {
    0% { transform: translateY(40px) scale(0.9); opacity: 0; }
    70% { transform: translateY(-5px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-click-effect:active { transform: scale(0.92); transition: 0.1s; }

/* --- 9. MOBILE RESPONSIVE (CONSOLIDATED) --- */
@media (max-width: 768px) {
    .aurora-main-card { padding: 20px; }
    .grid-3 { gap: 15px; }
    
    /* Gallery Mobile */
    .img-box { width: 48% !important; flex: 0 0 48% !important; margin-bottom: 10px; }
    .gallery-grid { flex-wrap: wrap !important; }
    
    /* Footer & Timeline Mobile */
    .footer-flex { flex-direction: column; text-align: center; gap: 20px; }
    .f-right { text-align: center; }
    .aurora-timeline ul::before { left: 20px; }
    .timeline-item { flex-direction: column; }
    .timeline-time { text-align: left; width: 100%; padding-left: 45px; margin-bottom: 5px; }
    .timeline-dot { left: 14px; top: 30px; }
    .timeline-content { padding-left: 45px; }

    /* Dock Mobile */
    .tracking-container-split { flex-direction: column !important; }
    .side-nav-dock { 
        flex-direction: row !important; 
        justify-content: center !important; 
        width: 100% !important; 
        margin-top: 15px;
    }
}

/* --- 10. ANTI-GOYANG & KURS PILL --- */
.kurs-pill {
    background: #fdfdfd; 
    border: 1px solid #eee; 
    padding: 5px 12px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.jakarta-clock {
    font-size: 1rem; 
    font-weight: 900; 
    color: #222; 
    letter-spacing: 1px; 
    display: inline-block; 
    width: 85px; 
    font-variant-numeric: tabular-nums; /* KUNCI ANTI-GOYANG */
}

.anchor-usd {
    border: 2px solid #FFD700 !important;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.1) !important;
}

html {
    height: 100%; /* Kasih tau browser kalau dokumen ini tingginya full */
}

body { 
    display: flex; 
    flex-direction: column; 
    min-height: 100%; /* Pake 100% atau 100vh biar narik pilar tengah */
    margin: 0;
}