/* ============================================================
   DESIGN SYSTEM — CSS VARIABLES
   ============================================================ */
/* Font lokal — download dari Google Fonts, simpan di assets/fonts/
   Tidak ada request eksternal ke Google saat halaman dimuat.
   Tool download: https://gwfh.mranftl.com (Google Webfonts Helper)
 
   File yang dibutuhkan di assets/fonts/:
     DM Serif Display  → DMSerifDisplay-Regular.woff2 / .woff
                       → DMSerifDisplay-Italic.woff2  / .woff
     DM Sans           → DMSans[opsz,wght].woff2      (variable font)
                       → DMSans-Italic[opsz,wght].woff2
     JetBrains Mono    → JetBrainsMono[wght].woff2    (variable font)
*/

@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/DMSerifDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/DMSerifDisplay-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-VariableFont_opsz,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Italic-VariableFont_opsz,wght.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #f9f7f4;
  --bg-secondary: #f1ede7;
  --bg-card: #ffffff;
  --bg-elevated: #fdfcfb;
  --text-primary: #1a1714;
  --text-secondary: #6b6560;
  --text-muted: #a09a94;
  --accent: #c4622d;
  --accent-warm: #e8956d;
  --accent-cool: #2d5c4a;
  --color-info: #2d5c8c;
  --color-warning: #b08d23;
  --color-success: #2d5c4a;
  --color-danger: #a33b3b;
  --border: rgba(26, 23, 20, 0.08);
  --border-strong: rgba(26, 23, 20, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --nav-height: 72px;
  --max-width: 1200px;
  --section-padding: 100px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #111010;
  --bg-secondary: #1a1917;
  --bg-card: #1e1d1b;
  --bg-elevated: #252321;
  --text-primary: #f0ede8;
  --text-secondary: #9a958f;
  --text-muted: #5c5855;
  --accent: #e07843;
  --accent-warm: #c4622d;
  --accent-cool: #4a8c73;
  --color-info: #4a8cae;
  --color-warning: #d9b142;
  --color-success: #4a8c73;
  --color-danger: #c95555;
  --border: rgba(240, 237, 232, 0.07);
  --border-strong: rgba(240, 237, 232, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
ul,
ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.t-display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-display-md {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}
.t-heading {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.t-body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}
.t-body {
  font-size: 1rem;
  line-height: 1.7;
}
.t-small {
  font-size: 0.875rem;
  line-height: 1.6;
}
.t-caption {
  font-size: 0.75rem;
  line-height: 1.5;
}
.t-mono {
  font-family: var(--font-mono);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.section {
  padding: var(--section-padding) 0;
}
.section--alt {
  background: var(--bg-secondary);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.gap-24 {
  gap: 24px;
}
.gap-32 {
  gap: 32px;
}
.gap-48 {
  gap: 48px;
}

/* ============================================================
   SECTION HEADER COMPONENT
   ============================================================ */
.section-header {
  margin-bottom: 64px;
}
.section-header--center {
  text-align: center;
}
.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-header__label::before {
  content: "";
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}
.section-header--center .section-header__label {
  justify-content: center;
}
.section-header__title {
  margin-bottom: 16px;
}
.section-header__sub {
  font-size: 1.075rem;
  color: var(--text-secondary);
  max-width: 540px;
}
.section-header--center .section-header__sub {
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  position: relative;
  /* overflow: hidden; */
}
.btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}
.btn--ghost {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.btn--ghost:hover {
  background: var(--border-strong);
}
.btn--sm {
  padding: 8px 12px;
  font-size: 0.8125rem;
}
.btn__icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}
.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}
.navbar--scrolled {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ── LOGO SWITCHER ── */
.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Ukuran dasar logo (sesuaikan tinggi pixelnya dengan desainmu) */
.navbar__logo img,
.footer__logo img {
  height: 28px;
  width: auto;
  transition: opacity var(--transition-fast);
}

/* Kondisi Default (Light Mode Aktif) */
html[data-theme="light"] .logo-dark-theme {
  display: none; /* Sembunyikan logo teks putih */
}
html[data-theme="light"] .logo-light-theme {
  display: block; /* Tampilkan logo teks hitam */
}

/* Kondisi Dark Mode Aktif */
html[data-theme="dark"] .logo-light-theme {
  display: none; /* Sembunyikan logo teks hitam */
}
html[data-theme="dark"] .logo-dark-theme {
  display: block; /* Tampilkan logo teks putih */
}

/* .navbar__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.navbar__logo span {
  color: var(--accent);
} */

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar__link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.navbar__icon-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.navbar__lang {
  font-family: var(--font-mono);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.navbar__hamburger:hover {
  background: var(--bg-secondary);
}
.navbar__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  transform-origin: center;
}
.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.navbar__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.navbar__mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.navbar__mobile .navbar__link {
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  opacity: 0.12;
}
.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-cool) 0%, transparent 70%);
  bottom: 0;
  left: -80px;
  opacity: 0.08;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}
