:root{
  --bg: #0b0f14;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 24px;

  --brand1: #8b5cf6;
  --brand2: #22c55e;
  --brand3: #06b6d4;

  --focus: 0 0 0 4px rgba(139,92,246,.35);
}

html[data-theme="light"]{
  --bg: #f7f8fb;
  --panel: rgba(10,20,40,.06);
  --panel2: rgba(10,20,40,.08);
  --text: rgba(10,20,40,.92);
  --muted: rgba(10,20,40,.62);
  --line: rgba(10,20,40,.12);
  --shadow: 0 18px 60px rgba(0,0,0,.16);
  --focus: 0 0 0 4px rgba(139,92,246,.25);
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x:hidden;
  position: relative;
}

/* ===== Anti “gradasi bocor”: layer background fixed terpisah ===== */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* layer gradient halus */
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(139,92,246,.20), transparent 58%),
    radial-gradient(900px 520px at 88% 8%, rgba(6,182,212,.16), transparent 58%),
    radial-gradient(800px 520px at 70% 92%, rgba(34,197,94,.14), transparent 60%);

  /* bikin lebih lembut */
  filter: blur(10px);
  opacity: .85;

  /* mask biar gak ada patch keras / “bocor” */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 35%, rgba(0,0,0,.70) 60%, rgba(0,0,0,0) 92%);
          mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 35%, rgba(0,0,0,.70) 60%, rgba(0,0,0,0) 92%);
}

/* Light mode: background dibuat super subtle */
html[data-theme="light"] body::before{
  opacity: .55;
  filter: blur(14px);
}

/* ================= Basic ================= */
a{ color:inherit; text-decoration:none }
img{ max-width:100%; display:block }

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

/* ================= Topbar ================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom:1px solid var(--line);
}
.topbarInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
  padding:8px 10px;
  border-radius:12px;
}
.dot{
  width:10px;height:10px;border-radius:999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand3));
  box-shadow: 0 0 0 6px rgba(139,92,246,.10);
}
.nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav a{
  color:var(--muted);
  font-weight:700;
  padding:10px 12px;
  border-radius:12px;
  transition:.15s ease;
}
.nav a:hover{ background: var(--panel); color:var(--text) }

.actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  border:1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding:10px 12px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
  transition:.16s ease;
  display:inline-flex;
  align-items:center;
  gap:10px;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); background: var(--panel2) }
.btn:active{ transform: translateY(0px) }
.btn.primary{
  border:none;
  background: linear-gradient(135deg, var(--brand1), var(--brand3));
  box-shadow: 0 12px 30px rgba(139,92,246,.22);
}
.btn.ghost{ background: transparent }

.burger{ display:none }

/* ================= Mobile Menu ================= */
.mobileNav{
  display:none;
  border-bottom:1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
}
.mobileNav .container{ padding-bottom: 10px; }
.mobileNav a{
  display:block;
  padding:14px 0;
  color:var(--muted);
  font-weight:800;
  border-top:1px solid var(--line);
}

/* ================= Hero ================= */
.hero{
  padding:56px 0 26px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:stretch;
}
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background: color-mix(in srgb, var(--panel) 60%, transparent);
  width:fit-content;
  font-weight:800;
}
.badge::before{
  content:"✦";
  color: color-mix(in srgb, var(--brand3) 90%, var(--text));
}
h1{
  margin:14px 0 10px;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height:1.08;
  letter-spacing:-.5px;
}
.lead{
  margin:0;
  color:var(--muted);
  font-size: 16px;
  line-height:1.7;
  max-width: 62ch;
}
.heroCtas{ margin-top:18px; display:flex; gap:12px; flex-wrap:wrap }

.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--panel) 85%, transparent),
    color-mix(in srgb, var(--panel) 55%, transparent)
  );
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-100px -120px auto auto;
  width:240px;height:240px;
  background: radial-gradient(circle, rgba(139,92,246,.35), transparent 60%);
  transform: rotate(12deg);
  pointer-events:none;
}
.cardHead{ display:flex; gap:12px; align-items:center }
.avatar{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  font-weight:900;
  background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(6,182,212,.22));
  border:1px solid var(--line);
}
.cardTitle{ font-weight:900 }
.cardSub{ color:var(--muted); font-weight:800; font-size:13px; margin-top:2px }

.chips{ margin-top:12px; display:flex; gap:8px; flex-wrap:wrap }
.chip{
  font-weight:900;
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
}
.cardActions{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap }

/* ================= Sections ================= */
.section{ padding:34px 0 56px }
.sectionHead{ display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap }
.sectionHead h2{ margin:0; font-size:24px; letter-spacing:-.2px }
.sectionHead p{ margin:0; color:var(--muted); font-weight:700 }

