﻿* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #f8f7f4;
  color: #4a5568;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

:root {
  --blue: #2e6da4;
  --blue-dark: #1d5a8f;
  --blue-light: #deeaf5;
  --blue-mid: #5a8fc0;
  --green: #2d7a4f;
  --text: #4a5568;
  --text-dark: #1a2535;
  --muted: #8896a5;
  --border: #dde3ea;
  --surface: #f0efec;
  --surface2: #e8e7e3;
  --white: #ffffff;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(248,247,244,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--blue);
  text-decoration: none;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #f8f7f4;
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--blue); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  background: linear-gradient(160deg, #f8f7f4 55%, #edf3f9 100%);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,109,164,0.07) 0%, transparent 70%);
  top: -100px; right: 0;
  pointer-events: none;
}
.hero-inner { max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--blue-light);
  border: 1px solid rgba(46,109,164,0.25);
  border-radius: 20px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--blue);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
}
h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 800;
  line-height: 0.97;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
h1 .accent { color: var(--blue); }
.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-role .green { color: var(--green); font-weight: 500; }
.hero-desc {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  max-width: 500px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  border-radius: 4px;
}
.btn-primary { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue-mid); }
.btn-outline:hover { background: var(--blue-light); border-color: var(--blue); }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hstat-num {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  display: block;
  line-height: 1;
}
.hstat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.hero-terminal {
  position: absolute;
  right: 60px;
  top: 24%;
  transform: translateY(-50%);
  width: 360px;
  background: #1e2533;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.term-bar {
  background: #2a3244;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot-r { background: #ff5f57; }
.tdot-y { background: #febc2e; }
.tdot-g { background: #28c840; }
.tname { flex: 1; text-align: center; font-size: 11px; color: #6b7a99; }
.term-body { padding: 20px; line-height: 2; }
.term-command-spaced { margin-top: 8px; }
.tp { color: #4ade80; }
.tc { color: #e2e8f0; }
.to { color: #60a5fa; padding-left: 14px; display: block; }
.to.dim { color: #94a3b8; }
.tcursor { display: inline-block; width: 7px; height: 13px; background: #60a5fa; vertical-align: middle; animation: blink 1.2s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── SHARED SECTION STYLES ── */
section {
  padding: 88px 48px;
  background: #f8f7f4;
}
section:nth-child(even) {
  background: #ffffff;
}
.sec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.sec-label::before { content: '// '; color: var(--green); }
h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
h2 .accent { color: var(--blue); }
.sec-sub {
  color: var(--text);
  max-width: 520px;
  margin-bottom: 40px;
  margin-top: 8px;
}

/* ── TENTANG ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 8px;
}
.about-text p { margin-bottom: 16px; color: var(--text); line-height: 1.85; }

.info-table { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.info-row {
  display: flex;
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
}
.info-row + .info-row { border-top: none; }
.info-key {
  min-width: 130px;
  padding: 11px 14px;
  background: var(--surface);
  color: var(--blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.info-val {
  padding: 11px 14px;
  color: var(--text-dark);
  font-size: 14px;
}
.info-val a { color: var(--blue); text-decoration: none; }
.info-val a:hover { text-decoration: underline; }

/* ── CASE STUDY ── */
#casestudy { background: #ffffff; }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.cs-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.cs-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.09); }
.cs-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}
.cs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,37,53,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.cs-card:hover .cs-thumb-overlay { background: rgba(26,37,53,0.5); }
.cs-view-btn {
  opacity: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border: 2px solid #fff;
  border-radius: 4px;
  transition: opacity .2s;
}
.cs-card:hover .cs-view-btn { opacity: 1; }
.cs-info { padding: 14px 16px 16px; }
.cs-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.cs-meta { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.cs-desc {
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}
.cs-desc + .cs-desc { margin-top: 6px; }

/* ── MODAL ── */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,20,35,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative;
}
.modal-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  border-radius: 12px 12px 0 0;
}
.modal-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.modal-title-text {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}
.modal-client-text { font-size: 13px; color: var(--muted); margin-top: 4px; }
.modal-x {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.modal-x:hover { background: var(--border); }
.modal-body { padding: 24px 32px 32px; }
.modal-sec-title {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.modal-desc { color: var(--text); font-size: 14px; line-height: 1.85; margin-bottom: 24px; }
.modal-hr { height: 1px; background: var(--border); margin: 20px 0; }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tech-tag {
  padding: 5px 11px;
  background: var(--blue-light);
  border: 1px solid rgba(46,109,164,0.2);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
}
.role-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.role-list li {
  font-size: 14px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.role-list li::before { content: '›'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.gallery-slider {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.gallery-frame {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: rgba(26,37,53,0.62);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.gallery-nav:hover { background: rgba(26,37,53,0.82); transform: translateY(-50%) scale(1.04); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-caption {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.gallery-caption-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.gallery-caption-text {
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}
.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 16px 14px;
}
.gallery-dots { display: flex; gap: 7px; }
.gallery-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.gallery-dot.active { background: var(--blue); }
.gallery-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

/* ── KEAHLIAN ── */
.skills-wrap { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.skill-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  cursor: default;
  transition: all .2s;
}
.tag:hover { border-color: var(--blue-mid); color: var(--blue); background: var(--blue-light); }

/* ── PENGALAMAN ── */
#pengalaman { background: #ffffff; }
.exp-list { margin-top: 8px; }
.exp-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:first-child { border-top: 1px solid var(--border); }
.exp-period {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 4px;
}
.exp-company {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.exp-loc { font-size: 12px; color: var(--muted); }
.exp-role {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.exp-role .accent { color: var(--blue); }
.exp-summary {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 760px;
}
.exp-bullets { list-style: none; margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px; }
.exp-bullets li { font-size: 14px; color: var(--text); padding-left: 18px; position: relative; line-height: 1.65; }
.exp-bullets li::before { content: '›'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-tag {
  padding: 3px 10px;
  background: var(--blue-light);
  border: 1px solid rgba(46,109,164,0.2);
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--blue);
}

/* ── PENDIDIKAN ── */
.edu-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .2s;
}
.edu-item:hover { border-color: var(--blue-mid); }
.edu-degree {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.edu-school { font-size: 13px; color: var(--text); }
.edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  white-space: nowrap;
  margin-left: 24px;
}

/* ── KONTAK ── */
#kontak { background: #ffffff; text-align: center; }
.kontak-inner { max-width: 540px; margin: 0 auto; }
.kontak-label { justify-content: center; display: flex; }
.kontak-inner h2 { margin-bottom: 16px; }
.kontak-desc { color: var(--text); margin-bottom: 40px; font-size: 15px; }
.kontak-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.kontak-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s;
}
.kontak-link:hover { transform: translateY(-3px); }
.kontak-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.kontak-link:hover .kontak-icon { background: var(--blue-light); border-color: var(--blue-mid); }
.kontak-link-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* ── FOOTER ── */
footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  background: #f8f7f4;
}
.foot-status { display: flex; align-items: center; gap: 7px; }
.foot-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2.5s ease-in-out infinite;
}
.foot-open { color: var(--green); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-terminal { display: none; }
}
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 64px 20px; }
  #hero { padding: 100px 20px 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cs-grid { grid-template-columns: 1fr 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 10px; }
  footer { flex-direction: column; gap: 10px; padding: 20px; text-align: center; }
  .modal-cols { grid-template-columns: 1fr; }
  .modal-body { padding: 20px; }
  .modal-head { padding: 20px; }
}
@media (max-width: 580px) {
  h1 { font-size: 42px; }
  .cs-grid { grid-template-columns: 1fr; }
  .edu-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .edu-year { margin-left: 0; }
  .gallery-nav { width: 32px; height: 32px; font-size: 18px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
}
/* -- SECTION REVEAL -- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll > * {
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll:not(.is-visible) > * {
  opacity: 0;
  transform: translateY(18px);
}
.reveal-on-scroll.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-on-scroll.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-on-scroll.is-visible > *:nth-child(4) { transition-delay: .24s; }

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