.hero__content {
  max-width: 800px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}
.hero__title {
  margin-bottom: 24px;
}
.hero__title-italic {
  font-style: italic;
  color: var(--accent);
}
.hero__desc {
  font-size: 1.075rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Mencegah adanya ruang kosong di bawah gambar */
}

.hero__photo-frame {
  position: relative;
  width: 320px;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-card));
}
/* ============================================================
   HERO PHOTO BADGE WITH ROTATING BORDER EFFECT
   ============================================================ */
.hero__photo-badge {
  position: absolute;
  bottom: 20px;
  left: -24px;
  background: transparent; /* Ubah ke transparan agar gradient di belakangnya kelihatan */
  border: none; /* Hapus border solid bawaan lama */
  border-radius: var(--radius-md); /* Menjaga lekukan border */
  padding: 12px 16px; /* Jarak padding dalam */
  box-shadow: var(
    --shadow-lg
  ); /* Tetap mempertahankan shadow lembut[cite: 1] */
  display: flex; /*[cite: 1] */
  align-items: center; /*[cite: 1] */
  gap: 10px; /*[cite: 1] */
  overflow: hidden; /* PENTING: Memotong sisa gradient yang berputar keluar border */
}

/* Layer 1: Efek Gradien Berputar (Garis Berjalan) */
.hero__photo-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, var(--accent), transparent 35%);
  animation: rotateBadgeBorder 3s linear infinite;
  z-index: 1;
}

/* Layer 2: Penutup Tengah (Menghasilkan ketebalan border kustom) */
.hero__photo-badge::after {
  content: "";
  position: absolute;
  inset: 1.5px; /* Angka ini menentukan ketebalan garis berjalan (misal: 1.5px) */
  background: var(
    --bg-card
  ); /* Warna background kartu mengikuti tema[cite: 1] */
  border-radius: calc(var(--radius-md) - 1.5px);
  z-index: 2;
}

/* Layer 3: Memaksa Konten Asli (Ikon & Teks) Naik ke Atas Penutup */
.hero__photo-badge .hero__badge-icon,
.hero__photo-badge > div {
  position: relative;
  z-index: 3;
}

/* Animasi Rotasi */
@keyframes rotateBadgeBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.hero__badge-icon {
  font-size: 1.25rem;
}
.hero__badge-text {
  font-size: 0.8rem;
  font-weight: 500;
}
.hero__badge-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  align-self: flex-start;
  margin-top: auto;
}
.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  to {
    left: 100%;
  }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: var(--section-padding) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.about__text {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}
