/* Portofolio Nurhadianto - HTML + CSS murni, tanpa framework */

:root {
  --orange: #ea7317;
  --orange-dark: #cf5f0b;
  --amber: #f8b708;
  --peach: #fae3d2;
  --ink: #17202c;
  --ink-soft: #3c4857;
  --muted: #6d7a8a;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --line: #e7eaef;
  --card: #ffffff;
  --shadow-sm: 0 2px 10px rgba(23, 32, 44, .05);
  --shadow: 0 14px 40px rgba(23, 32, 44, .08);
  --shadow-lg: 0 24px 60px rgba(23, 32, 44, .12);
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 108px; }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand { font-family: var(--display); color: var(--ink); line-height: 1.18; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

img { display: block; max-width: 100%; height: auto; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ===================== navbar ===================== */
.nav-shell {
  position: sticky;
  top: 18px;
  z-index: 100;
  padding: 0 20px;
  margin-top: 18px;
}

.nav-pill {
  width: min(1140px, 100%);
  margin-inline: auto;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px 12px 26px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.nav-shell.is-stuck .nav-pill { box-shadow: var(--shadow); }

.brand { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--orange); }

.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.is-active { color: var(--orange); font-weight: 600; }

.nav-social { display: flex; gap: 6px; }
.nav-social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav-social a:hover { color: var(--orange); background: var(--peach); }
.nav-social svg { width: 17px; height: 17px; fill: currentColor; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px 9px;
}
.burger span {
  display: block; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.burger span + span { margin-top: 5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== tombol ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 15px; font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 10px 24px rgba(234, 115, 23, .32);
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ===================== hero ===================== */
.hero { padding: 70px 0 90px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--display);
  font-size: 15px; font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}

.lead { font-size: 17px; color: var(--muted); max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 38px; }

.hero-facts {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 14px 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-facts strong { display: block; font-family: var(--display); font-size: 17px; color: var(--ink); }
.hero-facts span { font-size: 13.5px; color: var(--muted); }

/* visual hero: blob + foto + chip */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }

.blob {
  position: absolute;
  display: block;
  filter: blur(.3px);
  z-index: 0;
}
.blob-amber {
  width: 410px; height: 425px;
  background: var(--amber);
  border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
  top: 46%; left: 48%;
  transform: translate(-50%, -50%);
  animation: morph 16s ease-in-out infinite;
}
.blob-peach {
  width: 230px; height: 230px;
  background: var(--peach);
  border-radius: 52% 48% 40% 60% / 56% 44% 56% 44%;
  top: 2%; right: 0;
  animation: morph 20s ease-in-out infinite reverse;
}
.blob-grey {
  width: 160px; height: 160px;
  background: #eceef2;
  border-radius: 46% 54% 60% 40% / 52% 46% 54% 48%;
  bottom: 4%; left: 2%;
  animation: morph 24s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%; }
  34%      { border-radius: 42% 58% 62% 38% / 56% 42% 58% 44%; }
  67%      { border-radius: 50% 50% 38% 62% / 40% 60% 40% 60%; }
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: min(292px, 70%);
  border-radius: 46% 46% 30% 30% / 10% 10% 6% 6%;
  overflow: hidden;
  filter: drop-shadow(0 24px 40px rgba(23, 32, 44, .22));
}
.hero-photo img { width: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 10px 18px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.float-chip svg { width: 17px; height: 17px; color: var(--orange); }
.float-chip .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}
.chip-a { top: 16%; left: -6%; animation: floaty 6s ease-in-out infinite; }
.chip-b { bottom: 12%; right: -4%; animation: floaty 7.5s ease-in-out infinite reverse; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* ===================== kerangka section ===================== */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }

.sec-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.sec-head h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.squiggle { display: block; width: 170px; height: 13px; margin: 10px auto 18px; color: var(--orange); opacity: .75; }
.sec-sub { color: var(--muted); font-size: 16px; }

/* ===================== tentang ===================== */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 54px;
  align-items: start;
}

.about-photo { position: relative; }
.about-photo img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.about-photo figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.kicker {
  font-family: var(--display);
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.about-body h3 { font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 800; margin-bottom: 18px; }
.about-body p + p { margin-top: 15px; }
.about-body strong { color: var(--ink); font-weight: 600; }

.info-card {
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}
.info-card span { display: block; font-size: 13px; color: var(--muted); }
.info-card strong { font-family: var(--display); font-size: 15px; color: var(--ink); font-weight: 700; line-height: 1.4; }
.info-card a { color: var(--ink); word-break: break-word; }
.info-card a:hover { color: var(--orange); }

/* ===================== keahlian ===================== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #f0d5bd; }
.card h3 { font-size: 18px; font-weight: 700; margin: 18px 0 9px; }
.card p { font-size: 15px; color: var(--muted); }

.ic-wrap {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  background: var(--peach);
  color: var(--orange);
}
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ===================== pengalaman ===================== */
.timeline { position: relative; max-width: 980px; margin-inline: auto; }

.tl-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  position: relative;
  padding: 0 0 44px 0;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-body {
  position: relative;
  border-left: 2px solid var(--line);
  padding: 2px 0 6px 34px;
}
.tl-item:last-child .tl-body { border-left-color: transparent; }
.tl-body::before {
  content: "";
  position: absolute;
  left: -8px; top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(234, 115, 23, .16);
}
.tl-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.tl-body ul { list-style: none; display: grid; gap: 10px; }
.tl-body li { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); }
.tl-body li::before {
  content: "";
  position: absolute; left: 2px; top: .72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
}

.tl-org { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.35; }
.tl-time { font-size: 13.5px; color: var(--orange); font-weight: 500; }

/* ===================== proyek ===================== */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.proj {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.proj::after {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), var(--amber));
  opacity: 0;
  transition: opacity .25s ease;
}
.proj:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.proj:hover::after { opacity: 1; }

