/* ─── Variables ─────────────────────────────────── */
:root {
    --bg:           #07090f;
    --surface:      #0c1018;
    --surface-2:    #111624;
    --border:       rgba(255, 255, 255, 0.07);
    --border-hi:    rgba(255, 255, 255, 0.13);
    --text:         #dde4f0;
    --subtext:      #7c8fa8;
    --muted:        #3a4a5e;
    --accent:       #4d84ff;
    --accent-glow:  rgba(77, 132, 255, 0.18);
    --accent-dim:   rgba(77, 132, 255, 0.07);
    --green:        #22c55e;
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a, button { transition: color 0.2s, border-color 0.2s, background 0.2s, opacity 0.2s; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Language ──────────────────────────────────── */
.lang-en, .lang-id { display: none; }
html[data-lang="en"] .lang-en { display: inline; }
html[data-lang="id"] .lang-id { display: inline; }
html[data-lang="en"] .lang-en.blk { display: block; }
html[data-lang="id"] .lang-id.blk { display: block; }

/* ─── Skip link ─────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--surface);
    color: var(--accent);
    padding: 8px 16px;
    border: 1px solid var(--border-hi);
    z-index: 9999;
    font-size: 13px;
    transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ─── Nav ───────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(7, 9, 15, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--subtext);
    text-decoration: none;
    font-size: 14px;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    color: var(--text) !important;
    border: 1px solid var(--border-hi) !important;
    padding: 7px 18px;
    font-size: 13px !important;
}
.nav-cta:hover {
    background: var(--accent-dim);
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}
#lang-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--subtext);
    padding: 5px 12px;
    font-size: 11px;
    font-family: inherit;
    letter-spacing: 0.08em;
    cursor: pointer;
}
#lang-toggle:hover { border-color: var(--border-hi); color: var(--text); }

/* ─── Hero ──────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(77,132,255,0.09) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}
.hero-inner {
    max-width: 800px;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-hi);
    background: var(--surface);
    padding: 6px 16px;
    font-size: 12px;
    color: var(--subtext);
    margin-bottom: 32px;
    letter-spacing: 0.04em;
}
.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

.hero h1 {
    font-size: clamp(36px, 6vw, 66px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
    font-size: 17px;
    color: var(--subtext);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
}
.btn-primary:hover { background: #6699ff; transform: translateY(-1px); }
.btn-secondary {
    display: inline-block;
    border: 1px solid var(--border-hi);
    color: var(--text);
    text-decoration: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ─── Stats ─────────────────────────────────────── */
.stats-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 36px 20px;
    border-right: 1px solid var(--border);
    text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: var(--subtext);
}

/* ─── Layout ────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 96px 20px; }
.section-header { margin-bottom: 56px; }
.section-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 14px;
}
.section-desc {
    font-size: 15px;
    color: var(--subtext);
    max-width: 540px;
    line-height: 1.7;
}

/* ─── Framework ─────────────────────────────────── */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    gap: 1px;
    background: var(--border);
}
.framework-card {
    background: var(--bg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* scroll anim */
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.25s;
}
.framework-card.visible { opacity: 1; transform: translateY(0); }
.framework-card:hover { background: var(--surface); }
.fw-num {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
}
.framework-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.framework-card p {
    font-size: 13px;
    color: var(--subtext);
    line-height: 1.65;
}

/* ─── Projects ──────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--border);
    gap: 1px;
    background: var(--border);
}
.project-card {
    background: var(--bg);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: background 0.25s;
}
.project-card:hover { background: var(--surface); }
.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.project-num {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 500;
    flex-shrink: 0;
    padding-top: 2px;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.tag {
    font-size: 11px;
    border: 1px solid var(--border-hi);
    color: var(--subtext);
    padding: 3px 9px;
    letter-spacing: 0.02em;
}
.project-card h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.project-card > p {
    font-size: 14px;
    color: var(--subtext);
    line-height: 1.72;
}
.project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.project-metrics span { font-size: 13px; color: var(--subtext); }
.project-metrics strong { color: var(--text); font-size: 15px; font-weight: 600; margin-right: 3px; }
.case-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-align: left;
    margin-top: auto;
    letter-spacing: 0.01em;
}
.case-btn:hover { opacity: 0.7; }

/* ─── Timeline ──────────────────────────────────── */
.timeline {
    padding-left: 28px;
    border-left: 1px solid var(--border);
}
.tl-item {
    position: relative;
    padding-bottom: 52px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
    border: 2px solid var(--bg);
}
.tl-item.active .tl-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim);
}
.tl-company {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 3px;
}
.tl-meta {
    font-size: 12px;
    color: var(--subtext);
    margin-bottom: 20px;
}
.tl-roles { display: flex; flex-direction: column; gap: 18px; }
.tl-role {
    padding-left: 16px;
    border-left: 2px solid var(--border);
}
.tl-role-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}
.tl-role-period {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 5px;
}
.tl-role-desc, .tl-summary {
    font-size: 13px;
    color: var(--subtext);
    line-height: 1.65;
}

