:root {
  --text-primary: #111;
  --text-secondary: #555;
  --border-color: #e6e6e6;
  --bg-color: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

/* ===== Sticky Nav ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== Base ===== */
body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg-color);
  color: var(--text-secondary);
  line-height: 1.65; /* 🔧 1.7 → 1.65 */
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 24px; /* 🔧 위아래 살짝 줄임 */
}

/* ===== Profile ===== */
.profile {
  display: flex;
  gap: 48px;
  margin-bottom: 120px; /* 🔧 */
}

.profile-img {
  width: 280px;           /* 🔧 300 → 280 */
  height: 280px;
  border-radius: 18%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.name {
  font-size: 2.6rem;      /* 🔧 3rem → 2.6rem */
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.roles p {
  font-size: 0.95rem;     /* 🔧 */
  margin-bottom: 6px;
}

/* ===== Links ===== */
.links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.links a:hover {
  text-decoration: underline;
  color: var(--text-primary);
}

/* ===== Resume Button ===== */
.resume {
  margin-top: 28px;
}

.resume-btn {
  padding: 10px 22px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* ===== Sections ===== */
section {
  margin-bottom: 120px;
}

h2 {
  font-size: 1.6rem;      /* 🔧 */
  margin-bottom: 28px;
  color: var(--text-primary);
}

/* ===== About ===== */
.about {
  max-width: 760px;
}

.about p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 8px;     /* 🔧 */
}

/* ===== Skills & Education ===== */
.skills {
  max-width: 760px;
}

.edu-title {
  margin-top: 56px;
}

.info-row {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  line-height: 2;
  margin-bottom: 10px;
}

.info-label {
  flex: 0 0 170px;
  color: var(--text-primary);
  font-weight: 600;
}

.info-value {
  color: var(--text-secondary);
}

/* ===== Projects ===== */
.projects {
  max-width: 760px;
}

.project-category {
  margin-bottom: 80px;
  scroll-margin-top: 72px;
}

.category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.project {
  margin-bottom: 56px;
}

.project h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project .summary {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.project ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 10px;
}

.project li {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.award {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-primary);
  background: #fafafa;
}

.project-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.project a {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}

/* ===== Category Pager ===== */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 64px;
}

.pager a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.pager a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ===== Responsive (Tablet & Mobile) ===== */
@media (max-width: 768px) {
  .container {
    padding: 72px 20px;
  }

  .profile {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 96px;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .name {
    font-size: 2.2rem;
  }

  .roles p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  body {
    line-height: 1.6;
  }

  .nav-inner {
    padding: 12px 20px;
  }

  .nav-name {
    display: none;
  }

  .nav-links {
    gap: 8px 14px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .name {
    font-size: 2rem;
  }

  .about p,
  .project .summary,
  .project li {
    font-size: 0.95rem; /* 🔧 모바일에서는 다시 키움 */
  }

  .info-row {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
    font-size: 0.95rem;
  }
}
