/* =========================
   Global
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  color: #e5e7eb;
}

body {
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 메인 스크롤 컨테이너 (섹션 스냅) */
#page {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* =========================
   Top Navigation
   ========================= */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: linear-gradient(90deg,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.nav-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #15803d);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.nav-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-title-brand {
  color: #ff8800;
  font-weight: 700;
}

.nav-title-sub {
  background: linear-gradient(90deg, #a855f7, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.nav-link {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #9ca3af;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: rgba(30, 64, 175, 0.5);
  color: #e5e7eb;
}

.nav-link-active {
  background: rgba(248, 113, 22, 0.16);
  color: #f97316;
}

/* 모바일 햄버거 버튼 */
.nav-menu-button {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  padding: 6px 7px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-menu-button span {
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  display: block;
}

/* =========================
   공통 Section
   ========================= */
.section {
  position: relative;
  min-height: calc(100vh - 64px);
  /* 상단 네비 높이 보정 */
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 40px;
}

.section-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.section-heading {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #f9fafb;
}

.section-desc {
  font-size: 0.95rem;
  color: #9ca3af;
  max-width: 640px;
}

/* =========================
   Intro
   ========================= */
.section-intro .section-inner {
  max-width: 1120px;
}

/* 상태 뱃지 */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
  font-size: 0.8rem;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #16a34a);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.status-text {
  letter-spacing: 0.08em;
}

/* 레이아웃 (데스크톱) */
.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "main profile"
    "stack stack";
  column-gap: 64px;
  row-gap: 0;
  /* 소개 - Stack 간격 거의 붙이기 */
}

/* 슬라이드 공통 */
.intro-slide {
  position: relative;
}

.intro-slide-main {
  grid-area: main;
}

.intro-slide-stack {
  grid-area: stack;
}

.intro-slide-profile {
  grid-area: profile;
}

/* 이름 */
.intro-name-row {
  display: flex;
  align-items: baseline;
  /* 하단 라인 맞추기 */
  gap: 7px;
  /* 간격 절반으로 */
  margin-bottom: 12px;
}

.intro-name-kr {
  margin: 0;
  font-size: 2.6rem;
  letter-spacing: 0.08em;
}

.intro-name-en {
  font-size: 1.55rem;
  /* 2.6rem의 약 60% */
  font-weight: 600;
  letter-spacing: 0.16em;
  /* 자간 조금 줄임 */
  text-transform: uppercase;
  color: #d1d5db;
}

/* 태그 */
.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.intro-tags span {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #f9fafb;
  text-shadow: 0 0 4px rgba(15, 23, 42, 0.9);
  /* 가독성 */
}

/* 태그별 색 + 그라데이션 */
.tag-pentest {
  background: linear-gradient(135deg, #fb7185, #be123c);
  color: #fee2e2;
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.35);
}

.tag-web {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

.tag-auto {
  background: linear-gradient(135deg, #15803d, #22c55e);
  border-color: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.tag-se {
  background: linear-gradient(135deg, #b91c1c, #f97316);
  border-color: rgba(248, 113, 22, 0.95);
  box-shadow: 0 0 18px rgba(248, 113, 22, 0.35);
}

/* 소개 텍스트 */
.intro-lead,
.intro-current {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1d5db;
  max-width: 720px;
}

.intro-lead {
  margin-bottom: 16px;
}

.intro-current {
  margin-top: 16px;
}

/* 구분선 */
.intro-divider {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  margin: 10px 0 0;
}

/* 링크 Chip */
.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.95));
  color: #e5e7eb;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border 0.18s ease, background 0.18s ease, transform 0.08s ease;
}

.chip:hover {
  border-color: rgba(248, 113, 22, 0.9);
  background: radial-gradient(circle at top left,
      rgba(30, 64, 175, 0.6),
      rgba(15, 23, 42, 0.98));
  transform: translateY(-1px);
}

.chip-icon-circle {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #020617;
}

.chip-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tech Stack */
.stack {
  margin-top: -10px;
  /* 기본은 0, 데스크톱에서만 더 당김 */
}

.stack-title {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb;
  margin: 6px 0 12px;
}

.stack-group {
  margin-bottom: 16px;
}

.stack-subtitle {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.stack-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-badge {
  height: 22px;
  max-height: 22px;
}

/* 오른쪽 프로필 카드 */
.intro-profile {
  padding: 24px 24px 20px;
  border-radius: 28px;
  background: radial-gradient(circle at top right,
      rgba(30, 64, 175, 0.45),
      rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  overflow: hidden;

  align-self: center;
  /* 그리드 영역 중앙 정렬 */
  margin-top: 8px;
  margin-bottom: 8px;
  transform: translateY(40px);
  /* 섹션 기준 더 아래로 (40:60 → 50:50쯤) */
}

/* 로고 */
.profile-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.profile-avatar img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  border-radius: 24px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.7);
  padding: 8px;
}

/* 경험/학력 */
.profile-title {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin: 0 0 12px;
}

.profile-item {
  margin-bottom: 12px;
}

.profile-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9fafb;
}

