/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about .article-title { margin-bottom: 15px; }

.about-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.about-text p { margin-bottom: 15px; }

/**
 * #service 
 */

.service { margin-bottom: 35px; }

.service-title { margin-bottom: 20px; }

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
  animation: fadeInUp 0.3s ease-out both;
  opacity: 0;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

.service-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.service-icon-box { margin-bottom: 10px; }

.service-icon-box img { margin: auto; }

.service-content-box { text-align: center; }

.service-item-title { margin-bottom: 7px; }

.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-3);
  line-height: 1.6;
}

/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.article-title { margin-bottom: 30px; }

/**
 * education and experience 
 */

.timeline { margin-bottom: 30px; }

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}

.timeline-item { 
  position: relative; 
  margin-bottom: 30px;
  animation: slideInLeft 0.3s ease-out both;
  opacity: 0;
}

.timeline-item:nth-child(1) { 
  animation-delay: 0.1s; 
}
.timeline-item:nth-child(1)::before { 
  animation-delay: 0.9s; 
}
.timeline-item:nth-child(1)::after { 
  animation-delay: 0.2s; 
}

.timeline-item:nth-child(2) { 
  animation-delay: 0.2s; 
}
.timeline-item:nth-child(2)::before { 
  animation-delay: 1.0s; 
}
.timeline-item:nth-child(2)::after { 
  animation-delay: 0.3s; 
}

.timeline-item:nth-child(3) { 
  animation-delay: 0.3s; 
}
.timeline-item:nth-child(3)::before { 
  animation-delay: 1.1s; 
}
.timeline-item:nth-child(3)::after { 
  animation-delay: 0.4s; 
}

.timeline-item:nth-child(4) { 
  animation-delay: 0.4s; 
}
.timeline-item:nth-child(4)::before { 
  animation-delay: 1.2s; 
}
.timeline-item:nth-child(4)::after { 
  animation-delay: 0.5s; 
}

.timeline-item:nth-child(5) { 
  animation-delay: 0.5s; 
}
.timeline-item:nth-child(5)::before { 
  animation-delay: 1.3s; 
}
.timeline-item:nth-child(5)::after { 
  animation-delay: 0.6s; 
}

.timeline-item:nth-child(6) { 
  animation-delay: 0.6s; 
}
.timeline-item:nth-child(6)::before { 
  animation-delay: 1.4s; 
}
.timeline-item:nth-child(6)::after { 
  animation-delay: 0.7s; 
}

.timeline-item:not(:last-child) { margin-bottom: 30px; }

.timeline-item-title {
  font-size: var(--fs-6);
  line-height: 1.3;
  margin-bottom: 7px;
}

.timeline-list span {
  color: var(--vegas-gold);
  font-weight: var(--fw-400);
  line-height: 1.6;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: calc(-50% + 35px); /* 아이콘 중앙에 위치 (70px 아이콘의 절반) */
  width: 3px;
  height: 0;
  background: var(--jet);
  animation: drawLine 0.8s ease-out 0.8s forwards;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(-50% + 34px); /* 선과 약간 오프셋하여 정확한 중앙에 위치 */
  height: 6px;
  width: 6px;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet);
  animation: scaleIn 0.4s ease-out 0.3s both;
  opacity: 0;
  transform: scale(0);
}

.timeline-text {
  color: var(--light-gray);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/* Timeline item header */
.timeline-item-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  border-radius: 10px;
  margin: -10px;
  position: relative;
  border: 1px solid transparent;
  user-select: none;
}

.timeline-item-header:hover {
  transform: translateX(5px);
  background: var(--border-gradient-onyx);
  box-shadow: var(--shadow-2);
  border-color: var(--vegas-gold);
}

.timeline-item-header:hover .timeline-click-hint {
  color: var(--orange-yellow-crayola);
  transform: scale(1.1);
}

.timeline-item-header:hover {
  transform: translateX(5px);
  background: var(--border-gradient-onyx);
  box-shadow: var(--shadow-2);
}

.timeline-item-header:hover::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.timeline-item-header:active {
  transform: translateX(5px) scale(0.98);
}

