@font-face {
  font-family: 'S-CoreDream-3Light';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'RixInuaridurine';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2207-01@1.0/RixInooAriDuriR.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TtTogether';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/TTTogetherA.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}

body,
html {
  font-family: 'S-CoreDream-3Light';
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #efeded;
  /* scroll-snap-type: y mandatory;
      scroll-behavior: auto; */
  /* overflow: hidden; */
  /* overflow-y: scroll; ✅ 반드시 있어야 함 */
  /* scroll-padding-top: 0px; */
}

/* CSS */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(105, 105, 105, 0.7);
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  justify-content: center;

}

#navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

#navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

#navbar ul li a:hover {
  color: #f39c12;
}


.page {
  height: 100vh;
  /* ✅ 화면 전체 높이 */
  scroll-snap-align: start;
  /* ✅ 딱 화면에 맞추기 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px;
  box-sizing: border-box;
}

.custom-bg-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.custom-bg-section img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  z-index: -2;
}

.custom-bg-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.custom-bg-section .content {
  position: relative;
  z-index: 10;
}

.animatedText {
  font-size: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1.5s forwards;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#scrollBtn {
  margin-top: 30px;
  font-family: 'S-CoreDream-3Light';
  padding: 12px 24px;
  font-size: 1.2rem;
  border: none;
  border-radius: 30px;
  background-color: #e88893;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#scrollBtn:hover {
  background-color: #d0666b;
}

/* 공통 reveal 효과 */
.reveal {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  will-change: transform, opacity;
}

/* 방향별 시작 위치 */
.reveal-left {
  transform: translateX(-40px);
  /* 너무 멀지 않게 */
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-bottom {
  transform: translateY(50px);
  /* 아래에서 위로 등장 */
}

.reveal.active {
  opacity: 1;
  transform: translateX(0);
}


/* 보일 때 활성화 상태 */
.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}


.title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

nav.nav {
  display: flex;
  gap: 50px;
  margin-bottom: 10px;
  margin-right: 100px;
  background-color: rgb(188, 120, 243);
  padding: 10px 20px;
  text-align: right;
  /* 텍스트도 왼쪽 정렬 */
  align-self: flex-end;
}

nav.nav a {
  text-decoration: none;
  font-weight: bold;
  color: black;
}

.myImgDiv {
  display: flex;
  flex-direction: column;
  /* 세로 정렬 */
  gap: 20px;
  padding: 0px;
  width: 70%;
  height: 400px;
  color: rgb(0, 0, 0);
  border-radius: 10px;
}

.subTitle {
  font-size: 2.5rem;
  border-bottom: 2px solid rgb(151, 150, 150);
  padding-bottom: 5px;
  margin-top: 10px;
  display: block;
  font-family: 'TtTogether';
  text-align: center;
  justify-content: center;
  /* 텍스트도 왼쪽 정렬 */
  /* align-self: flex-start; */
}

.imgAndDesc {
  display: flex;
  flex-direction: row;
  /* 이미지와 설명을 가로 배치 */
  gap: 20px;
  align-items: flex-start;
  /* 위쪽 정렬 */
  flex: 1;
  /* 남은 공간 채우기 */
}

.myImg {
  width: 250px;
  height: 300px;
  margin-left: 150px;
  background-color: white;
}

.description {
  display: flex;
  margin-top: 5px;
  margin-left: 30px;
  flex-direction: column;
  justify-content: center;
  font-size: 20px;
}

.description>p {
  margin: 5px;
}

.exDiv {
  padding: 20px;
  width: 70%;
  height: 400px;
}

.experienceList {
  height: 400px;
  overflow-y: auto;
  padding-right: 10px;
  /* 스크롤바 공간 확보 */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.experienceItem {
  padding: 0;
  /* 박스 패딩 제거 */
  background: none;
  /* 배경 없애기 */
  box-shadow: none;
  /* 그림자 제거 */
  border-radius: 0;
  /* 둥근 모서리 제거 */
  cursor: pointer;
  /* 마우스 올리면 커서 포인터 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #333;
  border-bottom: 1px solid #ddd;
  /* 각 항목 구분선 */
  padding-bottom: 10px;
}

.experienceItem:hover {
  background-color: #f0f0f0;
  /* 호버시 살짝 배경색 변화 */
  transform: none;
  box-shadow: none;
}

.expTopRow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
}

.expTitle {
  font-weight: 600;
  margin-left: 30px;
}

.expDate {
  color: #888;
  font-size: 0.85rem;
  white-space: nowrap;
}

.expRole,
.expTags {
  display: none;
  /* 숨기기: 역할과 태그는 안보이게 */
}

.eduDiv {
  margin-top: 40px;
  width: 80%;
  height: 500px;
  padding: 30px;
  border-radius: 12px;
  box-sizing: border-box;
}

.eduCertContainer {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
}

.educationBox {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.educationBox:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.educationBox h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.educationBox p {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
  /* line-height: 1.6; */
}
.educationBox p,
.educationBox strong {
  border-bottom: none !important;
}


.projectSliderWrapper {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.projectContainer {
  display: flex;
  transition: transform 0.3s ease;
  gap: 10px;
  width: 100%;
}

.project {
  position: relative;
  min-width: calc((100% - 30px) / 4);
  /* 4개 보여주기 */
  /* 기존 스타일 유지 */
  height: 780px;
  width: 220px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.projectImg {
  width: 100%;
  height: 220px;
  border-radius: 20px 20px 0 0;
  background-color: #f0bcc2;
}

.projectImgWrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.projectImg {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.projectImgWrapper:hover .projectImg {
  transform: scale(1.1);
}

/* 🎯 프로젝트 상태 배지 */
.projectStatus {
  margin-top: 10px;
}


/* 🔹 뱃지 */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  vertical-align: middle;
}

.status-badge.deployed {
  background-color: #3b82f6;
}

.status-badge.pending {
  background-color: #f59e0b;
}

.status-badge.maintaining {
  background-color: #9ca3af;
}

/* 💬 역할 & 기능 */
.projectDetail {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px 12px;
}

.projectDetail p {
  margin: 4px 0;
}


.imgOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px 20px 0 0;
}

.projectImgWrapper:hover .imgOverlay {
  opacity: 1;
}

.overlayText {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
}



.slideBtn {
  background: rgba(255, 170, 170, 0.5);
  border: none;
  color: white;
  font-size: 15px;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  z-index: 10;
}

.prevBtn {
  left: 5px;
}

.nextBtn {
  right: 5px;
}

.slideBtn:hover {
  background: rgba(247, 82, 82, 0.8);
}

.projectExplDiv {
  padding: 15px;
  /* font-family: 'Segoe UI', sans-serif; */
  font-size: 14px;
  color: #333;
  /* background-color: #f9f9f9; */
  /* border-top: 1px solid #ddd; */
  border-radius: 0 0 20px 20px;
}

.projectTitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}


.projectInfo div {
  margin-bottom: 6px;
  line-height: 1.5;
}

.projectInfo strong {
  width: 80px;
  display: inline-block;
  color: #555;
}

.projectImg:hover {
  transform: scale(1.05);

}



/* ✅ skill 전체 영역 중앙 정렬 */
.skillDiv {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  border-radius: 12px;
  box-sizing: border-box;
}

/* ✅ 2x2 grid 정확히 정렬 */
.skillGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  justify-items: center;
  /* 각 셀 내부 중앙정렬 */
  align-items: stretch;
}

/* ✅ 각 skillBox 중앙 배치 */
.skillBox {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ✅ 타이틀 가운데 정렬 */
.boxTitle {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
  border-left: 4px solid #888;
  padding-left: 10px;
  align-self: flex-start;
  /* 제목은 왼쪽 정렬 */
}

/* ✅ skill 아이콘 영역 가운데 정렬 */
.skillList {
  display: flex;
  flex-wrap: nowrap;
  /* 한 줄 유지 */
  gap: 15px;
  width: 100%;
  overflow-x: auto;
  /* 너무 많으면 가로 스크롤 */
}

/* ✅ 아이콘 개별 */
.skillItem {
  width: 70px;
  height: 80px;
  background-color: #fefefe;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-align: center;
  flex-shrink: 0;
  /* 줄바꿈 방지 */
}

.skillImg {
  width: 40px;
  height: auto;
  margin-bottom: 6px;
}





.contactDiv {
  margin-top: 5px;
  width: 70%;
  height: 350px;
  /* border: 1px solid rgb(114, 114, 240); */
  padding: 20px 20px;
  /* background-color: #f9f9ff; */
  border-top: 1px solid #ddd;
}

.contactDiv .subTitle {
  text-align: center;
  margin-bottom: 40px;
}

.contactInfo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contactCard {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px 25px;
  min-width: 150px;
  text-align: center;
  transition: transform 0.3s ease;
}

.contactCard:hover {
  transform: translateY(-5px);
}

.contactLabel {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

.contactValue {
  font-size: 15px;
  color: #555;
  word-break: break-all;
}

.contactCard a.contactValue {
  color: #4a3aff;
  text-decoration: none;
}

/* .contactCard a.contactValue:hover {
  text-decoration: underline;
} */

/* Resume button */
.resumeDownloadWrapper {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.downloadBtn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #9586fa;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.downloadBtn:hover {
  background-color: #5941a9;
}



#topBtn {
  font-family: 'S-CoreDream-3Light';
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  background-color: #e88893;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
}

/* 🔹 About Me 이미지 & 설명 정렬 유지 */
.imgAndDesc {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}

/* 🔹 설명 문단 */
.description {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 20px;
  margin-left: 30px;
}

.description p {
  margin: 5px 0;
}

/* 🐙 깃허브 링크 스타일 */
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  margin-top: 25px;
  transition: all 0.25s ease;
}

.github-link img {
  transition: transform 0.25s ease;
}

.github-link:hover {
  color: #3b82f6;
  /* 파란빛 강조 */
  transform: translateY(-2px);
  /* 살짝 위로 */
}

.github-link:hover img {
  transform: rotate(-10deg) scale(1.1);
}

/* 🏷️ 배지 영역 (깃허브 아래 살짝 띄워서) */
.description02 {
  margin-top: 30px;
  /* 🔼 깃허브 링크와 간격 */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* 🎖️ 개별 배지 */
.badge {
  background: #e8e8e8;
  color: #333;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: default;
  user-select: none;
}

/* 🧲 Hover 시 배지 강조 */
.badge:hover {
  background: #3b82f6;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 3px 6px rgba(59, 130, 246, 0.3);
}



/* 🔹 배운점 보기 버튼 (카드 하단 오른쪽 배치) */
.learnBtn {
  font-family: 'S-CoreDream-3Light';
  position: absolute;
  bottom: 15px;
  right: 15px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #9e66f8, #b5d0f0);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  z-index: 2;
}

.learnBtn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #a31af1, #56017e);
}

.learnBtn:active {
  transform: scale(0.97);
}
/* --- 모달 전체 배경 --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}

/* --- 모달 박스 --- */
.modal-content {
  background: linear-gradient(135deg, #ffffff, #f9f9ff);
  color: #222;
  margin: 6% auto;
  padding: 35px 45px;
  border-radius: 18px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: scaleUp 0.35s ease;
  position: relative;
}

/* 닫기 버튼 */
.closeBtn {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 28px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.25s ease;
}
.closeBtn:hover {
  color: #000;
  transform: rotate(90deg);
}

/* --- 상단 프로젝트 요약 --- */
.modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.modal-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.modal-header-text h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #2c2c54;
}

.modal-header-text p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
}

.modal-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, #ccc, transparent);
  margin: 15px 0 20px;
}

/* --- 인사이트 제목 --- */
#modalTitle {
  text-align: center;
  color: #4f46e5;
  font-weight: 700;
  font-size: 18px;
  margin-top: 35px;  /* 🔽 아래로 내림 */
  margin-bottom: 20px;
  border-top: 1px solid #e5e7eb; /* 위 구분선 */
  padding-top: 20px;

}

/* 본문 */
#modalText {
  white-space: pre-line;
  line-height: 1.7;
  color: #333;
  font-size: 15px;
}

/* --- 애니메이션 --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