/* ─── Skills ────────────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--border);
    gap: 1px;
    background: var(--border);
}
.skill-card {
    background: var(--bg);
    padding: 32px;
    transition: background 0.25s;
}
.skill-card:hover { background: var(--surface); }
.skill-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.skill-card p { font-size: 13px; color: var(--subtext); line-height: 1.65; }

/* ─── Certifications ────────────────────────────── */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    border: 1px solid var(--border);
    gap: 1px;
    background: var(--border);
}
.cert-card {
    background: var(--bg);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: background 0.2s;
}
.cert-card:hover { background: var(--surface); }
.cert-card strong { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; }
.cert-card small { font-size: 11px; color: var(--subtext); }

/* ─── Testimonials ──────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    gap: 1px;
    background: var(--border);
}
.testimonial-card {
    background: var(--bg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: background 0.25s;
}
.testimonial-card:hover { background: var(--surface); }
.quote {
    font-size: 40px;
    line-height: 1;
    color: var(--accent);
    font-family: Georgia, serif;
    font-weight: 700;
    margin-bottom: 16px;
    opacity: 0.6;
}
.testimonial-card p {
    font-size: 13px;
    color: var(--subtext);
    line-height: 1.75;
    font-style: italic;
    flex: 1;
    margin-bottom: 24px;
}
.t-author strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.t-author small { font-size: 11px; color: var(--muted); }

/* ─── Footer ────────────────────────────────────── */
footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-name { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; }
.footer-role { font-size: 13px; color: var(--subtext); }
.footer-right { text-align: right; }
.footer-cta { font-size: 14px; color: var(--subtext); margin-bottom: 20px; max-width: 340px; }
.footer-links { display: flex; gap: 16px; justify-content: flex-end; }
.footer-link { font-size: 14px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-hi); padding-bottom: 2px; }
.footer-link:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 20px; }
.footer-bottom small { display: block; max-width: 1100px; margin: 0 auto; font-size: 11px; color: var(--muted); }

/* ─── Modal ─────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    overflow-y: auto;
    padding: 60px 20px;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
    background: var(--surface);
    border: 1px solid var(--border-hi);
    max-width: 760px;
    width: 100%;
    padding: 56px;
    position: relative;
    margin: auto;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--subtext);
}
.modal-close:hover { color: var(--text); }
.modal-box h1 { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; }
.modal-box .modal-meta { font-size: 13px; color: var(--subtext); margin-bottom: 32px; }
.modal-box h2 {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin: 32px 0 12px;
}
.modal-box p, .modal-box li { font-size: 14px; color: var(--subtext); line-height: 1.72; margin-bottom: 8px; }
.modal-box ul, .modal-box ol { padding-left: 18px; }
.modal-box li { margin-bottom: 8px; }
.modal-box strong { color: var(--text); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 960px) {
    nav { padding: 0 24px; }
    .nav-links a:not(#lang-toggle):not(.nav-cta) { display: none; }
    .framework-grid,
    .projects-grid,
    .skills-grid,
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .stat-item:last-child { border-bottom: none; }
    .footer-inner { flex-direction: column; }
    .footer-right { text-align: left; }
    .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 34px; }
    .hero-sub { font-size: 15px; }
    .section { padding: 72px 20px; }
    .project-card { padding: 32px 24px; }
    .framework-card { padding: 28px 24px; }
    .modal-box { padding: 32px 24px; }
}