.timeline-item-header:active .timeline-click-hint {
  transform: scale(0.9);
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-icon:hover {
  transform: scale(1.1);
}

.timeline-icon ion-icon,
.timeline-icon img {
  color: var(--eerie-black-1);
  font-size: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
}

.timeline-content {
  flex: 1;
}

/* Timeline header active state */
.timeline-item-header.active {
  background: var(--border-gradient-onyx);
  box-shadow: var(--shadow-2);
  border-color: var(--jet);
}

.timeline-item-header.active::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

/* Timeline click hint */
.timeline-click-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vegas-gold);
  flex-shrink: 0;
  margin-top: 5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-click-hint ion-icon {
  font-size: 18px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item-header.active .timeline-click-hint {
  color: var(--vegas-gold);
}

.timeline-item-header.active .timeline-click-hint ion-icon {
  transform: rotate(180deg);
}

/* Timeline detail content */
.timeline-detail-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 15px;
  margin-left: 55px;
  opacity: 0;
  transform: translateY(-10px);
}

.timeline-detail-content.active {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.timeline-detail-text {
  background: var(--eerie-black-2);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  position: relative;
  border-left: 3px solid var(--vegas-gold);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.timeline-detail-text:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}



.timeline-detail-text h5 {
  color: var(--vegas-gold);
  margin-bottom: 15px;
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--jet);
}

.timeline-detail-text h5 ion-icon {
  font-size: 18px;
  color: var(--vegas-gold);
}

.timeline-detail-text p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.timeline-detail-list {
  list-style: none;
  padding: 0;
}

.timeline-detail-list li {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 8px 0 8px 0;
  position: relative;
  border-radius: 5px;
}



/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.filter-list { 
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-select-box {
  position: relative;
  margin-bottom: 25px;
}

.filter-select {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.filter-select.active .select-icon { transform: rotate(0.5turn); }

.select-list {
  background: var(--eerie-black-2);
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  padding: 6px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in-out;
}

.filter-select.active + .select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.select-item button {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  animation: scaleIn 0.2s ease-out both;
  opacity: 0;
}

.select-item:nth-child(1) button { animation-delay: 0.1s; }
.select-item:nth-child(2) button { animation-delay: 0.15s; }
.select-item:nth-child(3) button { animation-delay: 0.2s; }
.select-item:nth-child(4) button { animation-delay: 0.25s; }
.select-item:nth-child(5) button { animation-delay: 0.3s; }

.select-item button:hover { --eerie-black-2: hsl(240, 2%, 20%); }

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.project-item { 
  display: block !important;
  /* 기존 rotateIn3D 애니메이션 비활성화 - 9방향 슬라이드 인 애니메이션으로 대체 */
  /* animation: rotateIn3D 0.6s ease-out forwards !important; */
  animation-fill-mode: forwards !important;
  opacity: 0;
  /* transform: rotateY(-90deg) rotateX(20deg) scale(0.8); */
}

/* 애니메이션이 완료된 요소는 초기 상태로 되돌리지 않음 */
.project-item.animated {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 이미 애니메이션이 실행된 요소들은 다시 애니메이션하지 않음 */
.project-item.animated,
.project-item[data-animated="true"] {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 이미 애니메이션이 실행된 요소들은 다시 애니메이션하지 않음 */
.service-item.animated,
.timeline-item.animated,
.blog-post-item.animated {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 모든 프로젝트 아이템에 대해 9방향 슬라이드 인 애니메이션 적용 */
.project-item:not(.animated):not([data-animated="true"]) {
  /* 9방향 슬라이드 인 애니메이션은 JavaScript에서 동적으로 적용됨 */
  /* animation: rotateIn3D 0.6s ease-out forwards !important; */
}

.project-item.hidden {
  display: none;
}

@keyframes fadeInSlideUp {
  0% { 
    opacity: 0;
    transform: translateY(20px);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
  }
}

.project-item > a { 
  width: 100%; 
  display: block;
  padding: 15px;
  border-radius: 16px;
  transition: all 0.3s ease-out;
  transform: translateY(0);
}

.project-item > a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-img {
  position: relative;
  width: 100%;
  height: 15vh;
  min-height: 120px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}

.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item > a:hover .project-img::before { background: hsla(0, 0%, 0%, 0.5); }

.project-item-icon-box {
  --scale: 0.8;

  background: var(--jet);
  color: var(--orange-yellow-crayola);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale));
  font-size: 20px;
  padding: 18px;
  border-radius: 12px;
  opacity: 0;
  z-index: 1;
  transition: all 0.3s ease-out;
}

.project-item > a:hover .project-item-icon-box {
  --scale: 1;
  opacity: 1;
}

.project-item-icon-box ion-icon { --ionicon-stroke-width: 50px; }

.project-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-height: 15vh !important;
  transition: var(--transition-1);
}

.project-item > a:hover img { 
  transform: scale(1.1); 
  filter: brightness(1.05) contrast(1.02);
  transition: all 0.3s ease-out;
}

.project-title,
.project-category { margin-left: 10px; }

.project-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
}

.project-category {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

/* project modal */
.project-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  cursor: pointer; /* 배경 클릭 시 커서 변경 */
}

.modal-content {
  background-color: var(--eerie-black-1);
  margin: 5vh auto;
  width: 85%;
  max-width: 75vw;
  border-radius: 20px;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: default; /* 콘텐츠 영역에서는 기본 커서 사용 */
}

/* 모달 스크롤바 스타일링 */
.modal-content::-webkit-scrollbar {
  width: clamp(4px, 0.6vw, 8px);
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
  margin: 0 clamp(1px, 0.2vw, 3px);
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--light-gray);
  border-radius: clamp(3px, 0.5vw, 6px);
  border: 1px solid var(--jet);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--orange-yellow-crayola);
}

