:root{
  --bg: #0b0d12;
  --bg-2: #101523;
  --text: #e9eefc;
  --muted: #b6c0dd;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.14);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --accent: #7aa7ff;
  --accent-2: #a7f3d0;
}

[data-theme="light"]{
  --bg: #f7f8fb;
  --bg-2: #ffffff;
  --text: #0c1222;
  --muted: #4d5a7a;
  --card: rgba(0,0,0,.035);
  --border: rgba(0,0,0,.12);
  --shadow: 0 10px 30px rgba(10,20,40,.12);
  --accent: #2157ff;
  --accent-2: #0ea5e9;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: radial-gradient(900px 500px at 25% 0%, rgba(122,167,255,.18), transparent 55%),
              radial-gradient(900px 600px at 100% 10%, rgba(167,243,208,.14), transparent 55%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body::before{
  content: "Engel Willem";
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .035;
  transform: rotate(-12deg);
}

a{ color: inherit; }
a:hover{ text-decoration: none; }

.container{
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  z-index: 999;
}
.skip-link:focus{ left: 16px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg), transparent 30%);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand{ flex: 1; }
.kicker{
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .95rem;
}
h1{
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: .01em;
}
.subtitle{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.nav{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover{
  border-color: var(--border);
  color: var(--text);
  background: var(--card);
}
.nav a.dicoding{
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent), transparent 55%);
  background: color-mix(in oklab, var(--accent), transparent 86%);
}

.nav-toggle{
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.main-layout{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0 44px;
}

.content{ flex: 1; min-width: 0; }
.sidebar{ width: 360px; }

.hero{ padding-top: 10px; }
.role{
  margin: 0 0 10px;
  color: var(--accent-2);
  font-weight: 650;
}

h2{
  margin: 22px 0 10px;
  font-size: 1.25rem;
}
h3{
  margin: 16px 0 8px;
  font-size: 1.05rem;
}
p{ margin: 10px 0; }

.bullet{
  margin: 10px 0;
  padding-left: 18px;
}
.bullet li{ margin: 6px 0; }

.cards{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.cards .card{
  flex: 1 1 240px;
}

.project-grid{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.project-grid .project{
  flex: 1 1 320px;
}

.meta{
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: .95rem;
}
.small{
  color: var(--muted);
  font-size: .92rem;
}

.timeline{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.two-col{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.two-col > .card{ flex: 1 1 320px; }

.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--accent), transparent 35%);
  background: color-mix(in oklab, var(--accent), transparent 82%);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover{
  background: color-mix(in oklab, var(--accent), transparent 74%);
}
.btn-ghost{
  border-color: var(--border);
  background: var(--bg-2);
}

.profile{
  padding: 0;
  overflow: hidden;
}
.profile img{
  width: 100%;
  height: auto;
  display: block;
}
.profile-body{
  padding: 14px;
}
.name{
  margin: 0 0 8px;
  font-weight: 650;
}
.links{
  list-style: none;
  padding: 0;
  margin: 0;
}
.links li{ margin: 8px 0; }
.links a{
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  background: var(--bg-2);
}
.links a:hover{
  border-color: color-mix(in oklab, var(--accent), transparent 30%);
}

.site-footer{
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg), transparent 15%);
}
.footer-inner{
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.theme-toggle{
  position: fixed;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* Responsif: wajib media query */
@media (max-width: 980px){
  .main-layout{ flex-direction: column; }
  .sidebar{ width: 100%; }
}

@media (max-width: 760px){
  .nav-toggle{ display: inline-flex; }
  .nav{
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-top: 8px;
  }
  .nav.is-open{ display: flex; }
  .header-inner{ flex-wrap: wrap; }
  .cards .card, .project-grid .project{ flex-basis: 100%; }
  body::before{ opacity: .02; }
}

/* Screen-reader only helper */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