.proj-tag {
  font-family: var(--display);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.proj h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.proj p { font-size: 15px; color: var(--muted); }
.proj-note {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px !important;
  color: var(--ink-soft) !important;
}


/* ===================== sertifikasi ===================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.cert {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cert:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #f0d5bd; color: inherit; }

button.cert { font: inherit; padding: 0; text-align: left; cursor: pointer; width: 100%; }

.cert-thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  margin: 0;
}
.cert-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .3s ease;
}
.cert:hover .cert-thumb img { transform: scale(1.04); }

.cert-body { padding: 18px 22px 20px; }
.cert-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.cert-body p { font-size: 13.5px; color: var(--muted); }

.cert-grid .cert:nth-child(3n+2) { transition-delay: .08s; }
.cert-grid .cert:nth-child(3n) { transition-delay: .16s; }

/* ===================== lightbox sertifikat ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(23, 32, 44, .9);
  display: grid; place-items: center;
  padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1080px, 100%);
  max-height: 88vh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-close {
  position: absolute; top: 16px; right: 20px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, .26); }

/* ===================== kontak ===================== */
.contact-grid { display: grid; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  width: min(880px, 100%);
  margin-inline: auto;
}

.contact-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.contact-item:not(.is-static):hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
  border-color: #f0d5bd;
  color: var(--ink);
}
.ci-text { display: grid; }
.ci-label { font-size: 12.5px; color: var(--muted); }
.ci-value { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); word-break: break-word; }

/* ===================== footer ===================== */
.site-footer { background: var(--ink); color: #aeb9c6; padding: 34px 0; }
.foot-row {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  font-size: 14px;
}
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: #aeb9c6; }
.foot-links a:hover { color: var(--amber); }

/* ===================== tombol ke atas ===================== */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(234, 115, 23, .4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ===================== animasi muncul ===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .68, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }

.skill-grid .card:nth-child(2), .proj-grid .proj:nth-child(2) { transition-delay: .08s; }
.skill-grid .card:nth-child(3), .proj-grid .proj:nth-child(3) { transition-delay: .16s; }
.skill-grid .card:nth-child(5), .proj-grid .proj:nth-child(4) { transition-delay: .08s; }
.skill-grid .card:nth-child(6) { transition-delay: .16s; }

/* ===================== responsif ===================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-facts { text-align: center; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 360px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav-social { display: none; }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px); left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    margin: 0;
    display: none;
  }
  body.menu-open .nav-links { display: flex; }
  .nav-pill { position: relative; padding: 10px 10px 10px 22px; }
  .brand { margin-right: auto; }

  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .tl-meta { padding-left: 34px; }
  .tl-body { border-left: 2px solid var(--line); }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 90px; }
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 70px; }
  .hero-visual { min-height: 380px; }
  .blob-amber { width: 260px; height: 272px; }
  .blob-peach { width: 160px; height: 160px; }
  .blob-grey { width: 110px; height: 110px; }
  .chip-a { left: -2%; top: 10%; }
  .chip-b { right: -2%; bottom: 8%; }
  .float-chip { font-size: 12px; padding: 8px 14px; }
  .info-card { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .hero-facts { gap: 14px 24px; }
  .card, .proj { padding: 26px 22px; }
  .foot-row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
