@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg-img: url("../img/body_background.png") no-repeat center top / cover;
  --white-color: #fff;
  --black-color: #000;
  --page-title: #f40f6b;
  --con-title: #222;
  --page-contens: #333;
  --sub-menu-underbar: #eee;
  --sub-menu-underbar-active: #433438;

  /* 폰트 패밀리 변수 정의 */
  --font-playfair: "Playfair Display", serif;
  --font-pretendard: "Pretendard Variable", sans-serif;
  --font-gowun: "Gowun Dodum", sans-serif;
  --font-raleway: "Raleway", sans-serif;
}

body {
  background: var(--bg-img);
  font-family: var(--font-gowun);
}

/* 가로 스크롤 제거 */
html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

section {
  width: 100vw;
  min-height: 100vh;

  box-sizing: border-box;
  padding: 100px 0; /* GNB 높이(80px)와 여유 공간(20px)을 합쳐 상단 패딩을 조정 */
}

h1 {
  font-family: var(--font-playfair);
  font-weight: 600;
  font-size: 80px;
  color: var(--page-title);

  text-align: center;
  margin-bottom: 40px;
}

/* =======================================
  GNB 관련 스타일
========================================= */
/* 고정 GNB */
.gnb-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* 최상단 배치 */

  /* background: rgba(255, 255, 255, 0.95); */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* 사파리 지원 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  transition: all 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.gnb {
  display: flex;
  list-style: none;

  gap: 100px;
  padding: 0;

  list-style: none;
}

.gnb li a {
  text-decoration: none;
  color: var(--white-color);

  font-family: var(--font-playfair);
  font-size: 50px;
  font-weight: 700;

  transition: all 0.3s ease;
  position: relative;
}

.gnb li a:hover {
  color: var(--page-title);
}

.gnb li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;

  transform: translateX(-50%);
  background-color: var(--page-title);
  transition: width 0.3s ease;

  width: 30px;
  height: 3px;

  transition: width 0.3s ease;
}

.gnb li a:hover::after {
  width: 100%;
}

/* GNB 스크롤 시 작아지는 효과 */
.gnb-fixed.scrolled {
  padding: 15px 0;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.gnb-fixed.scrolled .gnb li a {
  font-size: 30px;
}

/* Main Section */
/* 첫 번째 섹션(main)은 전체 화면 */
.main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: relative;
  scroll-margin-top: 0; /* main 섹션은 상단 여백 제거 */

  padding-top: 80px; /* GNB 바로 아래에서 시작 */
}

