/* =========================================================
   Portofolio PPG — Design System
   Primary : #0e1033 (Dark Navy)
   Accent  : Ivory (#F8F9ED / #FFFFF0)
   Cards   : #FFFFFF, radius 16px, soft shadow
   Font    : Plus Jakarta Sans (Google Fonts)
   Layout  : Navbar horizontal di bagian atas
   ========================================================= */

:root {
  --primary: #0e1033;
  --primary-2: #1b2057;
  --primary-3: #2a3180;

  --bg: #f8f9ed;            /* ivory utama */
  --bg-strong: #fffff0;     /* ivory terang */
  --card: #ffffff;
  --card-soft: #f6f7f2;

  --border: #e6e8dc;
  --border-soft: #eef0e6;

  --text: #16182f;
  --text-soft: #4b4e6d;
  --text-muted: #7a7d9c;

  --green: #3ecf8e;   --green-bg: #e4f8ee;   --green-ink: #118a57;
  --blue:  #4d9fff;   --blue-bg: #e7f2ff;    --blue-ink: #1e6fd9;
  --amber: #ffb84d;   --amber-bg: #fff4e0;   --amber-ink: #b06a00;
  --gray:  #9aa0b8;   --gray-bg: #f0f1f7;    --gray-ink: #666a8a;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(14, 16, 51, 0.07);
  --shadow-lg: 0 14px 40px rgba(14, 16, 51, 0.12);
  --shadow-primary: 0 8px 20px rgba(14, 16, 51, 0.28);

  --font: "Plus Jakarta Sans", "Inter", "Roboto", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 24px rgba(14, 16, 51, 0.2);
}

.navbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
}

.brand-logos img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(62, 207, 142, 0.35);
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
}

.brand-name strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.25s, transform 0.25s;
}

.menu-toggle:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-1px); }

/* profil di navbar */
.navbar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.avatar {
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 6px 14px rgba(14, 16, 51, 0.35);
}

.avatar-sm { width: 42px; height: 42px; font-size: 14px; border-radius: 12px; }
.avatar-lg { width: 108px; height: 108px; font-size: 34px; border-radius: 24px; }

.profile-mini-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.profile-mini-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* navigasi horizontal */
.nav { margin-left: auto; align-self: stretch; }

.nav-list {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 2px;
}

.nav-list > li { display: flex; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 13px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.nav-link .icon { color: rgba(255, 255, 255, 0.55); transition: color 0.25s; }

.nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-link:hover .icon { color: var(--bg-strong); }

.nav-link.active {
  height: 100%;
  background: var(--bg-strong);
  color: var(--primary);
}

.nav-link.active .icon { color: var(--primary); }

/* chevron dropdown */
.chev {
  margin-left: 4px;
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.nav-group.open .chev { transform: rotate(180deg); }

/* dropdown Refleksi (desktop) */
.nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: var(--primary-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(14, 16, 51, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.nav-group {
  position: relative;
}

.nav-group.open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub-link {
  position: relative;
  display: block;
  padding: 10px 14px 10px 30px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.25s, color 0.25s;
}

.nav-sub-link::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  transition: background 0.25s;
}

.nav-sub-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-sub-link:hover::before { background: var(--green); }

/* ---------- Main & Page Header ---------- */
.main {
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 56px;
}

.page-header {
  margin-bottom: 26px;
}

/* banner berjudul dengan background gambar */
.page-header--banner {
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  padding: 42px 38px;
  background-size: cover;
  background-position: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.page-header--banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 16, 51, 0.88) 0%, rgba(20, 24, 66, 0.55) 60%, rgba(20, 24, 66, 0.15) 100%);
}

.page-header--banner .breadcrumb { color: rgba(255, 255, 255, 0.72); }

.page-header--banner .page-title { color: #fff; }

.breadcrumb {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.page-grid-main { min-width: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 232, 220, 0.6);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }

.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover { background: var(--primary-2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--primary);
}

.btn-ghost:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-light:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }

/* ---------- Badges & Chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-success { background: var(--green-bg); color: var(--green-ink); }
.badge-progress { background: var(--blue-bg); color: var(--blue-ink); }
.badge-pending { background: var(--gray-bg); color: var(--gray-ink); }
.badge-amber { background: var(--amber-bg); color: var(--amber-ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.chip .icon { width: 16px; height: 16px; color: var(--blue-ink); }

/* ---------- Hero (index) ---------- */
.hero-wrap { position: relative; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, var(--primary-3) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.35), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: 30%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 159, 255, 0.3), transparent 70%);
  pointer-events: none;
}

