:root {
  --outer: #cfe3f4;
  --bg: #f3f9fe;
  --white: #ffffff;
  --line: #e3eff8;
  --blue-dark: #0c63a9;
  --blue: #1479bd;
  --blue-soft: #e8f3fb;
  --ink: #0b2a43;
  --text: #1d3a52;
  --muted: #5b7388;
  --grad: linear-gradient(45deg, #0c63a9, #1479bd);
  /* Pengaturan animasi pil navbar */
  --pill-time: .7s;                              /* makin besar = makin lambat */
  --pill-ease: cubic-bezier(.34, 1.15, .64, 1);  /* angka 1.15 = kekuatan bounce (1 = tanpa bounce) */
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--outer);
  font-family: "Poppins", system-ui, sans-serif;
  display: flex; justify-content: center; align-items: center;
}
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Kolom "layar" */
.app {
  position: relative; width: 100%; max-width: 480px; height: 100dvh;
  background: var(--bg); overflow: hidden; display: flex; flex-direction: column;
}
@media (min-width: 600px) {
  body { padding: 24px; }
  .app { height: min(900px, calc(100dvh - 48px)); border-radius: 32px; box-shadow: 0 20px 60px rgba(12, 99, 169, .18); }
}

/* Header */
header {
  flex: none; height: 76px; padding: 0 20px; background: var(--white); z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 0 #dcebf6, 0 6px 16px rgba(12, 99, 169, .07);
}
.logo { height: 40px; width: auto; display: block; }
.chat {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px;
  background: var(--grad); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
}
.chat .ic { width: 22px; height: 22px; }

/* Konten */
main { flex: 1; overflow-y: auto; position: relative; }
/* Tiap section setinggi area scroll, supaya navbar bisa mengikuti posisi */
:root { --gap: 50px; }
.panel { padding: 22px 20px calc(var(--gap) - 22px); }
.panel:last-child { min-height: var(--h, 100%); padding-bottom: 120px; }
#design { padding-bottom: calc(var(--gap) - 22px); }
.placeholder { margin-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }

/* Section Me */
.me-top { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, #e3f2fc, #bfdff4); display: grid; place-items: center; color: var(--blue);
}
.avatar .ic { width: 44px; height: 44px; stroke-width: 1.8; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.name { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.role { font-size: 13px; font-weight: 500; color: var(--blue); }
.links { display: flex; gap: 8px; margin-top: 8px; }
.links a {
  width: 36px; height: 36px; border: 1px solid #cfe3f2; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; color: var(--blue);
}
.links .ic { width: 18px; height: 18px; }
.bio { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.label { margin-top: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.services { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { padding: 12px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.card .icon { width: 34px; height: 34px; border-radius: 11px; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); }
.card .icon .ic { width: 18px; height: 18px; }
.card h3 { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.card p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.tools { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { padding: 7px 12px; border-radius: 999px; background: #e3f0fa; color: var(--blue-dark); font-size: 12.5px; font-weight: 500; }

/* Section Brand (marquee logo) */
.section-title { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.section-sub { margin: 6px 0 24px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.marquee {
  margin: 0 -20px 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.track.reverse { animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }
.logo-card {
  flex: none; width: 148px; height: 68px; margin-right: 14px; padding: 0 16px;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px;
}
.logo-card img {
  max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain;
  transition: filter .3s, opacity .3s;  /* hapus 2 baris ini kalau mau warna asli */
}
.logo-card:hover img { filter: none; opacity: 1; }
.marquee:hover .track, .marquee:active .track { animation-play-state: paused; }

/* Navbar */
nav {
  position: absolute; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); height: 72px; z-index: 3;
  padding: 0 12px; border-radius: 36px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(12, 99, 169, .16); display: flex; align-items: center; gap: 4px;
}
.tab {
  flex: 1 1 0; height: 48px; padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--blue);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .35s, color .35s, flex-grow var(--pill-time) var(--pill-ease);
}
.tab .ic { width: 26px; height: 26px; flex: none; }
.tab .txt {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 600;
  transition: max-width var(--pill-time) var(--pill-ease), opacity .3s, margin var(--pill-time) var(--pill-ease);
}
.tab[aria-current="page"] { flex: 0 0 auto; padding: 0 20px 0 16px; color: #fff; background: var(--grad); }
.tab[aria-current="page"] .txt { max-width: 80px; opacity: 1; margin-left: 8px; transition-delay: 0s, .15s, 0s; }
.tab:focus-visible, .links a:focus-visible, .chat:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .tab, .tab .txt { transition-duration: .01s; }
  .track { animation: none; }
  .marquee { overflow-x: auto; }
  .logo-card[aria-hidden] { display: none; }
}
/* Hero (Home) */
.hero-title { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.accent { background: linear-gradient(90deg, #0c63a9, #1a9be0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.hero-cta { margin-top: 20px; display: flex; gap: 10px; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 23px; font-size: 14px; font-weight: 600; text-decoration: none; }
.btn .ic { width: 20px; height: 20px; }
.btn.primary { background: var(--grad); color: #fff; }
.btn.ghost { background: var(--white); color: var(--blue-dark); border: 1px solid #cfe3f2; }
.btn:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
.hero-art { position: relative; margin-top: 22px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(26,155,224,.22), transparent 70%); }
.hero-img { position: relative; display: block; width: min(300px, 85%); height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: 0 18px 40px rgba(12,99,169,.22); }
/* Section Design (grid + lightbox) */
.design-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.design-item {
  display: block; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 5; background: var(--blue-soft); box-shadow: 0 6px 18px rgba(12, 99, 169, .10);
  transition: transform .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent;
}
.design-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .design-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(12, 99, 169, .18); } }
.design-item:focus-visible, .lb-btn:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }

.lightbox {
  position: absolute; inset: 0; z-index: 10; background: rgba(8, 28, 46, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 68px 16px 92px;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.lb-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transition: opacity .2s;
}
.lb-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center;
}
.lb-btn .ic { width: 22px; height: 22px; }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; align-items: center; gap: 20px; }
.lb-count { min-width: 56px; text-align: center; color: #fff; font-size: 13px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .lightbox, .lb-stage img, .design-item { transition-duration: .01s; } }
/* Blok Full Portfolio (di bawah grid Design) */
.portfolio-card {
  position: relative; overflow: hidden; margin-top: 28px; padding: 24px 22px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #0c63a9, #1479bd);
  box-shadow: 0 14px 32px rgba(12, 99, 169, .22);
}
.portfolio-card::before {
  content: ""; position: absolute; top: -70px; right: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none;
}
.portfolio-card > * { position: relative; }
.pc-label { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
.pc-title { margin: 8px 0 0; font-size: 22px; font-weight: 600; line-height: 1.25; color: #ffc4f7;}
.pc-text { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.pc-info { margin: 12px 0 0; font-size: 12.5px; color: #d3ff4c; }
.pc-btn {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 23px; background: #fff; color: var(--blue-dark); font-size: 14px; font-weight: 600; text-decoration: none;
}
.pc-btn .ic { width: 18px; height: 18px; transition: transform .25s; }
@media (hover: hover) { .pc-btn:hover .ic { transform: translateX(3px); } }
.pc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Cover portofolio (bertumpuk miring) di dalam kartu Full Portfolio */
.portfolio-card > .pc-cover { position: absolute; top: 50%; translate: 0 -50%; right: 35px; width: 88px; aspect-ratio: 4 / 5; }
.pc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.pc-cover .back { transform: translate(12px, -2px) rotate(9deg); opacity: .55; filter: saturate(.8); }
.pc-cover .front { transform: rotate(-5deg); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 10px 22px rgba(0, 0, 0, .28); }
.pc-label, .pc-title, .pc-text { padding-right: 108px; }
/* Ajakan penutup + footer (bagian bawah section Me) */
#me { display: flex; flex-direction: column; }
.closing { margin-top: 28px; padding: 24px 20px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.closing-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.closing-text { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.closing .btn { margin-top: 16px; }
.site-footer { margin-top: auto; padding-top: 28px; text-align: center; font-size: 12px; color: var(--muted); }