/* ============================
   0. 기본 초기화 & 스크롤 스냅 설정
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;

  /* ▼▼▼ [수정] mandatory -> proximity 로 변경 (덜 빡빡하게 스냅) ▼▼▼ */
  scroll-snap-type: y proximity;

  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background: #ffffff;
  color: #111827;
}

/* 섹션 공통 설정 */
section {
  width: 100%;
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
}

/* ============================
   1. 네비게이션
   ============================ */
.side-nav {
  position: fixed;
  bottom: 24px; /* 하단 여백 유지 */
  right: 60px; /* 오른쪽에서 더 멀리 떨어뜨려 자연스러운 공간 확보 */
  left: auto;
  top: auto;
  transform: none;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 메뉴 위, 토글 아래 배치 */
  gap: 16px;
  padding: 16px 12px; /* 약간 여유를 줘서 배치 안정감 향상 */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 36px 0 rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.nav-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  font-weight: 600;
}

.nav-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 20px;
}


.side-nav.expanded .nav-menu {
  display: flex;
  pointer-events: auto; /* 개별 아이템은 hover 활성화 */
}

.side-nav.expanded {
  padding: 18px 10px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
  transform: scale(1.1);
}

.nav-btn .tooltip {
  position: absolute;
  right: 60px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  white-space: nowrap;
}

.nav-btn:hover .tooltip {
  opacity: 1;
  right: 55px;
}


/* ============================
   2. Hero Section
   ============================ */
.hero-section {
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.bubble-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 10;
  width: 100%;
}