.close-modal {
  position: sticky;
  top: 15px;
  right: 15px;
  float: right;
  font-size: clamp(1.5rem, 4vw, 2rem);
  cursor: pointer;
  color: var(--light-gray-70);
  z-index: 1000;
  transition: color 0.3s ease;
  margin: 15px;
}

.close-modal:hover {
  color: var(--orange-yellow-crayola);
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 35px;
  height: 100%;
  overflow-y: auto;
}

.modal-img {
  width: 75%;
  height: 50vh;
  object-fit: contain;
  border-radius: clamp(10px, 1.5vw, 18px);
  display: block;
  margin: 0 auto;
}

.modal-video {
  width: 75%;
  height: 50vh;
  object-fit: contain;
  border-radius: clamp(10px, 1.5vw, 18px);
  display: block;
  margin: 0 auto;
}

/* 프로젝트 헤더 스타일 */
.project-header {
  text-align: center;
  margin-bottom: 45px;
  padding-bottom: 45px;
  position: relative;
  animation: fadeInUp 0.3s ease-out 0.1s both;
}

.project-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(150px, 20vw, 250px);
  height: clamp(1px, 0.2vw, 3px);
  background: linear-gradient(90deg, transparent, var(--orange-yellow-crayola), transparent);
  border-radius: clamp(0.5px, 0.1vw, 1.5px);
}

