/* ==========================================================================
   Lee Jiho (greenmilk) - 3-Page Scroll Layout (gmilk.kr)
   Quiet, high-legibility, scroll-snapping personal engineering profile
   ========================================================================== */

:root {
  --bg-canvas: #0f1115;
  --bg-surface: #15181e;
  --bg-surface-elevated: #1a1e26;
  --border-subtle: #202530;
  --border-active: #2f3747;

  --text-main: #eaedf1;
  --text-muted: #959fae;
  --text-dim: #606875;

  --accent: #48bb78;
  --accent-soft: rgba(72, 187, 120, 0.12);
  --accent-hover: #5cd28d;

  --font-sans: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --content-width: 960px;
}

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

html {
  font-size: 15px;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  height: 100%;
  overflow-y: scroll;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  background: var(--bg-canvas);
  margin: 0;
  padding: 0;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
}

/* ==========================================================================
   Fixed Floating Side Navigation (Pagination Pips)
   ========================================================================== */
.side-nav {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.nav-pip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-pip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-active);
  transition: all 0.2s;
}

.nav-pip.active .nav-pip-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.nav-pip.active {
  color: var(--text-main);
}

/* ==========================================================================
   Full Page Scroll Snap Sections
   ========================================================================== */
.scroll-page {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

.page-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ==========================================================================
   Page 1: Hero (이지호 왼쪽 아래 배치, 옆 닉네임, 아래 영어이름, 옆 소개문)
   ========================================================================== */
.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 5rem 4rem 6rem;
  box-sizing: border-box;
}

.hero-bottom-layout {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-top-line {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.hero-name-ko {
  font-size: 4.25rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1;
  margin: 0;
}

.hero-handle-badge {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero-sub-line {
  display: flex;
  align-items: baseline;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.hero-name-en {
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
}

.hero-divider {
  color: var(--border-active);
  font-size: 1.15rem;
  user-select: none;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Page 2: 관심사 (200x200 한 줄) + 사용 가능한 기술 (90x90 한 줄 + 툴팁)
   ========================================================================== */
.page2-block {
  width: 100%;
}

.section-headline {
  margin-bottom: 1.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* 관심사 200x200 정사각형 한 줄 */
.interests-row-200 {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-start;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-active) transparent;
}

.interest-card-200 {
  width: 200px;
  height: 200px;
  min-width: 200px;
  min-height: 200px;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.interest-200-title {
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.35;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

/* 사용 가능한 기술 90x90 정사각형 한 줄 */
.tech-row-90 {
  display: flex;
  gap: 1.15rem;
  justify-content: flex-start;
  align-items: center;
  overflow: visible;
  padding: 0.5rem 0.25rem 2.5rem;
}

.tech-box-90 {
  width: 90px;
  height: 90px;
  min-width: 90px;
  min-height: 90px;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 1;
}

.tech-box-90:hover, .tech-box-90:focus-visible {
  z-index: 50;
}

.tech-icon-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.tech-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #181f2a;
  border: 1px solid var(--border-active);
  color: #f0f4f8;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  z-index: 100;
}

.tech-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #181f2a transparent;
}

.tech-box-90:hover .tech-tooltip,
.tech-box-90:focus-visible .tech-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Page 3: Active Projects & Quick Links
   ========================================================================== */
.projects-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card-top {
  margin-bottom: 1.25rem;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.project-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Links & Network Strip */
.network-strip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.network-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.network-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.network-link strong {
  color: var(--text-main);
}

/* Page 3 Footer */
.page3-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.825rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .page-hero {
    padding: 4rem 1.5rem 3.5rem;
  }
  .hero-name-ko {
    font-size: 3rem;
  }
  .hero-handle-badge {
    font-size: 1.1rem;
  }
  .hero-sub-line {
    flex-direction: column;
    gap: 0.35rem;
  }
  .hero-divider {
    display: none;
  }
  .side-nav {
    display: none;
  }
  .scroll-page {
    padding: 3rem 1.25rem;
    height: auto;
    min-height: 100vh;
  }
}
