/* ══════════════════════════════════════════════════════════
   DESIGN SYSTEM — Pleurat.com Aesthetic
   ══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  /* Warm cream palette — matching pleurat.com */
  --bg:            #f5f0e6;       /* distinct warm linen / cream background */
  --bg-section:    #ede7d8;       /* slightly deeper warm cream tone */
  --bg-dark:       #1c1b18;
  --text:          #181714;
  --text-muted:    #8e887b;
  --text-mid:      #524f46;
  --accent:        #c8922a;       /* amber/golden — primary accent */
  --accent-hover:  #b07e22;
  --theme-brown:   #33261a;       /* rich theme brown for interactive widgets */
  --theme-brown-hover: #453424;
  --border:        rgba(26, 24, 16, 0.09);
  --border-strong: rgba(26, 24, 16, 0.16);
  --shadow-sm:     0 1px 4px rgba(26, 24, 16, 0.06);
  --shadow-md:     0 4px 24px rgba(26, 24, 16, 0.09);

  --font-sans: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', 'Courier New', monospace;

  --nav-h: 60px;
  --max-w: 1300px;
  --pad-x: 60px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  background-color: var(--bg);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Distinct horizontal rule texture on warm cream background */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    rgba(26, 24, 16, 0.045) 27px,
    rgba(26, 24, 16, 0.045) 28px
  );
}

::selection { background: rgba(200, 146, 42, 0.25); }

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26, 24, 16, 0.15); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26, 24, 16, 0.25); }

/* ─── Custom Cursor ─── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
  mix-blend-mode: multiply;
}

body:not(:hover) .cursor { opacity: 0; }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-wordmark {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.875rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--text); }

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

.nav-dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link.active .nav-dot { opacity: 1; }

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

.nav-social-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.nav-social-icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200, 146, 42, 0.08);
  transform: translateY(-1px);
}

.nav-cta {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(200, 146, 42, 0.25);
}

/* ══════════════════════════════════════════════════════════
   LAYOUT HELPERS
   ══════════════════════════════════════════════════════════ */
.section-label-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 4px;
  margin-bottom: 3rem;
}

.section-head {
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

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

.section-sub {
  margin-top: 1.25rem;
  font-size: 17px;
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.65;
}

.h-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */
.hero-section {
  padding-top: calc(var(--nav-h) + 6rem);
  padding-bottom: 0;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) 7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
}

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

.hero-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(200, 146, 42, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 146, 42, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(26, 24, 16, 0.05);
  border-color: var(--text);
  transform: translateY(-1px);
}

.hero-social-strip {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-social-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-social-chips {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(26, 24, 16, 0.035);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.hero-social-chip svg {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.hero-social-arrow {
  color: var(--text-muted);
  font-size: 11px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.hero-social-chip:hover {
  background: rgba(200, 146, 42, 0.09);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(200, 146, 42, 0.12);
}

.hero-social-chip:hover svg {
  transform: scale(1.1);
}

.hero-social-chip:hover .hero-social-arrow {
  color: var(--accent);
  transform: translate(1px, -1px);
}



/* ══════════════════════════════════════════════════════════
   TOOLS MARQUEE
   ══════════════════════════════════════════════════════════ */
.tools-strip {
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 24, 16, 0.02);
}

.tools-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  will-change: transform;
}

.tools-track:hover { animation-play-state: paused; }

.tool-item {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.tool-sep {
  color: var(--accent);
  font-size: 12px;
  padding: 0 0.25rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════
   PROJECTS SECTION (Clean Border Alignment)
   ══════════════════════════════════════════════════════════ */
.projects-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem var(--pad-x);
}

.project-list {
  border-top: 1px solid var(--border);
}

.project-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.project-row {
  cursor: pointer;
  transition: background 0.25s ease;
}

.project-row:hover {
  background: rgba(26, 24, 16, 0.015);
}

.project-row.open {
  background: rgba(26, 24, 16, 0.025);
}

.project-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  transition: opacity 0.2s ease;
}

.project-row:hover .project-row-header { opacity: 0.85; }

.project-row-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  min-width: 24px;
}

.project-row-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-row-title-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.project-row-name {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s ease;
}

.project-row:hover .project-row-name { color: var(--accent); }

.project-badge-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(200, 146, 42, 0.1);
  color: var(--accent);
  border: 1px solid rgba(200, 146, 42, 0.25);
  text-transform: uppercase;
}

