/* =========================================================
   HANDOKO CUSTOM OVERRIDES
   ========================================================= */
:root {
  --hk-bg: #edf3f0;
  --hk-surface: #f8faf8;
  --hk-ink: #0a3340;
  --hk-muted: #566a6f;
  --hk-line: rgba(10, 51, 64, 0.16);
  --hk-line-strong: rgba(10, 51, 64, 0.34);
  --hk-accent: #154d5c;
  --hk-accent-soft: #d6e3df;
  --hk-dark: #062b36;
}

html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hk-ink);
  background: var(--hk-surface);
}
a { color: var(--hk-accent); }
a:hover { color: var(--hk-dark); }

#sideNav {
  background: var(--hk-bg) !important;
  border-right: 1px solid var(--hk-line);
}
#sideNav .navbar-brand .img-profile {
  max-width: 11rem;
  max-height: 11rem;
  border: 1px solid rgba(10, 51, 64, 0.25);
  padding: .35rem;
  background: rgba(255,255,255,.55);
}
#sideNav .navbar-nav .nav-item .nav-link {
  color: rgba(10,51,64,.75);
  font-size: .78rem;
  letter-spacing: .16em;
  font-weight: 700;
}
#sideNav .navbar-nav .nav-item .nav-link:hover,
#sideNav .navbar-nav .nav-item .nav-link.active { color: var(--hk-ink); }
.sidebar-role {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--hk-muted);
  max-width: 13rem;
  line-height: 1.6;
  margin: 1rem auto 0;
}

.resume-section {
  position: relative;
  border-bottom: 0;
}

/* Editorial section divider: stronger than the default Bootstrap resume rule,
   but still restrained enough to keep the page feeling like a resume. */
.resume-section:not(#about)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5rem;
  right: 5rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--hk-ink) 0,
    var(--hk-ink) 4.5rem,
    var(--hk-line-strong) 4.5rem,
    var(--hk-line-strong) 100%
  );
}

.resume-section:not(#about)::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 5rem;
  width: 4.5rem;
  height: 3px;
  background: var(--hk-ink);
}
.resume-section-content { max-width: 76rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hk-ink);
  text-transform: none;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(4.4rem, 10vw, 8.8rem); line-height: .82; font-weight: 800; }
h2 { font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 750; margin-bottom: 2.5rem !important; }
h3 { font-size: 1.45rem; font-weight: 720; }
.text-primary { color: var(--hk-accent) !important; }

.eyebrow {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  margin-bottom: 1.3rem;
  color: var(--hk-muted);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content:""; width: 2rem; height: 1px; background: var(--hk-ink); }
.hero-role {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 2rem 0 1.4rem;
}
.hero-copy { max-width: 52rem; font-size: 1.08rem; line-height: 1.8; color: var(--hk-muted); }
.hero-meta { color: var(--hk-muted); font-size: .92rem; }

.social-icons .social-icon {
  background: var(--hk-ink);
  color: var(--hk-bg);
  width: 3.2rem;
  height: 3.2rem;
}
.social-icons .social-icon:hover { background: var(--hk-accent); }

.action-row { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:2rem; }
.btn-handoko, .btn-handoko-outline {
  display:inline-flex; align-items:center; gap:.55rem; padding:.8rem 1.05rem; border-radius:999px;
  font-size:.86rem; font-weight:700; text-decoration:none; transition:.2s ease;
}
.btn-handoko { background:var(--hk-ink); color:#fff; border:1px solid var(--hk-ink); }
.btn-handoko:hover { background:var(--hk-accent); color:#fff; transform:translateY(-1px); }
.btn-handoko-outline { border:1px solid var(--hk-line); color:var(--hk-ink); background:rgba(255,255,255,.35); }
.btn-handoko-outline:hover { border-color:var(--hk-ink); color:var(--hk-ink); transform:translateY(-1px); }

.role-item { padding: 0 0 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--hk-line); }
.role-item:last-child { border-bottom:0; margin-bottom:0; }
.role-date { font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; color:var(--hk-muted); font-weight:700; }
.company { font-size:.95rem; color:var(--hk-accent); font-weight:700; margin:.3rem 0 1rem; }
.role-summary { color:var(--hk-muted); max-width:58rem; line-height:1.75; }
.clean-list { padding-left:1.1rem; color:var(--hk-muted); line-height:1.7; }
.clean-list li { margin-bottom:.4rem; }
.product-strip { display:grid; gap:.8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top:1.25rem; }
.product-mini { border-top:1px solid var(--hk-line); padding-top:.8rem; }
.product-mini strong { display:block; font-size:.92rem; color:var(--hk-ink); }
.product-mini span { display:block; font-size:.78rem; color:var(--hk-muted); margin-top:.2rem; }

.project-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1rem; }
.project-card {
  border:1px solid var(--hk-line); background:rgba(255,255,255,.44); padding:1.4rem; min-height:18rem;
  display:flex; flex-direction:column; justify-content:space-between; border-radius:0;
}
.project-index { font-size:.72rem; font-weight:800; letter-spacing:.15em; color:var(--hk-muted); }
.project-card h3 { margin:.8rem 0 .4rem; }
.project-role { color:var(--hk-accent); font-size:.82rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.project-card p { color:var(--hk-muted); line-height:1.65; font-size:.94rem; }
.tech-list { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1rem; }
.tech-list span { font-size:.72rem; border:1px solid var(--hk-line); padding:.3rem .5rem; color:var(--hk-muted); }
.project-link { display:inline-flex; align-items:center; align-self:flex-start; min-height:2.75rem; font-size:.82rem; font-weight:750; margin-top:.6rem; }
.project-links { display:flex; flex-wrap:wrap; column-gap:1.5rem; }

.impact-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.5rem; max-width:62rem; margin:3rem 0 0; padding:1.5rem 0 0; list-style:none; border-top:1px solid var(--hk-line); }
.impact-grid strong { display:block; font-size:1.7rem; font-weight:750; letter-spacing:-.03em; color:var(--hk-ink); }
.impact-grid span { display:block; font-size:.82rem; line-height:1.5; color:var(--hk-muted); margin-top:.35rem; }

