/* ============ Nizar Ibrahim — Portfolio ============ */
:root {
  --bg: #050b1f;
  --bg-alt: #081331;
  --surface: rgba(var(--ink-rgb), .045);
  --surface-hi: rgba(var(--ink-rgb), .08);
  --border: rgba(var(--line-rgb), .18);
  --text: #f4f7ff;
  --muted: #a9b6d6;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 55%, #7c9cff 100%);
  --radius: 18px;
  --nav-h: 68px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --bg-rgb: 5, 11, 31; --ink-rgb: 255, 255, 255; --cyan-rgb: 34, 211, 238; --blue-rgb: 59, 130, 246; --line-rgb: 120, 170, 255; --net-line-rgb: 80, 160, 255;
  --text-soft: #d4ddf3; --on-accent: #04102a; --modal-bg: #0a1736;
  --t-prac: #67e8f9; --t-learn: #fde68a; --t-status: #a5c4ff; --t-done: #6ee7b7; --t-concept: #c4b5fd;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); line-height: 1.65; font-size: clamp(.97rem, .94rem + .2vw, 1.06rem);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #001; padding: .5rem 1rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.navbar.scrolled { border-color: var(--border); background: rgba(var(--bg-rgb), .9); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.logo-text span { color: var(--cyan); }
.nav-menu { position: fixed; inset: var(--nav-h) 0 auto 0; background: rgba(var(--bg-rgb), .97); border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.nav-menu.open { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.nav-menu ul { padding: .5rem 1rem 1rem; display: grid; }
.nav-link { display: block; padding: .85rem .5rem; min-height: 44px; color: var(--muted); font-weight: 500; border-radius: 10px; transition: color .2s, background .2s; position: relative; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--cyan); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-btn { background: transparent; border: 0; padding: .4rem .75rem; min-height: 36px; font-size: .8rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.lang-btn[aria-pressed="true"] { background: var(--grad); color: var(--on-accent); }
.hamburger { width: 44px; height: 44px; background: transparent; border: 1px solid var(--border); border-radius: 12px; display: grid; place-content: center; gap: 5px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 980px) {
  .hamburger { display: none; }
  .nav-menu { position: static; max-height: none; overflow: visible; background: none; border: 0; }
  .nav-menu ul { display: flex; padding: 0; gap: .1rem; }
  .nav-link { padding: .5rem .7rem; min-height: 0; font-size: .9rem; }
  .nav-link::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 2px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s; border-radius: 2px; }
  .nav-link.active::after { transform: scaleX(1); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.6rem; border-radius: 999px; font-weight: 600; border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 30px rgba(var(--blue-rgb), .35); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(var(--cyan-rgb), .45); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-hi); border-color: var(--cyan); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; overflow: hidden; padding: 4rem 0; background: radial-gradient(ellipse at 75% 20%, rgba(var(--blue-rgb), .22), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(var(--cyan-rgb), .12), transparent 50%); }
#net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--line-rgb), .06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--line-rgb), .06) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.hero-inner { position: relative; z-index: 2; }
.hero-hello { color: var(--cyan); font-family: var(--font-head); font-size: clamp(1.1rem, 3vw, 1.5rem); margin-bottom: .2rem; }
.hero-name { font-size: clamp(2.8rem, 12vw, 7rem); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero-headline { font-size: clamp(1.3rem, 4.5vw, 2.2rem); font-weight: 500; margin: .6rem 0 1rem; }
.hero-desc { max-width: 620px; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.2rem); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 2rem; }
.chips li { padding: .35rem .95rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 500; backdrop-filter: blur(6px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.tagline { margin-top: 2.2rem; color: var(--muted); font-style: italic; font-size: .95rem; }
.anim-in { opacity: 0; transform: translateY(24px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.5rem; max-width: 720px; }
.eyebrow { color: var(--cyan); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.9rem); letter-spacing: -.02em; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: .8rem; }
.notice { font-size: .88rem; padding: .55rem .9rem; border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 10px 10px 0; display: inline-block; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .3s, border-color .3s, box-shadow .3s, background .3s; }
.card:hover, .card:focus-visible { transform: translateY(-5px); border-color: rgba(var(--cyan-rgb), .55); box-shadow: var(--shadow); background: var(--surface-hi); }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--blue-rgb), .16); color: var(--cyan); margin-bottom: 1rem; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cards-4 { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.cards-2 { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-4, .cards-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Tags ---------- */
.tag { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .02em; vertical-align: middle; border: 1px solid transparent; white-space: nowrap; }
.tag-prac { background: rgba(var(--cyan-rgb), .14); color: var(--t-prac); border-color: rgba(var(--cyan-rgb), .35); }
.tag-learn { background: rgba(250, 204, 21, .12); color: var(--t-learn); border-color: rgba(250, 204, 21, .35); }
.tag-status { background: rgba(var(--blue-rgb), .18); color: var(--t-status); border-color: rgba(var(--blue-rgb), .4); }
.tag-completed { background: rgba(52, 211, 153, .14); color: var(--t-done); border-color: rgba(52, 211, 153, .4); }
.tag-progress { background: rgba(var(--blue-rgb), .18); color: var(--t-status); border-color: rgba(var(--blue-rgb), .4); }
.tag-concept { background: rgba(167, 139, 250, .16); color: var(--t-concept); border-color: rgba(167, 139, 250, .4); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: start; } }
.about-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(160deg, rgba(var(--blue-rgb), .2), rgba(var(--cyan-rgb), .06)); position: relative; max-width: 380px; width: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; color: var(--muted); padding: 1rem; font-size: .9rem; }
.photo-placeholder small { color: var(--cyan); }
.about-text p { color: var(--text-soft); }
.facts { margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.facts div { padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.facts dt { font-size: .75rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.facts dd { margin: .2rem 0 0; }

/* ---------- Skills ---------- */
.skill-card h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.skill-list li { padding: .45rem 0; border-bottom: 1px dashed rgba(var(--line-rgb), .14); color: var(--text-soft); display: flex; justify-content: space-between; gap: .5rem; align-items: center; font-size: .95rem; }
.skill-list li:last-child { border: 0; }

/* ---------- Projects ---------- */
.project-card { display: flex; flex-direction: column; gap: .7rem; }
.project-top { display: flex; justify-content: space-between; gap: .6rem; align-items: center; flex-wrap: wrap; }
.project-cat { color: var(--cyan); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.project-card h3 { font-size: 1.3rem; }
.project-card p { color: var(--muted); margin: 0; flex: 1; }
.tech { display: flex; flex-wrap: wrap; gap: .4rem; }
.tech li { font-size: .75rem; padding: .15rem .6rem; background: rgba(var(--ink-rgb), .06); border-radius: 8px; color: var(--text-soft); }
.project-card .btn { align-self: flex-start; min-height: 44px; padding: .55rem 1.3rem; font-size: .9rem; }

/* ---------- Experience ---------- */
.exp-list { display: grid; gap: 1.4rem; }
.exp-card { border-left: 3px solid var(--cyan); }
.exp-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.exp-card h3 { font-size: 1.3rem; }
.role { color: var(--cyan); font-weight: 500; margin: .2rem 0 0; }
.exp-meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.period { font-size: .85rem; color: var(--muted); }
.two-col { display: grid; gap: 1rem; margin: 1rem 0; }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.exp-card h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.exp-card li { position: relative; padding-left: 1.1rem; margin-bottom: .35rem; color: var(--text-soft); }
.exp-card li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.placeholder, li.placeholder { color: var(--muted) !important; font-style: italic; }
.doc-slot { border: 1px dashed var(--border); border-radius: 12px; padding: .8rem 1rem; color: var(--muted); font-size: .85rem; margin: 0; }
.exp-photo { margin: 1rem 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.exp-photo img { width: 100%; max-height: 420px; object-fit: cover; }
.exp-photo figcaption { padding: .6rem 1rem; font-size: .85rem; color: var(--muted); background: var(--surface); }

/* ---------- Achievements ---------- */
.ach-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ach-grid { grid-template-columns: repeat(2, 1fr); } }
.ach-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.ach-item { padding: 1rem; border-radius: 14px; border: 1px solid var(--border); background: rgba(var(--ink-rgb), .03); display: grid; gap: .3rem; }
.ach-item.placeholder { border-style: dashed; }
.ach-item strong { font-family: var(--font-head); font-size: 1.05rem; }
.ach-item > span { color: var(--cyan); font-size: .85rem; }
.ach-item p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.ach-photo { margin: .6rem 0 0; border-radius: 12px; overflow: hidden; max-width: 260px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.6rem; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--blue), transparent); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -1.6rem; top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--cyan); box-shadow: 0 0 14px rgba(var(--cyan-rgb), .6); }
.tl-target::before { border-style: dashed; box-shadow: none; }
.tl-year { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-body { margin-top: .3rem; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tl-body h3 { font-size: 1.1rem; margin: .3rem 0 .3rem; }
.tl-body p { margin: 0; color: var(--muted); }
.tl-target .tl-body { border-style: dashed; }
@media (min-width: 900px) {
  .timeline { padding: 0; gap: 2.5rem; }
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .tl-item { width: 50%; padding-right: 3rem; text-align: right; }
  .tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 0 3rem; text-align: left; }
  .tl-item::before { left: auto; right: -7px; }
  .tl-item:nth-child(even)::before { right: auto; left: -7px; }
}

/* ---------- Gallery ---------- */
.gallery { columns: 1; column-gap: 1rem; }
@media (min-width: 560px) { .gallery { columns: 2; } }
@media (min-width: 960px) { .gallery { columns: 3; } }
.g-item { break-inside: avoid; margin: 0 0 1rem; padding: 0; width: 100%; display: block; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); text-align: left; transition: transform .3s, border-color .3s; }
.g-item:hover { transform: translateY(-4px); border-color: var(--cyan); }
.g-item img { width: 100%; transition: transform .6s; }
.g-item:hover img { transform: scale(1.04); }
.g-item span { display: block; padding: .7rem 1rem; font-size: .88rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(ellipse at 50% 100%, rgba(var(--blue-rgb), .2), transparent 60%), var(--bg); text-align: center; }
.contact .section-head { margin-inline: auto; }
.contact-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 900px; margin-inline: auto; }
.c-link { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; min-height: 64px; text-align: left; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: transform .3s, border-color .3s; }
a.c-link:hover { transform: translateY(-4px); border-color: var(--cyan); }
.c-link.off { border-style: dashed; color: var(--muted); }
.c-link small { display: block; color: var(--muted); font-size: .75rem; word-break: break-all; }
.c-link strong { font-family: var(--font-head); }

/* ---------- Footer / top ---------- */
.footer { border-top: 1px solid var(--border); padding: 1.8rem 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer p { margin: 0; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--grad); color: var(--on-accent); display: grid; place-items: center; z-index: 90; box-shadow: var(--shadow); transition: transform .25s; }
.to-top:hover { transform: translateY(-4px); }
.to-top[hidden] { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 18, .82); backdrop-filter: blur(6px); }
.modal-panel { position: relative; width: min(820px, 100%); max-height: 92vh; overflow-y: auto; background: var(--modal-bg); border: 1px solid var(--border); border-radius: 22px; padding: clamp(1.2rem, 4vw, 2.2rem); box-shadow: var(--shadow); animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-close { position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); font-size: 1.6rem; line-height: 1; z-index: 2; }
.modal h3 { font-size: 1.6rem; margin: .4rem 0 .8rem; }
.modal h4 { color: var(--cyan); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 1.3rem 0 .4rem; }
.modal p, .modal li { color: var(--text-soft); }
.modal ol { list-style: decimal; padding-left: 1.2rem; }
.modal ol li { margin-bottom: .3rem; }
.m-slots { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.m-slot { border: 1px dashed var(--border); border-radius: 12px; padding: .8rem; font-size: .85rem; color: var(--muted); }
.m-slot a { color: var(--cyan); text-decoration: underline; }
.lightbox-img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .anim-in, .reveal { opacity: 1; transform: none; }
}

/* ---------- Tema kedua: Phoenix (merah nyala, kuning muda, krem, putih) ---------- */
:root[data-theme="phoenix"] {
  --bg: #fff8ea; --bg-alt: #fff0c4; --bg-rgb: 255, 248, 234;
  --ink-rgb: 90, 30, 15;
  --surface: rgba(255, 255, 255, .78); --surface-hi: #ffffff;
  --border: rgba(200, 50, 25, .24);
  --text: #2e0f08; --muted: #7a5648; --text-soft: #4a2418;
  --cyan: #d3261a; --cyan-rgb: 211, 38, 26;
  --blue: #f08a0a; --blue-rgb: 240, 138, 10;
  --line-rgb: 211, 38, 26; --net-line-rgb: 232, 72, 28;
  --grad: linear-gradient(120deg, #c81e1e 0%, #e8481c 55%, #e0700f 100%);
  --on-accent: #ffffff; --modal-bg: #fffdf7;
  --shadow: 0 18px 50px rgba(150, 40, 15, .18);
  --t-prac: #b4231a; --t-learn: #8a5a00; --t-status: #9a3412; --t-done: #166534; --t-concept: #6b21a8;
}
:root[data-theme="phoenix"] .hero { background: radial-gradient(ellipse at 75% 20%, rgba(255, 183, 3, .35), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(211, 38, 26, .14), transparent 50%); }
:root[data-theme="phoenix"] .hero-grid { background-image: linear-gradient(rgba(211, 38, 26, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(211, 38, 26, .07) 1px, transparent 1px); }
:root[data-theme="phoenix"] .btn-ghost { background: #fff; }
:root[data-theme="phoenix"] .modal-backdrop { background: rgba(60, 15, 8, .6); }

/* ---------- Tombol tema ---------- */
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--cyan); display: grid; place-items: center; transition: transform .25s, background .25s; }
.theme-btn:hover { transform: rotate(12deg) scale(1.06); background: var(--surface-hi); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-moon { display: none; }
:root[data-theme="phoenix"] .theme-btn .i-flame { display: none; }
:root[data-theme="phoenix"] .theme-btn .i-moon { display: block; }
.ach-item + .ach-item { margin-top: .8rem; }

/* Atribut hidden harus selalu menang (sebelumnya tertimpa display:block / grid) */
[hidden] { display: none !important; }
.about-photo img { object-position: 50% 42%; }

.ach-items { display: grid; gap: .8rem; }
.ach-item.partial { border-style: dashed; }
.ach-item .doc-slot { margin-top: .5rem; font-size: .8rem; padding: .5rem .8rem; }
.ach-doc { display: inline-block; margin-top: .5rem; color: var(--cyan); font-weight: 600; text-decoration: underline; }

.cert-photo { margin: .2rem 0 0; }
.cert-photo img { max-height: 360px; object-fit: cover; }