.about__text + .about__text {
  margin-top: 16px;
}
.about__links {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.about__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.about__info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition-fast);
}
.about__info-item:hover {
  border-color: var(--border-strong);
}
.about__info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.about__info-value {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills {
  padding: var(--section-padding) 0;
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
  cursor: default;
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.skill-card__icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
.skill-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.skill-card__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.skill-card__bar {
  height: 3px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.skill-card__fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}
.skill-card__fill.animated {
  width: var(--skill-width);
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.experience {
  padding: var(--section-padding) 0;
}
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all var(--transition-slow);
}
.timeline__item.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline__dot {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}
.timeline__item:hover .timeline__dot {
  border-color: var(--accent);
  background: var(--accent);
}
.timeline__body {
  padding-top: 10px;
}
.timeline__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.timeline__period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(196, 98, 45, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.timeline__company {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.timeline__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.timeline__gpa {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Award badge — clickable pill */
.timeline__award-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196, 98, 45, 0.08);
  border: 1px solid rgba(196, 98, 45, 0.25);
  border-radius: var(--radius-full);
  padding: 5px 14px 5px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 20px;
  font-family: var(--font-body);
  position: relative;
  flex-wrap: wrap;
  row-gap: 2px;
}
.timeline__award-badge:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.timeline__award-icon {
  font-size: 0.9rem;
}
.timeline__award-hint {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
  margin-left: 4px;
  font-style: italic;
  border-left: 1px solid currentColor;
  padding-left: 8px;
}

/* Final project block */
.timeline__final-project {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 4px;
}
.timeline__fp-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.timeline__fp-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.timeline__award-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-top: 10px;
  margin-bottom: 0;
}

/* ============================================================
   PROJECT / PORTFOLIO CARDS
   ============================================================ */
.projects {
  padding: var(--section-padding) 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.project-card__image {
  height: 220px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

/* Per-project image gradients (replaces inline styles) */
.project-card__image--1 {
  background: linear-gradient(135deg, #f5ede3, #ebd9c4);
}
.project-card__image--2 {
  background: linear-gradient(135deg, #e3eef0, #c4dde4);
}
.project-card__image--3 {
  background: linear-gradient(135deg, #ede3f0, #d4c4e4);
}
.project-card__image--4 {
  background: linear-gradient(135deg, #e3f0e8, #c4e4cc);
}
.project-card__image--5 {
  background: linear-gradient(135deg, #f0e8e3, #e4d0c4);
}
.project-card__image--6 {
  background: linear-gradient(135deg, #e8e3f0, #ccc4e4);
}

.project-card__image-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.project-card:hover .project-card__image-gradient {
  opacity: 1;
}
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.project-card:hover .project-card__overlay {
  opacity: 1;
}
.project-card__overlay-btn {
  padding: 8px 18px;
  background: white;
  color: #111;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: transform var(--transition-fast);
}
.project-card__overlay-btn:hover {
  transform: scale(1.05);
}
.project-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card__tags,
.blog-card__tags,
.daily-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag--accent {
  background: rgba(196, 98, 45, 0.1);
  color: var(--accent);
  border-color: rgba(196, 98, 45, 0.2);
}
.project-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.project-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.project-card__stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 80%;
}
.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
/* project-card__link, blog-card__link, daily-card__link, portfolio-card__link
   → Defined in ARTICLE PAGE section below */

/* Portfolio page: filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Portfolio page: header counter */
.portfolio-count {
  text-align: right;
}
.portfolio-count__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.portfolio-count__number {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

/* Portfolio page: CTA section */
.portfolio-cta {
  text-align: center;
}
.portfolio-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.portfolio-cta__text {
  max-width: 480px;
  margin: 0 auto 36px;
}

/* Portfolio page: load more */
.load-more-wrap {
  text-align: center;
  margin-top: 60px;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-preview {
  padding: var(--section-padding) 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.blog-card__image {
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.blog-card__image-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: opacity var(--transition-base);
}
.blog-card:hover .blog-card__image-bg {
  opacity: 0.25;
}
.blog-card__cat {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.blog-card__read {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.blog-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}
.blog-card:hover .blog-card__title {
  color: var(--accent);
}
.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.blog-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.blog-card__author-name {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Blog featured */
.blog-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 48px;
  transition: all var(--transition-base);
}
.blog-featured:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.blog-featured__image {
  /* height: 380px; */
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.blog-featured__body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}
.blog-featured__title {
  margin-bottom: 16px;
}
.blog-featured__excerpt {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}
.blog-featured__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Blog search & filter */
.blog-search {
  position: relative;
  max-width: 400px;
}
.blog-search__input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}
.blog-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.1);
}
.blog-search__input::placeholder {
  color: var(--text-muted);
}
.blog-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}
.blog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.blog-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-cat {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.blog-cat:hover,
.blog-cat.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}
.pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.pagination__btn:hover,
.pagination__btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* ── CALLOUT BOX (LAZYBLOCKS) ── */
.callout-box {
  position: relative;
  margin: 32px 0;
  padding: 24px 32px;
  background-color: var(--bg-card); /* Atau var(--bg-secondary) */
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent); /* Default */
}

/* Teks Utama (Top) */
.callout-box__main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* Teks Penjelasan (Middle) */
.callout-box__explanation {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-style: normal;
}
/* Memastikan paragraf terakhir di rich text tidak berlebih marginnya */
.callout-box__explanation p:last-child {
  margin-bottom: 0;
}

/* Sumber / Penulis (Bottom) */
.callout-box__citation {
  display: block;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-muted);
}

/* Jarak otomatis jika elemen terakhir */
.callout-box > :last-child {
  margin-bottom: 0;
}

/* ── VARIAN WARNA ── */
.callout-box--info {
  border-left-color: var(--color-info, #2d5c8c);
}
.callout-box--warning {
  border-left-color: var(--color-warning, #b08d23);
}
.callout-box--success {
  border-left-color: var(--color-success, #2d5c4a);
}
.callout-box--danger {
  border-left-color: var(--color-danger, #a33b3b);
}

/* ── IMAGE ZOOM (MEDIUM-ZOOM) ── */
/* Memastikan zoom di atas navbar */
.medium-zoom-overlay,
.medium-zoom-image--opened {
  z-index: 9999 !important;
}

/* Background otomatis mengikuti tema (Light/Dark) */
.medium-zoom-overlay {
  background-color: var(--bg-primary) !important;
  opacity: 0.95 !important; /* Diberi sedikit transparansi agar lebih elegan */
}

/* Mengembalikan bentuk kursor saat gambar bisa di-zoom */
.medium-zoom-image--opened {
  cursor: zoom-out;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
}
.article__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

/* ── ARTICLE AUTHOR HEADER ROW ── */
.article__author-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* ── ARTICLE AVATAR (image variant) ── */
.article__author-avatar {
  overflow: hidden;
  padding: 0;
  background: transparent;
}
.article__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── ARTICLE IMAGE PLACEHOLDER ── */
.article__image--placeholder {
  background: linear-gradient(
    135deg,
    rgba(196, 98, 45, 0.05),
    rgba(45, 92, 74, 0.05)
  );
  position: relative;
}
/* Daily log placeholder bg */
.article__image--placeholder-daily {
  background: linear-gradient(
    135deg,
    rgba(45, 92, 74, 0.05),
    rgba(196, 98, 45, 0.05)
  );
  position: relative;
}
/* Portfolio placeholder bg: same default */
.article__image-icon {
  font-size: 5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── BLOG CARD READ LINK (related grid) ── */
.blog-card__read-link {
  margin-top: 12px;
  display: inline-flex;
}

/* ── ARTICLE TAGS ── */
.article__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ── ARTICLE SHARE ── */
.article__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.article__share-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ── AUTHOR CARD (shared: desktop sidebar + mobile inline) ── */
.article__author-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.article__author-card__inner {
  text-align: center;
  margin-bottom: 20px;
}
.article__author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  border: 2px solid var(--accent);
}
.article__author-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}
.article__author-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Mobile: card wrapped in margin */
.article__author-card-mobile .article__author-card {
  margin-top: 32px;
}

/* ── BTN FULL WIDTH ── */
.btn--full {
  width: 100%;
  justify-content: center;
}

/* ── ARTICLE CAT VARIANTS ── */
.article__cat--daily {
  background: rgba(45, 92, 74, 0.1);
  color: var(--accent-cool);
}
.article__cat--portfolio {
  background: rgba(45, 92, 140, 0.1);
  color: var(--color-info);
}

/* ── BLOG CARD IMAGE VARIANTS (related grids) ── */
.blog-card__image--article {
  background: linear-gradient(135deg, #e3f0e3, #c4e4c4);
  height: 160px;
  position: relative;
  overflow: hidden;
}
.blog-card__image--daily {
  background: linear-gradient(135deg, #e3f0e3, #c4e4c4);
  height: 160px;
  position: relative;
  overflow: hidden;
}
.blog-card__image--portfolio {
  background: linear-gradient(135deg, #e3eef0, #c4dde4);
  height: 160px;
  position: relative;
  overflow: hidden;
}
.blog-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
  z-index: 1;
}
.blog-card__fallback-icon {
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.blog-card__title--mt {
  margin-top: 8px;
}

/* ── RELATED GRID (in article page, narrower columns) ── */
.blog-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── PORTFOLIO CARD LINK ── */
.project-card__link,
.blog-card__link,
.daily-card__link,
.portfolio-card__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}
.project-card__link:hover,
.blog-card__link:hover,
.daily-card__link:hover,
.portfolio-card__link:hover {
  gap: 8px;
}
.reading-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  z-index: 999;
}
.reading-progress__bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 100ms linear;
}
.article__header {
  margin-bottom: 48px;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.article__cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 4px 12px;
  background: rgba(196, 98, 45, 0.1);
  border-radius: var(--radius-full);
}
.article__date,
.article__read {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.article__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.article__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}
.article__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}
.article__author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.article__author-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.article__author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.article__image {
  width: 100%;
  height: 420px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 48px;
  overflow: hidden;
  position: relative;
}
.article__body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article__body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
}
.article__body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 36px 0 14px;
}
.article__body p {
  margin-bottom: 20px;
}
.article__body ul,
.article__body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article__body ul {
  list-style: disc;
}
.article__body ol {
  list-style: decimal;
}
.article__body li {
  margin-bottom: 8px;
}
.article__body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(196, 98, 45, 0.3);
  transition: border-color var(--transition-fast);
}
.article__body a:hover {
  border-color: var(--accent);
}
.article__body strong {
  color: var(--text-primary);
  font-weight: 600;
}
.article__body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 90vw;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.article__body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent);
  border: 1px solid var(--border);
}
.article__body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  display: block;
  white-space: pre !important;
  word-break: normal !important;
}

/* ── ARTICLE FIGURE & FIGCAPTION ── */
.article__body figure {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}
.article__body figure img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}
.article__body figure:hover img {
  transform: scale(1.015);
  filter: brightness(0.97);
}
.article__body figcaption {
  padding: 14px 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.article__body figcaption::before {
  content: "↑";
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--font-body);
}

/* ── Pre code word break ── */
.wp-block-paragraph code {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ── IMAGE LIGHTBOX ── */
.img-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.img-lightbox-overlay.active {
  opacity: 0.96;
  pointer-events: auto;
}
.img-lightbox-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.img-lightbox-wrap.active {
  opacity: 1;
  pointer-events: auto;
}
.img-lightbox-wrap img {
  max-width: min(900px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
  transition: transform var(--transition-slow);
}
.img-lightbox-wrap.active img {
  transform: scale(1);
}
.img-lightbox-caption {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-align: center;
  max-width: 560px;
  line-height: 1.6;
}
.img-lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 10000;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  pointer-events: none;
  opacity: 0;
}
.img-lightbox-close.active {
  opacity: 1;
  pointer-events: auto;
}
.img-lightbox-close:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.08);
}

/* Sidebar TOC */
/* Mobile TOC & author card: tersembunyi di desktop, muncul di mobile via @media */
.article__toc-mobile,
.article__author-card-mobile {
  display: none;
}

.article__sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.toc__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc__item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
  line-height: 1.4;
  text-align: left;
}
.toc__item:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.toc__item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(196, 98, 45, 0.06);
}
.toc__item--h3 {
  padding-left: 22px;
  font-size: 0.8rem;
}

