:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #eef5f2;
  --ink: #17212b;
  --muted: #667485;
  --line: #dce5ed;
  --green: #3f9f68;
  --blue: #2f7fc3;
  --navy: #102638;
  --code: #111d2c;
  --shadow: 0 22px 70px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fafc 0%, #f3f7fa 42%, #f6f8fb 100%);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(220, 229, 235, 0.85);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.project-links,
.contact-links,
.project-toolbar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #39946a, #2f7fc3);
  font-size: 0.85rem;
  box-shadow: 0 10px 24px rgba(47, 127, 195, 0.18);
}

.nav {
  gap: clamp(12px, 2.2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a:hover,
.project-links a:hover,
.contact-links a:hover {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  min-height: calc(100vh - 76px);
  padding: clamp(58px, 7vw, 96px) clamp(20px, 5vw, 72px) 76px;
  background:
    radial-gradient(circle at 15% 20%, rgba(63, 159, 104, 0.13), transparent 28%),
    linear-gradient(135deg, #f9fbfc 0%, #edf5f8 100%);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.45rem, 4.2vw, 4.55rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3.35rem);
  line-height: 1.18;
}

h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.25;
}

h4 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.hero-description {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #1f4d44;
  background: rgba(63, 159, 104, 0.12);
  border: 1px solid rgba(63, 159, 104, 0.18);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 850;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 14px 26px rgba(16, 38, 56, 0.18);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
}

.system-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 56, 0.1);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-summary {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(63, 159, 104, 0.08), rgba(47, 127, 195, 0.08)),
    #fff;
}

.profile-summary img {
  width: 104px;
  height: 124px;
  border: 1px solid rgba(16, 38, 56, 0.12);
  border-radius: 12px;
  object-fit: cover;
  object-position: center 24%;
  background: #fff;
  box-shadow: 0 14px 28px rgba(16, 38, 56, 0.12);
}

.profile-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 950;
}

.profile-role {
  margin: 4px 0 10px;
  color: var(--muted);
  font-weight: 800;
}

.profile-summary a {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 850;
}

.panel-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  background: #f5f8fa;
  border-bottom: 1px solid var(--line);
}

.panel-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8fd1c7;
}

.panel-topbar span:nth-child(2) {
  background: #91b8e7;
}

.panel-topbar span:nth-child(3) {
  background: #b8d78b;
}

.panel-topbar p {
  margin: 0;
  padding-left: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.system-panel pre {
  margin: 0;
  padding: 24px;
  color: #d7e8f3;
  background:
    linear-gradient(180deg, rgba(47, 127, 195, 0.1), transparent),
    var(--code);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.7;
  overflow-x: auto;
}

.system-panel code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.quick-stats {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 24px 24px;
}

.quick-stats div {
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.quick-stats dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-stats dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.section {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 32px;
}

.section-heading.wide {
  max-width: 1040px;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
}

.about-grid p {
  margin: 0;
  color: #384857;
  font-size: 1.03rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-group,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.skill-group {
  padding: 22px;
  box-shadow: 0 12px 32px rgba(18, 50, 71, 0.05);
}

.tags,
.project-meta,
.project-detail ul {
  padding: 0;
  list-style: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.tags li,
.project-meta li,
.result-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

.tags li {
  padding: 0 10px;
  color: var(--navy);
  background: linear-gradient(180deg, #f1f7f5, #e9f2f6);
  border: 1px solid rgba(16, 38, 56, 0.06);
}

.projects-section {
  background: #eef4f6;
}

.project-toolbar {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.filter-button.active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.project-list {
  display: grid;
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 10px 34px rgba(18, 50, 71, 0.07);
}

.project-card.is-hidden {
  display: none;
}

.project-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 900;
}

.project-main p:not(.project-kicker) {
  margin: 14px 0 0;
  color: var(--muted);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.project-meta li {
  padding: 0 10px;
  color: #254556;
  background: #edf4f1;
}

.project-links {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 900;
}

.project-detail {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.project-detail ul {
  display: grid;
  gap: 10px;
  margin: 0;
  color: #384857;
}

.project-detail li {
  position: relative;
  padding-left: 18px;
}

.project-detail li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.result-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.result-strip span {
  padding: 0 10px;
  color: var(--navy);
  background: #e8f3ff;
}

.education-section {
  background: var(--surface);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
}

.education-card {
  position: relative;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(63, 159, 104, 0.08), rgba(47, 127, 195, 0.08)),
    #fff;
  box-shadow: 0 16px 42px rgba(18, 50, 71, 0.07);
}

.education-period {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 950;
}

.education-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.education-card p:not(.education-period) {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.education-actions {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.education-card span,
.education-card .education-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: #1f4d44;
  background: rgba(63, 159, 104, 0.13);
  border: 1px solid rgba(63, 159, 104, 0.2);
  font-size: 0.86rem;
  font-weight: 950;
}

.education-card .education-actions a {
  color: var(--navy);
  background: #fff;
  border-color: rgba(16, 38, 56, 0.14);
}

.contact-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(63, 159, 104, 0.28), transparent 30%),
    linear-gradient(135deg, #102638 0%, #17364b 62%, #112c34 100%);
  color: #fff;
}

.contact-section .eyebrow,
.contact-section .section-heading p {
  color: #b9d6e6;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.contact-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.contact-card img {
  width: 118px;
  height: 144px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 24%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
}

.contact-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-card dt {
  color: #a8c9dc;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 2px 0 0;
  font-size: 0.96rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contact-links {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.footer {
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #0d2432;
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero,
  .project-card,
  .about-grid,
  .skills-grid,
  .contact-layout,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .project-detail {
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .button,
  .hero-actions,
  .hero-actions a {
    width: 100%;
  }

  .profile-image {
    width: 104px;
    height: 104px;
  }

  .profile-summary,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .profile-summary img,
  .contact-card img {
    width: 112px;
    height: 136px;
  }
}
