:root {
    --bg: #ffffff;
    --bg-tinted: #f0fdfa;
    --navy: #0f172a;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --orange: #f97316;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #cbd5e1;
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, .brand {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Latar Belakang Peta Rute */
.sky-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.route-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(13, 148, 136, 0.14) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

.cloud-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.c1 {
    width: 380px;
    height: 380px;
    background: #99f6e4;
    top: -80px;
    right: -60px;
}

.c2 {
    width: 340px;
    height: 340px;
    background: #fed7aa;
    bottom: 10%;
    left: -80px;
}

/* Navbar (4 Menu: Home, Tentang, Layanan, Kontak) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.55rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--navy);
}

.brand span:last-child {
    color: var(--teal);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 9px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--teal);
    background: #f0fdfa;
}

.nav-link.active {
    background: var(--teal);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--navy);
}

/* Sections */
.section {
    padding: 96px 0;
}

.bg-tinted {
    background: linear-gradient(180deg, #f8fafc 0%, #f0fdfa 50%, #f8fafc 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 52px;
}

.sec-pill {
    display: inline-block;
    background: #ccfbf1;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.sec-pill.pill-light {
    background: rgba(255, 255, 255, 0.16);
    color: #5eead4;
}

.section-header h2 {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
}

/* Menu 1: Home / Hero */
.hero-section {
    padding-top: 136px;
    padding-bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff7ed;
    border: 1.5px solid #fdba74;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulseOrange 1.6s infinite;
}

@keyframes pulseOrange {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero-content h1 {
    font-size: 2.9rem;
    line-height: 1.16;
    margin-bottom: 18px;
}

.text-teal {
    color: var(--teal);
}

#heroLoopText {
    color: var(--orange);
    transition: opacity 0.25s ease;
}

.hero-desc {
    font-size: 1.04rem;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--teal);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.32);
}

.btn-secondary {
    background: #ffffff;
    border: 2px solid var(--navy);
    color: var(--navy);
}

.full-width {
    width: 100%;
}

/* Widget Simulasi Rute */
.quick-estimator {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.est-title {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--navy);
}

.est-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.est-controls select {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
}

.btn-est {
    background: var(--orange);
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
}

.est-result {
    font-size: 0.85rem;
    color: var(--teal-dark);
    background: #f0fdfa;
    padding: 8px 12px;
    border-radius: 8px;
}

/* Kartu Visual Pelabuhan & Animasi Kapal */
.hero-visual {
    position: relative;
}

.badge-float {
    position: absolute;
    background: var(--navy);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 4;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.25);
    animation: floatBob 3.6s infinite ease-in-out;
}

.bf-1 { top: -14px; left: -14px; color: #5eead4; }
.bf-2 { top: 44%; right: -18px; color: #fdba74; animation-delay: 1.2s; }
.bf-3 { bottom: -14px; left: 16px; color: #fde047; animation-delay: 2.2s; }

@keyframes floatBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cargo-card {
    background: #ffffff;
    border: 2px solid var(--navy);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.card-top-bar {
    background: var(--navy);
    color: #cbd5e1;
    padding: 11px 18px;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.8rem;
}

.signal {
    color: #2dd4bf;
    font-weight: bold;
}

.scene-box {
    background: linear-gradient(180deg, #e0f2fe 0%, #f0fdfa 100%);
    padding: 12px 12px 0;
}

.cargo-svg {
    width: 100%;
    display: block;
}

/* Animasi Pesawat, Kapal & Gelombang Laut */
.plane-fly {
    animation: flyAcross 7s linear infinite;
}

@keyframes flyAcross {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(250px); }
}

.ship-bob {
    animation: shipFloat 3.2s infinite ease-in-out;
    transform-origin: center;
}

@keyframes shipFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-1.2deg); }
}

.wave-move {
    animation: waveShift 4s linear infinite;
}
.w2 { animation-direction: reverse; }

@keyframes waveShift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-40px); }
}

.card-footer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 18px;
    background: #ffffff;
}

.f-stat {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.f-stat strong {
    display: block;
    font-size: 1.15rem;
    color: var(--teal-dark);
}

.f-stat span {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Route Ticker */
.route-ticker {
    background: var(--navy);
    color: #ffffff;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-stream {
    display: inline-flex;
    gap: 26px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.96rem;
    animation: streamScroll 22s linear infinite;
}

.ticker-stream span:nth-child(even) {
    color: var(--orange);
}

@keyframes streamScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Menu 2: Tentang */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    gap: 48px;
    align-items: center;
}

.warehouse-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.wh-svg {
    width: 100%;
    display: block;
    margin-bottom: 14px;
}

.truck-idle {
    animation: truckBounce 1.8s infinite ease-in-out;
}

@keyframes truckBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.wh-caption strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.wh-caption span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.about-content h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.pillar-item {
    display: flex;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 14px;
}

.p-icon {
    font-size: 1.6rem;
}

.pillar-item h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.pillar-item p {
    margin: 0;
    font-size: 0.88rem;
}

/* Menu 3: Layanan */
.service-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.s-tab {
    background: #ffffff;
    border: 1.5px solid var(--border);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.s-tab:hover,
.s-tab.active {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card.hide {
    display: none;
}

.service-card:hover {
    box-shadow: 0 18px 38px rgba(13, 148, 136, 0.14);
}

.srv-visual {
    height: 185px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sv-1 { background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.sv-2 { background: linear-gradient(135deg, #0d9488, #0284c7); }
.sv-3 { background: linear-gradient(135deg, #1e293b, #334155); }
.sv-4 { background: linear-gradient(135deg, #064e3b, #0f766e); }

.srv-svg {
    width: 84%;
    max-width: 270px;
    transition: transform 0.35s ease;
}

.service-card:hover .srv-svg {
    transform: scale(1.06);
}

.srv-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}

.srv-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.srv-body h3 {
    font-size: 1.28rem;
    margin-bottom: 8px;
}

.srv-body p {
    font-size: 0.93rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
}

.btn-detail {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--teal-dark);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-detail:hover {
    text-decoration: underline;
}

/* Menu 4: Kontak */
.quote-wrapper {
    background: linear-gradient(135deg, var(--navy), #134e4a);
    color: #ffffff;
    border-radius: 26px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 44px;
}

.quote-info h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

.quote-info p {
    color: #cbd5e1;
    margin-bottom: 28px;
}

.office-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.office-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 14px;
}

.office-item span {
    font-size: 1.4rem;
}

.office-item strong {
    display: block;
    font-size: 0.95rem;
}

.office-item small {
    color: #cbd5e1;
    font-size: 0.84rem;
}

.quote-form {
    background: #ffffff;
    color: var(--text);
    padding: 32px;
    border-radius: 20px;
}

.quote-form h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.94rem;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.form-feedback {
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--teal-dark);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-top {
    text-decoration: none;
    font-weight: 800;
    color: var(--teal-dark);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    max-width: 490px;
    width: 100%;
    border-radius: 20px;
    padding: 32px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    font-weight: 800;
    cursor: pointer;
}

.modal-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.spec-box {
    display: inline-block;
    background: #f0fdfa;
    color: var(--teal-dark);
    font-weight: 800;
    font-size: 0.84rem;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.modal-box p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

/* Scroll Reveal */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 920px) {
    .hero-grid,
    .about-grid,
    .services-grid,
    .quote-wrapper {
        grid-template-columns: 1fr;
    }

    .quote-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 680px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .est-controls {
        flex-direction: column;
    }

    .badge-float {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
