/* ==========================================================================
   CLEAN NOTEBOOK & UPRIGHT HANDWRITTEN NOTES - DESIGN SYSTEM
   Author: Yossrizal Ramadhan Portfolio
   Style: Upright Printed Handwriting Headings (Non-Italic), Crisp Readable Sans Body
   Fonts: Patrick Hand (Upright Handwriting Headings), Plus Jakarta Sans (Super-Readable Body), JetBrains Mono (Tech Chips)
   ========================================================================== */

:root {
  /* Warm Notebook Paper Palette */
  --bg-base: #faf8f4;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fffdfa;
  --bg-chip: #f3ede2;

  /* Borders & Dividers */
  --border-subtle: #ded5c5;
  --border-strong: #cfc2ad;
  --border-hover: #8f5322;

  /* Accents (Warm Sepia & Terracotta) */
  --sand: #b87a44;
  --sand-dark: #874b18;
  --sand-light: #df9a62;
  --sand-tint: rgba(184, 122, 68, 0.1);
  --emerald: #059669;
  --emerald-tint: rgba(5, 150, 105, 0.1);

  /* Typography: Upright Printed Notes + Crisp Sans-Serif (NO ITALICS) */
  --font-hand: 'Patrick Hand', sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* High Legibility Ink Colors */
  --text-cream: #1c1815;
  --text-primary: #2b2520;
  --text-secondary: #5a5248;
  --text-muted: #887e72;

  /* Shadows (Paper & Sticky Notes) */
  --shadow-sm: 0 1px 3px rgba(45, 35, 25, 0.04);
  --shadow-md: 0 4px 16px rgba(45, 35, 25, 0.07);
  --shadow-lg: 0 12px 28px rgba(45, 35, 25, 0.1);
  --shadow-note: 2px 4px 12px rgba(45, 35, 25, 0.05);

  /* Clean Organic Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.15rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset (Warm Dot-Grid Paper, Upright & Normal Posture)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: radial-gradient(#d8cebe 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 0.95rem;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-style: normal;
}

/* Minimalist Paper Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #ded5c5;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sand);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.container {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Notebook Bookmark Ribbon (Vertical Reading Progress Bar)
   ========================================================================== */

.vertical-progress-track {
  position: fixed;
  right: 0;
  top: 0;
  width: 5px;
  height: 100vh;
  background: rgba(222, 213, 197, 0.45);
  z-index: 999;
  pointer-events: none;
}

.vertical-progress-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-dark) 100%);
  border-radius: 0 0 3px 3px;
  box-shadow: -1px 0 6px rgba(184, 122, 68, 0.35);
  transition: height 0.08s ease-out;
}

/* Floating Vertical Side Navigation Dots (Desktop Notebook Index) */
.side-progress-nav {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0.45rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 1180px) {
  .side-progress-nav {
    display: flex;
  }
}

.side-dot {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ded5c5;
  transition: var(--transition);
}

.side-dot:hover,
.side-dot.active {
  background: var(--sand-dark);
  transform: scale(1.4);
}

.side-dot .side-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-cream);
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-style: normal;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.side-dot:hover .side-tooltip {
  opacity: 1;
}

/* ==========================================================================
   Site Header (Non-Floating, Clean & Natural Page Header)
   ========================================================================== */

.site-header {
  position: static;
  width: 100%;
  padding: 1.5rem 0 0.75rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--text-cream);
  letter-spacing: 0.02em;
  font-style: normal;
}

.brand-logo-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  background: var(--sand-dark);
  color: #ffffff;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-style: normal;
  box-shadow: 1px 2px 6px rgba(135, 75, 24, 0.25);
}

.brand-text {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--text-cream);
  font-style: normal;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Language Switcher (Header & Footer)
   ========================================================================== */

.lang-switch-group {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.lang-switch-group:hover {
  border-color: var(--sand);
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1.2;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--sand-dark);
}

.lang-btn.active {
  background: var(--sand-dark);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(135, 75, 24, 0.25);
}

.lang-divider {
  font-size: 0.72rem;
  color: var(--border-strong);
  user-select: none;
  padding: 0 0.1rem;
}

.lang-icon {
  font-size: 0.78rem;
  color: var(--sand-dark);
  margin-left: 0.35rem;
  margin-right: 0.2rem;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
  font-style: normal;
}

