@charset "UTF-8";

/* =====================================================
   Resume — YooBi LEE
   [Table of Contents]
   01. Base & Layout
   02. Dynamic Island (Navigation)
   03. Header & Contact
   04. Common Sections
   05. Skills
   06. Education & Links
   07. Military
   08. Awards
   09. Experience & Projects
   10. Theme Toggle Button
   11. Print Styles
===================================================== */

/* =====================================================
   01. Base & Layout
===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.resume-root {
  min-height: 100vh;
  background: #f9fafb;
  color: #191f28;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode .resume-root {
  background: #0a0f1a;
  color: #f0f6ff;
}

.resume-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 32px 80px;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1.85fr;
  gap: 0 56px;
  margin-top: 48px;
}

/* =====================================================
   02. Dynamic Island (Navigation)
===================================================== */
.resume-island {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  padding: 6px 8px;
  transition: padding 0.35s cubic-bezier(0.22,1,0.36,1), gap 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}


body.dark-mode .resume-island {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── YB 로고 ── */
.resume-island-logo {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  padding: 0 4px;
  flex-shrink: 0;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  overflow: visible;
  border: none;
  cursor: pointer;
  background: linear-gradient(120deg, #191f28 40%, rgba(255, 255, 255, 0.7) 50%, #191f28 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.6s cubic-bezier(0.23, 1, 0.32, 1), background-image 0.3s ease, all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-island-logo:hover {
  background-position: 0% 0;
  background-image: linear-gradient(120deg, #3182f6 40%, rgba(255, 255, 255, 0.9) 50%, #3182f6 60%);
}

body.dark-mode .resume-island-logo {
  background-image: linear-gradient(120deg, #ffffff 40%, rgba(255, 255, 255, 0.6) 50%, #ffffff 60%);
}

body.dark-mode .resume-island-logo:hover {
  background-image: linear-gradient(120deg, #3182f6 40%, rgba(255, 255, 255, 0.8) 50%, #3182f6 60%);
}

/* ── 구분선 ── */
.resume-island-divider {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .resume-island-divider {
  background: rgba(255, 255, 255, 0.1);
}

/* ── 버튼 공통 및 텍스트 ── */
.resume-island-back,
.resume-island-print {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ── 뒤로가기 버튼 ── */
.resume-island-back {
  background: #f1f5f9;
  color: #4e5968;
  text-decoration: none;
  padding: 6px 14px;
}

.resume-island-back:hover {
  background: #3182f6;
  color: #fff;
}

body.dark-mode .resume-island-back {
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
}

body.dark-mode .resume-island-back:hover {
  background: #3182f6;
  color: #fff;
  box-shadow: 0 4px 12px rgba(49, 130, 246, 0.3);
}

body.dark-mode .resume-island-back:hover .back-arrow {
  color: #fff;
  stroke: #fff;
}

/* ── 프린트 버튼 ── */
.resume-island-print {
  background: #3182f6;
  color: #fff;
  border: none;
  padding: 6px 14px;
}

.resume-island-print:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 130, 246, 0.3);
}

body.dark-mode .resume-island-print:hover svg path {
  stroke: #ffffff;
}

/* ── 스크롤 상태 (알약 축소) ── */
.resume-island {
  transition: padding 0.35s cubic-bezier(0.22,1,0.36,1),
              gap 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s ease;
}

.resume-island.scrolled {
  padding: 5px !important;
  gap: 6px;
}

/* 로고·구분선 — visibility로 공간까지 제거 */
.resume-island-logo {
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.resume-island-divider {
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
  width: 1px;
  height: 14px;
}

.resume-island.scrolled .resume-island-logo,
.resume-island.scrolled .resume-island-divider {
  display: none;
}

/* 텍스트 — 사르르 사라짐 */
.back-text,
.print-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100px;
  opacity: 1;
  vertical-align: middle;
  transition: opacity 0.2s ease,
              max-width 0.3s cubic-bezier(0.22,1,0.36,1);
}

.resume-island.scrolled .back-text,
.resume-island.scrolled .print-text {
  opacity: 0;
  max-width: 0;
}

/* 버튼 — 원형으로 */
.resume-island-back,
.resume-island-print {
  transition: padding 0.3s cubic-bezier(0.22,1,0.36,1),
              border-radius 0.3s ease,
              background 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease;
}

.resume-island.scrolled .resume-island-back,
.resume-island.scrolled .resume-island-print {
  padding: 9px !important;
  border-radius: 50%;
  gap: 0;
}


/* =====================================================
   03. Header & Contact
===================================================== */
.resume-header {
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

body.dark-mode .resume-header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.resume-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3182f6;
  margin-bottom: 10px;
  display: block;
}

body.dark-mode .resume-eyebrow {
  color: #60a5fa;
}

.resume-name {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #191f28;
  margin-bottom: 8px;
}

body.dark-mode .resume-name {
  color: #f0f6ff;
}

.resume-name-en {
  font-size: 0.55em;
  font-weight: 500;
  color: #8b95a1;
  letter-spacing: 0.01em;
}

.resume-tagline {
  font-size: 15px;
  color: #4e5968;
  line-height: 1.6;
  margin-top: 10px;
  max-width: 420px;
}

body.dark-mode .resume-tagline {
  color: #94a3b8;
}

.resume-header-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}

.resume-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4e5968;
  text-decoration: none;
  transition: color 0.2s;
}

body.dark-mode .resume-contact-item {
  color: #94a3b8;
}

.resume-contact-item:hover {
  color: #3182f6;
}

.resume-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(49, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.dark-mode .resume-contact-icon {
  background: rgba(96, 165, 250, 0.1);
}


/* =====================================================
   04. Common Sections
===================================================== */
.resume-section {
  margin-bottom: 40px; /* 공통 간격 */
}

.resume-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

.resume-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3182f6;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(49, 130, 246, 0.15);
}

body.dark-mode .resume-section-label {
  color: #60a5fa;
  border-bottom-color: rgba(96, 165, 250, 0.15);
}

.resume-full-width {
  grid-column: 1 / -1;
  padding-bottom: 40px;
  margin-bottom: 0;
}

body.dark-mode .resume-full-width {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.resume-about-text {
  font-size: 14px;
  color: #4e5968;
  line-height: 1.75;
}

body.dark-mode .resume-about-text {
  color: #94a3b8;
}

.resume-about-text strong {
  color: #191f28;
  font-weight: 700;
}

body.dark-mode .resume-about-text strong {
  color: #f0f6ff;
}


/* =====================================================
   05. Skills
===================================================== */
.resume-skill-group {
  margin-bottom: 18px;
}

.resume-skill-group-title {
  font-size: 11px;
  font-weight: 700;
  color: #8b95a1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

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

.resume-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(49, 130, 246, 0.07);
  color: #3182f6;
  letter-spacing: -0.01em;
}

body.dark-mode .resume-tag {
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
}

.resume-tag-dim {
  background: rgba(0, 0, 0, 0.04);
  color: #8b95a1;
}

body.dark-mode .resume-tag-dim {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
}


/* =====================================================
   06. Education & Links
===================================================== */
.resume-edu-item {
  margin-bottom: 16px;
}

.resume-edu-item:last-child {
  margin-bottom: 0;
}

.resume-edu-school {
  font-size: 14px;
  font-weight: 700;
  color: #191f28;
  margin-bottom: 2px;
}

body.dark-mode .resume-edu-school {
  color: #f0f6ff;
}

.resume-edu-dept {
  font-size: 13px;
  color: #4e5968;
  margin-bottom: 2px;
}

body.dark-mode .resume-edu-dept {
  color: #94a3b8;
}

.resume-edu-date {
  font-size: 12px;
  color: #8b95a1;
}

.resume-link-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-ext-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #3182f6;
  text-decoration: none;
  transition: opacity 0.2s;
}

.resume-ext-link:hover {
  opacity: 0.7;
}

/* =====================================================
   07. Military
===================================================== */
.resume-military-item {
  margin-bottom: 16px;
}

.resume-military-item:last-child {
  margin-bottom: 0;
}

.resume-military-complete {
  font-size: 14px;
  font-weight: 700;
  color: #191f28;
  margin-bottom: 2px;
}

body.dark-mode .resume-military-complete {
  color: #f0f6ff;
}

.resume-military-date {
  font-size: 12px;
  color: #8b95a1;
}

/* =====================================================
   08. Awards
===================================================== */
.resume-award-item {
  margin-bottom: 16px; /* Military 섹션 아이템 간격과 통일 */
}

.resume-award-item:last-child {
  margin-bottom: 0;
}

.resume-award-name {
  font-size: 14px;
  font-weight: 700;
  color: #191f28;
  margin-bottom: 2px;
  line-height: 1.4;
}

.resume-award-org {
  font-size: 12px;
  color: #4e5968;
  margin-bottom: 2px;
}

.resume-award-date {
  font-size: 12px;
  color: #8b95a1;
}

/* 다크모드 보정 */
body.dark-mode .resume-award-name { color: #f8f9fa; }
body.dark-mode .resume-award-org { color: #b0b8c1; }
body.dark-mode .resume-award-date { color: #6b7684; }

/* =====================================================
   09. Experience & Projects
===================================================== */
/* ── 경력 타임라인 ── */
.resume-exp-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.resume-exp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.dark-mode .resume-exp-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.resume-exp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 3px;
}

.resume-exp-role {
  font-size: 15px;
  font-weight: 800;
  color: #191f28;
  letter-spacing: -0.02em;
}

body.dark-mode .resume-exp-role {
  color: #f0f6ff;
}

.resume-exp-date {
  font-size: 12px;
  font-weight: 600;
  color: #8b95a1;
  white-space: nowrap;
  padding-top: 2px;
}

.resume-exp-company {
  font-size: 13px;
  color: #3182f6;
  font-weight: 600;
  margin-bottom: 12px;
}

body.dark-mode .resume-exp-company {
  color: #60a5fa;
}

.resume-exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resume-exp-list li {
  font-size: 13.5px;
  color: #4e5968;
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}

body.dark-mode .resume-exp-list li {
  color: #94a3b8;
}

.resume-exp-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #3182f6;
  font-size: 11px;
  top: 3px;
}

/* ── 프로젝트 ── */
.resume-proj-item {
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.resume-proj-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.dark-mode .resume-proj-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.resume-proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.resume-proj-title {
  font-size: 15px;
  font-weight: 800;
  color: #191f28;
  letter-spacing: -0.02em;
}

body.dark-mode .resume-proj-title {
  color: #f0f6ff;
}

.resume-proj-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(49, 130, 246, 0.08);
  color: #3182f6;
  white-space: nowrap;
  flex-shrink: 0;
}

.resume-proj-status.wip {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

body.dark-mode .resume-proj-status.wip {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
}

.resume-proj-desc {
  font-size: 13.5px;
  color: #4e5968;
  line-height: 1.6;
  margin-bottom: 10px;
}

body.dark-mode .resume-proj-desc {
  color: #94a3b8;
}


/* =====================================================
   10. Theme Toggle Button
===================================================== */
.resume-theme-toggle {
  position: fixed;
  top: 24px;
  right: 36px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.dark-mode .resume-theme-toggle {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.resume-theme-toggle:hover {
  border-color: rgba(49, 130, 246, 0.3);
  box-shadow: 0 4px 16px rgba(49, 130, 246, 0.12);
  transform: translateY(-1px);
}

body.dark-mode .resume-theme-toggle:hover {
  border-color: rgba(96, 165, 250, 0.3);
}

.resume-toggle-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(49, 130, 246, 0.08);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

body.dark-mode .resume-toggle-icon {
  background: rgba(96, 165, 250, 0.12);
}

.resume-toggle-moon { display: block; }
.resume-toggle-sun  { display: none;  }
body.dark-mode .resume-toggle-moon { display: none;  }
body.dark-mode .resume-toggle-sun  { display: block; }

.resume-toggle-label {
  font-size: 12px;
  font-weight: 700;
  color: #4e5968;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

body.dark-mode .resume-toggle-label {
  color: #94a3b8;
}


/* =====================================================
   11. Print Styles
===================================================== */
.resume-print-hint {
  text-align: center;
  padding: 40px 0 0;
  font-size: 13px;
  color: #8b95a1;
}

@media print {
  .resume-island,
  .resume-print-hint,
  .resume-theme-toggle {
    display: none !important;
  }

  .resume-root {
    background: #fff !important;
  }

  body.dark-mode .resume-root {
    background: #fff !important;
    color: #191f28 !important;
  }

  .resume-body {
    padding: 40px 24px !important;
  }

  .resume-name,
  .resume-exp-role,
  .resume-proj-title,
  .resume-edu-school {
    color: #191f28 !important;
  }

  .resume-about-text,
  .resume-exp-list li,
  .resume-proj-desc,
  .resume-tagline {
    color: #4e5968 !important;
  }
}

/* --- Custom Scrollbar --- */

/* 스크롤바 전체 너비를 설정합니다 */
::-webkit-scrollbar {
  width: 10px; /* 세로 스크롤바의 가로 폭을 10px로 지정합니다 */
}

/* 스크롤바가 지나가는 배경(트랙) 설정입니다 */
::-webkit-scrollbar-track {
  background: #f1f1f1; /* 밝은 회색으로 배경을 깔아 깨끗한 느낌을 줍니다 */
}

/* 실제 마우스로 잡고 움직이는 막대(핸들) 설정입니다 */
::-webkit-scrollbar-thumb {
  background: #ccd2d9; /* 평소에는 눈에 띄지 않는 차분한 회색을 사용합니다 */
  border-radius: 10px; /* 막대 끝을 둥글게 깎아 부드러운 인상을 줍니다 */
  border: 2px solid #f1f1f1; /* 트랙과 같은 색의 테두리를 넣어 막대가 떠 있는 듯한 효과를 줍니다 */
}

/* 막대에 마우스를 올렸을 때의 색상 변화입니다 */
::-webkit-scrollbar-thumb:hover {
  background: #adb5bd; /* 마우스를 올리면 조금 더 진한 회색으로 변해 상호작용을 강조합니다 */
}

/* 다크모드일 때의 스크롤바 스타일 대응입니다 */
body.dark-mode::-webkit-scrollbar-track {
  background: #0a0f1a; /* 다크모드 배경색과 일치시켜 일체감을 줍니다 */
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #333d4b; /* 어두운 배경에 맞춰 막대 색상을 진한 회색으로 바꿉니다 */
  border: 2px solid #0a0f1a; /* 배경과 같은 테두리를 넣어 깔끔하게 마감합니다 */
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #4e5968; /* 다크모드에서 마우스를 올리면 조금 더 밝은 색으로 변하게 합니다 */
}