/* Related posts */
.related {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.related__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 28px;
}

/* ============================================================
   CONTACT SECTION (index.html)
   ============================================================ */
.contact {
  padding: var(--section-padding) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.contact__item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.contact__item-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.contact__item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact__item-value {
  font-size: 0.9375rem;
  font-weight: 500;
}
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
  resize: vertical;
}
.form-control:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.1);
}
.form-control::placeholder {
  color: var(--text-muted);
}
textarea.form-control {
  min-height: 140px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer__flex {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 48px;
}

/* Membagi persis 50% untuk area Brand dan area Tautan (dikurangi gap) */
.footer__brand,
.footer__links-wrapper {
  flex: 0 0 calc(50% - 24px);
  max-width: calc(50% - 24px);
}

/* Mengubah Container Baru menjadi flexbox agar Navigation & Work sejajar ke samping */
.footer__links-wrapper {
  display: flex;
  gap: 48px;
}

/* Memastikan kolom Navigation dan Work terbagi rata di dalam container kanannya */
.footer__col {
  flex: 1;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer__logo span {
  color: var(--accent);
}
.footer__brand-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer__socials {
  display: flex;
  gap: 10px;
}
.footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.footer__social:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer__link:hover {
  color: var(--accent);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-padding) 0;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-card__quote {
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.testimonial-card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.testimonial-card__stars {
  margin-bottom: 16px;
  color: #f5a623;
  font-size: 0.875rem;
}

/* ============================================================
   PAGE HEADER  (portfolio.html, blog.html)
   ============================================================ */
.page-header {
  padding: calc(var(--nav-height) + 64px) 0 80px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.page-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-page__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.error-page__inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
}
.error-page__number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  user-select: none;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.error-page__number span {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.error-page__icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.error-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.error-page__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}
.error-page__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.error-page__search {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto 52px;
}
.error-page__search input {
  flex: 1;
  padding: 13px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.error-page__search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.12);
}
.error-page__search input::placeholder {
  color: var(--text-muted);
}
.error-page__links-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.error-page__links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-page__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.error-page__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.error-page__link-icon {
  font-size: 1rem;
}

/* Shared orb decoration (404 + coming-soon) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -80px;
  right: -80px;
  opacity: 0.06;
}
.orb-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-cool) 0%, transparent 70%);
  bottom: -60px;
  left: -60px;
  opacity: 0.06;
}

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.archive-banner {
  padding: calc(var(--nav-height) + 52px) 0 52px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.archive-banner__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.archive-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.archive-banner__title em {
  color: var(--accent);
  font-style: italic;
}
.archive-banner__sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.year-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.year-nav__item {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.year-nav__item:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.year-nav__item.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.archive-timeline {
  padding: 64px 0;
}
.archive-month {
  margin-bottom: 56px;
}
.archive-month__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.archive-month__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.archive-month__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.archive-month__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.archive-entry {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.archive-entry:hover {
  background: var(--bg-secondary);
}
.archive-entry__day {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 3px;
}
.archive-entry__type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(196, 98, 45, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 5px;
}
.archive-entry__title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}
.archive-entry:hover .archive-entry__title {
  color: var(--accent);
}
.archive-entry__meta {
  font-size: 0.775rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 52px;
}
.archive-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.archive-stat__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 6px;
}
.archive-stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.archive-load-more {
  text-align: center;
  padding-top: 8px;
}

/* ============================================================
   COMING SOON PAGE
   ============================================================ */
.coming-soon {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cs-left {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vw, 64px);
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}
.cs-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: auto;
}
.cs-logo span {
  color: var(--accent);
}

.cs-content {
  padding: 40px 0;
}
.cs-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(196, 98, 45, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.cs-label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.cs-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.cs-title em {
  color: var(--accent);
  font-style: italic;
}
.cs-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 40px;
}

.cs-countdown {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}
.cs-unit {
  text-align: center;
}
.cs-unit__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-unit__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 8px;
}