.profile-item-desc {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.profile-item-desc-nowrap {
  white-space: nowrap;
}

.profile-block+.profile-block {
  margin-top: 18px;
}

/* 카드 내부 구분선 */
.profile-divider {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  margin: 18px 0;
}

/* 모바일 인디케이터 (Intro 3페이지) */
.intro-mobile-indicator {
  display: none;
  margin-top: 14px;
  justify-content: center;
  gap: 6px;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  transition: width 0.16s ease, background 0.16s ease;
}

.indicator-dot-active {
  width: 18px;
  background: rgba(248, 113, 22, 0.9);
}

/* =========================
   Projects
   ========================= */

.section-projects {
  align-items: flex-start;
  /* 가운데 → 위쪽 기준으로 */
  padding-top: 100px;
  /* 필요하면 숫자 줄이거나 늘려서 미세조정 */
}

.section-projects .section-inner {
  max-width: 1120px;
}

.projects-header {
  text-align: center;
  margin-bottom: 32px;
}

.projects-header .section-heading {
  margin-bottom: 8px;
}

.projects-header .section-desc {
  margin: 0 auto;
  max-width: 520px;
}

/* 캐러셀 전체 래퍼 */
.project-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 좌/우 버튼 */
.project-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.08s ease;
}

.project-carousel-btn:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
  transform: translateY(-1px);
}

/* 카드가 보이는 창 */
.project-window {
  overflow: hidden;
  flex: 1;
}

/* 트랙: 좌우로 이동 */
.project-track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease;
}

/* 카드 하나 */
.project-card {
  flex: 0 0 320px;
  max-width: 320px;
  border-radius: 24px;
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 썸네일 영역 */
.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at top, #0f172a, #020617);
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 썸네일이 없는 Placeholder */
.project-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #0f172a, #020617);
}

.project-placeholder-label {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
  color: #9ca3af;
}

/* 카드 내용 */
.project-body {
  padding: 14px 16px 8px;
  flex: 1;
}

.project-title {
  font-size: 1rem;
  color: #f9fafb;
  margin: 0 0 6px;
}

/* Projects: 제목 링크 기본/hover 스타일 */
.project-title a {
  color: inherit;          /* 주변 텍스트 색상 따라감 */
  text-decoration: none;   /* 기본 파란 밑줄 제거 */
}

.project-title a:visited {
  color: inherit;          /* 방문 후 보라색으로 바뀌지 않게 */
}

.project-title a:hover {
  color: #ff8800;          /* 포트폴리오에서 쓰는 주황 포인트 */
  text-decoration: none;   /* hover 시에도 밑줄 없이 색상만 변경 */
}

.project-title a:focus-visible {
  outline: 2px solid rgba(255, 136, 0, 0.7);
  outline-offset: 2px;     /* 키보드 포커스 접근성 확보용 */
}

.project-desc {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0 0 12px;
}

