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

html {
  scrollbar-gutter: stable;
}

body {
  font-family: "Pretendard", Arial, sans-serif;
  display: flex;
  background-color: #0F182A;
  color: black;
}

/* ----- 사이드바 ----- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar button {
  background: none;
  border: none;
  color: #FFFFFF99;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  padding: 8px;
  transition: color 0.2s;
}


.sidebar button.active {
  background-color: #0F182A; 
  color: #FFFFFF;
  border-radius: 8px;
}


.sidebar button:hover {
  color: #FFFFFF;
}

/* 사이드바 프로필 */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.profile img {
  width: 130px;
  height: 180px;
  border-radius: 50%;         
  object-fit: cover;           
  
  margin-bottom: 25px;
}

.profile-name {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}


/* 메인 콘텐츠 */
.content {
  margin-left: 220px;
  width: calc(100% - 220px);
}

.section {
  min-height: 100vh;
  
}

.section:last-of-type {
  border-bottom: none;
}

.section h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color:#00D17D
}


/* ----- Top 버튼 ----- */
.top-button {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: #00D17D;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
  pointer-events: none;
}

.top-button:hover {
  transform: translateY(-4px);
}

/* 보일 때 */
.top-button.show {
  pointer-events: auto;
}

/* ----- Home ----- 섹션 */
#home{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#home h1{
  font-size: 50px;
  color: #FFFFFF;
}

#home p{
  margin-top: 3rem;
  font-size: 18px;
  color: #9CA3AF;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #16a34a;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-top: 3rem;
}

.resume-btn:hover {
  background-color: #15803d;
}

/* ----- About Section ----- */
.about-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-section h1{
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
}

/* 소개 문장 */
.about-intro {
  margin: 24px auto 60px;
  max-width: 720px;
  text-align: center;
  font-size: 20px;
  line-height: 1.7;
  color: #FFFFFF;
}

/* 카드 영역 */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

/* 카드 공통 */
.about-card {
  padding: 35px;
  border: 1px solid gray;
  border-radius: 16px;
  
}

/* 카드 제목 */
.about-card h2 {
  font-size: 25px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

/* 리스트 */
.about-card ul {
  list-style: none;
  padding: 0;
}

.about-card li {
  font-size: 20px;
  line-height: 1.6;
  color: #FFFFFF99;
}



/* ----- Skills ----- 섹션 */
#skills {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


#skills h1{
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 
  padding: 50px;
}

/* 스킬 카드 */
.skill-card {
  padding: 24px;
}

.skill-card h2 {
  font-size: 25px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

/* 스킬 리스트 */
.skill-list {
  list-style: none;
}

.skill-list li {
  padding: 6px 0;
}


/* 스킬 아이템 */
.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

/* 아이콘 자리 */
.skill-icon img{
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* 스킬 텍스트 */
.skill-name {
  font-size: 18px;
  color: #FFFFFF99;
}



/* =========================
   Projects Section
========================= */
#projects {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#projects h1 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
}

.project-container{
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 400px;
  align-items: center;
}


.carousel-container {
  width: 1180px;  /* 카드 넓이 3개 + gap 2개 */
  overflow: hidden;
  /* position: relative; */
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.project-card {
  width: 380px;
  height: 400px;
  flex-shrink: 0; 
  border-radius: 16px;
  
}

/* 이미지 영역 */
.project-image {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
}


.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  color: #FFFFFF;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image:hover .project-overlay {
  opacity: 0.8;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 10px;
}

/* 이미지 호버 효과 */
.project-image:hover img {
  transform: scale(1.08);
}

/* 텍스트 영역 */
.project-content {
  padding: 16px;
  color: #FFFFFF99;
}

.project-content p{
  font-size: 16px;
  margin-bottom: 5px;
}


.project-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #FFFFFF;
  
}

.project-period{
  font-size: 14px;
  line-height: 1.4;
  color: #9ca3af;
}


