/* MODERN TECH MINIMALIST SLATE - NVIDIA THEME CONFIG */
:root {
    --nv-green: #76B900;
    --nv-bright: #39ff14;
    --bg-base: #060608;
    --bg-card: rgba(13, 13, 18, 0.65);
    --bg-surface: rgba(22, 22, 30, 0.6);
    --text-main: #f3f3f8;
    --text-muted: #888894;
    --border-smooth: rgba(118, 185, 0, 0.2);
    --neon-shadow: 0 0 30px rgba(118, 185, 0, 0.25);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #1c1c24;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--nv-green);
}

#loading-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-base);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-core {
    text-align: center;
    width: 90%;
    max-width: 460px;
}

.spinner-ring {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(118, 185, 0, 0.08);
    border-top: 3px solid var(--nv-green);
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: rotateLoop 0.8s linear infinite;
}

@keyframes rotateLoop {
    to { transform: rotate(360deg); }
}

.load-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.terminal-text-wrapper {
    background: #020204;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
    height: 80px;
    text-align: left;
    overflow: hidden;
}

.term-line {
    font-family: monospace;
    color: var(--nv-bright);
    font-size: 13px;
    line-height: 1.4;
}

.load-bar-container {
    width: 100%;
    height: 3px;
    background: #12121a;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.load-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--nv-green);
    box-shadow: 0 0 10px var(--nv-bright);
}

.load-status {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    letter-spacing: 1px;
}

.boot-btn {
    margin-top: 20px;
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 5px var(--nv-green); }
    to { box-shadow: 0 0 20px var(--nv-bright); }
}

.gamepad-overlay-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.gamepad-shape {
    position: absolute;
    color: var(--nv-green);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    user-select: none;
    opacity: 0.45;
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.9);
    animation: moveUpwards var(--d, 8s) linear infinite;
}

@keyframes moveUpwards {
    0% { top: 105vh; transform: rotate(0deg); opacity: 0; }
    10% { opacity: 0.45; }
    90% { opacity: 0.45; }
    100% { top: -10vh; transform: rotate(360deg); opacity: 0; }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.main-navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(6, 6, 8, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-smooth);
    z-index: 900;
}

.nav-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.brand-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.green-glow {
    color: var(--nv-green);
    text-shadow: 0 0 10px rgba(118, 185, 0, 0.4);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    position: relative;
    z-index: 5;
    margin-top: 60px;
}

.side-hud-bar {
    position: absolute;
    top: 15%; width: 2px; height: 70%;
    background: linear-gradient(180deg, transparent, var(--border-smooth), transparent);
}
.side-hud-bar.left-bar { left: 40px; }
.side-hud-bar.right-bar { right: 40px; }

.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(118, 185, 0, 0.2);
    pointer-events: none;
}
.hud-corner.top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.hud-corner.top-right { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.hud-corner.bottom-left { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.hud-corner.bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.hero-inner {
    text-align: center;
    max-width: 820px;
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid var(--border-smooth);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.active-dot {
    width: 6px;
    height: 6px;
    background: var(--nv-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--nv-bright);
}

.main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

.action-btn {
    padding: 13px 28px;
    background: var(--nv-green);
    color: #000;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: var(--nv-bright);
    transform: translateY(-2px);
}

.action-btn-outline {
    padding: 12px 28px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid #23232f;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    margin-left: 12px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn-outline:hover {
    background: var(--bg-surface);
}

.matrix-section, .telemetry-section, .doc-section {
    padding: 70px 24px;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 900;
}

.section-sub {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-top: 5px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.neon-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-smooth);
    border-radius: 8px;
    padding: 30px 20px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s, transform 0.2s;
}

.neon-card:hover {
    border-color: var(--nv-bright);
    transform: translateY(-5px);
}

.icon-box {
    font-size: 32px;
    color: var(--nv-green);
    margin-bottom: 15px;
}

.neon-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 700;
}

.tag-hardware {
    font-size: 12px;
    color: var(--text-muted);
}

.hologram-display {
    background: rgba(9, 14, 12, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 185, 0, 0.3);
    border-radius: 6px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.hologram-scanline {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

#holo-title {
    color: var(--nv-green);
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#holo-body {
    font-size: 14px;
    color: #9cbda2;
    line-height: 1.7;
}

.telemetry-box {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-smooth);
    border-radius: 8px;
    padding: 30px;
}

.simulator-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.sim-pill {
    padding: 10px 20px;
    background: var(--bg-surface);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

.sim-pill.active, .sim-pill:hover {
    background: rgba(118, 185, 0, 0.15);
    border-color: var(--nv-green);
    color: var(--nv-green);
}

.progress-container-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.outer-neon-bar {
    width: 100%;
    height: 8px;
    background: #1c1c24;
    border-radius: 4px;
    overflow: hidden;
}

.inner-neon-bar {
    width: 0%;
    height: 100%;
    background: var(--nv-green);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.doc-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-smooth);
    border-radius: 12px;
    padding: 50px 40px;
}

@media (max-width: 768px) {
    .doc-container { padding: 25px 20px; }
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(118, 185, 0, 0.08);
    color: var(--nv-green);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 25px;
}

.deep-article-body h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 3.5vw, 32px);
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 900;
}