/* 태그 */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-tags li {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

/* 하단 영역 */
.project-footer {
  padding: 10px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #bfdbfe;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.8);
  white-space: nowrap;
}

.project-link:hover {
  background: rgba(37, 99, 235, 0.9);
  color: #eff6ff;
}

.project-link-icon {
  font-size: 0.9rem;
}

/* 비활성 링크 텍스트 */
.project-link-disabled {
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
}

/* 상태 뱃지 */
.project-status {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* 완료 */
.project-status-done {
  border-color: rgba(52, 211, 153, 0.9);
  color: #a7f3d0;
  background: rgba(6, 95, 70, 0.5);
}

/* 개발중 */
.project-status-developing {
  border-color: rgba(234, 179, 8, 0.9);   
  color: #facc15;                         
  background: rgba(113, 63, 18, 0.5);     
}

/* 예정 */
.project-status-planning {
  border-color: rgba(251, 113, 133, 0.9); 
  color: #fed7e2;                          
  background: rgba(131, 24, 67, 0.45);     
}

/* 반응형: 카드 너비 조정 */
@media (max-width: 1024px) {
  .project-card {
    flex: 0 0 280px;
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .project-carousel {
    gap: 8px;
    justify-content: center;
    /* 좌우 버튼 + 카드 중앙 배치 */
  }

  /* 카드가 화면 안에 여유 있게 들어오도록 */
  .project-window {
    overflow: visible;
    /* 오른쪽 잘리지 않게 */
  }

  .project-track {
    padding: 0 8px;
    /* 좌우 여백 조금 줄이기 */
  }

  .project-card {
    flex: 0 0 72vw;
    /* 화면의 약 70~75% 너비 → 1장만 보이게 + 버튼 공간 확보 */
    max-width: 72vw;
    min-height: 360px;
    /* 세로는 그대로 */
  }

  .project-thumb {
    aspect-ratio: 16 / 10;
    /* 썸네일은 현재 비율 유지 */
  }

  /* 모바일에서 버튼 조금 작게 */
  .project-carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }
}

/* =========================
   Learning 섹션
   ========================= */

.section-learning .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Learning 섹션 헤더 중앙 정렬 */
.section-learning .section-heading {
  text-align: center;
  margin-bottom: 8px;
}

.section-learning .section-desc {
  text-align: center;
  margin: 0 auto 24px;
  max-width: 640px;
}

/* 헤더 / 컨트롤 */

.learning-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 18px;
}

.learning-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 999px;
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.85);
}

.learning-filter-label {
  position: relative;
  font-size: 0.78rem;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(75, 85, 99, 0.9);
}

.learning-filter-label select,
.learning-controls select {
  background: transparent;
  border: none;
  padding: 2px 20px 2px 6px;
  /* 오른쪽은 화살표 공간 */
  font-size: 0.78rem;
  color: #e5e7eb;
  outline: none;
  appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.learning-filter-label::after {
  content: "▾";
  position: absolute;
  right: 8px;
  font-size: 0.7rem;
  color: rgba(156, 163, 175, 0.9);
  pointer-events: none;
}

/* 슬라이더 레이아웃 */
/* Learning 캐러셀 래퍼 – Projects와 비슷한 구조 */
.learning-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  /* 버튼과 카드 사이 간격 */
}

.learning-window {
  position: relative;
  overflow: hidden;
  flex: 1;
  padding: 0;
  /* 기존 좌우 32px 패딩 제거 → 버튼을 카드 쪽으로 붙이기 */
}

.learning-track {
  display: flex;
  gap: 20px;
  transition: transform 0.28s ease-out;
  will-change: transform;
  padding: 0 4px;
  /* 좌우 약간만 여백 */
}

/* 카드 공통 (Learning) */
.learning-card {
  /* 데스크톱: 한 화면에 카드 2개 */
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
  position: relative;
  border-radius: 20px;
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  min-height: 230px;
}

/* 썸네일 영역 */
.learning-thumb {
  flex: 0 0 140px;
  max-width: 140px;
  background: radial-gradient(circle at top, #0f172a, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.learning-thumb img {
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.2s ease-out;
}

/* 호버 시 살짝 확대 */
.learning-card:hover .learning-thumb img {
  transform: scale(1.35);
}

/* 썸네일 placeholder */
.learning-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #9ca3af;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 4px 10px;
}

/* 본문 영역 */
.learning-body {
  flex: 1;
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
}

/* 제목: 1번째 */
.learning-title {
  order: 1;
  margin: 4px 0 10px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #f9fafb;
}

.learning-title a {
  color: inherit;
  text-decoration: none;
}

.learning-title a:hover {
  text-decoration: underline;
}

/* 기간 + 태그 래퍼 */
.learning-meta {
  display: contents;
  /* 내부 요소만 플렉스 자식처럼 사용 */
}