.project-role{
  line-height: 1.4;
  font-size: 14px;
  list-style: none;
  
}

.openModal{
  padding: 0.6rem 2rem;
  font-size: 13px;
  background-color: #FFFFFF0D;
  border: none;
  color: #FFFFFF99;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 5px;
}

.openModal:hover{
  background-color: rgba(255, 255, 255, 0.1);
}

/* 
/* 모달 배경 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  z-index: 1000;
  align-items: flex-start;   /* 중앙 X, 위 기준 */
  padding: 80px 0;           /* 위아래 여백 */
}

body.modal-open { 
  overflow: hidden; 
}

/* 모달 본체 */
.modal {
  background: #0F182A;
  color: #FFFFFF;
  width: 90%;
  max-width: 700px;
  max-height: calc(100vh - 160px); /* ⭐ 핵심 */
  overflow-y: auto;          /* ⭐ 핵심 */
  padding: 40px;
  border-radius: 16px;
  position: relative;
  line-height: 1.6;
}

/* 닫기 버튼 */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: none;
  font-size: 36px;
  cursor: pointer;
  color: #FFFFFF99;
  
}

/* 활성화 */
.modal-overlay.active {
  display: flex;
}

/* 클릭 가능 표시 */
.project-content {
  cursor: pointer;
} 

.modal h5{
  color: #FFFFFF99;
}

#detail-container{
  display: flex;
  gap: 2rem;
  
}

#modal-boundary{
  border-bottom: 1px solid gray;
  margin-bottom: 2rem;
}
.text-box{
  margin-bottom: 2rem;
}

.text-box ul{
  padding-left: 2rem;
  color: #FFFFFFCC;
}





/* 좌우 버튼 */
.slider-btn.prev{
  display: flex;
  justify-content: center;
  justify-items: center;
  width: 50px;
  height: 50px;
  background: none;
  border-radius: 99px;
  border: none;
}

.slider-btn.next{
  display: flex;
  justify-content: center;
  margin-right: 0.2rem;
  width: 50px;
  height: 50px;
  background: none;
  border-radius: 99px;
  border: none;
}

.slider-btn:hover {
  background: #FFFFFF99;
}




/* ----- Education 섹션 ----- */
.education-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#education h1{
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
}

/* 🔹 2 × 2 배치 */
.education-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 가로 2 */
  gap: 32px;
  padding: 0 24px;
}

/* ----- 교육 카드 ----- */
.education-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  border: 1px solid gray;   /* 기존 디자인 유지 + 그리드용 */
  border-radius: 12px;
  
}

/* ----- 기간 ----- */
.education-period {
  margin-top: 8px;
  min-width: 140px;
  font-weight: 600;
  color: #00D17D;
}

/* ----- 내용 ----- */
.education-content h2 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.education-org {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

/* ----- 세부 내용 ----- */
.education-detail {
  padding-left: 18px;
  margin-bottom: 16px;
}

.education-detail li {
  font-size: 14px;
  color: #FFFFFF99;
  margin-bottom: 6px;
}

/* ----- 상태 뱃지 ----- */
.education-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #00D17D;
  color: #00D17D;
}








/* ----- Contact 섹션 ----- */
.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
}

.contact-box {
  width: 400px;
  margin-top: 40px;
  padding: 32px;
  background-color: #FFFFFF1A;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 개별 항목 */
.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  
}

.contact-label {
  font-weight: 600;
  color: #FFFFFF;
}

.contact-value {
  font-weight: 500;
  color: #FFFFFF;
}

/* 링크 */
.contact-link {
  font-weight: 600;
  color: #FFFFFF;
  
}

.contact-message{
  margin-top: 5rem; 
  color:#FFFFFF;
  font-size: 20px;
  font-weight: 700;
}
.right{
  text-align:end;
  margin-right: 5rem;
  color: #FFFFFF;
}