.cs-notify {
  margin-bottom: 36px;
}
.cs-notify__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.cs-notify__form {
  display: flex;
  gap: 10px;
  max-width: 380px;
}
.cs-notify__input {
  flex: 1;
  padding: 13px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.cs-notify__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.12);
}
.cs-notify__input::placeholder {
  color: var(--text-muted);
}

.cs-blog-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cs-blog-link a {
  color: var(--accent);
  font-weight: 500;
  margin-left: 4px;
}

.cs-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-footer__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cs-social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.cs-social:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Coming soon: right panel */
.cs-right {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cs-right__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.cs-right__orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  opacity: 0.06;
  top: -100px;
  right: -80px;
}
.cs-right__orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-cool);
  opacity: 0.06;
  bottom: -80px;
  left: -60px;
}

.cs-preview {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}
.cs-preview__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}
.cs-preview__card:nth-child(2) {
  margin-left: 20px;
}
.cs-preview__card:nth-child(3) {
  margin-left: 40px;
}
.cs-preview__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Preview card inner layout classes */
.cs-preview__card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cs-preview__card-icon {
  font-size: 1.25rem;
}
.cs-preview__card-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.cs-preview__card-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.cs-preview__card-tags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.cs-preview__card-accent {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.cs-preview__card-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.cs-preview__card-percent {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.cs-preview__bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  margin-top: 10px;
}
.cs-preview__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent);
}
.cs-preview__fill--muted {
  background: var(--bg-secondary);
}