.project-header .project-title {
  margin-bottom: 1.5rem;
  color: var(--orange-yellow-crayola);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 600;
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.project-header .project-category {
  margin-bottom: 1.5rem;
  color: var(--orange-yellow-crayola);
  font-size: clamp(0.9rem, 2.8vw, 1.2rem);
  font-weight: 500;
  background: var(--jet);
  padding: 0.4rem 1.3rem;
  border-radius: 1.5rem;
  display: inline-block;
  border: 1px solid var(--orange-yellow-crayola);
}

.project-header .project-tech {
  margin-top: 2.5rem;
}

.project-header .project-tech .h4 {
  margin-bottom: 1rem;
  color: var(--light-gray);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-header .project-tech ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.project-header .project-tech li {
  background: var(--jet);
  color: var(--light-gray);
  padding: 0.3rem 0.6rem;
  border-radius: clamp(0.75rem, 1.5vw, 1.1rem);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 500;
  border: clamp(0.5px, 0.1vw, 1.5px) solid var(--light-gray-70);
  transition: all 0.3s ease;
}

.project-header .project-tech li:hover {
  background: var(--light-gray-70);
  color: var(--white-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 프로젝트 메인 설명 스타일 */
.project-main-description {
  margin-bottom: 3.5rem;
  padding: clamp(2.2rem, 5.5vw, 2.8rem);
  background: linear-gradient(135deg, var(--jet), var(--eerie-black-1));
  border-radius: 1.25rem;
  text-align: center;
  border: 1px solid var(--orange-yellow-crayola);
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease-out 0.2s both;
}

.project-main-description .h4 {
  color: var(--orange-yellow-crayola);
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

.project-main-description p {
  color: var(--light-gray);
  line-height: 1.7;
  font-size: clamp(0.9rem, 2.3vw, 1rem);
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* 미디어 컨테이너 스타일 */
.media-container {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  position: relative;
  padding-top: clamp(2rem, 5vw, 2.5rem);
  animation: fadeInUp 0.3s ease-out 0.3s both;
}

.media-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(150px, 20vw, 250px);
  height: clamp(1px, 0.2vw, 3px);
  background: linear-gradient(90deg, transparent, var(--orange-yellow-crayola), transparent);
  border-radius: clamp(0.5px, 0.1vw, 1.5px);
}

/* 미디어 아이템 스타일 */
.media-item {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 2.5rem);
  align-items: start;
  padding: clamp(1rem, 3vw, 1.5rem) 0;
  animation: slideInLeft 0.3s ease-out 0.4s both;
}

.media-item:nth-child(even) {
  animation: slideInRight 0.3s ease-out 0.4s both;
}

.media-item:not(:last-child) {
  position: relative;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.media-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(150px, 25vw, 250px);
  height: clamp(1px, 0.2vw, 3px);
  background: linear-gradient(90deg, transparent, var(--orange-yellow-crayola), transparent);
  border-radius: clamp(0.5px, 0.1vw, 1.5px);
}

.media-item .media-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.media-item .media-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-item .media-description {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(135deg, var(--jet), var(--eerie-black-1));
  border-radius: clamp(0.6rem, 1.2vw, 0.9rem);
  color: var(--white-2);
  border: clamp(0.5px, 0.1vw, 1.5px) solid var(--light-gray-70);
  box-shadow: 0 clamp(0.15rem, 0.4vw, 0.25rem) clamp(0.75rem, 2vw, 1.2rem) rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.media-item .media-description:hover {
  transform: translateY(-2px);
  box-shadow: 0 clamp(0.25rem, 0.6vw, 0.4rem) clamp(1rem, 2.5vw, 1.5rem) rgba(0, 0, 0, 0.3);
}

.media-item .media-description h4 {
  color: var(--orange-yellow-crayola);
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.media-item .media-description p {
  line-height: 1.7;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.media-item img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: clamp(8px, 1.2vw, 12px);
}

.media-item video {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: clamp(8px, 1.2vw, 12px);
}



.project-details {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 100%;
  overflow-y: auto;
}

/* 스크롤바 스타일링 */
.project-details::-webkit-scrollbar {
  width: clamp(6px, 1vw, 10px);
}

.project-details::-webkit-scrollbar-track {
  background: transparent;
}

.project-details::-webkit-scrollbar-thumb {
  background: var(--jet);
  border-radius: clamp(3px, 0.5vw, 5px);
}

.project-details::-webkit-scrollbar-thumb:hover {
  background: var(--light-gray);
}

.project-description {
  margin: 0;
}

.project-tech ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.project-tech li {
  background: var(--jet);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--fs-8);
  color: var(--orange-yellow-crayola);
  border: 1px solid var(--jet);
}

.project-links {
  display: flex;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 2.5rem);
  justify-content: flex-end;
  position: relative;
  animation: fadeInUp 0.3s ease-out 0.5s both;
}

.project-links::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(150px, 20vw, 250px);
  height: clamp(1px, 0.2vw, 3px);
  background: linear-gradient(90deg, transparent, var(--orange-yellow-crayola), transparent);
  border-radius: clamp(0.5px, 0.1vw, 1.5px);
}

.project-links .form-btn {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 0.8rem);
  align-items: center;
  justify-content: center;
  min-width: clamp(140px, 20vw, 180px);
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  color: var(--white-2) !important;
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: clamp(0.3px, 0.1vw, 0.7px);
  border-radius: clamp(1.2rem, 2vw, 1.8rem);
  background: var(--jet);
  border: clamp(0.5px, 0.1vw, 1.5px) solid var(--light-gray-70);
  transition: all 0.3s ease;
  margin: 0;
}

.project-links .form-btn:hover {
  color: var(--orange-yellow-crayola) !important;
  background: var(--light-gray-70);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 부드러운 페이드인 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 스케일 애니메이션 */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 부드러운 슬라이드 애니메이션 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 부드러운 슬라이드 애니메이션 (오른쪽) */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 타임라인 선 그리기 애니메이션 */
@keyframes drawLine {
  from {
    height: 0;
  }
  to {
    height: calc(100% + 70px);
  }
}

/* 프로젝트 아이템 새로운 애니메이션 효과들 */
@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 특이한 3D 회전 애니메이션 */
@keyframes rotateIn3D {
  0% {
    opacity: 0;
    transform: rotateY(-90deg) rotateX(20deg) scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: rotateY(-45deg) rotateX(10deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) rotateX(0deg) scale(1);
  }
}

/**
 * ===================================================================
 * 3열 그리드 아이템을 위한 동적 슬라이드 인 애니메이션 (9방향)
 * -------------------------------------------------------------------
 * JavaScript를 사용하여 그리드 아이템의 위치(인덱스)를 파악한 후,
 * 각 위치에 맞는 애니메이션 클래스를 동적으로 할당하는 것을 전제로 합니다.
 * ===================================================================
 */

/* 1. 맨 위, 왼쪽 (Top-Left) */
@keyframes slide-in-fwd-tl {
  0% {
    transform: translateZ(-200px) translateY(-100px) translateX(-150px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) translateY(0) translateX(0);
    opacity: 1;
  }
}

/* 2. 맨 위, 가운데 (Top-Center) */
@keyframes slide-in-fwd-top {
  0% {
    transform: translateZ(-200px) translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}

/* 3. 맨 위, 오른쪽 (Top-Right) */
@keyframes slide-in-fwd-tr {
  0% {
    transform: translateZ(-200px) translateY(-100px) translateX(150px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) translateY(0) translateX(0);
    opacity: 1;
  }
}

/* 4. 중간, 왼쪽 (Middle-Left) - [누락되었던 부분] */
@keyframes slide-in-fwd-left {
  0% {
    transform: translateZ(-200px) translateX(-150px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) translateX(0);
    opacity: 1;
  }
}

/* 5. 중간, 가운데 (Center) */
@keyframes slide-in-fwd-center {
  0% {
    transform: translateZ(-200px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0);
    opacity: 1;
  }
}

/* 6. 중간, 오른쪽 (Middle-Right) */
@keyframes slide-in-fwd-right {
  0% {
    transform: translateZ(-200px) translateX(150px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) translateX(0);
    opacity: 1;
  }
}

/* 7. 맨 아래, 왼쪽 (Bottom-Left) */
@keyframes slide-in-fwd-bl {
  0% {
    transform: translateZ(-200px) translateY(100px) translateX(-150px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) translateY(0) translateX(0);
    opacity: 1;
  }
}

/* 8. 맨 아래, 가운데 (Bottom-Center) */
@keyframes slide-in-fwd-bottom {
  0% {
    transform: translateZ(-200px) translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}

/* 9. 맨 아래, 오른쪽 (Bottom-Right) */
@keyframes slide-in-fwd-br {
  0% {
    transform: translateZ(-200px) translateY(100px) translateX(150px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) translateY(0) translateX(0);
    opacity: 1;
  }
}

/* 애니메이션 클래스들 - 지연 시간은 JavaScript에서 동적으로 적용 */
.slide-in-fwd-tl { animation: slide-in-fwd-tl 0.3s ease-out both; }
.slide-in-fwd-top { animation: slide-in-fwd-top 0.3s ease-out both; }
.slide-in-fwd-tr { animation: slide-in-fwd-tr 0.3s ease-out both; }
.slide-in-fwd-left { animation: slide-in-fwd-left 0.3s ease-out both; }
.slide-in-fwd-center { animation: slide-in-fwd-center 0.3s ease-out both; }
.slide-in-fwd-right { animation: slide-in-fwd-right 0.3s ease-out both; }
.slide-in-fwd-bl { animation: slide-in-fwd-bl 0.3s ease-out both; }
.slide-in-fwd-bottom { animation: slide-in-fwd-bottom 0.3s ease-out both; }
.slide-in-fwd-br { animation: slide-in-fwd-br 0.3s ease-out both; }

/* 바운스 효과가 있는 애니메이션 */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 프로젝트 모달 열기 애니메이션 */
@keyframes modal-open {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 프로젝트 모달 닫기 애니메이션 */
@keyframes modal-close {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
}

/* 모달 애니메이션 클래스들 */
.modal-open {
  animation: modal-open 0.3s ease-out both;
}

.modal-close {
  animation: modal-close 0.3s ease-out both;
}

/* 플립 효과 애니메이션 */
@keyframes flipIn {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateY(90deg);
  }
  40% {
    transform: perspective(400px) rotateY(-20deg);
  }
  60% {
    transform: perspective(400px) rotateY(10deg);
  }
  80% {
    transform: perspective(400px) rotateY(-5deg);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg);
  }
}



/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-posts { margin-bottom: 10px; }

.blog-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.blog-post-item > a {
  position: relative;
  background: var(--border-gradient-onyx);
  height: 100%;
  box-shadow: var(--shadow-4);
  border-radius: 16px;
  z-index: 1;
  animation: fadeInUp 0.3s ease-out both;
  opacity: 0;
}

.blog-post-item:nth-child(1) { animation-delay: 0.1s; }
.blog-post-item:nth-child(2) { animation-delay: 0.2s; }
.blog-post-item:nth-child(3) { animation-delay: 0.3s; }
.blog-post-item:nth-child(4) { animation-delay: 0.4s; }

.blog-post-item > a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--eerie-black-1);
  z-index: -1;
}

.blog-banner-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-banner-box img { transform: scale(1.1); }

.blog-content { padding: 15px; }

.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.blog-meta :is(.blog-category, time) {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.blog-meta .dot {
  background: var(--light-gray-70);
  width: 4px;
  height: 4px;
  border-radius: 4px;
}

.blog-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: var(--transition-1);
}

.blog-post-item > a:hover .blog-item-title { color: var(--orange-yellow-crayola); }

.blog-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.mapbox {
  position: relative;
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--jet);
  overflow: hidden;
}

.mapbox figure { height: 100%; }

.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
}