.hero .avatar-lg { width: 120px; height: 120px; font-size: 38px; }

.hero-photo {
  position: absolute;
  z-index: 2;
  top: -96px;
  right: 15px;
  width: 390px;
  height: 435px;
  border-radius: 22px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(14, 16, 51, 0.35));
}

.hero-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero p { color: rgba(255, 255, 255, 0.72); max-width: 560px; margin-bottom: 22px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.stat-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-bubble.green { background: var(--green-bg); color: var(--green-ink); }
.stat-bubble.blue { background: var(--blue-bg); color: var(--blue-ink); }
.stat-bubble.amber { background: var(--amber-bg); color: var(--amber-ink); }
.stat-bubble.gray { background: var(--gray-bg); color: var(--gray-ink); }

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ---------- Quick links ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.quick-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 232, 220, 0.6);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-link .icon-more { margin-left: auto; width: 18px; height: 18px; color: var(--text-muted); transition: transform 0.25s, color 0.25s; }

.quick-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick-link:hover .icon-more { color: var(--blue-ink); transform: translateX(3px); }

.quick-bg {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-bg:is(.green) { background: linear-gradient(135deg, var(--green-ink), var(--green)); }
.quick-bg:is(.blue) { background: linear-gradient(135deg, var(--blue-ink), var(--blue)); }
.quick-bg:is(.amber) { background: linear-gradient(135deg, var(--amber-ink), var(--amber)); }

/* ---------- Activity widget ---------- */
.activity-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}

.activity-list li:last-child { border-bottom: none; }

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--dot-ring, rgba(62, 207, 142, 0.16));
}

.activity-text { font-size: 13.5px; font-weight: 600; color: var(--text-soft); line-height: 1.5; }
.activity-time { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ---------- About / Profile card ---------- */
.profile-card {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  padding: 32px;
}

.profile-info { flex: 1; min-width: 260px; }

.profile-info .hero-label { color: var(--blue-ink); }
.profile-info h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.profile-role { font-size: 15px; font-weight: 600; color: var(--text-soft); margin-top: 4px; }

.contact-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.info-list { display: grid; gap: 12px; margin-top: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }

.info-item .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--primary-3);
}

.info-item-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-item-value { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-word; }

/* note */
.note {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--blue-bg);
  border-left: 4px solid var(--blue);
  font-size: 13.5px;
  color: var(--blue-ink);
}

/* skill bars */
.skill { margin-bottom: 18px; }
.skill:last-child { margin-bottom: 0; }
.skill-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--text-soft); margin-bottom: 8px; }
.skill-bar { height: 8px; border-radius: 99px; background: var(--border-soft); overflow: hidden; }
.skill-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  width: 0;
  animation: growBar 1.2s ease forwards;
}

@keyframes growBar { from { width: 0; } }

/* ---------- Timeline (journey) ---------- */
.timeline { position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--green) 0%, var(--blue) 60%, var(--border) 100%);
  border-radius: 99px;
}

.timeline-item { position: relative; padding: 0 0 26px 48px; }

.timeline-dot {
  position: absolute;
  left: 6px;
  top: 26px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dot, var(--primary));
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--dot-ring, rgba(14, 16, 51, 0.15));
}