.cs-right__progress {
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 1;
}
.cs-right__prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cs-right__prog-label strong {
  color: var(--text-primary);
  font-weight: 600;
}
.cs-right__prog-bar {
  height: 6px;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.cs-right__prog-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  width: 78%;
  position: relative;
}
.cs-right__prog-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  background: white;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.8;
}
.cs-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 {
  transition-delay: 100ms;
}
.reveal--delay-2 {
  transition-delay: 200ms;
}
.reveal--delay-3 {
  transition-delay: 300ms;
}
.reveal--delay-4 {
  transition-delay: 400ms;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-accent {
  color: var(--accent);
}
.text-muted {
  color: var(--text-muted);
}
.text-secondary {
  color: var(--text-secondary);
}
.mt-auto {
  margin-top: auto;
}
.text-center {
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter__container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto; /* Memastikan container berada di tengah layar */
}

.newsletter__label {
  justify-content: center;
  margin-bottom: 16px;
}

.newsletter__title {
  margin-bottom: 16px;
}

.newsletter__desc {
  margin-bottom: 32px;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter__input {
  border-radius: var(--radius-full);
}

.newsletter__btn {
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__visual {
    /* align-items: flex-start; */
  }
  .hero__photo-frame {
    width: 80%;
    height: auto;
    aspect-ratio: 320 / 380;
  }
  .hero__photo-badge {
    left: auto;
    right: 100px;
    bottom: 16px;
  }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer__flex,
  .footer__links-wrapper {
    gap: 32px;
  }

  /* Melewatkan aturan 50% jadi 100% saat layar menyempit */
  .footer__brand,
  .footer__links-wrapper {
    /* flex: 0 0 100%; */
    max-width: 100%;
  }
  .article__layout {
    grid-template-columns: 1fr;
  }
  .article__sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured__image {
    height: 240px;
  }
  .blog-featured__body {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }
  .navbar__links {
    display: none;
  }
  .navbar__hamburger {
    display: flex;
  }
  .hero__stats {
    gap: 24px;
  }
  .project-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer__flex {
    flex-direction: column;
    gap: 28px;
  }

  /* Menumpuk Navigation dan Work secara vertikal di HP */
  .footer__links-wrapper {
    flex-direction: row;
    gap: 28px;
  }
  .footer__bottom {
    flex-direction: row;
    gap: 12px;
    text-align: center;
  }
  .blog-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search {
    max-width: 100%;
  }
  .page-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__cta {
    flex-direction: row;
  }
  .archive-stats {
    grid-template-columns: 1fr 1fr;
  }
  .archive-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .archive-entry__day {
    display: inline;
    font-size: 0.75rem;
  }
  .coming-soon {
    grid-template-columns: 1fr;
  }
  .cs-right {
    display: none;
  }
  .cs-countdown {
    gap: 12px;
  }
  .cs-unit__num {
    font-size: 1.75rem;
    min-width: 56px;
    padding: 8px 14px;
  }

  .page-header__stats {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  /* ── SINGLE POST MOBILE REORDER ── */
  .article__toc-mobile {
    display: block;
    margin-top: 32px;
  }
  .article__author-card-mobile {
    display: block;
  }
  .article__author-card-desktop {
    display: none !important;
  }
  .article__sidebar .toc {
    display: none;
  }
  .article__layout {
    /* Override: single-daily & single-portfolio use the same responsive layout */
    display: block;
  }
}

@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start !important;
    margin-bottom: 48px;
    gap: 20px;
  }

  .btn {
    padding: 14px 12px;
  }

  .hero__photo-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 380;
  }

  .hero__photo-badge {
    right: -11px;
  }
  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }
  .contact__form {
    padding: 24px;
  }
  .filter-bar {
    gap: 6px;
  }
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .blog-featured__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .newsletter__form {
    flex-direction: column;
  }
}

