@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", Arial, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #111827;
  background: #f8fafc;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: #4b5563;
}

.nav-links a:hover {
  color: #111827;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  padding: 96px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 12px 0 0;
  font-size: 28px;
  color: #374151;
  font-weight: 600;
}

.hero-desc {
  max-width: 820px;
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.85;
  color: #374151;
  font-weight: 500;
  word-break: keep-all;
}

.hero-desc.sub {
  margin-top: 10px;
  font-size: 18px;
  color: #374151;
  font-weight: 500;
}

.hero-desc strong {
  color: #111827;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: #ffffff;
  transition: 0.15s ease;
}

button.btn {
  font-family: inherit;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #111827;
}

.btn.primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.section {
  padding: 36px 0;
}

.section-title {
  margin-bottom: 20px;
}

.section-title p {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.education-grid {
  display: grid;
  gap: 16px;
}

.muted {
  color: #6b7280;
  margin-top: 8px;
}

.card,
.project-card,
.contact-card,
.timeline-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.subsection-title {
  margin: 22px 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.card {
  padding: 16px 24px;
}

.card p {
  margin: 5px 0;
  color: #374151;
  font-weight: 400;
}

.card p + p {
  margin-top: 7px;
}

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

.skill-card {
  min-height: 125px;
}

.skill-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.skill-heading h3 {
  margin: 0;
}

.skill-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.skill-logo {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.skill-card h3 {
  margin-bottom: 14px;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badges span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
}

.highlight {
  margin-top: 10px;
  font-weight: 800;
  color: #111827;
}

.card .highlight {
  margin-top: 8px;
  font-weight: 800;
  color: #111827;
}

.education-list {
  display: grid;
  gap: 16px;
}

.education-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.education-content {
  flex: 1;
  min-width: 0;
}

.education-content h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.education-body {
  margin-top: 18px;
}

.education-body p {
  margin: 6px 0;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.card-top h3 {
  margin: 0 0 8px;
}

.logo-deepdive {
  max-width: 72px;
  max-height: 72px;
  border-radius: 14px;
}

.logo-wide {
  max-width: 78px;
  max-height: 44px;
}

.org-logo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.org-logo {
  max-width: 68px;
  max-height: 68px;
  object-fit: contain;
  opacity: 0.95;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.project-tech-badges span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.project-image {
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: 0.15s ease;
}

.project-image:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.project-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-image span {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.86);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  width: min(1500px, 96vw);
  max-height: 94vh;
  margin: 0;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  background: #f8fafc;
}

.lightbox-content figcaption {
  padding: 12px 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid #e5e7eb;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.main-image img {
  height: 240px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.metric-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.metric-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 4px;
}

.metric-card span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.metric-note {
  margin: -10px 0 20px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
}

.project-card {
  margin-bottom: 18px;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.project-label {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.project-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 15px;
}

.period {
  color: #6b7280;
  font-size: 14px;
  white-space: nowrap;
}

.project-desc {
  margin: 0 0 20px;
  color: #374151;
}

.project-desc.sub {
  margin-top: -18px;
  color: #374151;
}

.project-detail {
  display: grid;
  gap: 18px;
}

.project-detail h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.project-detail p {
  margin: 0;
  color: #374151;
}

.project-detail ul,
.timeline-item ul {
  margin: 0;
  padding-left: 20px;
  color: #374151;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.project-links a {
  color: #2563eb;
  font-weight: 700;
  font-size: 14px;
}

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

.ctf-card {
  padding: 24px;
}

.ctf-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.ctf-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.ctf-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.ctf-desc {
  margin: 0 0 20px;
  color: #374151;
}

.ctf-desc.sub {
  margin-top: -5px;
  color: #374151;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.contact-card a {
  color: #2563eb;
  font-weight: 700;
}

.footer {
  border-top: 1px solid #e5e7eb;
  padding: 28px 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.project-detail-hero {
  padding: 72px 0 36px;
}

.project-detail-hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.project-detail-hero h2 {
  margin: 12px 0 0;
  font-size: 24px;
  color: #374151;
  font-weight: 600;
}

.detail-tags {
  margin-top: 24px;
}

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

.detail-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #374151;
}

.detail-list li {
  margin-bottom: 6px;
}

.trouble-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  margin-bottom: 18px;
}

.trouble-card h3 {
  margin: 0 0 18px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.trouble-block {
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
}

.trouble-block h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #2563eb;
}

.trouble-block p {
  margin: 0;
  color: #374151;
}

.detail-note {
  margin-top: 14px;
}

.project-button.secondary {
  background: #ffffff;
  color: #111827 !important;
  border: 1px solid #d1d5db;
}

@media (max-width: 768px) {
  .nav {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding: 64px 0 42px;
  }

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

  .hero h2 {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
  }

  .period {
    white-space: normal;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .card-top {
    gap: 14px;
  }

  .org-logo {
    width: 52px;
    height: 52px;
  }

  .education-card {
    gap: 16px;
  }

  .education-body {
    margin-top: 16px;
  }

  .org-logo-wrap {
    width: 64px;
    height: 64px;
  }

  .org-logo {
    max-width: 48px;
    max-height: 48px;
  }
  
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-image img {
    height: 220px;
  }

  .lightbox {
    padding: 16px;
  }

  .ctf-header {
    flex-direction: column;
  }

  .project-detail-hero {
    padding: 60px 0 36px;
  }

  .project-detail-hero h1 {
    font-size: 30px;
  }

  .project-detail-hero h2 {
    font-size: 20px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}