.tld-green { --dot: var(--green); --dot-ring: rgba(62, 207, 142, 0.28); }
.tld-blue { --dot: var(--blue); --dot-ring: rgba(77, 159, 255, 0.3); }
.tld-gray { --dot: var(--gray); --dot-ring: rgba(154, 160, 184, 0.3); }

.timeline-card { padding: 20px 22px; }
.timeline-card:hover { transform: translateX(4px); }

.timeline-card .card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.timeline-card h3 { font-size: 16px; font-weight: 800; color: var(--primary); }
.timeline-card p { font-size: 14px; color: var(--text-soft); }

.timeline-period { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.timeline-period .icon { width: 15px; height: 15px; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.project-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

.thumb-1 { background: linear-gradient(135deg, #0e1033, #2a3180); }
.thumb-2 { background: linear-gradient(135deg, #6ee7b7, #3ecf8e); }
.thumb-3 { background: linear-gradient(135deg, #93c5fd, #4d9fff); }
.thumb-4 { background: linear-gradient(135deg, #fcd34d, #ffb84d); }
.thumb-5 { background: linear-gradient(135deg, #c4b5fd, #8b7cf6); }
.thumb-6 { background: linear-gradient(135deg, #fda4af, #fb7185); }

.project-thumb .icon { width: 40px; height: 40px; opacity: 0.9; }

.thumb-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.project-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.project-body p { font-size: 13.5px; color: var(--text-soft); flex: 1; }

.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }

.project-body .btn { align-self: flex-start; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 16, 51, 0.55);
  backdrop-filter: blur(4px);
}

.modal.open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-thumb {
  position: relative;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.modal-thumb .icon { width: 52px; height: 52px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(14, 16, 51, 0.35);
  color: #fff;
  font-size: 16px;
  transition: background 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: rgba(14, 16, 51, 0.6); transform: rotate(90deg); }

.modal-body { padding: 22px 24px 24px; }
.modal-body h3 { font-size: 20px; font-weight: 800; color: var(--primary); margin: 6px 0 10px; }
.modal-body p { font-size: 14px; color: var(--text-soft); margin-bottom: 16px; }

.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ---------- Reflection sections ---------- */
.reflect-card { scroll-margin-top: 96px; }

.reflect-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.reflect-head .num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reflect-head h3 { font-size: 17px; font-weight: 800; color: var(--primary); }

.reflect-body p { font-size: 14px; color: var(--text-soft); margin-bottom: 12px; }
.reflect-body p:last-child { margin-bottom: 0; }

.reflect-quote {
  margin: 16px 0 4px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--card-soft);
  border-left: 4px solid var(--green);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  font-style: italic;
}

/* ---------- Halaman detail refleksi ---------- */
.nav-sub-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--bg-strong);
}

.nav-sub-link.active::before { background: var(--bg-strong); }

.reflect-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin: 22px 0 10px;
}

.reflect-sub::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  flex-shrink: 0;
}

.reading-card p { font-size: 14.5px; color: var(--text-soft); margin-bottom: 12px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.reflect-bullets { display: grid; gap: 10px; }
.reflect-bullets li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.reflect-bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ---------- Daftar mata kuliah (gambaran umum) ---------- */
.mk-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 16px;
}

.mk-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-strong);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mk-list li:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.mk-list .idx {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mk-list a {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.mk-list .icon { color: var(--blue-ink); width: 16px; height: 16px; }

/* ---------- Hasil refleksi ---------- */
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-strong);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.result-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.result-item .r-idx {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--green-bg);
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-item h4 { font-size: 14px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }

.result-item p { font-size: 13px; color: var(--text-soft); margin-bottom: 0; }

/* ---------- Refleksi per mata kuliah (4C + artefak) ---------- */
.rc-course {
  scroll-margin-top: 96px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.rc-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.rc-head .num {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rc-head h3 { font-size: 17px; font-weight: 800; color: var(--primary); flex: 1; }

.reflect-4c {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rc-item {
  background: var(--bg-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.rc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
  color: var(--primary);
}

.rc-label .dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.rc-dot-conn { background: var(--green); }
.rc-dot-chal { background: var(--amber); }
.rc-dot-conc { background: var(--blue); }
.rc-dot-chg { background: var(--primary-3); }

.rc-item p { font-size: 13.5px; color: var(--text-soft); margin-bottom: 0; }

.rc-artifact { margin-top: 16px; }

.artifact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }

.artifact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.artifact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }

.artifact-item .a-ficon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--green-bg);
  color: var(--green-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.artifact-item .a-meta { flex: 1; display: flex; flex-direction: column; }

.artifact-item .a-name { font-size: 13px; font-weight: 700; color: var(--primary); }

.artifact-item .a-sub { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.artifact-item .a-chev { color: var(--text-muted); width: 16px; height: 16px; flex-shrink: 0; }

.nav-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.nav-pages .pg-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(230, 232, 220, 0.6);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-pages .pg-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.nav-pages .pg-link.next { justify-content: flex-end; text-align: right; }

.nav-pages .pg-link .icon { width: 20px; height: 20px; color: var(--blue-ink); flex-shrink: 0; }
.nav-pages .pg-link .dir { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.nav-pages .pg-link .pg { font-size: 14px; font-weight: 700; color: var(--primary); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-card { overflow: hidden; padding: 0; }
.gallery-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }

.gallery-photo {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.gallery-photo .icon { width: 34px; height: 34px; opacity: 0.85; }

.gallery-cap { padding: 14px 16px; }
.gallery-cap h4 { font-size: 14px; font-weight: 700; color: var(--primary); }
.gallery-cap p { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .container { padding-bottom: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding: 44px 0 34px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 14px;
  max-width: 320px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.footer-logos img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
  padding: 4px;
}

.footer-col h4 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links { display: grid; gap: 10px; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover { color: #fff; transform: translateX(3px); }

.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.footer-contact { display: grid; gap: 12px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact .icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .navbar-inner { padding: 0 16px; min-height: 62px; gap: 12px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .menu-toggle { display: inline-flex; }
  .nav { margin-left: 0; }

  /* menu mobile (panel tarik turun) */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(14, 16, 51, 0.4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.open { max-height: calc(100vh - 70px); overflow-y: auto; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 2px;
    padding: 10px 16px 20px;
  }

  .nav-link { padding: 13px 12px; border-radius: 10px; }
  .nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--bg-strong);
  }
  .nav-link.active .icon { color: var(--bg-strong); }

  .nav-group .nav-link { width: 100%; }
  .nav-group .chev { margin-left: auto; }

  /* submenu accordion di mobile */
  .nav-group.open .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-sub {
    position: static;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 4px;
    max-height: 0;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    transform: none;
    transition: max-height 0.35s ease;
  }

  .nav-group.open .nav-sub { max-height: 200px; }

  .nav-sub-link { padding: 10px 12px 10px 32px; }

  .profile-mini-meta { display: none; }
}

@media (max-width: 720px) {
  .container { padding: 20px 16px 44px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }

  .page-title { font-size: 21px; }
  .page-header--banner { padding: 30px 22px; border-radius: 18px; }

  .hero { padding: 28px 22px; flex-direction: column; align-items: flex-start; gap: 20px; }

  .hero-photo { width: 140px; height: 175px; top: -40px; right: 16px; border-radius: 16px; }

  .profile-card { padding: 24px 20px; }

  .card { padding: 20px; }

  .modal-card { max-height: 88vh; }

  .nav-pages { grid-template-columns: 1fr; }

  .reflect-4c { grid-template-columns: 1fr; }
  .artifact-list { grid-template-columns: 1fr; }
  .mk-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .result-grid { grid-template-columns: 1fr; }
}