.contact-form { margin-bottom: 10px; }

.form-title { margin-bottom: 20px; }

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-input {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
  animation: slideInLeft 0.3s ease-out both;
  opacity: 0;
}

.input-wrapper:nth-child(1) .form-input { animation-delay: 0.1s; }
.input-wrapper:nth-child(2) .form-input { animation-delay: 0.2s; }
.input-wrapper:nth-child(3) .form-input { animation-delay: 0.3s; }
.input-wrapper:nth-child(4) .form-input { animation-delay: 0.4s; }

.form-input::placeholder { font-weight: var(--fw-500); }

.form-input:focus { border-color: var(--orange-yellow-crayola); }

textarea.form-input {
  min-height: 100px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
  margin-bottom: 25px;
}

textarea.form-input::-webkit-resizer { display: none; }

.form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }

.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
  animation: fadeInUp 0.3s ease-out 0.5s both;
  opacity: 0;
}

.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.form-btn ion-icon { font-size: 16px; }

.form-btn:hover { background: var(--bg-gradient-yellow-1); }

.form-btn:hover::before { background: var(--bg-gradient-yellow-2); }

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-btn:disabled:hover { background: var(--border-gradient-onyx); }

.form-btn:disabled:hover::before { background: var(--bg-gradient-jet); } 

