:root {
  --bg-warm-gray: #f9f6f4;
  --text-dark: #333333;
  --text-black: #000000;
  --accent-yellow: #f7d04c;
  --radius-1: 8px;
  --radius-2: 16px;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'Martian Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-warm-gray);
  color: var(--text-black);
  font-family: var(--font-body);
}

/* Nav */
.nav {
  position: sticky;
  top: 20px;
  z-index: 10;
  max-width: 630px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(233, 228, 224, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #aaa;
  border-radius: 100px;
}
.nav-logo,
.nav-logo:link,
.nav-logo:visited,
.nav-logo:hover,
.nav-logo:active {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-black);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-black);
  text-decoration: none;
}
.nav-links a:hover { color: rgba(0, 0, 0, 0.5); text-decoration: none; }

/* Hero */
.hero {
  text-align: center;
  max-width: 730px;
  margin: 90px auto 60px;
  padding: 0 20px;
}
.hero-bio {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 32px;
}
.hero-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 0;
}

/* Portfolio */
.portfolio {
  max-width: 950px;
  margin: 0 auto 100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-1);
  position: relative;
  cursor: pointer;
}
.project-image {
  aspect-ratio: 630 / 400;
  width: 100%;
  border-radius: var(--radius-1);
  overflow: hidden;
  background: #edeae8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}
.project-card:hover .project-image img { transform: scale(1.035); }

/* Hover tag that follows the cursor, portfolio-site style */
.hover-tag {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) scale(0.85);
  background: var(--text-black);
  color: var(--bg-warm-gray);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 100px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}
.project-card:hover .hover-tag { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hover-tag .arrow { display: inline-block; transition: transform 0.25s ease; }
.project-card:hover .hover-tag .arrow { transform: translateX(4px); }
@media (hover: none) { .hover-tag { display: none; } }
.project-info {
  position: absolute;
  top: 31px;
  left: 36px;
}
.project-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
}
.project-title .light { font-weight: 400; font-size: 12px; }
.project-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-dark);
  margin: 0;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dark);
}
.footer a {
  color: var(--text-dark);
}
.footer a[href="https://jcchung.com/"] {
  color: #333333;
  text-decoration: none;
}
.footer a[href="https://jcchung.com/"]:hover {
  color: rgba(0, 0, 0, 0.5);
}

.nav-links a.active { text-decoration: none; }

/* About page */
.about-intro {
  text-align: center;
  max-width: 730px;
  margin: 90px auto 70px;
  padding: 0 20px;
}
.about-tagline {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 32px;
}
.about-tagline em { font-style: normal; color: var(--text-dark); }
.about-bio {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.about-details {
  max-width: 846px;
  margin: 0 auto 90px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.detail-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.detail-label {
  flex: 0 0 140px;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 13px;
  line-height: 1.6;
}
.job-company {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
}
.job-title {
  font-weight: 500;
  font-size: 14px;
  margin: 0 0 6px;
}
.job-desc {
  color: var(--text-dark);
  font-size: 13px;
  margin: 0 0 6px;
}
.job-date {
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0;
}
.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  gap: 20px;
  font-size: 13px;
}
.skill-list li { margin-bottom: 8px; break-inside: avoid; }
.detail-content p { margin: 0; }

.about-gallery {
  max-width: 1281px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
}
.about-gallery .gallery-item {
  aspect-ratio: 413 / 400;
  border-radius: var(--radius-1);
  overflow: hidden;
  background: #edeae8;
}
.about-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-gallery .gallery-item:hover img { transform: scale(1.045); }

.about-cta {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
  max-width: 626px;
  margin: 0 auto 80px;
  padding: 0 20px;
}
.about-cta a {
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.about-cta a .arrow { display: inline-block; transition: transform 0.25s ease; }
.about-cta a:hover .arrow { transform: translateX(4px); }

@media (max-width: 640px) {
  .detail-row { flex-direction: column; gap: 12px; }
  .detail-label { flex: none; }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
  .nav { max-width: 92%; padding: 12px 16px; }
  .nav-links { gap: 12px; font-size: 11px; }
  .hero-bio { font-size: 16px; }
  .hero-title { font-size: 11px; }
  .about-tagline, .about-bio { font-size: 16px; }
  .footer { flex-direction: column; text-align: center; padding: 24px 20px; }
  .project-info { top: 20px; left: 20px; }
  .project-title { font-size: 14px; }
  .project-title .light { display: block; font-size: 11px; margin-top: 2px; }
  .project-desc { font-size: 11px; }
}
