:root {
  --bg: #f9f8f6;
  --surface: #ffffff;
  --text: #111110;
  --muted: #2a2a27;
  --subtitle: #232321;
  --subtle: #51514e;
  --border: #e4e3de;
  --accent-soft: #f0efe9;
  --blue: #1a56db;
  --radius: 12px;
  --radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(249, 248, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  height: 60px;
}
.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin-left: 40px;
  margin-right: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  margin-left: auto;
  padding: 7px 18px;
  background: var(--text);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover {
  opacity: 0.8;
}

/* ── LAYOUT ── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── HERO ── */
#hero {
  padding: 160px 0 50px;
  animation: fadeUp 0.7s ease both;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
h1.hero-title {
  font-family: inherit;
  font-size: clamp(44px, 6vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 24px;
}
h1.hero-title em {
  font-style: italic;
  font-size: clamp(44px, 6vw, 55px);
  font-weight: 600;
  color: var(--muted);
}
.hero-sub {
  font-size: 16px;
  color: var(--subtitle);
  /* max-width: 480px; */
  line-height: 1.75;
  /* font-weight: 400; */
}
.hero-sub strong {
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}

/* ── HERO TECH ── */
.hero-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  margin-bottom: 40px;
}

.hero-actions a {
  max-width: 120px;
}

.hero-tech-pill {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: -0.1px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── BUTTONS ── */
.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  /* padding: 11px 20px; */
  /* border-radius: 24px; */
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  /* cursor: pointer; */
  font-family: inherit;
  margin-bottom: 10px;
}

/* 클릭/방문 상태(:visited)에서 보라색으로 바뀌지 않게 */
.btn:visited {
  color: inherit;
}
.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover {
  background: #333;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text);
  background: var(--bg);
  color: var(--text);
}

/* HERO: GitHub처럼 btn만 가진 링크도 hover 시 아이콘+텍스트 강조 */
.hero-actions a.btn:not(.btn-dark):not(.btn-outline):hover {
  color: #49bf9d;
}

.btn-static {
  cursor: default;
}

/* ── SECTION ── */
section {
  padding: 70px 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 15px;
}
.section-title {
  font-family: inherit;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.section-title-underline {
  width: 36px;
  height: 3px;
  background: #49bf9d;
  border-radius: 2px;
  margin-bottom: 40px;
}

/* ── STUDY & CULTURE ── */
.study-culture-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.study-culture-item {
  font-size: 17px;
  color: var(--subtle);
  /* line-height: 1.75; */
  font-weight: 500;
  position: relative;
  padding-left: 20px;
}
.study-culture-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--subtle);
  font-weight: 700;
}

/* ── CAREER ── */
.timeline {
  margin-top: 48px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  padding-left: 28px;
  margin-bottom: 44px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}
.timeline-item.current::before {
  background: var(--text);
}
.timeline-meta {
  display: flex;
  /* justify-content: space-between; */
  align-items: baseline;
  /* margin-bottom: 4px; */
}
.timeline-company {
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-right: 10px;
}
.timeline-company-info {
  font-size: 15px;
  color: var(--subtle);
  font-weight: 600;
  letter-spacing: -0.2px;
}
.timeline-info {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 20px;
  /* font-weight: 400; */
}
.timeline-desc {
  font-size: 17px;
  color: var(--subtle);
  line-height: 1.7;
  font-weight: 500;
  position: relative;
  padding-left: 20px;
  /* margin-bottom: 10px; */
}
.timeline-desc::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--subtle);
}

.timeline-desc:last-child {
  margin-bottom: 0;
}

.timeline-title {
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  /* letter-spacing: -0.2px; */
  color: var(--text);
  margin-top: 30px;
}
.timeline-title span {
  display: inline-block;
  font-size: 13px;
  margin-left: 10px;
  padding: 5px 12px;
  border-radius: 14px;
  background: #eaf7f2;
  color: #2e9977;
  font-weight: 500;
  letter-spacing: -0.2px;
  transform: translateY(-1px);
}
/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: #bbb;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}
.project-thumb {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  flex-shrink: 0;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 카드별 썸네일 미세 조정 */
/* 1번: 위 여백 제거 + 옆으로 살짝 늘려서 세로형이 덜 남게 */
.project-card.p1 .project-thumb {
  padding-top: 0;
  padding-left: 8px;
  padding-right: 8px;
  padding-bottom: 0;
}
.project-card.p1 .project-thumb img {
  transform: scaleX(1.06);
  transform-origin: center;
  object-fit: contain;
}

/* 2/4번: 여백 없이 꽉 차게 */
.project-card.p2 .project-thumb,
.project-card.p4 .project-thumb {
  padding: 0;
}
.project-card.p2 .project-thumb img,
.project-card.p4 .project-thumb img {
  object-fit: cover;
}
.project-thumb-emoji {
  font-size: 48px;
}
.project-body {
  padding: 22px 24px;
}
.project-name {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.project-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  /* font-weight: 400; */
}

/* ── SKILLS ── */
.skill-group {
  margin-top: 32px;
}
.skill-group-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-pill {
  font-size: 14px;
  padding: 7px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  transition: all 0.2s;
  cursor: default;
}
.skill-pill.primary {
  background: #eaf7f2;
  color: #2e9977;
  border-color: #b2e8d8;
}

/* ── EDUCATION ── */
.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  margin-top: -1px;
  margin-bottom: 100px;
}
.edu-school {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.edu-major {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}
.edu-period {
  font-size: 14px;
  color: var(--subtle);
  white-space: nowrap;
  margin-left: 24px;
  padding-top: 2px;
}

/* ── CTA ── */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 80px;
  margin-bottom: 80px;
}
.cta-block h3 {
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.cta-block p {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--subtle);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border);
  transform: translateY(20px);
  transition: transform 0.25s;
  position: relative;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-content {
  padding: 24px 28px 28px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-right: 40px;
}
.modal-title {
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.modal-period {
  font-size: 16px;
  color: var(--subtle);
  margin-top: 4px;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
}
.modal-close:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.modal-section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 10px;
  margin-top: 20px;
}
.modal-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.modal-tag {
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}
.modal-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.5;
  /* font-weight: 400; */
}

.modal-line-bullet {
  display: inline-block;
  margin-right: 10px;
  color: var(--subtle);
  font-weight: 600;
  transform: translateY(-1px);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .container {
    padding: 0 20px;
  }
  #hero {
    padding: 120px 0 72px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .cta-block {
    flex-direction: column;
    padding: 28px 24px;
  }
  .footer-inner {
    flex-direction: column;
  }
}