/* 기간: 2번째 */
.learning-period {
  order: 2;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

/* 내용: 3번째 */
.learning-desc {
  order: 3;
  margin: 4px 0 4px;
  font-size: 0.85rem;
  color: #9ca3af;
  flex: 1;
}

/* 태그: 4번째 */
.learning-tags {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 내용과 태그 사이 구분선 */
.learning-tags::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0 6px;
  background: linear-gradient(to right,
      rgba(148, 163, 184, 0.1),
      rgba(148, 163, 184, 0.5),
      rgba(148, 163, 184, 0.1));
}

/* 기본 칩 형태 */
.learning-tags li {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  /* 클래스 없을 때 기본 칩 */
}

/* 태그별 색상 (Intro와 톤 맞춤, project, learning에서 동시 사용) */
.learning-tags li.tag-web,
.project-tags li.tag-web {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  border-color: rgba(59, 130, 246, 0.9);
  color: #f9fafb;
  text-shadow: 0 0 4px rgba(15, 23, 42, 0.9);
}

.learning-tags li.tag-auto,
.project-tags li.tag-auto {
  background: linear-gradient(135deg, #15803d, #22c55e);
  border-color: rgba(34, 197, 94, 0.9);
  color: #f9fafb;
  text-shadow: 0 0 4px rgba(15, 23, 42, 0.9);
}

.learning-tags li.tag-se,
.project-tags li.tag-se {
  background: linear-gradient(135deg, #b91c1c, #f97316);
  border-color: rgba(248, 113, 22, 0.95);
  color: #f9fafb;
  text-shadow: 0 0 4px rgba(15, 23, 42, 0.9);
}

.learning-tags li.tag-linux,
.project-tags li.tag-linux {
  background: linear-gradient(135deg, #facc15, #eab308);
  border-color: rgba(234, 179, 8, 0.95);
  color: #111827;
  text-shadow: none;
}

.learning-tags li.tag-pentest,
.project-tags li.tag-pentest {
  background: linear-gradient(135deg, #b91c1c, #f97373);
  border-color: rgba(248, 113, 113, 0.95);
  color: #fef2f2;
  text-shadow: 0 0 4px rgba(15, 23, 42, 0.9);
}

.learning-tags li.tag-network,
.project-tags li.tag-network {
  background: linear-gradient(135deg, #22c55e, #a3e635);
  border-color: rgba(132, 204, 22, 0.95);
  color: #052e16;
  text-shadow: none;
}

.learning-tags li.tag-etc,
.project-tags li.tag-etc {
  background: linear-gradient(135deg, #4b5563, #9ca3af);
  border-color: rgba(156, 163, 175, 0.95);
  color: #f9fafb;
  text-shadow: 0 0 4px rgba(15, 23, 42, 0.6);
}

/* 링크: 5번째 */
.learning-link {
  order: 5;
  margin-top: 8px;
  margin-bottom: 4px;
  margin-left: auto;
  /* footer 내에서 우측 끝으로 정렬 */
  font-size: 0.8rem;
  color: #bfdbfe;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.learning-link:hover {
  color: #eff6ff;
}

.learning-link-disabled {
  color: #6b7280;
  cursor: default;
}

/* 좌우 버튼 */

.learning-carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s ease-out, transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
}

.learning-carousel-btn:hover {
  background: rgba(30, 64, 175, 0.95);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7);
  transform: translateY(-1px);
}

/* footer를 항상 카드의 맨 아래로 */
.learning-footer {
  order: 5;
  /* 제목/기간/내용/태그 다음에 오도록 */
  display: flex;
  align-items: center;
  margin-top: auto;
  /* 위쪽 공간을 다 먹고 카드 맨 아래로 */
  padding-top: 8px;
  /* 태그와 약간만 간격 */
  border-top: none;
  /* 추가 수평선 제거 (위쪽 태그 구분선만 유지) */
}

.learning-status {
  position: absolute;
  /* 카드 전체 기준으로 배치 */
  top: 10px;
  left: 10px;
  z-index: 2;

  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.85));
  color: #e5e7eb;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6);
}

/* 수료 / 완료 (초록) */
.learning-status-complete {
  border-color: rgba(34, 197, 94, 0.6);
  background: linear-gradient(135deg,
      rgba(22, 163, 74, 0.95),
      rgba(34, 197, 94, 0.8));
  color: #ecfdf5;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

/* 학습 중 (노랑) – 필요할 때 사용할 예정 */
.learning-status-progress {
  border-color: rgba(250, 204, 21, 0.7);
  background: linear-gradient(135deg,
      rgba(234, 179, 8, 0.95),
      rgba(250, 204, 21, 0.8));
  color: #fefce8;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
}

/* 준비 중 (회색) */
.learning-status-planned {
  border-color: rgba(148, 163, 184, 0.7);
  background: linear-gradient(135deg,
      rgba(55, 65, 81, 0.96),
      rgba(30, 41, 59, 0.9));
  color: #e5e7eb;
  box-shadow: 0 0 14px rgba(15, 23, 42, 0.65);
}

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

/* 반응형 */

@media (max-width: 1024px) {
  .learning-window {
    padding: 8px 24px;
  }

  .learning-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .learning-controls {
    justify-content: flex-start;
  }

  .learning-window {
    padding: 8px 24px;
  }

  .learning-thumb {
    flex: 0 0 110px;
    max-width: 110px;
  }

  .learning-carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
}

/* =============================
   Achievements Section
   ============================= */
.section-achievements {
  padding-top: 120px;
  padding-bottom: 120px;
}

.achievements-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-achievements .section-desc {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
  /* 위 0, 아래 살짝 여백 */
}

.achievements-wrapper {
  position: relative;
  margin-top: 32px;
  padding: 24px 32px;
}

.achievements-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  max-width: calc(8 * 96px + 7 * 18px);
  margin: 0 auto;
}

/* 개별 업적 카드 */
.achievement-card {
  position: relative;
  width: 96px;
  height: 96px;
}

.achievement-badge {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 20%,
      rgba(255, 255, 255, 0.08),
      rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: default;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.85);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.achievement-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
}

/* 잠금 상태 기본 톤 */
.achievement-card.is-locked .achievement-badge {
  background: radial-gradient(circle at top, #111827, #020617);
  border-color: rgba(55, 65, 81, 0.9);
  filter: grayscale(1) opacity(0.7);
}

/* 호버 시 살짝 떠오르는 느낌 */
.achievement-card:hover .achievement-badge {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.95);
  filter: brightness(1.1);
}

/* 설명 툴팁 */
.achievement-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 260px;
  padding: 12px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at top left,
      rgba(37, 99, 235, 1),
      rgba(15, 23, 42, 1));
  border: 1px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: #e5e7eb;
  z-index: 20;
}

