/* =====================================================================
   깔끔한 비즈니스 스타일 — 네이비 포인트 + 흰 배경
   ===================================================================== */

:root {
  --navy: #1e3a5f;
  --navy-dark: #142943;
  --accent: #2f6fb2;
  --text: #2b2f36;
  --text-light: #6b7280;
  --line: #e5e8ec;
  --bg-alt: #f5f7fa;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* 고정 네비게이션 높이만큼 보정 */
}

body {
  font-family: "Pretendard", -apple-system, "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  word-break: keep-all;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------
   상단 네비게이션
   ------------------------------------------------------------------ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

/* ------------------------------------------------------------------
   히어로
   ------------------------------------------------------------------ */
.hero {
  padding: 150px 0 90px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}

.hero-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a8c4e0;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-intro {
  font-size: 1.1rem;
  color: #d5dfeb;
  max-width: 560px;
}

/* ------------------------------------------------------------------
   섹션 공통
   ------------------------------------------------------------------ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--navy);
  display: inline-block;
}

.sub-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 18px;
}

.sub-title:first-of-type {
  margin-top: 0;
}

/* ------------------------------------------------------------------
   타임라인 (경력 / 학력)
   ------------------------------------------------------------------ */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 24px;
  margin-left: 6px;
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 4px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-head strong {
  font-size: 1.05rem;
  color: var(--text);
}

.timeline-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline-period {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-left: auto;
}

.timeline-tasks {
  margin-top: 8px;
  padding-left: 18px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.timeline-tasks li {
  margin-bottom: 4px;
}

/* ------------------------------------------------------------------
   기술 태그 / 자격증
   ------------------------------------------------------------------ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #eaf1f8;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.cert-list {
  list-style: none;
}

.cert-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.cert-list li:first-child {
  padding-top: 0;
}

.cert-meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-left: 8px;
}

/* ------------------------------------------------------------------
   포트폴리오 카드
   ------------------------------------------------------------------ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.12);
  transform: translateY(-3px);
}

.project-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.project-period {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.93rem;
  color: var(--text);
  flex: 1;
  margin-bottom: 16px;
}

.project-card .tag-list {
  margin-bottom: 0;
}

.project-link {
  margin-top: 16px;
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

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

/* ------------------------------------------------------------------
   푸터
   ------------------------------------------------------------------ */
.footer {
  background: var(--navy-dark);
  color: #c9d5e2;
  padding: 60px 0 40px;
}

.footer .section-title {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.footer a {
  color: #9fc3e8;
  text-decoration: none;
}

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

.footer-copy {
  margin-top: 32px;
  font-size: 0.82rem;
  color: #7d8ea1;
}

/* ------------------------------------------------------------------
   모바일 대응
   ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .hero {
    padding: 120px 0 64px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 56px 0;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-menu a {
    font-size: 0.88rem;
  }

  .timeline-period {
    margin-left: 0;
    width: 100%;
  }
}
