/* =========================================================
   VARIABEL & RESET
   ========================================================= */
:root {
    --primary: #FF7500; 
    --primary-dark: #cc5e00;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --text-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX UTAMA: Kunci layar agar tidak bisa digeser ke kanan/kiri */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; }
ul { list-style: none; }

.reveal {
    opacity: 0;
    transform: translateY(50px); 
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0); 
}

.service-cards .flip-card:nth-child(1) { transition-delay: 0.1s; }
.service-cards .flip-card:nth-child(2) { transition-delay: 0.3s; }
.service-cards .flip-card:nth-child(3) { transition-delay: 0.5s; }

/* =========================================================
   NAVBAR (HEADER) & DROPDOWN
   ========================================================= */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    transition: 0.3s ease;
}

header.scrolled {
    padding: 10px 5%; 
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.logo {
    font-family: 'Rubik', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 1px;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: 0.3s ease;
}

.nav-links > li > a:hover::after { width: 100%; }
.nav-links li a:hover { color: var(--primary); }

/* --- DROPDOWN MENU --- */
.dropdown { 
    position: relative; 
    padding-bottom: 20px; 
    margin-bottom: -20px; 
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu li { padding: 0; }
.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    transition: 0.3s ease;
}

.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover {
    background: var(--light);
    padding-left: 25px; 
    color: var(--primary);
}

.btn-track {
    background: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(255, 117, 0, 0.3);
    transition: 0.3s ease;
}

.btn-track:hover {
    background: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* =========================================================
   HERO SECTION 
   ========================================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(135deg, #fff 0%, #ffe8d6 100%);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.hero-text {
    flex: 1;
    z-index: 2;
    animation: slideInLeft 1s ease forwards;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
    font-family: 'Rubik', sans-serif;
}

.hero-text h1 span { color: var(--primary); }

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-graphics {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.floating-box {
    width: 300px;
    height: 300px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    position: relative;
    box-shadow: 20px 20px 60px rgba(255, 117, 0, 0.3), -20px -20px 60px rgba(255, 255, 255, 0.8);
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-box i {
    font-size: 100px;
    color: white;
    text-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.box-shadow-floor {
    width: 200px;
    height: 20px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    position: absolute;
    bottom: 20%;
    filter: blur(10px);
    animation: shadowScale 6s ease-in-out infinite;
}

/* =========================================================
   SERVICES, ABOUT, CLIENTS, BLOG, TRACKING, FOOTER
   ========================================================= */
.services { padding: 100px 5%; text-align: center; background: var(--white); }
.section-title { font-size: 2.5rem; margin-bottom: 15px; color: var(--dark); }
.section-subtitle { color: var(--primary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 50px; display: block; }
.service-cards { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.flip-card { background-color: transparent; width: 320px; height: 350px; perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-radius: 15px; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden; 
    border-radius: 15px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 30px; 

    outline: 1px solid transparent; 
    transform: translateZ(0);
}
.flip-card-front { background-color: var(--white); color: var(--dark); border: 2px solid #f0f0f0; }
.flip-card-front i { font-size: 60px; color: var(--primary); margin-bottom: 20px; }
.flip-card-front h3 { font-size: 1.5rem; }
.flip-card-back { 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white; 
    transform: rotateY(180deg) translateZ(1px); 
}
.flip-card-back p { margin-bottom: 20px; font-size: 15px; line-height: 1.6; }
.flip-card-back .btn-outline { padding: 8px 20px; border: 2px solid white; color: white; border-radius: 20px; transition: 0.3s; }
.flip-card-back .btn-outline:hover { background: white; color: var(--primary); }

.about-section { padding: 100px 5%; background-color: #fcfcfc; }
.about-container { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.about-visual, .about-text { flex: 1; min-width: 350px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-card { background: white; padding: 40px 20px; text-align: center; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.05); transition: 0.4s; border: 1px solid #eee; }
.stat-card.orange { background: var(--primary); color: white; border: none; }
.stat-card.orange .stat-icon i, .stat-card.orange p, .stat-card.orange h3 { color: white; }
.stat-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(255, 117, 0, 0.15); }
.stat-icon i { font-size: 30px; color: var(--primary); margin-bottom: 15px; }
.stat-card h3 { font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; font-family: 'Rubik', sans-serif; }
.stat-card p { font-size: 14px; color: var(--text-gray); font-weight: 500; }
.about-features { margin-top: 30px; display: grid; gap: 15px; }
.feature-item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--dark); }
.feature-item i { color: var(--primary); font-size: 18px; }

.clients-section { padding: 80px 5%; background: var(--white); overflow: hidden; }
.clients-slider { margin-top: 40px; position: relative; width: 100%; overflow: hidden; padding: 20px 0; }
.clients-slider::before, .clients-slider::after { content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; }
.clients-slider::before { left: 0; background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); }
.clients-slider::after { right: 0; background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); }
.clients-slide-track { display: flex; width: calc(250px * 10); animation: scroll 20s linear infinite; }
.clients-slide-track:hover { animation-play-state: paused; }
.client-logo { width: 250px; display: flex; justify-content: center; align-items: center; padding: 0 20px; }
.client-logo img { max-width: 100%; height: auto; filter: grayscale(100%) opacity(0.6); transition: 0.3s; }
.client-logo img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
.btn-outline-primary { display: inline-block; padding: 10px 30px; border: 2px solid var(--primary); color: var(--primary); border-radius: 30px; font-weight: 600; transition: 0.3s; }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); box-shadow: 0 10px 20px rgba(255, 117, 0, 0.3); }

.blog-section { padding: 100px 5%; background: #fcfcfc; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 50px; }
.blog-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.4s; border: 1px solid #eee; }
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.blog-image { position: relative; width: 100%; height: 200px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-image img { transform: scale(1.1); }
.blog-tag { position: absolute; bottom: 15px; left: 15px; background: var(--primary); color: white; font-size: 12px; padding: 5px 12px; border-radius: 20px; font-weight: 600; }
.blog-content { padding: 25px; }
.blog-meta { font-size: 13px; color: var(--text-gray); margin-bottom: 10px; }
.blog-meta i { color: var(--primary); margin-right: 5px; }
.blog-content h3 { font-size: 1.2rem; line-height: 1.4; margin-bottom: 15px; font-family: 'Rubik', sans-serif; }
.blog-content h3 a { color: var(--dark); transition: 0.3s; }
.blog-content h3 a:hover { color: var(--primary); }
.blog-content p { font-size: 14px; color: var(--text-gray); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.read-more i { transition: 0.3s; }
.read-more:hover i { transform: translateX(5px); }

.tracking-section { background: var(--dark); color: var(--white); padding: 80px 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.tracking-text { flex: 1; min-width: 300px; padding-right: 50px; }
.tracking-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.tracking-text p { color: #aaa; margin-bottom: 30px; }
.tracking-form { flex: 1; min-width: 300px; background: rgba(255,255,255,0.05); padding: 40px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); }
.input-group { display: flex; background: var(--white); border-radius: 30px; overflow: hidden; padding: 5px; }
.input-group input { flex: 1; border: none; padding: 15px 20px; outline: none; font-size: 16px; }
.input-group button { background: var(--primary); color: white; border: none; padding: 15px 30px; border-radius: 25px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.input-group button:hover { background: var(--primary-dark); }

footer { background: #111; color: #ccc; position: relative; font-family: 'Poppins', sans-serif; }
footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), #ff9a33); }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding: 80px 5% 50px; }
.footer-col h3 { color: white; font-family: 'Rubik', sans-serif; font-size: 1.2rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }
.brand-col .footer-logo { font-family: 'Rubik', sans-serif; font-size: 32px; font-weight: 700; color: white; margin-bottom: 20px; letter-spacing: 1px; }
.brand-col .footer-logo span { color: var(--primary); }
.brand-col p { line-height: 1.6; margin-bottom: 25px; font-size: 14px; color: #aaa; }
.social-links { display: flex; gap: 15px; }
.social-links a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: rgba(255,255,255,0.05); color: white; border-radius: 50%; transition: 0.3s; font-size: 16px; }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 117, 0, 0.3); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #ccc; transition: 0.3s; font-size: 14px; display: inline-block; }
.footer-col ul li a:hover { color: var(--primary); transform: translateX(5px); }
.contact-col ul li { display: flex; gap: 15px; font-size: 14px; line-height: 1.6; color: #aaa; }
.contact-col ul li i { color: var(--primary); font-size: 18px; margin-top: 3px; }
.footer-bottom { background: #0a0a0a; padding: 20px 5%; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom p { font-size: 14px; color: #666; }

/* =========================================================
   PAGES SPECIFIC STYLES
   ========================================================= */
.page-header { height: 300px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; margin-top: 70px; }
.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.page-header h1 { position: relative; color: white; font-size: 3rem; font-family: 'Rubik', sans-serif; z-index: 1; }
.service-detail-content { padding: 80px 5%; max-width: 900px; margin: 0 auto; line-height: 1.8; }
.service-detail-content h2 { margin-bottom: 20px; color: var(--primary); }
.blog-layout { display: flex; gap: 40px; padding: 80px 5%; flex-wrap: wrap; }
.blog-main { flex: 3; min-width: 300px; }
.blog-sidebar { flex: 1; min-width: 250px; }
.sidebar-widget { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 30px; }
.sidebar-widget h3 { margin-bottom: 15px; border-bottom: 2px solid var(--primary); padding-bottom: 10px; font-family: 'Rubik', sans-serif; }
.category-list li { margin-bottom: 10px; }
.category-list a { color: var(--text-gray); display: flex; justify-content: space-between; transition: 0.3s; }
.category-list a:hover { color: var(--primary); }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination a { padding: 10px 18px; border-radius: 8px; background: white; border: 1px solid #ddd; color: var(--dark); transition: all 0.3s ease; font-weight: 600; }
.pagination a:hover, .pagination a.active { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,117,0,0.2); }
.blog-detail-header { margin-bottom: 30px; }
.blog-detail-header h1 { font-family: 'Rubik', sans-serif; font-size: 2.5rem; margin-bottom: 15px; }
.blog-detail-meta { color: var(--text-gray); font-size: 14px; margin-bottom: 20px; display: flex; gap: 20px; }
.blog-detail-meta i { color: var(--primary); }
.blog-content-body { line-height: 1.8; font-size: 1.1rem; color: #444; }
.blog-content-body img { max-width: 100%; border-radius: 15px; margin: 20px 0; }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes float { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-30px) rotate(5deg); } 100% { transform: translateY(0px) rotate(0deg); } }
@keyframes shadowScale { 0% { transform: scale(1); opacity: 0.2; } 50% { transform: scale(0.8); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.2; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 5)); } }

/* =========================================================
   PRELOADER (ANIMASI SVG)
   ========================================================= */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--light); z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
#preloader svg { width: 400px; max-width: 80vw; height: auto; }
#preloader .wheel { transform-box: fill-box; transform-origin: center; animation: svgSpin 1s linear infinite; }
#preloader .truck { animation: svgBounce 0.5s ease-in-out infinite alternate; }
#preloader .smoke { animation: svgSmokeMove 2s ease-out infinite; opacity: 0; }
#preloader .line { animation: svgLineMove 0.6s linear infinite; }
@keyframes svgSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes svgBounce { from { transform: translateY(0px); } to { transform: translateY(-4px); } }
@keyframes svgSmokeMove { 0% { transform: translateX(0) translateY(0) scale(0.5); opacity: 0.8; } 100% { transform: translateX(-60px) translateY(-25px) scale(1.5); opacity: 0; } }
@keyframes svgLineMove { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-40px); opacity: 0; } }
.loading-text { margin-top: -30px; font-family: 'Rubik', sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--primary); letter-spacing: 1px; animation: textBlink 1.5s infinite; text-align: center; }
@keyframes textBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.preloader-hidden { opacity: 0; visibility: hidden; }

/* =========================================================
   RESPONSIVE & MOBILE MENU (VERSI BERSIH & FINAL)
   ========================================================= */
.menu-toggle { display: none; }
.mobile-only { display: none; }

@media (max-width: 992px) {
    .about-container { flex-direction: column-reverse; }
}

@media (max-width: 768px) {
    /* 1. MENGUNCI LAYAR AGAR TIDAK BOCOR (KUNCI UTAMA) */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .about-visual, .about-text, 
    .tracking-text, .tracking-form, 
    .blog-main, .blog-sidebar,
    .footer-col, .input-group {
        min-width: 0 !important;
        width: 100% !important;
        flex: none !important;
    }
    img, svg { max-width: 100% !important; }

    /* 2. HEADER & NAVIGATION */
    .desktop-only { display: none !important; } 
    .mobile-only { display: block !important; }
    
    .menu-toggle { 
        display: block !important; 
        font-size: 26px; cursor: pointer; 
        color: var(--primary); z-index: 1002; padding: 5px; 
    }

    /* --- KUNCI PERBAIKAN SIDEBAR ADA DI SINI --- */
    .nav-links { 
        position: fixed; 
        top: 0; right: 0; 
        transform: translateX(100%); 
        width: 85%; max-width: 320px; 
        
        /* FIX BUG iOS & CHROME: Gunakan dvh (Dynamic Viewport Height) bukan vh biasa */
        height: 100dvh !important;
        max-height: 100dvh !important;
        
        background: #ffffff; 
        display: flex !important;
        flex-direction: column; 
        justify-content: flex-start !important; 
        align-items: stretch !important; 
        padding-top: 80px; 
        padding-bottom: 60px !important; /* Ruang bernapas di bawah */
        gap: 0 !important; 
        box-shadow: -5px 0 20px rgba(0,0,0,0.1); 
        transition: transform 0.4s ease;
        z-index: 1001;
        
        /* FIX BUG SCROLL: Paksa aktifkan scroll internal sidebar */
        overflow-y: auto !important; 
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important; 
    }

    .nav-links.active { transform: translateX(0) !important; }

    /* STYLE LINK MENU UTAMA */
    .nav-links > li { width: 100%; display: block; }
    .nav-links > li > a { 
        display: flex; justify-content: space-between; align-items: center;
        padding: 15px 25px; font-size: 1.1rem; color: var(--dark);
        border-bottom: 1px solid #f0f0f0; 
    }
    .nav-links > li > a::after { display: none; }

    /* STYLE DROPDOWN (ACCORDION MODE) */
    .dropdown { 
        padding-bottom: 0; margin-bottom: 0; 
        position: relative !important;
    }
    
    .dropdown-menu { 
        position: static !important; /* WAJIB STATIC: Agar mendorong menu di bawahnya */
        display: none !important; 
        background: #f9f9f9 !important; 
        width: 100% !important; 
        margin: 0 !important; padding: 0 !important; 
        box-shadow: none !important; border: none !important;
    }

    .dropdown.active .dropdown-menu { display: block !important; }

    .dropdown-menu li a { 
        color: #555 !important; font-size: 0.95rem !important;
        padding: 12px 25px 12px 40px !important; text-align: left !important;
        display: block !important; border-bottom: 1px solid #eee;
    }

    /* TOMBOL CEK RESI DI MOBILE */
    .nav-links li.mobile-only {
        padding: 20px 25px; border-bottom: none !important;
        margin-top: auto; /* Mendorong tombol Cek Resi agar rapi di paling bawah */
    }

    .nav-links li a.btn-track, .nav-links > li > a.btn-track {
        background-color: var(--primary) !important; color: #ffffff !important; 
        display: block !important; width: 100% !important; text-align: center !important;
        padding: 12px 0 !important; margin-top: 0 !important;
        border-radius: 30px !important; font-weight: 600 !important;
    }
    
    .nav-links li a.btn-track:hover, .nav-links li a.btn-track:active {
        background-color: var(--primary-dark) !important; color: #ffffff !important;
    }

    /* 3. HERO SECTION */
    .hero { height: auto; min-height: 100vh; padding-top: 100px; padding-bottom: 50px; flex-direction: column; text-align: center; justify-content: flex-start; }
    .hero-text { margin-top: 0; width: 100%; }
    .hero-text h1 { font-size: 2rem; } 
    .hero-text p { font-size: 1rem; margin: 0 auto 30px; padding: 0 10px; }
    .hero-graphics { width: 100%; min-height: 250px; margin-top: 30px; }
    .floating-box { width: 180px; height: 180px; margin: 0 auto; }
    .floating-box i { font-size: 60px; } 
    .box-shadow-floor { width: 130px; bottom: 0; left: 50%; transform: translateX(-50%); animation: none; margin: 0 auto; }
    
    /* 4. TRACKING FORM & ABOUT SECTION */
    .tracking-section { flex-direction: column; text-align: center; padding: 50px 5%; }
    .tracking-text { padding-right: 0; margin-bottom: 30px; }
    .tracking-form { padding: 25px 15px; box-sizing: border-box; }
    .flip-card { width: 100%; max-width: 320px; margin: 0 auto; } 
    .input-group { flex-direction: column; background: transparent; gap: 10px; border-radius: 0; padding: 0; }
    .input-group input { border-radius: 30px; padding: 15px; width: 100%; box-sizing: border-box;}
    .input-group button { border-radius: 30px; width: 100%; padding: 15px; }
}

/* =========================================================
   HALAMAN TRACKING & TIMELINE
   ========================================================= */
.tracking-result-section {
    padding: 60px 5%;
    background-color: #f4f6f9;
    min-height: 60vh;
}

.tracking-container {
    max-width: 800px;
    width: 90%; /* Memberikan jarak 5% di kiri dan kanan layar */
    margin: -120px auto 0; 
    position: relative;
    z-index: 10;
}

.tracking-container h1 {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.tracking-search-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
}

.tracking-search-box h2 {
    font-family: 'Rubik', sans-serif;
    color: var(--dark);
    margin-bottom: 10px;
}

.tracking-search-box p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.tracking-search-box .input-group {
    background: #f9f9f9;
    border: 1px solid #ddd;
}

/* KARTU HASIL TRACKING */
.tracking-result-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.result-header {
    background: linear-gradient(135deg, var(--dark), #333);
    color: var(--white);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.resi-info span { font-size: 13px; color: #aaa; }
.resi-info h3 { font-family: 'Rubik', sans-serif; font-size: 1.5rem; letter-spacing: 1px; margin-top: 5px; color: #fff;}

.status-badge {
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 117, 0, 0.3);
}

.resi-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 25px 30px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: var(--text-gray);
}

.resi-details i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 16px;
}

/* TIMELINE VERTIKAL */
.timeline-wrapper {
    padding: 30px;
}

.timeline-title {
    font-family: 'Rubik', sans-serif;
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tracking-timeline {
    position: relative;
    padding-left: 35px;
}

/* Garis vertikal abu-abu */
.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-step {
    position: relative;
    margin-bottom: 30px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

/* Ikon bulat di garis */
.step-icon {
    position: absolute;
    left: -35px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--white);
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 12px;
    z-index: 2;
}

/* Ikon aktif (Warna Oranye) */
.step-icon.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(255, 117, 0, 0.1);
}

.step-content {
    background: var(--white);
    padding: 0;
}

.step-time {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.step-title {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Penyesuaian Mobile Khusus Halaman Tracking */
@media (max-width: 768px) {
    .tracking-search-box { padding: 25px 15px; }
    .result-header { flex-direction: column; align-items: flex-start; }
    .timeline-wrapper { padding: 25px 15px; }
}

/* =========================================================
   INDIKATOR TAP (UNTUK FLIP CARD MOBILE)
   ========================================================= */
.tap-indicator {
    margin-top: 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(255, 117, 0, 0.1); /* Warna oranye transparan */
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 117, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Animasi denyut ringan agar user penasaran untuk mengklik */
    animation: pulseTap 2s infinite ease-in-out;
}

@keyframes pulseTap {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 117, 0, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255, 117, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 117, 0, 0); }
}

/* Opsional: Menyembunyikan tombol "Ketuk" di versi Desktop karena user bisa memakai mouse */
@media (min-width: 769px) {
    .tap-indicator {
        display: none;
    }
}

/* =========================================================
   HACK: MEMAKSA TEKS TAJAM DI DALAM ANIMASI 3D
   ========================================================= */
.flip-card-front *, 
.flip-card-back * {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    /* Memaksa browser merender ulang teks pada skala asli */
    transform: translateZ(0) scale(1.0, 1.0) !important; 
    /* Mengembalikan ketajaman sub-pixel */
    -webkit-font-smoothing: subpixel-antialiased !important; 
    /* Mencegah efek blur dari lapisan bayangan (jika ada) */
    filter: blur(0) !important; 
}

/* =========================================================
   HALAMAN ERROR (404 & 500)
   ========================================================= */
.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Agar tepat berada di tengah layar di antara header & footer */
    text-align: center;
    padding: 120px 20px 60px; /* Padding atas besar agar tidak tertutup header */
    background-color: #f8f9fa;
}

.error-container {
    max-width: 600px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Dekorasi latar belakang (Opsional biar manis) */
.error-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 117, 0, 0.05);
    border-radius: 50%;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    font-family: 'Rubik', sans-serif;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 4px 4px 0px rgba(255, 117, 0, 0.15);
    letter-spacing: -3px;
}

.error-icon {
    font-size: 4rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.error-title {
    font-family: 'Rubik', sans-serif;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.error-desc {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-actions .btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.error-actions .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 117, 0, 0.3);
}

.error-actions .btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid #ddd;
}

.error-actions .btn-outline:hover {
    border-color: var(--dark);
    background-color: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .error-code { font-size: 6rem; }
    .error-title { font-size: 1.8rem; }
    .error-container { padding: 40px 20px; }
    .error-actions { flex-direction: column; width: 100%; }
    .error-actions .btn { width: 100%; justify-content: center; }
}

.modern-page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 20px; /* Ruang napas yang luas */
    text-align: center;
    overflow: hidden;
}

/* Kaca gelap di atas gambar agar teks selalu terbaca */
.modern-page-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

/* Memastikan teks berada di atas kaca gelap */
.modern-page-banner .banner-content {
    position: relative;
    z-index: 2;
}

.modern-page-banner h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    margin-top: 30px;
}