.achievement-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.98) transparent transparent transparent;
}

.achievement-card:hover .achievement-tooltip {
  opacity: 1;
  transform: translate(-50%, -6px);
}

/* 툴팁 안 텍스트 */
.achievement-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.achievement-meta {
  font-size: 0.75rem;
  color: #a5b4fc;
  margin-bottom: 6px;
}

.achievement-desc {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.45;
}

/* 반응형: 폭 줄어들면 열 수 줄이기 */
@media (max-width: 1200px) {
  .achievements-grid {
    /* 데스크톱보다 폭이 줄어들면 최대 6개 정도까지만 한 줄에 배치 */
    max-width: calc(6 * 96px + 5 * 18px);
  }

  .achievements-wrapper::before {
    content: "";
    position: absolute;
    inset: 8px 10% 8px 10%;
    /* 위/아래/좌우 여백 적당히 */
    border-radius: 24px;
    background:
      radial-gradient(circle at top,
        rgba(15, 23, 42, 0.9),
        rgba(15, 23, 42, 1)),
      repeating-linear-gradient(to right,
        rgba(156, 163, 175, 0.3) 0px,
        rgba(156, 163, 175, 0.3) 2px,
        transparent 2px,
        transparent 114px
        /* 96px 카드 + 18px gap 기준 */
      );
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
  }
}

@media (max-width: 900px) {
  .achievements-grid {
    max-width: calc(4 * 96px + 3 * 18px);
  }
}

@media (max-width: 600px) {
  .achievements-grid {
    max-width: calc(3 * 96px + 2 * 18px);
  }
}

/* =========================
   Wargame
   ========================= */

.section-wargame {
  align-items: flex-start;
  padding-top: 40px;
}

.section-wargame .section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.wargame-header {
  text-align: center;
  margin-bottom: 28px;
}

.wargame-header .section-heading {
  margin-bottom: 8px;
}

.wargame-header .section-desc {
  margin: 0 auto;
  max-width: 520px;
}

/* Dreamhack 카드 2장 세로 배치 */
.wargame-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.wargame-stat-img {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  background: #020617;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.8);
}