/* ================= Toolbar ================= */
.toolbar{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.filters{ display:flex; gap:10px; flex-wrap:wrap }
.pill{
  border:1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight:900;
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  transition:.16s ease;
}
.pill:hover{ background: var(--panel); color:var(--text) }
.pill.active{
  background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(6,182,212,.18));
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand1) 35%, var(--line));
}

.search{ display:flex; gap:10px; align-items:center }
.search input{
  width:min(360px, 72vw);
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  outline:none;
  background: color-mix(in srgb, var(--panel) 75%, transparent);
  color: var(--text);
  font-weight:800;
}
.search input:focus{ box-shadow: var(--focus); border-color: rgba(139,92,246,.6) }

/* ================= Grid ================= */
.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.work{ grid-column: span 4; min-width:0 }
.workBtn{
  width:100%;
  text-align:left;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  overflow:hidden;
  padding:0;
  cursor:pointer;
  transition:.16s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.workBtn:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.18) }
.workBtn:focus-visible{ outline:none; box-shadow: var(--focus) }

.workBtn img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255,255,255,.03);
}

.workMeta{ padding:12px 12px 14px }
.workMeta h3{ margin:0 0 6px; font-size:15px; letter-spacing:-.15px }
.workMeta p{
  margin:0;
  color:var(--muted);
  font-weight:750;
  font-size:13px;
  line-height:1.5;
}
.tags{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap }
.tag{
  font-weight:900;
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  background: rgba(255,255,255,.03);
}

.note{
  margin-top:16px;
  border:1px dashed var(--line);
  padding:14px;
  border-radius: var(--radius);
  color:var(--muted);
  background: rgba(255,255,255,.03);
  font-weight:750;
  line-height:1.6;
}
code{
  padding:2px 6px;
  border-radius:8px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
}

/* ================= About ================= */
.about{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:start;
}
.about p{ margin:0; color:var(--muted); line-height:1.8; font-weight:750 }
.aboutHighlights{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
.mini{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:14px;
}
.miniTitle{ font-weight:900; margin-bottom:6px }
.miniText{ color:var(--muted); font-weight:800 }
.card.soft{ box-shadow:none; background: rgba(255,255,255,.03) }
.smallLinks{
  margin-top:10px;
  color:var(--muted);
  font-weight:900;
  display:flex;
  gap:10px;
  align-items:center;
}

/* ================= Footer ================= */
.footer{ border-top:1px solid var(--line); padding:18px 0; color:var(--muted) }
.foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap }
.toTop{
  font-weight:900;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
}
.toTop:hover{ background: var(--panel); color:var(--text) }

/* ================= Modal ================= */
.modal{
  position:fixed; inset:0;
  display:none;
  z-index:80;
}
.modal.show{ display:block }
.modalOverlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
}
.modalCard{
  position:relative;
  width:min(980px, calc(100% - 36px));
  margin: 6vh auto;
  border-radius: 22px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, rgba(255,255,255,.10));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modalClose{
  position:absolute;
  top:10px; right:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  width:44px;height:44px;
  border-radius:14px;
  cursor:pointer;
  font-size:18px;
  font-weight:900;
}
.modalClose:hover{ background: rgba(255,255,255,.10) }
.modalBody{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
}
.modalBody img{
  width:100%;
  height:100%;
  min-height: 360px;
  object-fit: contain;
  background: rgba(255,255,255,.03);
  border-right:1px solid var(--line);
}
.modalText{ padding:18px }
.modalText h3{ margin:0 0 8px; font-size:18px }
.modalText p{ margin:0 0 10px; color:var(--muted); font-weight:750; line-height:1.7 }
.modalCtas{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap }

/* Empty */
.empty{
  grid-column: 1 / -1;
  border:1px dashed var(--line);
  padding:18px;
  border-radius: var(--radius);
  color:var(--muted);
  background: rgba(255,255,255,.03);
  font-weight:850;
  line-height:1.6;
}

/* Responsive */
@media (max-width: 920px){
  .hero{ grid-template-columns:1fr; padding-top:42px }
  .modalBody{ grid-template-columns:1fr }
  .modalBody img{ border-right:none; border-bottom:1px solid var(--line) }
  .work{ grid-column: span 6 }
}
@media (max-width: 640px){
  .nav{ display:none }
  .burger{ display:inline-flex }
  .work{ grid-column: span 12 }
  .about{ grid-template-columns:1fr }
  .aboutHighlights{ grid-template-columns:1fr }
}