/* Sub-judul diubah menjadi lencana (Badge) modern */
.modern-page-banner .badge-category {
    display: inline-flex;
    align-items: center;
    background-color: #fd7e14; /* Warna oranye kontras */
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
}

/* whatsapp floating */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.wa-toggle-btn {
    background-color: #25d366; /* Warna Hijau WA */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wa-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #1ebd5a;
}

.wa-popup {
    background: #ffffff;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    overflow: hidden;
    
    /* Animasi Pop-up */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.wa-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-popup-header {
    background-color: #4ade80; /* Warna hijau terang sesuai referensi gambar */
    color: white;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.wa-popup-body {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px 0;
}

/* Kustomisasi Scrollbar untuk popup */
.wa-popup-body::-webkit-scrollbar { width: 6px; }
.wa-popup-body::-webkit-scrollbar-track { background: #f1f1f1; }
.wa-popup-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.wa-officer-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.wa-officer-item:last-child {
    border-bottom: none;
}

.wa-officer-item:hover {
    background: #f8fafc;
}

.wa-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #475569;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-info h6 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.wa-info span {
    font-size: 12px;
    color: #64748b;
    display: block;
}

.wa-toggle-btn, .wa-popup {
    pointer-events: auto; /* <--- TAMBAHKAN INI JUGA */
}

@media (max-width: 768px) {
    .page-header {
        height: 200px !important; /* Perkecil tinggi di mobile agar proporsional */
    }
    
    .page-header h1 {
        font-size: 2rem !important; /* Perkecil font agar tidak "tumpah" ke samping */
        line-height: 1.2;
    }
}