.home-title {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-title h1 {
  /* 1920px 이상일 때, 텍스트가 줄 바꿈되는 것을 방지하여 무조건 한 줄로 표시 */
  white-space: nowrap;

  line-height: 1.2;
  margin: 0;

  font-weight: 900;
  font-size: 80px;
  color: var(--page-title);

  /* 폰트 스타일을 Italic으로 설정 */
  font-style: italic;
}

/* --- 1920px 이하에서 반응형 처리 --- */
@media (max-width: 1900px) {
  .home-title h1 {
    /* 화면 너비가 1920px 이하가 되면 줄 바꿈을 허용 (기본값으로 복원) */
    white-space: normal;
  }
}

.home-title h2 {
  /* font-family: var(--font-pretendard); */
  line-height: 1.2;
  margin: 0;

  font-weight: 800;
  font-size: 40px;
  color: var(--black-color);
}

.home-title h3 {
  /* font-family: var(--font-pretendard); */
  line-height: 1.2;
  margin-top: 30vh;

  font-weight: 600;
  font-size: 35px;
  color: var(--black-color);

  /* --- 한 줄로 강제 표시 --- */
  white-space: nowrap;
}

/* --- 1920px 이하에서 반응형 처리 --- */
@media (max-width: 1900px) {
  .home-title h3 {
    /* 화면 너비가 1920px 이하가 되면 줄 바꿈을 허용 (기본값으로 복원) */
    white-space: normal;
  }
}

/* Scroll Down 텍스트와 화살표 */
.scroll-down {
  position: absolute;
  bottom: 200px;
  left: 0;
  right: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  color: var(--page-title);

  animation: bounce 2s infinite ease-in-out;

  /* 추가: 페이드 효과를 위한 transition */
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  visibility: visible;
}

/* 스크롤 시 숨김 처리 */
.scroll-down.hidden {
  opacity: 0;
  visibility: hidden;
}

.scroll-down p {
  font-family: var(--font-raleway);

  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  color: var(--page-title);
}

.scroll-down img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 아래로 움직이는 애니메이션 */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* About Me 섹션 */
.about-me {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-con {
  max-width: 1700px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 100px;
  margin: 0 auto;
}

.left-section {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-image {
  width: 350px;
  height: 350px;
  /* height: auto; */
  object-fit: cover;
  border-radius: 100%;
  filter: grayscale(100%);
}

.profile-text {
  padding: 12px;
}

.left-section h2 {
  font-family: var(--font-raleway);
  font-weight: 600;
  font-size: 42px;
  color: var(--page-title);
  margin-top: 10px;
  line-height: 1.6;
}

.left-section ul {
  list-style: none;
  margin: 10px auto;
}

.left-section ul li {
  font-family: var(--font-gowun);
  font-size: 22px;
  line-height: 1.6;
  color: var(--sub-menu-underbar-active);
}

.left-section p {
  font-family: var(--font-gowun);
  font-weight: 600;
  font-size: 18px;
  color: var(--con-title);
  margin-top: 20px;
  line-height: 1.6;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
}

.skill-icons img {
  width: 50px;
  height: 50px;
  gap: 10;
}

.skills h2,
.right-section h2 {
  font-family: var(--font-playfair);
  font-size: 24px;
  color: var(--page-title);

  font-weight: 600;
}

.right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.right-section > .info > .EDUCATION > h2 {
  margin: 0;
}

/* EDUCATION, Experience, CAREER 섹션의 dl 태그 스타일링 */
.right-section dl {
  display: flex;
  flex-direction: column;

  padding: 20px;
}

.right-section dl dt,
.right-section dl dd {
  font-family: var(--font-gowun);
  font-size: 18px;
  color: var(--page-contens);
  line-height: 1.6;

  display: block;
  margin: 0;
}

/* dt와 dd를 한 쌍으로 묶어서 flex로 배치 */
.right-section dl dt {
  width: 150px;
  font-weight: 600;
  color: var(--con-title);
  flex-shrink: 0;
  vertical-align: top;
}

.right-section dl dd {
  width: calc(100% - 150px);
  padding-left: 20px;
  color: var(--page-contens);
}

/* dt + dd를 한 줄로 만들기 위한 추가 스타일 */
.right-section dl dt::after {
  content: "";
}

/* 각 dt+dd 쌍을 감싸는 wrapper 효과 */
.right-section dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px 20px;
  margin-top: 15px;
}

/* 반응형 처리 (선택사항) */
@media (max-width: 992px) {
  .about-con {
    flex-direction: column;
    align-items: center;
  }

  .left-section {
    flex: none;
    width: 100%;
    max-width: 500px;
  }

  .right-section {
    width: 100%;
  }
}

/* Portfolio 섹션 */

/* Portfolio Tabs */
.portfolio-tabs {
  list-style: none;
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto 80px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--sub-menu-underbar);
}

.portfolio-tabs li {
  font-family: var(--font-gowun);
  font-weight: 500;
  font-size: 20px;
  padding: 10px 20px;
  cursor: pointer;
  color: var(--con-title);
  position: relative;
  transition: all 0.5s ease;
}

.portfolio-tabs li:hover {
  font-weight: 700;
  color: var(--con-title);
}

.portfolio-tabs li::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 4px;
  background: var(--sub-menu-underbar-active);
  z-index: 1;
  transition: 0.4s;
}

.portfolio-tabs li:hover::after,
.portfolio-tabs li.active::after {
  width: 110%;
}

/* 활성화된 탭 스타일 */
.portfolio-tabs li.active {
  font-weight: 700;
  color: var(--page-title);
}

/* Portfolio Content */
.portfolio-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: none;
  opacity: 0;
}

