/* ====================================================================
   SAKTI ATTILA AULIA BINTANG - EXECUTIVE CORPORATE PORTFOLIO
   Design System: Formal, Minimalist, High Credibility, Mobile-First
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Light Mode (Corporate Slate & Navy) */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #0f2c59;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-primary: #0f2c59;   /* Deep Executive Navy */
  --accent-secondary: #1e3a8a; /* Slate Navy */
  --accent-soft: #eff6ff;      /* Very subtle blue tint */
  --accent-border: #bfdbfe;
  
  --tag-bg: #f1f5f9;
  --tag-text: #1e293b;
  --tag-border: #e2e8f0;

  --card-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --card-shadow-hover: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  
  /* Typography */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

  /* Sizing & Transitions */
  --container-max: 1120px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 9999px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Color Palette - Dark Mode (Executive Slate, High Legibility, No Neon) */
  --bg-app: #0b1120;
  --bg-surface: #0f172a;
  --bg-subtle: #1e293b;
  --bg-muted: #334155;

  --border-subtle: #1e293b;
  --border-strong: #334155;
  --border-focus: #60a5fa;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --accent-primary: #3b82f6;
  --accent-secondary: #60a5fa;
  --accent-soft: #172554;
  --accent-border: #1e3a8a;

  --tag-bg: #1e293b;
  --tag-text: #e2e8f0;
  --tag-border: #334155;

  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
}

/* ====================================================================
   BASE & RESET (GLOBAL BOX-SIZING & OVERFLOW LOCK)
   ==================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: -0.011em;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Utility / Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Section Header Typography */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
}

.section:last-of-type {
  border-bottom: none;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* ====================================================================
   NAVIGATION BAR (Formal & Minimalist Sticky)
   ==================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  width: 100%;
  box-sizing: border-box;
}

.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0;
  max-width: 60%;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-secondary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-secondary);
  border-radius: var(--radius-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ====================================================================
   BUTTONS & BADGES
   ==================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.4;
  border: 1px solid transparent;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
  white-space: normal;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-secondary);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
}

.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  fill: currentColor;
  stroke: currentColor;
}

/* Badge system */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  background-color: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-border);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.badge-accent {
  background-color: var(--accent-soft);
  color: var(--accent-secondary);
  border-color: var(--accent-border);
  font-weight: 600;
}

/* ====================================================================
   HERO SECTION
   ==================================================================== */
.hero-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
}

.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-secondary);
  background-color: var(--accent-soft);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border);
  margin-bottom: 1.25rem;
  max-width: 100%;
  flex-wrap: wrap;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #10b981;
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-title-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 820px;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
}

.hero-details-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  box-sizing: border-box;
}

.hero-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.hero-detail-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.social-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.social-link-item:hover {
  color: var(--accent-secondary);
}

.social-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: currentColor;
}

/* ====================================================================
   TENTANG SAYA (ABOUT ME)
   ==================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
}

.about-narrative {
  min-width: 0;
}

.about-narrative p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.about-narrative p strong {
  color: var(--text-primary);
}

.about-summary-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  width: 100%;
  box-sizing: border-box;
}

.summary-box-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.career-roles-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.career-role-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
  overflow-wrap: break-word;
}

.career-role-bullet {
  width: 6px;
  height: 6px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.academic-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.1;
  overflow-wrap: break-word;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  overflow-wrap: break-word;
}

/* ====================================================================
   PENDIDIKAN (EDUCATION)
   ==================================================================== */
.education-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  width: 100%;
  box-sizing: border-box;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.edu-institution {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  overflow-wrap: break-word;
}

.edu-faculty {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  overflow-wrap: break-word;
}

.edu-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.edu-gpa-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-border);
  white-space: nowrap;
}

.edu-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.edu-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  letter-spacing: 0.05em;
}

.coursework-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.course-badge {
  font-size: 0.8125rem;
  padding: 0.3125rem 0.625rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  overflow-wrap: break-word;
  max-width: 100%;
}

.highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.highlight-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: bold;
}

/* ====================================================================
   KEAHLIAN (SKILLS SECTION)
   ==================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.skill-category-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

.skill-category-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-category-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  overflow-wrap: break-word;
}

.skill-category-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  overflow-wrap: break-word;
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.skill-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: right;
  overflow-wrap: break-word;
}

/* ====================================================================
   PROYEK / PORTFOLIO (FILTERABLE GRID & CARDS)
   ==================================================================== */
.project-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  width: 100%;
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-border);
}

.project-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background-color: var(--accent-soft);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: break-word;
}

.project-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.project-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-secondary);
  margin-bottom: 0.875rem;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.project-summary {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  overflow-wrap: break-word;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  overflow-wrap: break-word;
  max-width: 100%;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.project-association {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.project-action-btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-secondary);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.project-action-btn:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ====================================================================
   PENGALAMAN & TIMELINE
   ==================================================================== */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.25rem;
  width: 2px;
  background-color: var(--border-subtle);
}