@media (min-width: 1600px) {
  :root {
    --max-width: 1400px;
  }
}

/* coming-soon: disable scroll lock on mobile */
@media (max-width: 768px) {
  .coming-soon body {
    overflow: auto;
  }
}

/* ============================================================
   SEARCH PAGE — search.php / search.html
   ============================================================ */

/* Hero */
.search-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-height) + 52px) 0 52px;
}
.search-hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.search-hero__query {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.search-hero__query em {
  font-style: italic;
  color: var(--accent);
}
.search-hero__count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Search form */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
}
.search-form__input {
  flex: 1;
  padding: 14px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.search-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.12);
}
.search-form__input::placeholder {
  color: var(--text-muted);
}

/* Result layout */
.search-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
}
.search-results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.search-results__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.search-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.search-sort select {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

/* Result row */
.result-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-fast);
}
.result-item:first-child {
  padding-top: 0;
}
.result-item:hover {
  padding-left: 4px;
}
.result-item__thumb {
  width: 90px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}
.result-item__type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 5px;
}
.result-item__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color var(--transition-fast);
}
.result-item__title a:hover {
  color: var(--accent);
}
.result-item__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.result-item__excerpt mark {
  background: rgba(196, 98, 45, 0.15);
  color: var(--accent);
  border-radius: 3px;
  padding: 1px 3px;
}
.result-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.775rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── NO RESULTS STATE ── */
.no-results {
  text-align: center;
  padding: 80px 20px 100px;
}
.no-results__icon-wrap {
  width: 88px;
  height: 88px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-sm);
}
.no-results__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.no-results__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.no-results__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.no-results__desc strong {
  color: var(--text-primary);
  font-weight: 600;
}
.no-results__divider {
  width: 48px;
  height: 1.5px;
  background: var(--border-strong);
  margin: 32px auto;
  border-radius: var(--radius-full);
}
.no-results__try-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.no-results__suggestions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}
.no-results__suggestion {
  padding: 7px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.no-results__suggestion:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Sidebar widgets */
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.widget__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.widget-tag {
  padding: 5px 13px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.widget-tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.widget-recent {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.widget-recent__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.widget-recent__icon {
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.widget-recent__title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 3px;
}
.widget-recent__title a:hover {
  color: var(--accent);
}
.widget-recent__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Search pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination__btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
}
.pagination__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination__btn.active,
.pagination__btn[aria-current="page"] {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

/* Search responsive */
@media (max-width: 900px) {
  .search-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .result-item {
    grid-template-columns: 1fr;
  }
  .result-item__thumb {
    width: 100%;
    height: 120px;
  }
  .search-form {
    flex-direction: column;
  }
  .no-results {
    padding: 56px 16px 72px;
  }
}

html {
  scroll-behavior: smooth;
}