/* 활성화된 콘텐츠 */
.portfolio-content.active {
  display: block;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-item {
  display: flex;
  gap: 50px;

  justify-content: center;
  align-items: center;
}

/* Portfolio Image */
.portfolio-image {
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-image:hover {
  transform: scale(1.02);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portfolio Text */
.portfolio-text {
  display: flex;
  flex-direction: column;
  gap: 70px;
  margin-bottom: 120px;

  width: 600px;
}

.portfolio-text dl {
  margin: 0;
  text-align: center;
}

.portfolio-text dt {
  font-family: var(--font-gowun);
  font-weight: 600;
  font-size: 30px;
  color: var(--con-title);
  margin-bottom: 15px;
}

.portfolio-text dd {
  font-family: var(--font-gowun);
  font-size: 24px;
  color: var(--page-contens);
  line-height: 1.6;
  margin: 0;
}

.portfolio-text dl:last-child {
  font-family: var(--font-raleway);
}

/* 첫 번째 dl - 중앙 정렬 */
/* .portfolio-text dl{
  text-align: center;
} */
/* .portfolio-text dl:first-child {
  text-align: center;
} */

/* 두 번째 dl - 왼쪽 정렬 */
/* .portfolio-text dl:last-child {
  text-align: left;

}  */

/* Design 섹션 */
.design {
  /* 가로스크롤을 위한 고정 설정 */
  width: 100%;
  padding: 100px 20px; /* GNB 높이 + 여유 공간 확보 */
  position: relative;
  /* 가로스크롤 시 섹션 높이를 충분히 확보 */
  min-height: 100vh;
  box-sizing: border-box;
}

/* 슬라이더 컨테이너 */
.design-slider-container {
  position: relative;

  margin: 0 150px;
  display: flex;
  align-items: center;
  gap: 30px;
}

/* 슬라이더 영역 */
.design-img {
  overflow: hidden;
  position: relative;
  width: 100%;
  flex: 1;
}

.design-slider {
  display: flex;
  gap: 30px;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* 각 슬라이드 아이템 */
.slide-item {
  width: 500px; /* 가로 500px 고정 */
  height: 600px; /* 세로 600px 고정 */
  flex-shrink: 0;
}

.slide-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: 10px;
  display: block;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

/* 가로스크롤 진행 중 body 스크롤 방지 */
body.horizontal-scrolling {
  overflow: hidden;
}

/* 슬라이더 버튼 */
.slider-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--page-title);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--page-title);
  color: var(--white-color);
  transform: scale(1.1);
}

.slider-btn:active {
  transform: scale(0.95);
}

/* Controls wrapper (dots with buttons left/right) */
.slider-controls {
  max-width: 1400px;
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Marquee (continuous scroll) styles */
.design-slider {
  will-change: transform;
  /* ensure no transition when marquee is running */
}

.design-slider.marquee {
  animation-name: marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--marquee-duration, 20s);
}

.design-slider.paused {
  animation-play-state: paused !important;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--marquee-distance, 1000px)));
  }
}

/* 슬라이드 인디케이터 (dots) */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(244, 15, 107, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--page-title);
  width: 30px;
  border-radius: 6px;
}

.slider-dots .dot:hover {
  background: var(--page-title);
}

/* Contact 섹션 */
.contact {
  width: 100%;
  min-height: 80vh; /* CONTACT 섹션은 min-height를 조금 줄여봤습니다. */

  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact .contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);

  z-index: 1;
}

.contact-text {
  position: relative;

  width: 700px;
  height: 400px;

  margin: 150px auto;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* 카드 배경 (blur 효과가 있는 radial gradient) */
.contact-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 750px;
  height: 430px;
  border-radius: 20px;

  background: radial-gradient(
    circle at center,
    rgba(255, 98, 166, 0.2) 0%,
    rgba(255, 60, 144, 0.5) 100%
  );

  filter: blur(100px);
  z-index: 0;
}

/* 카드 자체 (backdrop blur 효과) */
.contact-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);

  z-index: 1;
}

.contact p {
  font-family: var(--font-raleway);
  font-weight: 400;
  font-size: 30px;
  color: var(--page-contens);

  position: relative;
  z-index: 2;
}

/* Top 버튼 */
.top-btn {
  display: none;
  position: fixed;

  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;

  background: var(--page-title);
  color: var(--white-color);
  cursor: pointer;

  font-size: 28px;
  z-index: 999;

  transition: all 0.3s ease;

}

/* 스크롤 시 버튼 표시 */
.top-btn.show {
  /* opacity: 1;
  visibility: visible; */
  background: var(--black-color);
  transform: translateY(-3px);
}

/* 호버 효과 */
.top-btn:hover {
  background: var(--page-title);
  transform: scale(1.1);
  box-shadow: 0 6px 20px hsla(336, 89%, 39%, 0.836);
}

/* 클릭 효과 */
.top-btn:active {
  transform: translateY(-2px);
}

/* 화살표 애니메이션 */
.top-btn span {
  animation: arrowBounce 1.5s infinite ease-in-out;
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
