/* ============================================================
   Public CV site — Corporate navy theme (high-end / elegant)
   ============================================================ */
:root {
    --navy-950: #050B18;
    --navy-900: #081226;
    --navy-800: #0C1B38;
    --navy-700: #12294F;
    --navy-600: #1A3A6E;
    --blue: #2563EB;
    --blue-dark: #1E40AF;
    --sky: #38BDF8;
    --bg: #F3F6FB;
    --card: #FFFFFF;
    --ink: #101A33;
    --muted: #5A6B8C;
    --line: #E4EAF5;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(16, 26, 51, .05), 0 6px 18px -6px rgba(16, 26, 51, .08);
    --shadow: 0 2px 4px rgba(16, 26, 51, .05), 0 18px 44px -14px rgba(16, 26, 51, .16);
    --shadow-lg: 0 4px 8px rgba(16, 26, 51, .06), 0 28px 64px -18px rgba(16, 26, 51, .24);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --sidebar-w: 300px;
}

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

html {
    scroll-padding-top: 84px;
}

body {
    font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    background:
        radial-gradient(900px 420px at 88% -6%, rgba(56, 189, 248, .10), transparent 60%),
        radial-gradient(700px 380px at -8% 18%, rgba(37, 99, 235, .07), transparent 55%),
        var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease;
}

::selection { background: rgba(37, 99, 235, .18); }

/* Reveal-on-scroll (dihidupkan oleh JS, diabaikan tanpa JS) */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}
.js .reveal.revealed {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------------- Sidebar ---------------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: linear-gradient(172deg, var(--navy-700) 0%, var(--navy-900) 40%, var(--navy-950) 100%);
    color: #fff;
    overflow-y: auto;
    z-index: 60;
    transition: transform .32s var(--ease-out);
}
.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(420px 260px at -20% -6%, rgba(56, 189, 248, .22), transparent 60%),
        radial-gradient(380px 300px at 120% 40%, rgba(37, 99, 235, .16), transparent 62%);
}
.sidebar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--sky), var(--blue), transparent);
    opacity: .8;
    pointer-events: none;
}
.side-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px 26px 36px;
    min-height: 100%;
}

.avatar {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    background:
        radial-gradient(120% 120% at 20% 15%, rgba(56, 189, 248, .45), transparent 55%),
        linear-gradient(135deg, var(--blue), var(--navy-600));
    box-shadow: 0 14px 32px rgba(0, 0, 0, .4), inset 0 0 0 3px rgba(255, 255, 255, .2);
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.side-name { font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: .2px; }
.side-degree {
    margin-top: -12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sky);
}
.side-role {
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .68);
    border-left: 3px solid transparent;
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.side-nav a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .32);
    flex-shrink: 0;
    transition: background .25s ease, transform .25s ease;
}
.side-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); transform: translateX(3px); }
.side-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, .55), rgba(56, 189, 248, .16));
    border-left-color: var(--sky);
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .5);
}
.side-nav a.active::before { background: var(--sky); transform: scale(1.25); }

.side-contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
}
.side-contact a, .side-contact .side-addr { display: flex; gap: 9px; align-items: flex-start; }
.side-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--sky); transition: transform .25s var(--ease-out); }
.side-contact a:hover svg { transform: translateX(2px); }
.side-contact a:hover span:last-child { color: #fff; }

/* ---------------- Mobile nav controls ---------------- */
.nav-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 80;
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    box-shadow: 0 8px 20px rgba(10, 24, 48, .3);
}
.nav-toggle svg { width: 22px; height: 22px; }

.side-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(7, 16, 34, .5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

/* ---------------- Main ---------------- */
.main {
    margin-left: var(--sidebar-w);
    padding: 34px 32px 60px;
}
/* Batasi lebar konten agar tidak melebar kosong di layar lebar */
.main > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    padding: 34px 38px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(520px 300px at 100% -10%, rgba(56, 189, 248, .10), transparent 62%),
        linear-gradient(180deg, #fff, #FCFDFF);
}
.hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--sky), transparent 85%);
}
.hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 65%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 290px);
    gap: 36px;
    align-items: center;
}

.hero-info { min-width: 0; }

.hero-side { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.hero-photo {
    width: 258px;
    height: 258px;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
    border: 6px solid #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy-600));
    box-shadow: 0 22px 48px -12px rgba(10, 24, 48, .28), 0 0 0 1px rgba(37, 99, 235, .16);
    transform: translateZ(0);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-side:hover .hero-photo { transform: translateY(-4px); }
.hero-photo { transition: transform .5s var(--ease-out); }

.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}
.hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.015em;
    color: var(--navy-900);
    background: linear-gradient(120deg, var(--navy-900), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-role {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--blue);
}

.hero-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #16A34A, #15803D);
    box-shadow: 0 8px 18px rgba(22, 163, 74, .28);
    transition: transform .18s ease, box-shadow .18s ease;
}
.hero-wa svg { width: 17px; height: 17px; }
.hero-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(22, 163, 74, .34); }

.hero-summary { margin-top: 16px; color: var(--muted); font-size: 15px; text-align: justify; }

