/* ============================================================
   Design system — #3C3D3A / #767770 / #8FAF88 / #FFFFFF
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #3C3D3A;
  color: #FFFFFF;
  font-family: system-ui, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Nav ─────────────────────────────────────────────────── */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #3C3D3A;
  z-index: 100;
}

.nav-name {
  color: #8FAF88;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #767770;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.eyebrow {
  display: block;
  color: #8FAF88;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
  margin-bottom: 20px;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.hero-photo {
  width: 140px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  flex-shrink: 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.hero h1 {
  font-size: 80px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
}

.hero .subtitle {
  color: #767770;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 56px;
}

.btn-outline {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #8FAF88;
  color: #8FAF88;
  background: transparent;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-links a,
.social-links .icon-btn {
  color: #767770;
  font-size: 17px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* ── Divider ─────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid rgba(118, 119, 112, 0.2);
  margin: 0 64px;
}

/* ── Sections ────────────────────────────────────────────── */

.section {
  padding: 80px 64px;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: #767770;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* ── About ───────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-bio {
  color: #767770;
  font-size: 14px;
  line-height: 1.8;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.tech-group h3 {
  font-size: 11px;
  font-weight: 500;
  color: #767770;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tech-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 22px;
  color: #8FAF88;
}

/* ── Projects ────────────────────────────────────────────── */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  border: 1px solid rgba(118, 119, 112, 0.2);
  border-radius: 8px;
  padding: 32px;
}

.project-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.75;
  flex-shrink: 0;
}

.project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.project-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.project-card p {
  color: #767770;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #767770;
  border: 1px solid rgba(118, 119, 112, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
}

.project-link {
  display: inline-block;
  color: #8FAF88;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #8FAF88;
  border-radius: 8px;
  padding: 5px 14px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  padding: 32px 64px;
  border-top: 1px solid rgba(118, 119, 112, 0.2);
  color: #767770;
  font-size: 12px;
  margin-top: 40px;
}

/* ── Email Popup ─────────────────────────────────────────── */

.email-popup {
  display: none;
  position: fixed;
  background: #2e2f2d;
  border: 1px solid rgba(118, 119, 112, 0.3);
  border-radius: 8px;
  padding: 20px 24px;
  z-index: 1000;
  min-width: 240px;
}

.email-popup h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #767770;
  margin-bottom: 8px;
}

.email-popup p {
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 16px;
  padding-right: 20px;
  word-break: break-all;
}

.close-popup {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 14px;
  cursor: pointer;
  color: #767770;
  background: none;
  border: none;
  line-height: 1;
}

.copy-button {
  padding: 6px 16px;
  background: transparent;
  color: #8FAF88;
  border: 1px solid #8FAF88;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
}

/* ── Video Modal ─────────────────────────────────────────── */

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

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

.video-modal-content {
  position: relative;
  max-width: 860px;
  width: 90%;
  border-radius: 8px;
  overflow: hidden;
}

.video-modal-content video {
  width: 100%;
  display: block;
}

.video-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  background: none;
  border: none;
  font-family: inherit;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  nav {
    padding: 24px 24px;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .divider {
    margin: 0 24px;
  }

  .section {
    padding: 60px 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-card {
    padding: 24px;
  }

  footer {
    padding: 24px 24px;
  }
}