.btn-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--sand-dark);
  color: #ffffff;
  border-color: var(--sand-dark);
  box-shadow: 1px 2px 6px rgba(135, 75, 24, 0.2);
}

.btn-primary:hover {
  background: #6e3a10;
  border-color: #6e3a10;
  transform: translateY(-1px);
  box-shadow: 1px 4px 10px rgba(135, 75, 24, 0.3);
}

.btn-secondary {
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #fffdfa;
  border-color: var(--sand-dark);
  color: var(--sand-dark);
  transform: translateY(-1px);
}

.btn-outline-sand {
  background: transparent;
  border: 1.5px solid rgba(184, 122, 68, 0.35);
  color: var(--sand-dark);
}

.btn-outline-sand:hover {
  background: var(--sand-tint);
  border-color: var(--sand);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  font-style: normal;
}

.badge-sand {
  background: var(--sand-tint);
  border: 1px solid rgba(184, 122, 68, 0.25);
  color: var(--sand-dark);
}

.badge-status {
  background: var(--emerald-tint);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--emerald);
}

.badge-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
}

.badge-emerald {
  background: var(--emerald-tint);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--emerald);
}

/* ==========================================================================
   Cards & Notebook Pages
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-note);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Hero & Header (Polaroid Photo & Upright Handwritten Titles)
   ========================================================================== */

.hero-layout {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.hero-avatar-col {
  flex-shrink: 0;
}

.hero-content-col {
  flex-grow: 1;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.avatar-img {
  width: 7.75rem;
  height: 7.75rem;
  border-radius: 8px;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 2px 4px 12px rgba(45, 35, 25, 0.12);
  transform: rotate(-1.5deg);
  transition: var(--transition);
}

.avatar-wrapper:hover .avatar-img {
  transform: rotate(0deg) scale(1.03);
}

.hero-title {
  font-family: var(--font-hand);
  font-size: 2.35rem;
  color: var(--text-cream);
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-style: normal;
}

.hero-subtitle {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--sand-dark);
  margin-top: 0.1rem;
  font-style: normal;
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin-top: 0.35rem;
  font-style: normal;
}

/* Horizontal Stats Ribbon (Sticky Notes) */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  width: 100%;
  margin-top: 1.5rem;
  align-items: stretch;
}

.stat-box {
  background: #ffffff;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.65rem;
  text-align: center;
  box-shadow: 1px 2px 5px rgba(45, 35, 25, 0.04);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.stat-box:nth-child(1) { transform: rotate(-0.5deg); }
.stat-box:nth-child(2) { transform: rotate(0.4deg); }
.stat-box:nth-child(3) { transform: rotate(-0.3deg); }

.stat-box:hover {
  transform: rotate(0deg) translateY(-2px);
  border-color: var(--sand-dark);
  box-shadow: 2px 6px 12px rgba(45, 35, 25, 0.08);
  background: #fffdfa;
}

.stat-val {
  font-family: var(--font-hand);
  font-size: 1.65rem;
  color: var(--sand-dark);
  line-height: 1.15;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 0.25rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
}

/* ==========================================================================
   Section Headers (Notebook Titles)
   ========================================================================== */

.compact-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.section-tag {
  font-family: var(--font-hand);
  color: var(--sand-dark);
  font-size: 1.15rem;
  margin-bottom: 0.1rem;
  font-style: normal;
}

.compact-title {
  font-family: var(--font-hand);
  font-size: 1.95rem;
  color: var(--text-cream);
  line-height: 1.2;
  font-style: normal;
}

/* ==========================================================================
   Services Grid (Freelance / Jasa Diri)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: #fffdfa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--sand-tint);
  color: var(--sand-dark);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  border: 1px dashed rgba(184, 122, 68, 0.35);
}

.service-title {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--text-cream);
  margin-bottom: 0.35rem;
  font-style: normal;
  line-height: 1.25;
}

.service-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: normal;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-subtle);
}

.service-cta-banner {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #fffdf8;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
}

.service-cta-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   3 Value Pillars Grid
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: var(--border-hover);
  background: #fffdfa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sand-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  font-style: normal;
}

.pillar-title {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--text-cream);
  margin-bottom: 0.35rem;
  font-style: normal;
}

.pillar-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: normal;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

/* ==========================================================================
   Selected Works / Projects Grid
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  box-sizing: border-box;
}

.project-item:hover {
  border-color: var(--border-hover);
  background: #fffdfa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-name {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--text-cream);
  margin-bottom: 0.25rem;
  font-style: normal;
}

.project-summary {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.95rem;
  flex-grow: 1;
  font-style: normal;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.tag-chip {
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: #f4eee2;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--sand-dark);
  border: 1px dashed #d5cbba;
  font-weight: 500;
  font-style: normal;
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  display: block;
}

/* ==========================================================================
   Experience Overview Card (Clean & Privacy-Friendly)
   ========================================================================== */

.overview-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.overview-card:hover {
  border-color: var(--border-hover);
  background: #fffdfa;
}

.overview-desc {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.overview-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.overview-item i {
  color: var(--sand-dark);
  margin-top: 0.25rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.education-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f4eee2;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.education-pill i {
  color: var(--sand-dark);
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Timeline (Career Logbook)
   ========================================================================== */

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1rem;
  padding-left: 1.75rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #d0c5b3 0, #d0c5b3 5px, transparent 5px, transparent 9px);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.timeline-dot {
  position: absolute;
  top: 0.45rem;
  left: -1.75rem;
  transform: translateX(-50%);
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--sand-dark);
  border: 2.5px solid #ffffff;
  margin-left: 0.5rem;
  box-shadow: 0 1px 4px rgba(45, 35, 25, 0.2);
}

.timeline-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  background: #fffdfa;
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--text-cream);
  font-style: normal;
}