.meta-article {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.neon-line-divider {
    height: 1px;
    background: var(--border-smooth);
    margin-bottom: 35px;
}

.deep-article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    color: var(--text-main);
    margin: 40px 0 15px 0;
    border-left: 3px solid var(--nv-green);
    padding-left: 12px;
    font-weight: 700;
}

.deep-article-body p {
    font-size: 15px;
    line-height: 1.85;
    color: #c5c5d3;
    margin-bottom: 20px;
    text-align: justify;
}

.deep-article-body ul {
    margin: 15px 0 25px 20px;
    color: #c5c5d3;
    font-size: 15px;
    line-height: 1.8;
}

.deep-article-body ul li {
    margin-bottom: 8px;
}

/* STYLING KARTU MEME CYBER */
.meme-grid {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.meme-card {
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--border-smooth);
    border-radius: 10px;
    padding: 16px;
    max-width: 580px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.meme-card:hover {
    transform: translateY(-4px);
    border-color: var(--nv-bright);
    box-shadow: 0 0 25px rgba(118, 185, 0, 0.3);
}

.meme-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

.meme-caption {
    font-size: 13.5px;
    color: #a0a0b2;
    margin-top: 12px;
    font-style: italic;
    line-height: 1.5;
}

.meme-caption i {
    color: var(--nv-green);
    margin: 0 4px;
}

.terminal-cli-visual {
    background: #040406;
    border: 1px solid var(--border-smooth);
    padding: 20px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    margin: 30px 0;
    overflow-x: auto;
}

.cli-green { color: #52c41a; }
.cli-white { color: #e5e5ed; }
.cli-bright { color: var(--nv-bright); }

.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 13.5px;
    background: #08080b;
}

.tech-table th, .tech-table td {
    padding: 12px 14px;
    text-align: left;
    border: 1px solid var(--border-smooth);
}

.tech-table th {
    background: #13131b;
    color: var(--text-main);
    font-weight: 700;
}

.cli-red { color: #ff4d4f; }

.tech-footer {
    background: #040406;
    padding: 35px 20px;
    text-align: center;
    border-top: 1px solid var(--border-smooth);
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.footer-sub-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* =========================================
   📱 OPTIMASI TAMPILAN MOBILE (HP)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Navbar Disesuaikan */
    .nav-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* 2. Hero Section & Tombol */
    .hero-section {
        margin-top: 90px; /* Jarak ekstra untuk navbar yang numpuk */
        height: auto;
        padding: 40px 15px;
    }
    .main-title {
        font-size: 28px;
    }
    .hero-desc {
        font-size: 14px;
    }
    .action-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .action-btn-outline {
        margin-left: 0;
    }

    /* 3. Grid Spesifikasi & Spasi Kiri-Kanan */
    .matrix-grid {
        grid-template-columns: 1fr; /* Memaksa kartu berbaris 1 ke bawah */
    }
    .matrix-section, .telemetry-section, .doc-section {
        padding: 40px 15px;
    }

    /* 4. Artikel, Meme & Terminal Code */
    .deep-article-body h1 {
        font-size: 22px;
    }
    .deep-article-body p, .deep-article-body ul {
        font-size: 14px;
    }
    .meme-card {
        padding: 10px;
    }
    .terminal-cli-visual {
        font-size: 11px;
        padding: 15px;
        overflow-x: auto; /* Teks kode bisa di-scroll ke samping kalau kepanjangan */
    }
    
    /* 5. Tabel Spesifikasi */
    .tech-table {
        font-size: 12px;
        display: block;
        overflow-x: auto; /* Tabel bisa digeser agar tidak terpotong */
        white-space: nowrap;
    }
}