.skill-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.skill-group { border-top:1px solid var(--hk-line); padding-top:1rem; }
.skill-group h3 { font-size:1rem; margin-bottom:.55rem; }
.skill-group p { color:var(--hk-muted); line-height:1.75; font-size:.92rem; margin:0; }

.education-line { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; align-items:flex-start; }
.contact-panel { max-width:58rem; }
.contact-panel p { color:var(--hk-muted); font-size:1.05rem; line-height:1.8; }
.footer-note { font-size:.78rem; color:var(--hk-muted); margin-top:2rem; }

@media (min-width: 992px) {
  body { padding-left: 18rem; }
  #sideNav { width:18rem; }
  #sideNav .navbar-collapse .navbar-nav { width:100%; }
  section.resume-section { min-height:auto; padding:6rem 5rem; }
  section.resume-section#about { min-height:100vh; }
}
@media (max-width: 991.98px) {
  #sideNav { background:rgba(237,243,240,.96) !important; backdrop-filter:blur(14px); }
  #sideNav .navbar-brand { color:var(--hk-ink); font-weight:800; }
  .project-grid, .skill-grid { grid-template-columns:1fr; }
  .impact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #sideNav .navbar-toggler { min-height:2.75rem; }
  h1 { font-size:4rem; }
  section.resume-section { padding:5rem 1.5rem; }
  .resume-section:not(#about)::before { left:1.5rem; right:1.5rem; }
  .resume-section:not(#about)::after { left:1.5rem; }
}
@media (max-width: 575.98px) {
  h1 { font-size:3.35rem; }
  h2 { font-size:2.5rem; }
  .project-card { min-height:auto; }
}

/* =========================================================
   SIDEBAR LAYOUT FIX
   Keep the profile/navigation group vertically centered on desktop.
   ========================================================= */
#sideNav .navbar-brand {
  white-space: normal;
}

#sideNav .sidebar-role span {
  display: block;
}

@media (min-width: 992px) {
  #sideNav {
    display: flex;
    flex-direction: column;
    justify-content: initial;
    height: 100vh;
    overflow: hidden;
  }

  /* Restore the original Start Bootstrap balancing behavior:
     flexible space above the profile and below the nav. */
  #sideNav .navbar-brand {
    width: 100%;
    margin: auto auto 0;
    padding: 0.5rem 1rem 0;
    display: block;
  }

  #sideNav .navbar-brand .d-lg-block {
    width: 100%;
  }

  #sideNav .navbar-brand .img-profile {
    display: block;
    width: 9.25rem;
    height: 9.25rem;
    max-width: 9.25rem;
    max-height: 9.25rem;
    object-fit: cover;
    margin: 0 auto 1.15rem !important;
  }

  #sideNav .sidebar-role {
    width: 100%;
    max-width: 14rem;
    margin: 0 auto 1.15rem;
    padding: 0 0.5rem;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0.17em;
    text-align: center;
    text-transform: uppercase;
    color: rgba(10, 51, 64, 0.75);
    white-space: normal;
  }

  #sideNav .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
    align-items: flex-start;
  }

  #sideNav .navbar-collapse .navbar-nav {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 991.98px) {
  #sideNav .sidebar-role {
    display: none;
  }
}