.bubble-text .hello {
  font-size: 1.4rem;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.bubble-text .name {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  background-clip: text; /* add standard property for compatibility */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.bubble-text .role {
  font-size: 1.3rem;
  color: #374151;
  font-weight: 600;
}

svg#svg {
  width: 90vmin;
  height: 90vmin;
  pointer-events: all;
  filter: drop-shadow(0 0 30px rgba(79, 70, 229, 0.2));
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.scroll-hint span {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, #9ca3af, transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 0;
  }
}

/* Hide bottom side navigation (temporary) */
.side-nav { display: none !important; }


/* ============================
   3. Projects Section
   ============================ */
.projects-section {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  /* min-height는 유지하되, 내용이 많아도 잘리지 않도록 */
  height: auto;
}

.projects-inner {
  max-width: 1200px;
  width: 100%;
}

.projects-header {
  margin-bottom: 50px;
}

.projects-title {
  font-size: 48px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.projects-sub {
  font-size: 18px;
  color: #6b7280;
  font-weight: 400;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
}

.project-card {
  position: relative;
  flex: 1 1 320px;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.project-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: 0.5s;
  filter: brightness(0.7);
}

.project-card:hover .project-bg {
  transform: scale(1.1);
  filter: brightness(0.5);
}

.project-overlay {
  position: absolute;
  inset: 0;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.project-info {
  flex: 1;
  padding-right: 16px;
}

.project-tagline {
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
}

.project-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  line-height: 1.4;
}

.project-arrow {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translate(-10px, 10px);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================
   4. [NEW] About Section Styles (화면 단위 분리 + 중앙 정렬 수정)
   ============================ */
.about-section {
  background: #ffffff;
  padding: 0 20px;
  /* 섹션 자체 패딩은 제거하고 내부 요소로 조절 */
}

.about-inner {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* --- [PAGE 1] 헤더 + 프로필 + 자기소개 --- */
/* 헤더와 내용을 묶어서 첫 화면처럼 보이게 처리 */
.about-header {
  padding-top: 100px;
  /* 상단 여백 */
  margin-bottom: 40px;
  text-align: center;
}

.about-top {
  /* 화면 높이에서 헤더 높이만큼 뺀 공간을 차지 */
  min-height: calc(100vh - 250px);
  display: flex;
  gap: 60px;

  /* ▼▼▼ 여기가 핵심: 내용을 수직 중앙에 정렬 ▼▼▼ */
  align-items: center;
  justify-content: center;

  margin-bottom: 0;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 18px;
  color: #6b7280;
  font-weight: 400;
}

/* 프로필 사진 (3:3.5 비율 유지) */
.profile-area {
  flex: 0 0 320px;
}

.profile-img-box {
  width: 100%;
  aspect-ratio: 3 / 3.5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 4px solid #fff;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-img-box:hover .profile-img {
  transform: scale(1.05);
}

/* 소개 텍스트 */
.intro-area {
  flex: 1;
}

.about-text-box {
  background: #f9fafb;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.greeting {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #4f46e5;
}

.desc {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  word-break: keep-all;
}

.desc strong {
  color: #111827;
  font-weight: 600;
  background: linear-gradient(to top, #a5b4fc 10%, transparent 40%);
}

/* 주요 텍스트 보라색 형광펜 강조 */
.highlight {
  background: linear-gradient(to top, #c7d2fe 30%, transparent 70%);
  font-weight: 600;
  color: #111827;
  padding: 2px 4px;
  border-radius: 3px;
}

/* 프로젝트 성과/맡은역할 핵심 강조 (노란색) */
.project-highlight {
  background: linear-gradient(to top, #fed7aa 35%, transparent 75%);
  font-weight: 600;
  color: #111827;
  padding: 2px 4px;
  border-radius: 3px;
}


/* --- [PAGE 2] 학력, 수상, 자격증 (Bio Info) --- */
.bio-info-grid {
  /* 한 화면 꽉 차게 설정 */
  min-height: 100vh;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;

  /* ▼▼▼ 내용을 화면 정중앙에 배치 ▼▼▼ */
  align-content: center;

  margin: 0;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.bio-card {
  background: #f9fafb;
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;

  /* 카드 내부 수직 중앙 정렬 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-card:hover {
  transform: translateY(-5px);
  border-color: #a5b4fc;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.bio-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.bio-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e5e7eb;
  display: inline-block;
  width: 100%;
}

.bio-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.bio-list li {
  margin-bottom: 15px;
}

.bio-list li:last-child {
  margin-bottom: 0;
}

.bio-main {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.bio-sub {
  display: block;
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
}

.bio-desc {
  display: block;
  font-size: 14px;
  color: #4f46e5;
  font-weight: 600;
  margin-top: 4px;
}


/* --- [PAGE 3] Tech Stack --- */
.tech-stack-container {
  /* 한 화면 꽉 차게 설정 */
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  /* ▼▼▼ 내용을 화면 정중앙에 배치 ▼▼▼ */
  justify-content: center;

  margin-top: 0;
  padding: 40px 0;
  border-top: none;
  /* 구분선 제거 (화면 단위라 불필요) */
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.tech-main-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 60px;
  color: #111827;
  text-align: center;
}

/* Tech Highlight Section - 상단 주요 3개 기술 */
.tech-highlight-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 20px;
  border: 2px solid rgba(79, 70, 229, 0.1);
}

.tech-highlight-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(79, 70, 229, 0.15);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

.tech-highlight-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-highlight-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-highlight-content {
  flex: 1;
}

.tech-highlight-content h5 {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
}

.usage-rate {
  font-size: 14px;
  font-weight: 700;
  color: #4f46e5;
  margin: 4px 0 12px 0;
  display: block;
}

.usage-reason {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Tech All Grid - 전체 기술 목록 */
.tech-all-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.tech-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #111827;
  margin: 0;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.tech-grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.tech-card-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: default;
}

.tech-card-compact:hover {
  background: #ededed;
  border-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.tech-card-compact img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tech-card-compact span {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

/* Tech Tabs Navigation */
.tech-tabs {
  display: none;
}

.tech-category {
  margin-bottom: 40px;
  display: none;
}

.tech-category.active {
  display: block;
}

.category-title {
  font-size: 20px;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #4f46e5;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* 카드 크기 최적화 */
  gap: 16px;
}

.tech-card {
  background-color: #ededed;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: #6366f1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tech-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Tooltip setup - absolute positioning with proper stacking */
.tech-icons .tech-icon-small,
.tech-icons .tech-text-pill {
  position: relative;
  pointer-events: auto;
}

.tech-icons [data-tech]::before {
  content: attr(data-tech);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.95);
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tech-icons [data-tech]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Tooltip wrapper for icons */
.tech-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tech-tip-wrap::before {
  content: attr(data-tech);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.92);
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.tech-tip-wrap:hover::before {
  opacity: 1;
  visibility: visible;
}

/* 특정 아이콘 확대 */
.tech-icon-large {
  width: 48px;
  height: 48px;
}

.tech-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tech-name {
  color: black;
  font-size: 15px;
  font-weight: 600;
}

.tech-desc {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.tech-rating {
  display: flex;
  gap: 4px;
}

.box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: #cccccc;
}

.box.filled {
  background-color: #a5b4fc;
  box-shadow: 0 0 6px rgba(165, 180, 252, 0.6);
}


/* 모바일 반응형 (세로 배치) */
@media (max-width: 960px) {
  .about-top {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .profile-area {
    flex: 0 0 auto;
    width: 280px;
  }

  .about-text-box {
    text-align: left;
  }

  .bio-info-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 0;
  }

  .tech-stack-container {
    min-height: auto;
    padding: 60px 0;
  }
}

/* 하단 Tech Stack */
.tech-stack-container {
  margin-top: 150px;
  padding-top: 40px;
  border-top: 1px dashed #e5e7eb;
}

.tech-main-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 60px;
  color: #111827;
  text-align: center;
}

.tech-category {
  margin-bottom: 50px;
}

.category-title {
  font-size: 20px;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #4f46e5;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tech-card {
  background-color: #ededed;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: #6366f1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tech-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tech-icon {
  width: 28px;
  height: 28px;
}

.filter-white {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

.filter-green {
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

.tech-name {
  color: black;
  font-size: 16px;
  font-weight: 600;
}

.tech-rating {
  display: flex;
  gap: 5px;
}

.box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: #cccccc;
}

.box.filled {
  background-color: #a5b4fc;
  box-shadow: 0 0 6px rgba(165, 180, 252, 0.6);
}


/* ============================
   5. [NEW] Experience Section Styles (사진 중심 레이아웃)
   ============================ */
.experience-section {
  background: #f9fafb;
  /* 연한 회색 배경 */
  display: flex;
  justify-content: center;
  padding: 100px 20px;
}

.experience-inner {
  max-width: 1100px;
  /* 사진 때문에 폭을 조금 넓힘 */
  width: 100%;
  overflow: hidden;
}

.experience-header {
  margin-bottom: 80px;
  text-align: center;
}

/* 경험 리스트: 가로 트랙 (한 카드씩 중앙 정렬) */
.exp-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  padding: 20px 0 40px;
}

.exp-item {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 0 0 clamp(320px, 70vw, 960px);
  max-width: clamp(320px, 70vw, 960px);
  padding: 30px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
  opacity: 0.35;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.exp-item.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

/* 사진 영역 */
.exp-img-box {
  flex: 0 0 45%;
  height: 320px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

/* 사진 항상 꽉 차게 */
.exp-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.exp-img-box:hover img {
  transform: scale(1.05);
}

/* 내용 영역 */
.exp-content {
  flex: 1;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.exp-date {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  display: inline-block;
  border-bottom: 2px solid #111827;
  /* 날짜 밑줄 포인트 */
  padding-bottom: 2px;
}

.exp-title {
  font-size: 28px;
  font-weight: 800;
  color: #8b5cf6;
  /* 보여주신 사진처럼 보라색 포인트 */
  margin-bottom: 10px;
  line-height: 1.3;
}

.exp-role {
  font-size: 18px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 24px;
}

/* 리스트 스타일 (점) */
.exp-desc-list {
  list-style: none;
  padding: 0;
}

.exp-desc-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
}

/* 리스트 앞의 점 커스텀 */
.exp-desc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #d1d5db;
  border-radius: 50%;
}

/* --- 모바일 반응형 (좁은 화면) --- */
@media (max-width: 960px) {
  .exp-list {
    flex-direction: column;
    gap: 30px;
    transform: none !important;
  }
  .exp-item {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    transform: none;
  }
  .exp-img-box {
    width: 100%;
    height: 220px;
    border-radius: 16px;
  }
  .exp-content {
    padding: 0;
  }
}

/* ====================================
   Project Details Presentation View
   ==================================== */
/* ====================================
   Project Details Presentation View
   ==================================== */
.project-details-container {
  width: 100%;
  background: #111827;
  color: #fff;
}

/* 개별 슬라이드 섹션 */
.detail-slide {
  position: relative;
  min-height: 100vh;
  /* 85vh → 100vh로 조정 */

  /* ▼▼▼ [핵심 1] 내용을 화면 '하단'으로 내림 ▼▼▼ */
  display: flex;
  align-items: flex-end;
  /* 요소들을 바닥에 붙임 */
  padding-bottom: 80px;
  /* 60px → 80px로 조정 */
  padding-top: 80px;
  /* 상단 여백 조정 */

  padding-left: 5%;
  /* 좌우 여백 */
  padding-right: 5%;

  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 배경 워터마크 (우측 하단) */
.bg-text {
  position: absolute;
  bottom: -5%;
  /* 바닥에 더 붙임 */
  right: -5%;
  top: auto;
  /* 중앙 정렬 해제 */
  transform: none;

  font-size: 14vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

/* 상단 고정 헤더 (제목) */
.detail-header-top {
  position: absolute;
  top: 40px;
  /* 더 위로 올림 */
  left: 5%;
  /* 왼쪽 라인 맞춤 */
  z-index: 10;
  color: #fff;
  text-align: left;
  overflow: visible;
}

.detail-tag-top {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-title-top {
  font-size: 60px;
  /* 제목 더 크게 */
  font-weight: 900;
  color: #fff;
  margin: 0;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.contribution-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.contribution-row h3 {
  font-size: 18px;
  color: #fbbf24;
  margin: 0;
  font-weight: 700;
  line-height: 20px; /* 바 높이와 동일하게 설정하여 수직 정렬 */
  display: flex;
  align-items: center; /* 폰트 렌더링 오차 보정 */
}

.contribution-row .progress-bar {
  width: 400px;
  height: 20px; /* 텍스트 라인 높이와 맞춤 */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center; /* 내부 퍼센트 텍스트 수직 중앙 */
}

.contribution-row .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
  border-radius: 10px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-divider {
  width: 4px;
  height: 60px;
  background: #4f46e5;
  /* 보라색 포인트 */
  border-radius: 2px;
}

/* 내부 컨텐츠 컨테이너 */
.slide-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  /* 너비를 넓게 써서 양쪽으로 벌림 */
  margin: 0 auto;

  /* ▼▼▼ [핵심 2] 좌우 배치를 확실하게 분리 ▼▼▼ */
  display: flex;
  justify-content: space-between;
  /* 왼쪽(목업)과 오른쪽(텍스트)를 양 끝으로 */
  align-items: flex-end;
  /* 바닥 라인 맞춤 */
  gap: 40px;
}

/* --- 왼쪽: 목업 이미지 영역 --- */
.slide-left {
  flex: 0 0 auto;
  /* 이미지는 고정 크기 */
  display: flex;
  align-items: flex-end;
  /* 이미지도 바닥에 붙임 */
}

.mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5));
  margin-bottom: 30px;
}
.detail-mockup {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

/* 이미지만 좌우 흔들림: wrapper 전체나 텍스트/스택은 고정 */
.mockup-wrapper:hover .detail-mockup {
  animation: mockup-shake 0.9s cubic-bezier(.36,.07,.19,.97) infinite;
}

@keyframes mockup-shake {
  0% { transform: translateX(0) rotateY(0deg); }
  10% { transform: translateX(-10px) rotateY(-2deg); }
  25% { transform: translateX(-14px) rotateY(-3deg); }
  40% { transform: translateX(-8px) rotateY(-1deg); }
  50% { transform: translateX(0) rotateY(0deg); }
  60% { transform: translateX(8px) rotateY(1deg); }
  75% { transform: translateX(14px) rotateY(3deg); }
  90% { transform: translateX(10px) rotateY(2deg); }
  100% { transform: translateX(0) rotateY(0deg); }
}

/* --- 오른쪽: 텍스트 영역 --- */
.slide-right {
  flex: 1;
  /* 남은 공간 모두 차지 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 위쪽부터 시작 */
  padding-top: 48px; /* 헤더(프로젝트명/깃허브/블로그)와 겹치지 않도록 여유 추가 */
  padding-bottom: 0;
  padding-right: 0;
  text-align: left;
  max-width: 700px; /* 780px에서 축소하여 과도한 가로 너비 감소 */
  /* 최대 너비 확대: 420px → 520px → 600px */
}

/* 본문 스타일 */
.detail-body {
  width: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px; /* 블록 사이 간격 증가로 가독성 향상 */
  /* 항목 간 간격 축소 */
  padding: 0;
  overflow: visible !important;
  max-height: none !important;
}



.detail-item {
  background: rgba(255, 255, 255, 0.10); /* 약간 더 밝게 */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px; /* 내부 여백 확대 */
  border-radius: 10px;
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.detail-item h3 {
  font-size: 16px; /* 제목 약간 확대 */
  /* 크기 축소 */
  color: #fbbf24;
  /* 따뜻한 골드 색상 */
  margin-bottom: 8px;
  /* 간격 축소 */
  margin-top: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.detail-item p {
  font-size: 15px; /* 14.5px -> 15px: 가독성 향상 */
  line-height: 1.85; /* 1.75 -> 1.85: 행간 확대 */
  color: rgba(255, 255, 255, 0.96); /* 0.93 -> 0.96: 대비 강화 */
  font-weight: 500;
  margin: 0;
  word-break: keep-all;
}

.team-info {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(251, 191, 36, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.team-info strong {
  color: #fbbf24;
  font-weight: 700;
}

/* 프로젝트 메타 정보 (기술 스택 / 참여인원 / 기간) */
.project-meta {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.project-meta .meta-item {
  background: rgba(255,255,255,0.04);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* 리스트 스타일 */
.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px; /* 8px -> 10px: 항목 간격 확대 */
  color: rgba(255, 255, 255, 0.96); /* 0.92 -> 0.96: 대비 강화 */
  font-size: 15px; /* 14.5px -> 15px: 본문과 동일한 크기 */
  line-height: 1.8; /* 1.7 -> 1.8: 행간 증가 */
  font-weight: 500;
}

.detail-list li:last-child {
  margin-bottom: 0;
}

.detail-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #fbbf24;
  font-weight: bold;
  font-size: 18px;
}

/* 하단 기여도/블로그 버튼 */
.detail-row {
  display: flex;
  gap: 16px;
  /* 간격 축소 */
  margin-top: 16px;
  margin-bottom: 0;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 14px 16px;
  /* 패딩 축소 */
  border-radius: 10px;
}

.detail-half {
  flex: 1;
}

.detail-half h3 {
  font-size: 15px;
  /* 14px → 15px */
  color: #fbbf24;
  margin-bottom: 9px;
  /* 8px → 9px */
  margin-top: 0;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 9px;
  /* 8px → 9px */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  margin-top: 7px;
  /* 6px → 7px */
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
  border-radius: 5px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.blog-btn {
  display: inline-block;
  margin-top: 7px;
  /* 6px → 7px */
  padding: 9px 17px;
  /* 8px 16px → 9px 17px */
  background: rgba(251, 191, 36, 0.15);
  border: 1.5px solid #fbbf24;
  color: #fbbf24;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  /* 12px → 13px */
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.detail-title-top .blog-btn {
  margin-top: 0;
  vertical-align: middle;
}

.blog-btn:hover {
  background: #fbbf24;
  color: #111827;
  transform: translateX(2px);
}

.github-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.github-logo-link:hover {
  transform: scale(1.1);
}


.github-icon-img {
  width: 24px;
  height: 24px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  vertical-align: middle;
}

.github-logo-link:hover .github-icon-img {
  opacity: 1;
}

/* 반응형: 화면 작아지면 위아래 배치 */
@media (max-width: 1200px) {
  .slide-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .slide-left,
  .slide-right {
    flex: 0 0 auto;
    width: 100%;
    max-width: 600px;
  }

  .mockup-wrapper {
    transform: none;
    margin-bottom: 40px;
  }

  .detail-slide {
    align-items: center;
    padding-top: 150px;
  }

  /* 모바일은 중앙 정렬 */
}

/* ============================
   [NEW] Project Sub-Navigation (사이드바 수정)
   ============================ */

/* 프로젝트 버튼: 소메뉴가 이 버튼 기준으로 위치를 잡도록 설정 */
.project-nav-btn {
  position: relative;
  overflow: visible !important;
  /* 내용이 잘리지 않게 */
}

/* 소메뉴 박스 (평소에는 숨김) */
.sub-nav {
  position: absolute;
  right: 60px;
  /* 버튼과의 거리를 조금 더 벌림 (안전하게) */
  top: 50%;
  transform: translateY(-50%) translateX(10px);

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);

  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;

  opacity: 0;
  visibility: hidden;

  /* ▼ [핵심 1] 메뉴가 사라질 때 0.3초 딜레이를 줘서 마우스 이동 시간을 벌어줌 */
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  transition-delay: 0.1s;
  /* 살짝 늦게 꺼지게 설정 */

  pointer-events: none;
  z-index: 3000;
}

.sub-nav::after {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  /* 메뉴 오른쪽으로 30px만큼 뻗어나감 (아이콘 쪽으로) */
  width: 40px;
  /* 충분히 넓게 잡아서 빈틈 제거 */
  height: 100%;
  background: transparent;
  /* 눈에는 안 보임 */
}

/* 마우스를 올렸을 때 소메뉴 등장 */
.project-nav-btn:hover .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
  transition-delay: 0s;
}

/* 프로젝트 버튼에 마우스 올리면 기존 'Projects' 툴팁은 숨김 (겹침 방지) */
.project-nav-btn:hover>.tooltip {
  display: none;
}

/* 소메뉴 아이템 스타일 */
.sub-item {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
  transition: all 0.2s;
  white-space: nowrap;
}

/* 프로젝트 강조 텍스트 스타일 — Warm Yellow Pill (적용됨) */
.highlight-text {
  font-weight: 700;
  color: #fef3c7; /* 밝은 텍스트 톤 */
  background: none; /* 필 스타일 제거 */
  padding: 0; /* 패딩 제거로 문장 흐름 유지 */
  border: none;
  display: inline;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.95); /* warm yellow underline */
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-shadow: 0 0 8px rgba(251,191,36,0.08); /* 미세한 글로우로 포인트 유지 */
}

.sub-item:hover {
  background: #eff6ff;
  /* 연한 파란색 배경 */
  color: #4f46e5;
  /* 진한 파란색 글씨 */
  transform: translateX(-3px);
}

/* Hide FRIENDS FOOD project */
.project-card[data-id="5"],
#p-detail-5 {
  display: none;
}

.detail-tech-stack {
  margin-top: 0px;
  padding-top: 0px;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: auto;
  position: relative;
  z-index: 20;
}

.tech-category-small {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-category-small h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tech-icon-small {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.tech-icon-small:hover {
  opacity: 1;
}

.tech-text-pill {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fef3c7;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}