.timeline-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 1.25rem;
  top: 0.375rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 3px solid var(--accent-secondary);
  transform: translateX(-50%);
  flex-shrink: 0;
}

.timeline-content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  width: 100%;
  box-sizing: border-box;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-secondary);
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.timeline-org {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  width: 100%;
}

/* ====================================================================
   KONTAK SECTION
   ==================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  width: 100%;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.contact-channel-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--card-shadow);
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.channel-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 200px;
}

.channel-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background-color: var(--accent-soft);
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.channel-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 1.25rem;
  width: 100%;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  overflow-wrap: break-word;
}

.form-input,
.form-textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background-color: var(--bg-app);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ====================================================================
   MODAL DIALOGS (PROJECT CASE STUDY & RESUME PREVIEW)
   ==================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  box-sizing: border-box;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  transform: translateY(16px);
  box-sizing: border-box;
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.75rem 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background-color: var(--bg-surface);
  z-index: 10;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.modal-close-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.modal-body {
  padding: 1.75rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-secondary);
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.modal-section-title:first-child {
  margin-top: 0;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

/* ====================================================================
   TOAST NOTIFICATION
   ==================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: calc(100vw - 3rem);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background-color: var(--text-primary);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  overflow-wrap: break-word;
  pointer-events: auto;
  animation: toastSlideIn 200ms ease-out forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: 3rem;
  padding-bottom: 3rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 100%;
  overflow-wrap: break-word;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--accent-secondary);
}

/* ====================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE-FIRST ADAPTATIONS)
   ==================================================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .edu-body-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Smartphone & Tablet Vertical (<= 768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-title {
    font-size: 1.625rem;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
  }

  /* Header & Mobile Navigation */
  .site-header {
    position: sticky;
  }

  .nav-container {
    height: 3.75rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-role {
    font-size: 0.6875rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .nav-link.active::after {
    bottom: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-actions .btn-sm {
    padding: 0.35rem 0.625rem;
    font-size: 0.75rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .hero-name {
    font-size: 2.125rem;
    line-height: 1.2;
  }

  .hero-title-lead {
    font-size: 1.0625rem;
    margin-bottom: 1rem;
  }

  .hero-tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-details-strip {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-social-links {
    gap: 1rem;
    justify-content: flex-start;
  }

  /* About Section */
  .about-narrative p {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .about-summary-box {
    padding: 1.25rem;
  }

  /* Education Section */
  .education-card {
    padding: 1.25rem;
  }

  .edu-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .edu-meta-right {
    align-items: flex-start;
  }

  .edu-institution {
    font-size: 1.25rem;
  }

  /* Skills Grid */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .skill-category-card {
    padding: 1.25rem;
  }

  /* Projects Grid & Filters */
  .project-filter-bar {
    gap: 0.375rem;
    margin-bottom: 1.5rem;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.3125rem 0.625rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-title {
    font-size: 1.1875rem;
  }

  /* Timeline */
  .timeline::before {
    left: 0.75rem;
  }

  .timeline-item {
    padding-left: 2.25rem;
    margin-bottom: 2rem;
  }

  .timeline-dot {
    left: 0.75rem;
  }

  .timeline-content-card {
    padding: 1.25rem;
  }

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

  /* Contact & Form */
  .contact-channel-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .contact-form-card {
    padding: 1.25rem;
  }

  /* Modal Adjustments */
  .modal-dialog {
    max-height: 85vh;
  }

  .modal-header {
    padding: 1.25rem 1rem 1rem 1rem;
  }

  .modal-body {
    padding: 1.25rem 1rem;
  }

  .modal-footer {
    padding: 1rem;
    flex-direction: column-reverse;
  }

  .modal-footer .btn {
    width: 100%;
  }

  /* Toast Notification */
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: calc(100vw - 2rem);
  }
}

/* Small Smartphone (<= 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-name {
    font-size: 1.85rem;
  }

  .hero-meta-badge {
    font-size: 0.75rem;
  }

  .academic-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .contact-channel-card {
    flex-direction: column;
    align-items: stretch;
  }

  .channel-details {
    width: 100%;
  }

  .copy-btn {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ====================================================================
   PRINT STYLESHEET (PROFESSIONAL CV EXPORT)
   ==================================================================== */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.4;
    overflow: visible !important;
  }

  .site-header,
  .hero-cta-group,
  .project-filter-bar,
  .contact-form-card,
  .theme-toggle-btn,
  .mobile-nav-toggle,
  .toast-container,
  .site-footer,
  .modal-backdrop {
    display: none !important;
  }

  .section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    border-bottom: 1px solid #cccccc !important;
    page-break-inside: avoid;
  }

  .hero-section {
    padding-top: 0 !important;
    padding-bottom: 1.5rem !important;
    border-bottom: 2px solid #0f2c59 !important;
  }

  .hero-name {
    font-size: 22pt !important;
    color: #0f2c59 !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .project-card,
  .education-card,
  .skill-category-card,
  .timeline-content-card {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    page-break-inside: avoid;
  }
}