.hero-facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.hero-fact {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 13.5px;
    color: var(--ink);
}
.hero-fact svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--blue);
}
.hero-fact span:last-child { line-height: 1.45; word-break: break-word; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(37, 99, 235, .6); }
.btn-outline { color: var(--blue); border-color: rgba(37, 99, 235, .4); background: rgba(37, 99, 235, .05); }
.btn-outline:hover { transform: translateY(-3px); background: rgba(37, 99, 235, .12); border-color: rgba(37, 99, 235, .6); }
.btn-ghost { color: var(--muted); border-color: var(--line); background: #fff; }
.btn-ghost:hover { transform: translateY(-3px); color: var(--ink); border-color: #c3cede; box-shadow: var(--shadow-sm); }

/* ---------------- Sections ---------------- */
.sec { margin-top: 48px; }

.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sec-bar {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--sky));
    flex-shrink: 0;
}
.sec-head h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--navy-900);
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.sec-head h2::after {
    content: "";
    margin-left: 16px;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, rgba(37, 99, 235, .45), transparent);
}

/* Timeline */
.tl { position: relative; padding-left: 26px; }
.tl::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue), var(--line) 70%);
    border-radius: 2px;
}

.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
    position: absolute;
    left: -26px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
    transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.tl-item:hover .tl-dot { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(37, 99, 235, .18); }
.tl-dot.is-current { background: var(--blue); animation: pulse-dot 2.6s var(--ease-out) infinite; }
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .35); }
    50% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
}

.tl-body { padding: 22px 26px; }
.tl-item:hover .tl-body { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(37, 99, 235, .22); }

.tl-head { display: flex; align-items: flex-start; gap: 16px; }
.tl-head > div:last-child { flex: 1; min-width: 0; }

.tl-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy-600));
    box-shadow: 0 6px 14px -4px rgba(10, 24, 48, .28);
    transition: transform .35s var(--ease-out);
}
.tl-item:hover .tl-logo { transform: scale(1.06) rotate(-2deg); }
.tl-logo img { width: 100%; height: 100%; object-fit: cover; }

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--blue-dark);
    background: rgba(37, 99, 235, .09);
    border: 1px solid rgba(37, 99, 235, .22);
    margin-bottom: 10px;
}

.tl-role { font-size: 17px; font-weight: 700; color: var(--navy-900); }
.tl-company { font-size: 13.5px; font-weight: 600; letter-spacing: .6px; color: var(--muted); margin-top: 2px; }
.tl-label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }

.tl-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; list-style: none; }
.tl-list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: #33415e;
    text-align: justify;
}
.tl-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--sky));
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--navy-700);
    background: var(--bg);
    border: 1px solid var(--line);
}

/* Skills */
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.skill-card { padding: 26px 28px; display: flex; flex-direction: column; }
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(37, 99, 235, .22); }

.skill-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.skill-head h3 { font-size: 15.5px; font-weight: 700; color: var(--navy-900); line-height: 1.35; }

.skill-ico {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--blue);
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(56, 189, 248, .1));
    border: 1px solid rgba(37, 99, 235, .18);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.skill-card:hover .skill-ico { transform: scale(1.08) rotate(-3deg); box-shadow: 0 8px 18px -6px rgba(37, 99, 235, .45); }
.skill-ico svg { width: 23px; height: 23px; }

.skill-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 18px; }
.skill-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #33415e; text-align: justify; transition: transform .25s var(--ease-out); }
.skill-list li:hover { transform: translateX(4px); }
.skill-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.contact-card { padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; }
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(37, 99, 235, .35); }
a.contact-card:hover .contact-ico { transform: scale(1.08); }

.contact-ico {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--blue);
    background: rgba(37, 99, 235, .09);
    margin-bottom: 12px;
    transition: transform .35s var(--ease-out);
}
.contact-ico svg { width: 21px; height: 21px; }
.contact-ico.ico-wa { color: #15803D; background: rgba(22, 163, 74, .12); }
.contact-label { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: 14px; font-weight: 600; color: var(--navy-900); word-break: break-word; }

/* Footer */
.site-footer {
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}
.admin-link { font-weight: 600; color: var(--blue); position: relative; }
.admin-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease-out);
}
.admin-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
    .skill-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: 18px 0 40px rgba(7, 16, 34, .25); }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open .side-overlay { opacity: 1; pointer-events: auto; }
    .nav-toggle { display: grid; place-items: center; }
    .main { margin-left: 0; padding: 86px 18px 48px; }
    .hero { padding: 26px 22px; }
    .hero h1 { font-size: 27px; }
    .hero-grid { grid-template-columns: 1fr; gap: 26px; }
    .hero-side { order: -1; width: 100%; }
    .hero-photo { width: 200px; height: 200px; }
    .sec { margin-top: 40px; }
}

/* ---------------- Print ---------------- */
@media print {
    .sidebar, .nav-toggle, .side-overlay, .hero-actions, .hero-wa, .admin-link { display: none !important; }
    .main { margin: 0; padding: 0; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #d8dee9; break-inside: avoid; }
    .sec { margin-top: 26px; }
    .tl::before { background: #cbd5e1; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
