@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;500;700&display=swap');

:root {
    --bg: #060708;
    --fg: #d6e8ff;
    --acc: #00ffc8;
    --soft: #1a1b1c;
    --glow: 0 0 10px rgba(0,255,200,0.6);
}

* { margin:0; padding:0; box-sizing:border-box; font-family:'JetBrains Mono',monospace; }

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--fg);
    overflow: hidden; /* Lock scroll bawaan */
}

/* FIX: Semua overlay harus pointer-events none */
.bg-grid, .parallax, .scanline {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
}

.bg-grid { background: linear-gradient(rgba(255,255,255,0.03) 1px,transparent 1px) 0 0 / 45px 45px; }
.parallax { opacity: .15; background-size: cover; }
.par1 { background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&q=40'); filter: blur(2px); z-index: 0; }
.par2 { background-image: url('https://images.unsplash.com/photo-1542831371-d531d36971e6?auto=format&q=40'); mix-blend-mode: overlay; z-index: 0; }

.scanline {
    z-index: 10;
    background: linear-gradient(to bottom,transparent 50%,rgba(0,255,200,0.02) 50%);
    background-size: 100% 4px;
}

/* WRAPPER */
/* --- Tambahan Fix --- */
.scroll-wrapper {
    display: flex;
    flex-direction: row;
    /* Jangan gunakan width: 400vw atau 500vw, biarkan flex yang bekerja */
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    position: relative;
    z-index: 5;
    scrollbar-width: none;
}

/* Pastikan semua panel terlihat */
.panel {
    flex: 0 0 100vw;
    min-width: 100vw;
    height: 100vh;
    display: flex !important; /* Paksa pakai flex */
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

/* Supaya kartu project tidak rusak kalau gambar belum ada */
.project-card img {
    min-height: 200px;
    background: #111; /* Warna placeholder */
}

.content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
}

/* TYPOGRAPHY */
h1.name { font-size: 4rem; color: var(--acc); text-shadow: var(--glow); }
h2.role, h2.title { font-size: 2rem; margin-bottom: 20px; }
p.desc { line-height: 1.4; margin: 18px 0 25px; }
.blink { color: var(--acc); animation: cursor 1.1s infinite; }
@keyframes cursor { 0%,100% { opacity: 1 } 50% { opacity: .2 } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { padding: 6px 10px; border: 1px solid var(--acc); border-radius: 6px; font-size: .8rem; opacity: .75; }

/* TIMELINE */
.timeline { border-left: 2px solid var(--acc); padding-left: 25px; margin-top: 20px; }
.item { margin-bottom: 30px; position: relative; }
.item::before {
    content: ''; position: absolute; left: -31px; top: 6px; width: 10px; height: 10px;
    background: var(--acc); border-radius: 50%; box-shadow: var(--glow);
}
.year { color: var(--acc); font-weight: 700; }
.label { font-weight: 500; display: block; margin: 5px 0; }
.note { opacity: .85; font-size: .9rem; line-height: 1.4; }

/* STATS */
.stats { margin-top: 30px; }
.stat { margin-bottom: 18px; }
.bar {
    height: 6px; border-radius: 4px; background: #253035; position: relative; overflow: hidden; width: 100%;
}
/* Update atau pastikan bagian ini seperti ini di style.css */
.bar::after {
    content: '';
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--acc);
    width: 0; /* Mulai dari 0 */
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: var(--glow);
}

/* Class ini akan ditambahkan oleh JS saat discroll */
.bar.fill::after {
    width: var(--value);
}

/* UI ELEMENTS */
.hint {
    color: var(--acc); position: fixed; right: 40px; top: 50%; transform: translateY(-50%);
    opacity: .4; animation: blink 1.4s infinite; z-index: 10; pointer-events: none;
}
@keyframes blink { 0%,100% { opacity: .2 } 50% { opacity: 1 } }

.cta { margin-top: 30px; display: flex; gap: 20px; }
.btn { padding: 12px 22px; border: 1px solid var(--acc); color: var(--acc); border-radius: 4px; text-decoration: none; transition: .25s; }
.btn:hover { background: var(--acc); color: var(--bg); }
.foot { opacity: .5; margin-top: 40px; font-size: .8rem; }

.full-width { max-width: 900px !important; }

/* Perbaiki Grid agar tidak kempes */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.project-card {
    background: var(--soft);
    border: 1px solid var(--acc);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.window-top {
    background: var(--acc);
    color: var(--bg);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.8;
    filter: grayscale(50%);
    transition: 0.3s;
}

.project-card:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.project-info {
    padding: 15px;
    border-top: 1px solid rgba(0, 255, 200, 0.2);
}

/* Khusus untuk halaman project */
.p-projects {
    display: flex !important;
    background: rgba(0, 255, 200, 0.02); /* Warna background tipis buat nandain */
}

.p-projects .content {
    width: 100%;
    max-width: 1000px; /* Lebarkan sedikit */
    padding: 0 50px;
    visibility: visible !important;
    opacity: 1 !important;
}

.project-info h3 { font-size: 1.1rem; color: var(--acc); }
.project-info p { font-size: 0.8rem; opacity: 0.7; margin-top: 5px; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow-y: auto;
    padding: 50px 0;
}

.modal-content {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 80%;
    max-width: 800px;
}

.modal-content img {
    width: 100%;
    border: 1px solid var(--acc);
    box-shadow: var(--glow);
}

.close {
    position: fixed;
    top: 20px;
    right: 35px;
    color: var(--acc);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* CERTIFICATION PANEL */
.p-certification {
    background: rgba(0, 255, 200, 0.015);
}

.cert-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cert-item {
    display: flex;
    gap: 25px;
    padding-left: 10px;
    position: relative;
}

.cert-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--acc);
    border-radius: 50%;
    box-shadow: var(--glow);
}

.cert-year {
    min-width: 60px;
    color: var(--acc);
    font-weight: 700;
}

.cert-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cert-name {
    font-weight: 500;
}

.cert-org {
    font-size: 0.8rem;
    opacity: 0.7;
}

.cert-note {
    font-size: 0.75rem;
    opacity: 0.55;
}