.timeline-company {
  font-family: var(--font-sans);
  color: var(--sand-dark);
  font-weight: 700;
  font-size: 0.88rem;
  font-style: normal;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: #f4ede2;
  border: 1px dashed var(--border-subtle);
  color: var(--text-secondary);
  font-style: normal;
}

.timeline-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: normal;
}

.timeline-dot-active {
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-tint);
}

.timeline-period-active {
  background: var(--emerald-tint);
  border-color: rgba(5, 150, 105, 0.35);
  color: var(--emerald);
  font-weight: 700;
}

.timeline-location-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
}

.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: #f4eee2;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
  font-style: normal;
}

.loc-chip-freelance {
  background: var(--sand-tint);
  border-color: rgba(184, 122, 68, 0.35);
  color: var(--sand-dark);
  font-weight: 700;
}

/* ==========================================================================
   Education Block (Gelar & Jurusan Lengkap Tanpa Singkatan)
   ========================================================================== */

.education-block {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-top: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.education-block:hover {
  border-color: var(--border-hover);
  background: #fffdfa;
}

.education-compact-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.25rem;
  margin-top: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.education-compact-card:hover {
  border-color: var(--sand-dark);
  background: #fffdfa;
}

.education-compact-icon {
  font-size: 1.35rem;
  color: var(--sand-dark);
  flex-shrink: 0;
}

.education-compact-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.education-title {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--text-cream);
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1.5px dashed var(--border-subtle);
  font-style: normal;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.education-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
  padding-bottom: 0.65rem;
}

.education-item:not(:last-child) {
  border-bottom: 1px solid #f2ede4;
}

.education-year {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sand-dark);
  background: #f4eee2;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px dashed var(--border-subtle);
  white-space: nowrap;
  font-style: normal;
}

.education-info {
  flex: 1;
  min-width: 220px;
}

.education-degree {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-cream);
  line-height: 1.35;
  font-style: normal;
}

.education-school {
  font-family: var(--font-sans);
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  font-style: normal;
}

/* ==========================================================================
   Interest Chips (Personal Hobbies & Topics)
   ========================================================================== */

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  background: #f4eee2;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.interest-chip i {
  color: var(--sand-dark);
  font-size: 0.76rem;
}

