* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #FF0000;
    --accent-glow: rgba(255,45,45,0.2);
    --text: #fff;
    --text2: #a0a0a0;
    --text3: #555;
    --card: #0a0a0a;
    --border: rgba(255,255,255,0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: var(--text);
    line-height: 1.6;
    background-image:
        linear-gradient(rgba(128,128,128,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128,128,128,0.12) 1px, transparent 1px);
    background-size: 60px 60px;
}

html { scroll-behavior: smooth; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 60px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.navbar.scrolled { background: rgba(0,0,0,0.92); }

.nav-logo {
    font-weight: 700; font-size: 1.2rem; color: var(--accent);
    text-decoration: none; letter-spacing: -0.03em;
}

.nav-menu {
    list-style: none; display: flex; align-items: center; gap: 8px;
}

.nav-link {
    color: var(--text2); text-decoration: none; font-size: 0.85rem;
    font-weight: 400; padding: 8px 14px; border-radius: 8px;
    transition: all 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }

.nav-cta {
    background: var(--accent); color: #fff; font-weight: 600;
    margin-left: 8px;
}
.nav-cta:hover { background: #FF0000; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    width: 22px; height: 2px; background: #fff; border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== PROFIL ===== */
.profil {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 120px 24px 40px;
}
.profil-img {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--accent); margin-bottom: 20px;
}
.profil h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.03em; }
.profil p { color: var(--text2); font-size: 0.9rem; font-weight: 300; max-width: 440px; }

/* ===== SECTION ===== */
.section { max-width: 820px; margin: 0 auto; padding: 70px 24px; }
.title {
    font-size: 1.5rem; font-weight: 600; margin-bottom: 32px;
    padding-bottom: 10px; border-bottom: 2px solid var(--accent);
    display: inline-block; letter-spacing: -0.02em;
}
.section > p { color: var(--text2); font-size: 0.9rem; font-weight: 300; line-height: 1.8; }

/* ===== SKILLS ===== */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.skill-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 24px; transition: all 0.3s;
}
.skill-card:hover { border-color: rgba(255,45,45,0.3); box-shadow: 0 0 24px var(--accent-glow); }
.skill-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.skill-card p { font-size: 0.82rem; color: var(--text2); font-weight: 300; margin-bottom: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
    font-size: 0.7rem; font-weight: 500; padding: 3px 10px;
    border-radius: 999px; background: rgba(255,45,45,0.1);
    color: var(--accent); border: 1px solid rgba(255,45,45,0.2);
}

/* ===== PROJECT ===== */
.project-item {
    display: flex; gap: 20px; padding: 22px 0;
    border-bottom: 1px solid var(--border); transition: all 0.2s;
}
.project-item:first-child { border-top: 1px solid var(--border); }
.project-item:hover { padding-left: 10px; }
.project-item:hover .project-num { color: var(--accent); }
.project-num { font-size: 0.8rem; font-weight: 700; color: var(--text3); min-width: 28px; transition: color 0.2s; }
.project-item h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.project-item p { font-size: 0.82rem; color: var(--text2); font-weight: 300; }

/* ===== CERT ===== */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cert-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.3s;
}
.cert-card:hover { border-color: rgba(255,45,45,0.3); box-shadow: 0 0 24px var(--accent-glow); }
.cert-card:hover .cert-img { transform: scale(1.05); }
.cert-img { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform 0.4s; }
.cert-info { padding: 14px 16px; }
.cert-info h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.cert-info span { font-size: 0.75rem; color: var(--text2); }
.cert-info span::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ===== CTA ===== */
.cta { display: flex; justify-content: center; padding: 40px 24px 70px; }
.btn-wa {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff; font-size: 0.9rem; font-weight: 600;
    padding: 12px 32px; border-radius: 999px; text-decoration: none;
    transition: all 0.3s;
}
.btn-wa:hover { background: #20bd5a; box-shadow: 0 0 24px rgba(37,211,102,0.3); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
    max-width: 820px; margin: 0 auto; padding: 0 24px 32px;
    border-top: 1px solid var(--border); text-align: center; padding-top: 24px;
}
.footer p { font-size: 0.75rem; color: var(--text3); }

/* ===== MODAL ===== */
.modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); }
.modal-box {
    position: relative; max-width: 640px; width: 90%; max-height: 80vh;
    background: #111; border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; animation: pop 0.25s ease;
}
@keyframes pop { from { opacity:0; transform:scale(0.93); } to { opacity:1; transform:scale(1); } }
.modal-close {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); }
.modal-box img { width: 100%; max-height: 78vh; object-fit: contain; display: block; }

/* ===== ANIMASI ===== */
.fade { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.fade.show { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: 60px; left: 0; right: 0;
        flex-direction: column; background: rgba(0,0,0,0.95);
        backdrop-filter: blur(12px); padding: 16px; gap: 4px;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.open { display: flex; }
    .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
    .skills-grid, .cert-grid { grid-template-columns: 1fr; }
    .profil h1 { font-size: 1.4rem; }
    .title { font-size: 1.25rem; }
}