/* 아래 프로필 이동 버튼 재사용 */
.wargame-more-wrapper {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.wargame-more-button {
  /* 필요하면 Wargame 전용 여백/크기만 살짝 조정 */
  padding-inline: 30px;
}

/* Wargame 헤더 안의 크레딧 링크 스타일 */
.wargame-header .section-desc a {
  color: #9ca3af;
  /* 전체 톤과 비슷한 회색 계열 */
  text-decoration: none;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.6);
  /* 실선 대신 점선 밑줄 */
  padding-bottom: 1px;
  font-size: 0.85rem;
}

.wargame-header .section-desc a:hover {
  color: #e5e7eb;
  /* hover 시 약간 더 밝게 */
  border-bottom-color: rgba(248, 113, 22, 0.8);
  /* 주황 계열로 포인트 */
}

/* 워게임 프라이머리 버튼 */
.wargame-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #f97316, #fbbf24);
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(248, 113, 22, 0.35);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.wargame-more-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(248, 113, 22, 0.45);
  filter: brightness(1.02);
}

.wargame-more-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(248, 113, 22, 0.3);
}

/* 모바일에서 여백만 약간 조정 */
@media (max-width: 767px) {
  .section-wargame {
    padding-top: 48px;
  }

  .wargame-stat-img {
    max-width: 100%;
  }

  .wargame-more-wrapper {
    margin-top: 24px;
  }
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 20px 24px 28px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.08), transparent 60%),
    rgba(8, 15, 35, 0.98);
  scroll-snap-align: start;
  min-height: 20vh;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr auto 1.4fr;
  align-items: center;
  gap: 24px;
}

/* 좌측 영역 */

.footer-left {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.85);
}

.footer-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-title-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: #ff8800;
}

.footer-title-sub {
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, #6366f1, #22c1c3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-copy {
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
  color: rgba(148, 163, 184, 0.95);
}

.footer-copy-owner {
  font-weight: 600;
  color: #e5e7eb;
}

/* 중앙 로고 */

.footer-center {
  display: flex;
  justify-content: center;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 30% 0%, rgba(248, 250, 252, 0.25), transparent 55%),
    #020617;
  padding: 6px;
  object-fit: contain;
}

/* 우측 링크 */

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 기존 chip 스타일 살짝 축소 */

.chip-footer {
  font-size: 0.8rem;
  padding: 6px 10px;
  gap: 6px;
}

.chip-icon-footer {
  width: 18px;
  height: 18px;
}

/* 반응형 */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .footer-left {
    order: 1;
  }

  .footer-center {
    order: 0;
  }

  .footer-right {
    order: 2;
    justify-content: center;
  }

  .footer-copy {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 18px 16px 22px;
  }

  .footer-links {
    justify-content: center;
  }
}

/* =========================
   Breakpoints
   ========================= */
@media (min-width: 768px) {
  .section {
    padding-left: 40px;
    padding-right: 40px;
  }

  /* 데스크톱에서 소개-Stack 간격 더 줄이기 */
  .stack {
    margin-top: -20px;
    /* 소개 영역 끝과 더 가까이 (기존 간격의 ~30% 수준) */
  }
}

@media (max-width: 1024px) {
  .intro-layout {
    column-gap: 40px;
  }
}

/* 모바일: Intro 슬라이드 + 모바일 네비 */
@media (max-width: 767px) {
  .top-nav {
    padding-inline: 16px;
  }

  .nav-links {
    position: absolute;
    right: 12px;
    top: 48px;
    flex-direction: column;
    padding: 8px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    display: none;
  }

  .nav-links.nav-links-open {
    display: flex;
  }

  .nav-menu-button {
    display: flex;
  }

  .section {
    padding: 64px 20px 32px;
  }

  .section-inner {
    max-width: 100%;
  }

  .intro-layout {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    /*약간 여유로운 페이지 고정으로 수정*/
  }

  .intro-slide {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 4px;
  }

  .intro-slide-profile {
    padding: 20px 20px 16px;
    transform: none;
    /* 모바일에서는 평평하게 */
    margin-top: 0;
    margin-bottom: 0;
    align-self: stretch;
  }

  .intro-mobile-indicator {
    display: flex;
  }

  .intro-name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .intro-name-kr {
    font-size: 2.2rem;
  }

  .intro-lead,
  .intro-current {
    max-width: 100%;
  }

  .stack-badge {
    height: 20px;
    max-height: 20px;
  }

  .profile-item-desc-nowrap {
    white-space: normal;
    /* 모바일에선 줄바꿈 허용 */
  }
}