.project-badge-pill.play {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.project-badge-pill.oss {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.25);
}

.project-row-cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.project-row-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.project-row-year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.project-row-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-mid);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  background: var(--bg);
}

.project-row.open .project-row-toggle {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Accordion body */
.project-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.project-row.open .project-row-body {
  max-height: 800px;
}

.project-body-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  padding: 0.5rem 1.5rem 2.5rem 4.5rem;
}

.project-bullet-list,
.exp-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.project-bullet-list li,
.exp-bullet-list li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-mid);
  padding-left: 1.25rem;
  position: relative;
}

.project-bullet-list li::before,
.exp-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.2;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  padding: 0.3rem 0.75rem;
  background: rgba(26, 24, 16, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.2s ease;
}

.project-tag:hover {
  background: rgba(200, 146, 42, 0.08);
  border-color: rgba(200, 146, 42, 0.3);
  color: var(--text);
}

.project-links-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.project-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.project-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.project-btn.secondary:hover {
  background: rgba(26, 24, 16, 0.05);
  border-color: var(--text);
}

.project-body-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  flex-shrink: 0;
}

.metric-chip {
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  background: rgba(26, 24, 16, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-chip-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-chip-val {
  font-weight: 600;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   STATS SECTION
   ══════════════════════════════════════════════════════════ */
.stats-section {
  padding: 7rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.stats-bars-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: end;
}

.stat-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-number {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-bar-track {
  width: 100%;
  height: 160px;
  background: rgba(26, 24, 16, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.stat-bar-fill {
  width: 100%;
  height: 0%;
  background: var(--accent);
  /* Diagonal stripe pattern — matches pleurat bars */
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(255,255,255,0.15) 6px,
    rgba(255,255,255,0.15) 12px
  );
  background-size: 200% 200%;
  border-radius: 2px 2px 0 0;
  transition: height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   TRACKS (SKILLS) SECTION
   ══════════════════════════════════════════════════════════ */
.tracks-section {
  padding: 7rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.track-card {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  background: rgba(26, 24, 16, 0.02);
  transition: background 0.25s ease;
}

.track-card:last-child { border-right: none; }

.track-card:hover { background: rgba(200, 146, 42, 0.04); }

.track-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.track-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.track-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.track-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.track-tools {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.track-tools li {
  font-size: 13px;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
}

.track-tools li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════
   EXPERIENCE SECTION
   ══════════════════════════════════════════════════════════ */
.experience-section {
  padding: 7rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.exp-card {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border);
  background: rgba(26, 24, 16, 0.02);
  transition: background 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.exp-card:last-child { border-right: none; }

.exp-card:hover { background: rgba(200, 146, 42, 0.04); }

.exp-card.current {
  background: rgba(200, 146, 42, 0.06);
  border-top: 2px solid var(--accent);
}

.exp-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.exp-company {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.yc-tag {
  display: inline-block;
  padding: 0.1rem 0.375rem;
  background: rgba(251, 146, 60, 0.15);
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: #c2410c;
  letter-spacing: 0.04em;
}

.exp-role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.exp-bullet-list {
  margin-top: 0.5rem;
  flex: 1;
}

.exp-bullet-list li {
  font-size: 13px;
  line-height: 1.6;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   EDUCATION SECTION
   ══════════════════════════════════════════════════════════ */
.education-section {
  padding: 7rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.edu-card {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  background: rgba(26, 24, 16, 0.02);
  transition: background 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.edu-card:last-child {
  border-right: none;
}

.edu-card:hover {
  background: rgba(200, 146, 42, 0.04);
}

.edu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.edu-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.edu-score-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: rgba(200, 146, 42, 0.12);
  border: 1px solid rgba(200, 146, 42, 0.28);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.edu-scores-dual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.edu-degree {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.edu-school {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.edu-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-top: 0.35rem;
  flex: 1;
}

.edu-coursework {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.75rem 0 0.25rem;
}

.edu-course-tag {
  padding: 0.2rem 0.5rem;
  background: rgba(26, 24, 16, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--text-mid);
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   CERTIFICATIONS
   ══════════════════════════════════════════════════════════ */
.certs-section {
  padding: 5rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.certs-row {
  display: flex;
  align-items: stretch;
}

.cert-item {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.cert-issuer-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cert-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cert-verified {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   WRITING SECTION (Single Featured Editorial Card)
   ══════════════════════════════════════════════════════════ */
.writing-section {
  padding: 7rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.writing-featured-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.writing-featured-card {
  padding: 3rem 2.75rem;
  background: rgba(26, 24, 16, 0.02);
  transition: background 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border-top: 2px solid var(--accent);
}

.writing-featured-card:hover {
  background: rgba(200, 146, 42, 0.04);
}

.writing-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.writing-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.writing-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(200, 146, 42, 0.12);
  color: var(--accent);
  text-transform: uppercase;
}

.writing-platform-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.writing-read-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.writing-featured-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.writing-featured-title a:hover {
  color: var(--accent);
}

.writing-featured-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 860px;
}

.writing-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.writing-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.writing-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: rgba(26, 24, 16, 0.04);
  border-radius: 4px;
}

.writing-btn-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.writing-btn-link:hover {
  color: var(--accent-hover);
  transform: translateX(3px);
}

/* Medium Profile Explore Banner in Writing Section */
.writing-profile-banner {
  padding: 1.5rem 2.75rem;
  background: rgba(200, 146, 42, 0.05);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.writing-profile-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.writing-profile-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(200, 146, 42, 0.12);
  border: 1px solid rgba(200, 146, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.writing-profile-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.writing-profile-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.writing-profile-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}

.writing-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: var(--theme-brown);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.writing-profile-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(200, 146, 42, 0.25);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(26, 24, 16, 0.03);
  padding: 6rem var(--pad-x) 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr 1.4fr;
  gap: 3rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col-elsewhere {
  gap: 0.75rem;
}

.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: rgba(26, 24, 16, 0.025);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.footer-social-card:hover {
  background: rgba(200, 146, 42, 0.08);
  border-color: rgba(200, 146, 42, 0.35);
  transform: translateX(3px);
}

.footer-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: rgba(26, 24, 16, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.footer-social-card:hover .footer-social-icon {
  background: var(--accent);
  color: #fff;
}

.footer-social-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.footer-social-platform {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.footer-social-handle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-social-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

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

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 0.625rem;
}

.footer-email {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s ease;
}

.footer-email:hover { color: var(--accent); }

.footer-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.footer-phone:hover { color: var(--accent); }

.footer-avail {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-location {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.footer-link {
  font-size: 14px;
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════════════════
   CHATBOT WIDGET
   ══════════════════════════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chat-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent); /* Primary golden amber accent of website */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 24px rgba(200, 146, 42, 0.4), 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background 0.2s ease, 
              box-shadow 0.25s ease;
}

.chat-trigger:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--accent-hover);
  box-shadow: 0 8px 30px rgba(200, 146, 42, 0.55), 0 0 16px rgba(200, 146, 42, 0.35);
}

.chat-trigger:active {
  transform: translateY(-1px) scale(0.98);
}

.chat-trigger-icon {
  color: #ffffff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.chat-icon-close {
  display: none;
}

.chat-widget.is-open .chat-icon-open {
  display: none;
}

.chat-widget.is-open .chat-icon-close {
  display: block;
}

.chat-widget.is-open .chat-trigger {
  background: var(--accent);
}

.chat-window {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 480px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 8px 36px rgba(28, 27, 24, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-win-header {
  padding: 1rem 1.25rem;
  background: var(--accent); /* Primary accent color of the website */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-win-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-win-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.chat-win-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans);
}

.chat-win-close {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.chat-win-close:hover { color: #fff; }

.chat-messages {
  flex: 1;
  padding: 1rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.bot-msg { align-self: flex-start; }
.user-msg { align-self: flex-end; }

.chat-msg-content {
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.bot-msg .chat-msg-content {
  background: rgba(26, 24, 16, 0.06);
  color: var(--text);
  border-top-left-radius: 3px;
}

.user-msg .chat-msg-content {
  background: var(--accent);
  color: #fff;
  border-top-right-radius: 3px;
}

.chat-timestamp {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 0.2rem;
  padding: 0 0.25rem;
}

.user-msg .chat-timestamp { align-self: flex-end; }

.typing-dots {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(26, 24, 16, 0.02);
}

.chat-input {
  flex: 1;
  padding: 0.55rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text-muted); }

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover { background: var(--accent-hover); }

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.reveal-hero,
.reveal-hero-delay,
.reveal-up,
.reveal-tag,
.reveal-rule {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-rule {
  transform: scaleX(0);
  transform-origin: left;
}

.reveal-hero.visible,
.reveal-hero-delay.visible,
.reveal-up.visible,
.reveal-tag.visible,
.reveal-rule.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-rule.visible { transform: scaleX(1); }

.reveal-hero-delay { transition-delay: 0.15s; }

.reveal-up:nth-child(2) { transition-delay: 0.08s; }
.reveal-up:nth-child(3) { transition-delay: 0.16s; }
.reveal-up:nth-child(4) { transition-delay: 0.24s; }
.reveal-up:nth-child(5) { transition-delay: 0.32s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; }

  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-grid .exp-card:nth-child(2n) {
    border-right: none;
  }

  .experience-grid .exp-card:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  :root { --pad-x: 20px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 5.5rem;
  }

  .hero-headline { font-size: clamp(2.5rem, 8vw, 4rem); }

  .tracks-grid { grid-template-columns: 1fr; }
  .track-card { border-right: none; border-bottom: 1px solid var(--border); }
  .track-card:last-child { border-bottom: none; }

  .stats-bars-row { grid-template-columns: repeat(2, 1fr); }

  .experience-grid { grid-template-columns: 1fr 1fr; }
  .exp-card { border-right: 1px solid var(--border); }
  .exp-card:nth-child(2n) { border-right: none; }
  .exp-card:nth-child(n+3) { border-top: 1px solid var(--border); }

  .education-grid { grid-template-columns: 1fr; }
  .edu-card { border-right: none; border-bottom: 1px solid var(--border); }
  .edu-card:last-child { border-bottom: none; }

  .writing-profile-banner {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .writing-profile-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  .nav-links { display: none; }

  .project-body-grid {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
  }

  .certs-row { flex-direction: column; }
  .cert-divider { width: 100%; height: 1px; }
}

@media (max-width: 600px) {
  .stats-bars-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .exp-card { border-right: none; border-bottom: 1px solid var(--border); }
  .exp-card:last-child { border-bottom: none; }
  .edu-card { padding: 2rem 1.5rem; }
  .writing-featured-card { padding: 2rem 1.5rem; }
  .hero-social-chips { flex-direction: column; align-items: stretch; }
  .hero-social-chip { justify-content: space-between; }
  .project-row-right { flex-direction: column; align-items: flex-end; gap: 0.5rem; }
  .chat-window { width: calc(100vw - 2rem); }
}