.interest-chip:hover {
  background: var(--sand-tint);
  border-color: var(--sand);
  color: var(--sand-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   Social Cards Grid & Gallery Grid
   ========================================================================== */

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 580px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.social-card:hover {
  border-color: var(--border-hover);
  background: #fffdfa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-icon-box {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-sm);
  background: var(--sand-tint);
  color: var(--sand-dark);
  font-size: 1rem;
  flex-shrink: 0;
}

.social-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.social-name {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--text-cream);
  line-height: 1.2;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-desc {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.social-card:hover .social-arrow {
  color: var(--sand-dark);
  transform: translate(2px, -2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.gallery-item {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--sand-tint);
  position: relative;
  transition: var(--transition);
}

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

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.03);
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.card-contact {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-color: rgba(184, 122, 68, 0.4);
}

.contact-title {
  font-family: var(--font-hand);
  font-size: 1.95rem;
  color: var(--text-cream);
  letter-spacing: 0.01em;
  margin-top: 0.35rem;
  font-style: normal;
}

.contact-desc {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0.5rem auto 1.25rem;
  font-size: 0.925rem;
  line-height: 1.6;
  font-style: normal;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1.5px solid var(--border-subtle);
  background: #f4eee2;
  padding: 2rem 0;
  margin-top: 4rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--sand-dark);
}

.footer-link-btn {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: inherit;
  transition: var(--transition);
}

.footer-link-btn.active {
  color: var(--sand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Scroll-Triggered Reveal Animations
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for cards inside grids */
.reveal-stagger > .reveal-on-scroll:nth-child(1),
.reveal-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger > .reveal-on-scroll:nth-child(2),
.reveal-stagger > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger > .reveal-on-scroll:nth-child(3),
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal-on-scroll:nth-child(4),
.reveal-stagger > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger > .reveal-on-scroll:nth-child(5),
.reveal-stagger > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger > .reveal-on-scroll:nth-child(6),
.reveal-stagger > *:nth-child(6) { transition-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.mb-section {
  margin-bottom: 2.75rem;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .vertical-progress-track,
  .side-progress-nav {
    display: none !important;
  }

  .container {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-header {
    padding: 0.85rem 0 0.5rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .brand-badge {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand-logo-mark {
    width: 2rem;
    height: 2rem;
    font-size: 1.15rem;
    flex-shrink: 0;
  }

  .brand-text {
    font-size: 1.15rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .header-actions {
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .header-actions .btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .lang-toggle-capsule {
    padding: 0.2rem 0.4rem;
  }

  .lang-btn {
    font-size: 0.74rem;
  }

  .card {
    padding: 1.25rem 0.95rem;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .avatar-img {
    width: 6.5rem;
    height: 6.5rem;
    transform: none !important;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.88rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .stats-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-top: 1.15rem;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
  }

  .stat-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 4.8rem;
    padding: 0.65rem 0.35rem;
    transform: none !important;
    min-width: 0;
    box-sizing: border-box;
  }

  .stat-val {
    font-size: clamp(0.95rem, 3.2vw, 1.25rem);
    line-height: 1.15;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  .stat-label {
    font-size: clamp(0.62rem, 2.1vw, 0.74rem);
    line-height: 1.2;
    text-align: center;
    margin-top: auto;
    padding-top: 0.2rem;
  }

  .pillar-card,
  .project-item {
    padding: 1.15rem 0.95rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .timeline-track {
    padding-left: 1.15rem;
  }

  .timeline-track::before {
    left: 0.35rem;
  }

  .timeline-dot {
    left: -1.15rem;
    margin-left: 0.35rem;
  }

  .timeline-card {
    padding: 1rem 0.85rem;
    min-width: 0;
    max-width: 100%;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .timeline-company {
    font-size: 0.82rem;
    word-break: break-word;
  }

  .education-block {
    padding: 1.15rem 0.85rem;
    max-width: 100%;
  }

  .education-info {
    min-width: 0;
  }

  .social-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem;
    width: 100%;
    box-sizing: border-box;
  }

  .social-card {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .social-icon-box {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .social-name {
    font-size: 1.15rem;
  }

  .social-desc {
    font-size: 0.74rem;
  }

  .card-contact {
    padding: 1.75rem 0.85rem;
  }

  .service-card {
    padding: 1.15rem 0.95rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .service-cta-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.65rem;
  }

  .footer-links {
    justify-content: center;
    gap: 0.4rem 0.65rem;
    font-size: 0.82rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-footer {
    padding: 1.5rem 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
}

@media (max-width: 420px) {
  .brand-text {
    font-size: 1rem;
  }

  .header-actions .btn-sm span {
    display: none;
  }

  .header-actions .btn-sm {
    padding: 0.35rem 0.55rem;
  }
}
