:root {
    --bg: #f8fafc;
    --navy: #0f172a;
    --slate: #1e293b;
    --text: #0f172a;
    --text-muted: #475569;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --blue: #0284c7;
    --green: #059669;
    --border: #cbd5e1;
    --radius: 18px;
}

* {
    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: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.01em;
}

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

/* Blueprint Grid Background */
.blueprint-bg {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--amber);
    z-index: 1000;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

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

.gear-spin {
    display: inline-block;
    animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

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

.nav-link {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 16px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    background: var(--amber);
    color: var(--navy);
}

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

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: #ffffff;
}

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

.bg-slate-alt {
    background-color: #eef2f6;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.sec-tag {
    display: inline-block;
    background: var(--navy);
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sec-tag.tag-dark {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

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

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

/* Hero / Tentang */
.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: 70px;
}

.safety-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    color: #065f46;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.safety-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-content h1 {
    font-size: 3.1rem;
    line-height: 1.12;
    margin-bottom: 18px;
    color: var(--navy);
}

.highlight-amber {
    display: inline-block;
    background: var(--amber);
    color: var(--navy);
    padding: 0 12px;
    border-radius: 8px;
    transition: opacity 0.25s ease;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.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-amber {
    background: var(--amber);
    color: var(--navy);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

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

.full-width {
    width: 100%;
}

.cert-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-chip {
    background: #ffffff;
    border: 1.5px solid var(--border);
    padding: 7px 13px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Kartu Pabrik & Animasi SVG */
.hero-visual {
    position: relative;
}

.kpi-float {
    position: absolute;
    background: var(--navy);
    color: #ffffff;
    border: 1.5px solid var(--amber);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 4;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    animation: floatTag 3.5s infinite ease-in-out;
}

.kf-1 { top: -14px; left: -14px; color: #38bdf8; }
.kf-2 { top: 44%; right: -18px; color: #fde047; animation-delay: 1.1s; }
.kf-3 { bottom: -14px; left: 16px; color: #6ee7b7; animation-delay: 2.2s; }

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

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

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

.status-run {
    color: #10b981;
    font-weight: bold;
}

.factory-stage {
    background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%);
    padding: 16px 16px 6px;
    border-bottom: 2px solid var(--border);
}

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

/* Animasi Asap, Gear, dan Kotak Conveyor */
.smoke {
    animation: riseSmoke 3.2s infinite ease-out;
}
.s2 { animation-delay: 1s; }
.s3 { animation-delay: 2s; }

@keyframes riseSmoke {
    0% { transform: translateY(0) scale(0.8); opacity: 0.6; }
    100% { transform: translateY(-18px) scale(1.4); opacity: 0; }
}

.svg-gear {
    animation: spinSlow 6s linear infinite;
}

.box-move {
    animation: conveyorMove 4.5s linear infinite;
}
.b2 { animation-delay: -1.5s; }
.b3 { animation-delay: -3s; }

@keyframes conveyorMove {
    0% { transform: translateX(-20px); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(70px); opacity: 0; }
}

.plant-summary {
    padding: 18px 22px 24px;
    text-align: center;
}

.plant-summary h3 {
    font-size: 1.6rem;
    margin-bottom: 2px;
}

.plant-summary .role {
    color: var(--blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.kpi-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 8px;
}

.kpi-box strong {
    display: block;
    font-size: 1.15rem;
    color: var(--navy);
}

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

/* Hazard Ticker */
.hazard-ticker {
    background: var(--navy);
    border-top: 3px solid var(--amber);
    border-bottom: 3px solid var(--amber);
    color: #ffffff;
    padding: 13px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-inner {
    display: inline-flex;
    gap: 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    animation: tickerSlide 22s linear infinite;
}

.ticker-inner span:nth-child(even) {
    color: var(--amber);
}

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

/* Pengalaman */
.exp-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.85fr;
    gap: 32px;
    align-items: start;
}

.plant-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    display: flex;
    gap: 18px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.job-card:hover {
    transform: translateX(6px);
    border-color: var(--amber);
}

.job-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-amber { background: #fef3c7; }
.icon-blue { background: #e0f2fe; }
.icon-green { background: #d1fae5; }

.job-period {
    display: inline-block;
    background: var(--navy);
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.job-body h3 {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.job-body h4 {
    font-size: 0.92rem;
    color: var(--blue);
    margin-bottom: 8px;
}

.job-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.tech-panel {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.tech-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.panel-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.gauge-item {
    margin-bottom: 18px;
}

.gauge-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.gauge-bar {
    height: 11px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--navy), var(--amber));
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.safety-callout {
    margin-top: 22px;
    background: #ecfdf5;
    border: 1.5px dashed #10b981;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.86rem;
    color: #065f46;
}

.safety-callout span {
    font-size: 1.5rem;
}

/* Proyek Pabrik */
.filter-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

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

.filter-pill:hover,
.filter-pill.active {
    background: var(--navy);
    color: var(--amber);
    border-color: var(--navy);
}

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

.project-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;
}

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

.project-card:hover {
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.project-banner {
    height: 195px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-1 { background: linear-gradient(135deg, #1e293b, #334155); }
.pb-2 { background: linear-gradient(135deg, #0c4a6e, #0369a1); }
.pb-3 { background: linear-gradient(135deg, #064e3b, #047857); }
.pb-4 { background: linear-gradient(135deg, #78350f, #b45309); }

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

.project-card:hover .proj-svg {
    transform: scale(1.06);
}

.cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--amber);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
}

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

.project-body h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

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

.project-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.saving-tag {
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
}

.btn-case {
    background: none;
    border: none;
    color: var(--blue);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

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

/* Kontak */
.contact-card {
    background: var(--navy);
    color: #ffffff;
    border-radius: 26px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 44px;
    border-bottom: 5px solid var(--amber);
}

.contact-left h2 {
    font-size: 2.3rem;
    line-height: 1.18;
    margin-bottom: 14px;
}

.contact-left p {
    color: #cbd5e1;
    margin-bottom: 28px;
}

.direct-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direct-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 18px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.25s ease;
}

.direct-item:hover {
    border-color: var(--amber);
    transform: translateX(6px);
}

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

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

.direct-item small {
    color: #94a3b8;
    font-size: 0.84rem;
}

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

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.form-row {
    margin-bottom: 16px;
}

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

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

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--amber);
}

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

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

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

.up-btn {
    text-decoration: none;
    font-weight: 800;
    color: var(--navy);
}

/* Modal */
.modal-mask {
    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-mask.open {
    display: flex;
}

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

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

.modal-dialog h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.impact-banner {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.modal-dialog 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,
    .exp-wrapper,
    .contact-card,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 32px 24px;
    }
}

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

    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--navy);
        flex-direction: column;
        padding: 16px 24px;
        display: none;
    }

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

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

    .kpi-float {
        display: none;
    }

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