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

:root {
  --bg:        #fafcfa;
  --surface:   #eef4f0;
  --border:    #c8d8cc;
  --text:      #1a211c;
  --muted:     #5a6b60;
  --accent:    #2d6a4f;
  --accent-dk: #1b4332;
  --radius:    6px;
  --max-w:     900px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* ── Nav ──────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}

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

/* ── Hero ─────────────────────────────────────────────────────── */
#hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 56px);
  padding: 4rem 2rem;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tagline {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}

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

.hero-links {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s;
}

.hero-links a:hover {
  color: var(--accent);
}

/* ── Sections ─────────────────────────────────────────────────── */
section {
  padding: 5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
    border-top: 1px solid var(--border);

}

/* section + section {
  border-top: 1px solid var(--border);
} */

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}


/* ── Resume ───────────────────────────────────────────────────── */

/* ── Projects ─────────────────────────────────────────────────── */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.project-media-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.project-media {
  flex: 1;
  min-width: 0;
}

.project-img,
.project-vid {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  display: block;
}

.project-vid {
  display: none;
  background: var(--surface);
}

.project-media-row.single .project-img,
.project-media-row.single .project-vid {
  height: 420px;
}

.project-body {
  flex: 1;
  min-width: 0;
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.project-header h3 {
  font-size: 1rem;
  font-weight: 600;
  flex: 1 1 100%;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.project-year {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  margin-left: 1rem;
}

.project-header h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}

.project-header h3 a::after {
  content: '';
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.3em;
  vertical-align: middle;
  opacity: 0.5;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.project-header h3 a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: var(--surface);
  border-radius: 99px;
  color: var(--muted);
  white-space: nowrap;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Contact ──────────────────────────────────────────────────── */
#contact > p {
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 1.75rem;
}

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-list li svg {
  color: var(--muted);
  flex-shrink: 0;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav ul {
    gap: 1rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .project-img,
  .project-vid {
    height: 180px;
  }
}
