/* ══════════════════════════════════════════════════════
   Endan Suprihno — Curriculum Vitae
   style.css · refactored with semantic color system
   ══════════════════════════════════════════════════════ */

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

:root {
  /* ── PALETTE UTAMA ─────────────────────── */
  --prussian:   #1B3A5C;   /* Dominan struktural */
  --terracotta: #C0613A;   /* Teknis / profesional */
  --pine:       #2D6A4F;   /* Sosial / komunitas */
  --violet:     #5C3D8F;   /* Intelektual / filosofis */

  /* ── SIDEBAR ──────────────────────────── */
  --sidebar-bg: #1C2540;
  --sidebar-accent: rgba(140,110,210,0.75);

  /* ── SURFACE & TEXT ───────────────────── */
  --cream:  #f8f5ef;
  --text:   #2c2c3a;
  --muted:  #6b7280;
  --border: rgba(0,0,0,0.07);

  /* ── TYPOGRAPHY ───────────────────────── */
  --serif:  'Cormorant Garamond', Georgia, serif;
  --mono:   'Space Mono', monospace;
  --sans:   'Outfit', sans-serif;

  --sidebar-w: 260px;
}

/* ── BODY ───────────────────────────────────────────── */
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
}

/* ── LANG BUTTONS ───────────────────────────────────── */
.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active,
.lang-btn:hover {
  color: var(--prussian);
  border-color: rgba(27,58,92,0.4);
}

/* ── TOP BAR ────────────────────────────────────────── */
.cv-topbar {
  width: 100%;
  max-width: 920px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.cv-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.cv-back:hover { color: var(--prussian); }
.cv-actions { display: flex; align-items: center; gap: 10px; }

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--prussian);
  color: white;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-dl:hover { background: #14305a; transform: translateY(-1px); }
.btn-dl--accent { background: var(--terracotta); }
.btn-dl--accent:hover { background: #a8532f; }

/* ── PAGE SHELL ─────────────────────────────────────── */
.page {
  width: 100%;
  max-width: 920px;
  background: white;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  box-shadow: 0 20px 80px rgba(10,14,28,0.18);
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SIDEBAR ────────────────────────────────────────── */
.sidebar {
  background: var(--sidebar-bg);
  color: white;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.photo-wrap { display: flex; justify-content: center; }
.photo-wrap img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 50%;
  border: 3px solid rgba(140,110,210,0.5);
}
.photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(140,110,210,0.4);
  background: rgba(140,110,210,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.sidebar-name {
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 20px;
}
.sidebar-name h1 {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  color: white;
  font-weight: 400;
}
.sidebar-name p {
  font-family: var(--mono);
  color: rgba(160,130,230,0.85);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
  line-height: 1.6;
}

.sb-section h3 {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sidebar-accent);
  font-weight: 400;
  margin-bottom: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}
.contact-item a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item a:hover { color: rgba(140,110,210,0.9); }
.contact-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.6;
}

.sidebar-quote {
  padding: 16px;
  border: 1px solid rgba(92,61,143,0.15);
  background: rgba(92,61,143,0.07);
}
.sidebar-quote p {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.skill-list { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-tag {
  font-family: var(--mono);
  background: rgba(140,110,210,0.08);
  border: 1px solid rgba(140,110,210,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 0.62rem;
  padding: 3px 8px;
}

.stack-entry { margin-bottom: 10px; }
.stack-entry-name {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--sidebar-accent);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.stack-entry-detail {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.8);
}
.lang-dots { display: flex; gap: 4px; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(140,110,210,0.15);
}
.dot.filled { background: rgba(140,110,210,0.8); }

/* ── MAIN ───────────────────────────────────────────── */
.main {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.main-header {
  border-bottom: 2px solid var(--prussian);
  padding-bottom: 28px;
}
.main-header h2 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--prussian);
  line-height: 1;
  margin-bottom: 16px;
}
.main-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  border-left: 3px solid rgba(27,58,92,0.4);
  padding-left: 16px;
}

/* ── SECTION TITLES ─────────────────────────────────── */
.section-title {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--prussian);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(27,58,92,0.2);
}

/* ── EXPERIENCE ─────────────────────────────────────── */
.exp-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; margin-bottom: 0; }

.exp-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.5;
  padding-top: 2px;
}
.exp-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--prussian);
  line-height: 1.2;
  margin-bottom: 4px;
}
.exp-company {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.exp-type-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid rgba(192,97,58,0.3);
  color: var(--terracotta);
  margin-bottom: 10px;
}
.exp-desc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-desc li {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}
.exp-desc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 0.7rem;
}

/* ── FLOW DIAGRAMS ──────────────────────────────────── */
.exp-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 10px;
}
.flow-n {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 2px 8px;
  background: rgba(192,97,58,0.06);
  border: 1px solid rgba(192,97,58,0.2);
  color: var(--terracotta);
  white-space: nowrap;
}
.flow-a {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}
.flow-i {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 2px 8px;
  background: rgba(92,61,143,0.05);
  border: 1px solid rgba(92,61,143,0.2);
  color: var(--violet);
  white-space: nowrap;
}

/* ── ARCH TYPE BADGE ────────────────────────────────── */
.arch-type {
  font-size: 0.58rem;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.4;
}

/* ── ARCH DESC ──────────────────────────────────────── */
.arch-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── COLLECTIVES ────────────────────────────────────── */
.collective-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(248,245,239,0.5);
}
.collective-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
  margin-top: 5px;
}
.collective-dot.collective--pine { background: var(--pine); }
.collective-role-name {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--pine);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.collective-org {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--prussian);
  margin-bottom: 4px;
}
.collective-desc-text {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── WRITING & INTELLECTUAL FRAMEWORK ──────────────── */
.section--intellectual .section-title {
  color: var(--violet);
  border-bottom-color: rgba(92,61,143,0.2);
}
.thought-item {
  padding: 14px 16px;
  border-left: 3px solid var(--violet);
  margin-bottom: 16px;
  background: rgba(92,61,143,0.03);
}
.thought-item:last-child { margin-bottom: 0; }
.thought-label {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 4px;
}
.thought-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 6px;
}
.thought-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── EDUCATION ──────────────────────────────────────── */
.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}
.edu-year {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 2px;
}
.edu-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--prussian);
}
.edu-detail {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── KEY COMPETENCIES ───────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.skill-item {
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: rgba(248,245,239,0.5);
  font-size: 0.78rem;
  color: var(--text);
  text-align: center;
}

/* ── PROFESSIONAL TRAITS ────────────────────────────── */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.trait-item {
  padding: 10px 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ── PRINT ──────────────────────────────────────────── */
@media print {
  body { background: white; padding: 0; }
  .cv-topbar { display: none; }
  .page { box-shadow: none; }
  .sidebar {
    background: var(--sidebar-bg) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 700px) {
  .page { grid-template-columns: 1fr; }
  .sidebar { padding: 32px 20px; }
  .main { padding: 32px 20px; }
  .exp-item { grid-template-columns: 1fr; gap: 4px; }
  .skills-grid,
  .traits-grid { grid-template-columns: repeat(2, 1fr); }
}
