/* ── RESET ───────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── BASE ────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f9f7f4;
  color: #1a1a1a;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

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


/* ── HERO ────────────────────────────────────────── */
#hero {
  padding: 56px 0 0;
  margin-bottom: 48px;
}

.hero-body { margin-bottom: 32px; }

.hero-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 12px;
}

.hero-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.hero-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: #666;
  max-width: 440px;
  margin-bottom: 20px;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #999;
  transition: color 0.2s;
}

.hero-link:hover { color: #1a1a1a; }
.hero-link-divider { color: #ccc; font-size: 14px; }

/* ── TABS ROW ────────────────────────────────────── */
.hero-tabs-row {
  border-bottom: 1px solid #e8e5e0;
}

.hero-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

/* All tabs AND the resume button share identical padding so they
   all sit on the same baseline — the only difference is colour. */
.hero-tab,
.resume-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 11px 0;           /* identical top/bottom for both */
  margin-right: 18px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.hero-tab { color: #bbb; }

.hero-tab:hover,
.hero-tab.active {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

.resume-tab-btn { color: #bbb; }

.resume-tab-btn:hover {
  color: #c84b2f;
  border-bottom-color: #c84b2f;
}


/* ── SECTIONS ────────────────────────────────────── */
section {
  padding: 64px 0;
  border-bottom: 1px solid #e8e5e0;
}

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

h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.section-subtitle {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 32px;
  font-weight: 300;
}

p { line-height: 1.7; }


/* ── PROJECTS GRID (masonry) ─────────────────────── */
.project-grid {
  columns: 2;
  column-gap: 14px;
}

.project-card {
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.project-img {
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  transition: filter 0.3s ease;
}

.project-card:hover .project-img { filter: brightness(0.82); }

/* Label row — sits at bottom-left of the image */
.project-img-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-img-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15);
}
.project-card-info { padding: 14px 16px 18px; }

.project-card-info h3 {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.project-card-info p {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}


/* ── PROJECT MODAL ───────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;  /* explicit instead of inset */
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  /* break out of the body max-width constraint */
  margin-left: calc(-50vw + 50%);
}

.modal-overlay.open { display: flex; }

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.32); }

.modal-header {
  padding: 44px 28px 28px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.modal-category {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  display: block;
}

.modal-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-text { padding: 24px 28px 32px; }

.modal-summary {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 12px;
}

.modal-details {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 22px;
}

.modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.modal-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: #f4f4f4;
  color: #555;
}

.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.modal-btn {
  display: inline-block;
  padding: 11px 22px;
  background: #1a1a1a;
  color: white;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.modal-btn:hover { background: #c84b2f; }

.modal-btn-ghost {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.modal-btn-ghost:hover { background: #1a1a1a; color: white; }


/* ── EXPERIENCE ──────────────────────────────────── */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.experience-card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.experience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.experience-card-bar { height: 5px; width: 100%; }

.experience-card-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 28px;
}

.experience-card-left {
  border-right: 1px solid #f0ede8;
  padding-right: 32px;
}

.experience-date {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 8px;
}

.experience-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 4px;
}

.experience-card h4 {
  font-size: 13px;
  font-weight: 300;
  color: #aaa;
}

.experience-card-right p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: #555;
  margin-bottom: 14px;
}

.experience-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.experience-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  background: #f4f4f4;
  color: #777;
}


/* ── EDUCATION ───────────────────────────────────── */
.education-card {
  display: grid;
  grid-template-columns: 52px 1fr;   /* fixed narrow column for logo */
  gap: 28px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 24px 28px;
  align-items: start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.education-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

/* Logo: fixed size, never overflows */
.education-logo-img {
  width: 44px;
  height: auto;
  display: block;
  margin-top: 3px;
  flex-shrink: 0;
}

.education-right h3 {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 3px;
  margin-top: 2px;
  line-height: 1.4;
}

.education-right h4 {
  font-size: 13px;
  font-weight: 300;
  color: #aaa;
  margin-bottom: 10px;
}

.education-right p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: #555;
  margin-bottom: 14px;
}

.courses-grid { display: flex; flex-wrap: wrap; gap: 6px; }

.course-pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  background: #eef2f8;
  color: #2b4d6f;
  border: 1px solid #dde6f0;
}


/* ── SKILLS ──────────────────────────────────────── */

.skills-tags-col {
  width: 100%;
}

.skill-group {
  margin-bottom: 22px;
}

.skill-group-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 10px;
}

.skill-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  font-size: 12px;
  font-weight: 400;
  padding: 5px 12px;
  background: #fff;
  color: #555;
  border: 1px solid #e8e5e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: border-color 0.15s, color 0.15s;
}

.skill-tag:hover {
  border-color: #2b4d6f;
  color: #2b4d6f;
}

/* highlighted / primary skills slightly more prominent */
.skill-tag.primary {
  background: #f4f7fb;
  border-color: #c8d8ea;
  color: #2b4d6f;
  font-weight: 500;
}



/* ── BACKGROUND CANVAS ───────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* Ensure content sits above canvas */
section {
  position: relative;
  z-index: 1;
}

/* Keep modal above everything */
.modal-overlay {
  position: fixed;
  z-index: 1000;
}