:root {
    --bg-main: #0b0c10;
    --bg-card: #12131a;
    --bg-card-hover: #191b24;
    --primary: #ff2a54;
    --primary-glow: rgba(255, 42, 84, 0.15);
    --accent: #00f0ff;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* Percikan Cahaya Dinamis */
.spark-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.spark {
    position: absolute;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: floatSpark 7s infinite ease-in-out;
}

@keyframes floatSpark {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    30% { opacity: 0.7; }
    100% { transform: translateY(-140px) scale(1.2); opacity: 0; }
}

.glow-1 {
    position: absolute;
    top: 0%;
    left: 15%;
    width: 80%;
    max-width: 400px;
    aspect-ratio: 1/1;
    background: var(--primary-glow);
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: -1;
}

/* ANIMASI NAVBAR */
@keyframes slideDownIn {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
    animation: slideDownIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

nav.scrolled {
    padding: 2px 0;
    background: rgba(11, 12, 16, 0.95);
    border-bottom: 1px solid rgba(255, 42, 84, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-profile-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
}
.logo span { color: var(--primary); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}
.menu-toggle:hover { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a.btn-studio { color: var(--primary); font-weight: 700; }

.btn-contribute-nav {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 6px 18px;
    border-radius: 50px;
}
.btn-contribute-nav:hover {
    background: var(--primary);
    color: white !important;
}

.nav-socials {
    display: flex;
    gap: 14px;
    border-left: 1px solid var(--border);
    padding-left: 16px;
    align-items: center;
}
.nav-socials a { font-size: 1.1rem; transition: transform 0.3s, color 0.3s; }
.nav-socials a.icon-git:hover { color: #ffffff; transform: scale(1.1); }
.nav-socials a.icon-ig:hover { color: #fccc63; transform: scale(1.1); }

/* HERO SECTION & VIDEO SETUP */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    background: transparent;
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                    rgba(11, 12, 16, 0.1) 0%, 
                    rgba(11, 12, 16, 0.4) 65%, 
                    var(--bg-main) 100%);
}

.hero-left { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }

.badge-status {
    align-self: flex-start;
    background: #111827;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-status span { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 8px #10b981; }

.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; min-height: 120px; }

/* Nama Teks Gradasi Merah-Hitam Stabil */
.glow-text {
    background: linear-gradient(135deg, #ff2a54 0%, #12131a 65%, #ff2a54 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 3px rgba(255, 42, 84, 0.7));
    font-weight: 800;
}

/* Kursor Berkedip Command Line */
.typed-cursor {
    color: #ff2a54;
    font-weight: 800;
    margin-left: 2px;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-titles { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-muted); font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; }
.hero p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; max-width: 550px; }

.languages-box h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 10px; }
.lang-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-card { background: var(--bg-card); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.lang-card .level { font-size: 0.65rem; background: #1f2937; padding: 2px 6px; border-radius: 4px; color: var(--text-muted); }

.lang-icon-id { color: #ff4d4d; }
.lang-icon-en { color: #3b82f6; }
.lang-icon-tr { color: #f59e0b; }
.lang-icon-jp { color: #ec4899; }

/* Console Box */
.hero-right { position: relative; z-index: 1; }
.hero-right .console-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: inset 0 0 20px rgba(0,0,0,0.4); }
.console-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 15px; }
.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.console-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.stat-mini { background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.02); }
.stat-mini h3 { font-size: 1.5rem; font-weight: 800; }
.stat-mini p { font-size: 0.65rem; text-transform: uppercase; color: var(--text-muted); }
.code-area { font-family: 'Space Grotesk', monospace; font-size: 0.75rem; color: #a78bfa; line-height: 1.5; }

/* Sections Global Layout */
section { padding: 80px 20px; position: relative; z-index: 2; }
.section-bg-alt { background: #0e1017; border-top: 1px solid #161922; border-bottom: 1px solid #161922; }
.section-title-wrapper { text-align: center; max-width: 600px; margin: 0 auto 50px auto; }
.section-title-wrapper p.subtitle { color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.section-title-wrapper h2 { font-size: 2rem; font-weight: 800; }

/* Skills Grid */
.skills-container { max-width: 1200px; margin: 0 auto; }
.core-skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 50px; }
.core-card { background: var(--bg-card); border: 1px solid var(--border); padding: 25px; border-radius: 14px; transition: all 0.3s; }
.core-card:hover { border-color: #374151; transform: translateY(-4px); }
.core-icon { width: 45px; height: 45px; border-radius: 10px; background: #1f2937; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 15px; }
.core-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.core-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* Tech Stack */
.tech-title { text-align: center; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 25px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.tech-card { background: rgba(18, 19, 26, 0.5); border: 1px solid var(--border); padding: 15px; border-radius: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tech-card i { font-size: 1.75rem; margin-bottom: 8px; display: block; }
.tech-card span { font-size: 0.75rem; font-weight: 600; color: #d1d5db; }

/* STYLE UNTUK CUSTOM LUA SVG ICON */
.lua-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: #000080; /* Warna biru navy khas Lua */
    margin-bottom: 8px;
    display: block;
}

/* Portfolio 16:9 Grid */
.portfolio-container { max-width: 1200px; margin: 0 auto; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.portfolio-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.img-wrapper-16-9 { width: 100%; aspect-ratio: 16 / 9; background: #1f2937; position: relative; overflow: hidden; }
.img-wrapper-16-9 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover .img-wrapper-16-9 img { transform: scale(1.04); }
.card-16-9-body { padding: 20px; flex-grow: 1; }
.card-16-9-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-16-9-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* Certificates rows */
.cert-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.cert-row { background: rgba(18, 19, 26, 0.6); border: 1px solid var(--border); padding: 16px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.cert-left { display: flex; align-items: center; gap: 15px; }
.cert-icon-box { background: rgba(255, 42, 84, 0.1); color: var(--primary); width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.cert-info h4 { font-size: 0.95rem; }
.cert-info p { font-size: 0.75rem; color: var(--text-muted); }
.cert-date { font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; background: #0b0c10; border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; color: var(--text-muted); }

/* Form Area */
.contribute-box { max-width: 600px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); padding: 30px; border-radius: 20px; }
.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border); padding: 10px 14px; border-radius: 6px; color: white; font-family: inherit; font-size: 0.85rem; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.btn-submit { width: 100%; background: linear-gradient(to right, var(--primary), #d61f43); color: white; border: none; padding: 12px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; cursor: pointer; }

footer { border-top: 1px solid rgba(255,255,255,0.02); padding: 30px 20px; text-align: center; font-size: 0.75rem; color: var(--text-muted); position: relative; z-index: 2; }

/* RESPONSIVE RESPONSIVENESS (Pembaruan Versi Mobile) */
@media (max-width: 968px) {
    .hero { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding: 100px 20px 80px 20px; 
    }
    
    .hero-video-bg { 
        opacity: 0.25; 
    }
    
    .badge-status { 
        margin: 0 auto; 
    }
    
    .hero h1 { 
        font-size: 2.5rem; 
        min-height: 90px; 
    }

    .hero-titles {
        justify-content: center;
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .hero p { 
        margin: 10px auto 0 auto; 
    }
    
    .lang-grid { 
        justify-content: center; 
    }
    
    .hero-right { 
        display: none; 
    }
    
    .menu-toggle { 
        display: block; 
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(18, 19, 26, 0.98);
        border-bottom: 2px solid var(--primary);
        padding: 30px 20px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        backdrop-filter: blur(20px);
    }
    
    .nav-links.active { 
        display: flex; 
    }
    
    .nav-socials {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 16px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .form-group-row { grid-template-columns: 1fr; gap: 0; }
    .cert-row { flex-direction: column; align-items: flex-start; }
    .cert-date { align-self: flex-start; margin-top: 5px; }
    section { padding: 60px 20px; }
    .hero h1 { font-size: 2.1rem; }
}