@font-face {
  font-family: 'Paperlogy-8ExtraBold';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') 
  format('woff2');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'SacheonHangGong-Regular';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2506-1@1.0/SacheonHangGong-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'BookkMyungjo-Bd';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkMyungjo-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'ChosunGu';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunGu.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
h1{
  font-family:'SacheonHangGong-Regular';
  font-size: 36px;
  font-weight: 500;
  color: #000000;
}
header p{
    font-family: 'BookkMyungjo-Bd'; /* 원하는 폰트 이름을 입력하세요 */
    font-size: 16px; /* 폰트 크기 설정 */
    color: #333; /* 텍스트 색상 설정 */
}
body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
  background: #f8f9fa;
  color: #222;
  line-height: 1.6;
}
.hero {
  text-align: center;
  padding: 60px 20px 30px 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.profile-img:hover {
  transform: scale(1.05);
}
.navbar {
  font-family:'SacheonHangGong-Regular';
  font-size: 15px;
  font-weight: 300;
  display: flex;
  justify-content: center;
  gap: 32px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar a {
  color: #686868;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.navbar a:hover {
  background: #b3d5fd;
  color: #000000;
}
section {
  max-width: 1200px;
  margin: 60px auto 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 40px 24px;
  animation: fadeIn 1s;
}
 .project h3{
  font-family:'Paperlogy-8ExtraBold'; /* 원하는 폰트로 변경 */
  font-size: 20px; /* 폰트 크기 조정 */
  color: #333; /* 텍스트 색상 */
  margin-bottom: 0px;
}
.project p{
  font-family: 'ChosunGu'; /* 원하는 폰트로 변경 */
  font-size: 15px; /* 폰트 크기 조정 */
  color: #333; /* 텍스트 색상 */
}
.about p{
  font-family: 'ChosunGu'; /* 원하는 폰트로 변경 */
  font-size: 15px; /* 폰트 크기 조정 */
  color: #333; /* 텍스트 색상 */
}
.work p{
  font-family: 'ChosunGu'; /* 원하는 폰트로 변경 */
  font-size: 15px; /* 폰트 크기 조정 */
  color: #333; /* 텍스트 색상 */
}
.skills ul li{
  font-family: 'ChosunGu'; /* 원하는 폰트로 변경 */
  font-size: 13px; /* 폰트 크기 조정 */
  color: #333; /* 텍스트 색상 */
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.projects .project-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-content: center;
}
@media (max-width: 1200px) {
  .projects .project-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .projects .project-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .projects .project-list {
    grid-template-columns: 1fr;
  }
}
.project {
  background: #f8f8f887;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
  padding: 12px;
  width: 260px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.projects h2{
  font-family:'Paperlogy-8ExtraBold';
  font-size: 36px;
  font-weight: 500;
  color: rgb(92, 147, 251)
}
.project:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(185, 223, 253, 0.738);
}
.project img {
  width: 100%;
  height: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #e9ecef;
}
.about h2{
  font-family:'Paperlogy-8ExtraBold';
  font-size: 36px;
  font-weight: 500;
  color: #3f5cd1;
}
.about .about-details li {
  font-family: 'ChosunGu';
  font-size: 15px;
  font-weight: 500;
  color: #141414;
}
.skills h2{
  font-family:'Paperlogy-8ExtraBold';
  font-size: 36px;
  font-weight: 500;
  color: #213ba0;
}
.skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.skills li {
  background: #f6f6f6bb;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9em;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  min-width: 110px;
  min-height: 110px;
  box-sizing: border-box;
}
.skills li:hover {
  background: #b5bddb;
  color: #000000f5;
}
.skills li img {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 6px auto;
  border-radius: 4px;
  box-shadow: none;
  transition: none;
}
.contact h2{
  font-family:'Paperlogy-8ExtraBold';
  font-size: 36px;
  font-weight: 500;
  color: #444444;
}
.contact a {
  color: #0077ff;
  text-decoration: none;
  transition: color 0.2s;
}
.contact a:hover {
  color: #0056b3;
}
footer {
  text-align: center;
  padding: 32px 0 16px 0;
  color: #888;
  font-size: 0.95em;
  background: none;
}
@media (max-width: 700px) {
  section {
    padding: 24px 8px;
    margin: 32px 8px 0 8px;
  }
  .projects .project-list {
    flex-direction: column;
    gap: 20px;
  }
  .project {
    width: 100%;
  }
  .navbar {
    gap: 16px;
  }
  .hero {
    padding: 40px 8px 20px 8px;
  }
  .skills li {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    font-size: 1em;
    padding: 8px 6px;
  }
}
.about-details {
  margin: 28px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 0.97em;
}
.about-details li {
  background: #f4f6fb;
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: background 0.2s;
}

@media (max-width: 700px) {
  .about-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .about-details li {
    padding: 10px 10px;
    font-size: 1em;
  }
}
/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
.modal:target {
  display: flex;
}
.modal-content{
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 28px 28px 28px;
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: modalPop 0.3s;
}
.modal-content h3{
  font-family: 'SacheonHangGong-Regular'; /* 원하는 폰트로 변경 */
  font-size: 25px; /* 폰트 크기 조정 */
  color: #333; /* 텍스트 색상 */
}
.modal-content p{
  font-family: 'ChosunGu'; /* 원하는 폰트로 변경 */
  font-size: 15px; /* 폰트 크기 조정 */
  color: #333; /* 텍스트 색상 */
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #f5811b;
}
.modal-img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.button {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.18);
  color: #232323 !important;
  border: 1.5px solid rgba(35, 41, 70, 0.18);
  border-radius: 9px;
  font-size: 0.98em;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(35,41,70,0.10);
  cursor: default;
  transition: background 0.22s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 8px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
/*.button::after {
  content: '→';
  display: inline-block;
  margin-left: 7px;
  font-size: 1em;
  transition: transform 0.2s;
  vertical-align: middle;
}*/
.button:hover {
  background: rgba(255, 251, 251, 0.32);
  color: #121629 !important;
  border: 1.5px solid #232946;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(35,41,70,0.16);
}
.button:hover::after {
  transform: translateX(3px);
}
.modal-content iframe {
  width: 100%;
  min-width: 320px;
  max-width: 100vw;
  height: 800px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(35,41,70,0.13);
  margin: 0 auto 24px auto;
  display: block;
  background: #ffffff;
}
@media (max-width: 700px) {
  .modal-content iframe {
    height: 450px;
  }
}
.project .button{
  margin-top: auto;
}