.project-details .h3 {
  color: var(--white-2);
  font-size: var(--fs-2);
  font-weight: var(--fw-500);
  margin-bottom: 8px;
  line-height: 1.2;
}

.project-details .project-category {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-7);
  font-weight: var(--fw-400);
  background: var(--onyx);
  padding: 4px 12px;
  border-radius: 6px;
  width: max-content;
  margin-bottom: 5px;
}

.project-description .h4,
.project-tech .h4 {
  color: var(--white-2);
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  margin-bottom: 12px;
}

.project-description p {
  color: var(--light-gray);
  line-height: 1.7;
  font-size: var(--fs-6);
  margin-bottom: 15px;
  text-align: left;
  word-spacing: 0.5px;
  letter-spacing: 0.2px;
} 

/* 반응형 미디어 조정 */
@media (max-width: 1200px) {
  .media-item img,
  .media-item video {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 92%;
    max-width: 92vw;
    margin: 3vh auto;
    max-height: 92vh;
  }
  
  .modal-body {
    padding: 25px;
    gap: 30px;
  }
  
  .media-item {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .media-item img,
  .media-item video {
    max-height: 300px;
  }
  
  .project-header {
    margin-bottom: 35px;
    padding-bottom: 35px;
  }
  
  .project-main-description {
    margin-bottom: 30px;
    padding: 1.8rem;
  }
  
  .media-container {
    padding-top: 1.5rem;
  }
  
  /* 모바일에서는 애니메이션 지속시간 단축 */
  .project-header,
  .project-main-description,
  .media-container,
  .project-links {
    animation-duration: 0.25s;
  }
  
  .media-item {
    animation-duration: 0.2s;
  }
  
  /* 서비스, 타임라인, 블로그 아이템 애니메이션 단축 */
  .service-item,
  .blog-post-item {
    animation-duration: 0.2s;
  }
  
  /* 타임라인 아이템 애니메이션 단축 */
  .timeline-item {
    animation-duration: 0.2s;
  }
  
  .timeline-item::before {
    animation-duration: 0.6s;
  }
  
  .timeline-item::after {
    animation-duration: 0.3s;
  }
  
  /* 프로젝트 아이템 애니메이션 단축 */
  .project-item {
    animation-duration: 0.5s;
  }
  
  /* 폼 요소 애니메이션 단축 */
  .form-input,
  .form-btn {
    animation-duration: 0.2s;
  }
  
  .select-item button {
    animation-duration: 0.15s;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    max-width: 95vw;
    margin: 2vh auto;
    max-height: 95vh;
  }
  
  .modal-body {
    padding: 20px;
    gap: 25px;
  }
  
  .media-item img,
  .media-item video {
    max-height: 250px;
  }
  
  .project-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }
  
  .project-main-description {
    margin-bottom: 25px;
    padding: 1.5rem;
  }
  
  .media-container {
    padding-top: 1.2rem;
  }
  
  /* 작은 화면에서는 애니메이션 지속시간 더 단축 */
  .project-header,
  .project-main-description,
  .media-container,
  .project-links {
    animation-duration: 0.2s;
  }
  
  .media-item {
    animation-duration: 0.15s;
  }
  
  /* 서비스, 타임라인, 블로그 아이템 애니메이션 더 단축 */
  .service-item,
  .timeline-item,
  .blog-post-item {
    animation-duration: 0.15s;
  }
  
  /* 프로젝트 아이템 애니메이션 더 단축 */
  .project-item {
    animation-duration: 0.4s;
  }
  
  /* 폼 요소 애니메이션 더 단축 */
  .form-input,
  .form-btn {
    animation-duration: 0.15s;
  }
  
  .select-item button {
    animation-duration: 0.1s;
  }
  
  .close-modal {
    right: 1.2rem;
    top: 1.2rem;
    font-size: 1.3rem;
  }
} 