/* 폰트 정의 */
@font-face {
  font-family: "Pretendard";
  src: url("./images/Pretendard-Regular.woff2") format("woff2"),
    url("./images/Pretendard-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Pretendard";
  src: url("./images/Pretendard-Medium.woff2") format("woff2"),
    url("./images/Pretendard-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Pretendard";
  src: url("./images/Pretendard-Bold.woff2") format("woff2"),
    url("./images/Pretendard-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Pretendard";
  src: url("./images/Pretendard-ExtraBold.woff2") format("woff2"),
    url("./images/Pretendard-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Paperlogy";
  src: url("./images/Paperlogy-8ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Paperlogy";
  src: url("./images/Paperlogy-7Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Paperlogy";
  src: url("./images/Paperlogy-4Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Paperlogy";
  src: url("./images/Paperlogy-3Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

/* 기본 폰트 적용 */
body,
html {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
}

/* 특정 요소별 폰트 굵기 지정 */
h1 {
  font-family: "Paperlogy";
  font-weight: 800;
} /* ExtraBold */
h2 {
  font-family: "Paperlogy";
  font-weight: 700;
} /* Bold */
h3 {
  font-weight: 500;
} /* Medium */
p,
div,
span {
  font-weight: 400;
} /* Regular */

/* 스크롤바 숨기기 */
::-webkit-scrollbar {
  display: none;
}

/* Firefox용 */
html {
  scrollbar-width: none;
}

/* IE/Edge용 */
body {
  -ms-overflow-style: none;
}

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

/* 다른 글 목록 제거 */
#relatedArticles,
.another_category {
  display: none !important;
}

/* 공감/신고/공유 버튼 제거 */
.article-footer,
.post-btn,
.container_postbtn {
  display: none !important;
}

/* 댓글 영역 제거 */
#rp,
.area_reply {
  display: none !important;
}

body,
html {
  letter-spacing: -1px;
  scroll-behavior: smooth;
  background: #303030;
  overflow-x: hidden;
  color: #000000;
}

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 60px 20px;
  opacity: 0;
  transform: translateY(100px);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

/* 스크롤 탑 버튼 스타일 */
.scroll-to-top {
  position: fixed;
  bottom: 60px;
  right: 80px;
  width: 50px;
  height: 50px;
  background: #25ff66;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 255, 102, 0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #00cc52;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(37, 255, 102, 0.6);
}

.scroll-to-top::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #000000;
  transform: translateY(1px);
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 25px;
  font-family: "Pretendard", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  text-align: center;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(100px);
}

.copy-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.95);
  color: #000000;
  padding: 16px 24px;
  border-radius: 25px;
  font-family: "Pretendard", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-toast.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(100px);
}

/* 섹션1 새 디자인 */
#section1 {
  text-align: left;
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  overflow: visible;
  min-height: 70vh;
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 추가: 프로필 컨테이너가 확실히 중앙에 오도록 */
.profile-container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  justify-content: center; /* 추가 */
}

.profile-image-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 320px;
}

.profile-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease-out 0.2s forwards;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* 인터랙티브 핑크원 스타일 수정 */
.profile-accent {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 100px;
  height: 100px;
  background: #ff218c;
  border-radius: 50%;
  z-index: 3;
  opacity: 0;
  transform: scale(0);
  animation: popIn 0.6s ease-out 0.8s forwards;
  user-select: none;
  transition: transform 0.2s ease, background-color 0.1s ease; /* 부드러운 transition 추가 */
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.profile-content {
  flex: 1;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease-out 0.4s forwards;
}

.profile-text {
  margin-bottom: 40px;
}

.profile-text p {
  margin: 0;
  line-height: 1.4;
}

.greeting {
  font-size: 1.8rem;
  color: #000000; /* 검은색으로 변경 */
  font-weight: 300;
  font-family: "Paperlogy", sans-serif; /* 추가 */
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.intro {
  font-size: 1.8rem;
  color: #000000;
  font-weight: 300;
  font-family: "Paperlogy", sans-serif; /* 추가 */
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.intro u {
  text-decoration: underline;
  text-decoration-color: rgba(37, 255, 102, 0.5); /* 초록색 50% 투명도 */
  text-decoration-thickness: 5px;
  text-underline-offset: 2px;
}

.name {
  font-size: 2.8rem;
  color: #000000;
  font-weight: 800;
  font-family: "Paperlogy", sans-serif;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

.profile-buttons {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.profile-btn {
  padding: 15px 30px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: "Paperlogy", sans-serif;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-btn span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.profile-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #25ff66;
  transition: left 0.4s ease;
  z-index: 1;
}

.github-btn {
  background: #000000;
  color: #ffffff;
}

.blog-btn {
  background: #000000;
  color: #ffffff;
}

.profile-btn:hover::before {
  left: 0;
}

.profile-btn:hover span {
  color: #000000;
}

.profile-btn:hover {
  box-shadow: 0 8px 25px rgba(37, 255, 102, 0.8);
  transform: translateY(-2px);
}

/* 네비게이션 메뉴 추가 */
.navigation-menu {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 40px;
  text-align: right;
}

.nav-item {
  color: #a4a4a4;
  font-size: 1.5rem;
  font-weight: 400;
  font-family: "Paperlogy", sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: right;
}

.nav-item:hover {
  color: #000000;
  font-size: 2rem;
  font-weight: 700;
  font-family: "Paperlogy", sans-serif;
}

/* 새로운 애니메이션 키프레임 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 웨이브 전용 섹션 */
.wave-section {
  width: 100%;
  height: 150px;
  position: relative;
  background: #303030;
}

.wave-section .waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(-1);
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* 새로운 소개 섹션 스타일 */
#intro-section {
  min-height: 70vh;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Paperlogy", sans-serif;
  color: #ffffff;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.intro-content {
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

.intro-text {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
}

.intro-text p {
  margin: 0 0 16px 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* 각 문장별 순차 애니메이션 */
.intro-text p:nth-child(1) {
  animation-delay: 0.1s;
}
.intro-text p:nth-child(2) {
  animation-delay: 0.3s;
}
.intro-text p:nth-child(3) {
  animation-delay: 0.5s;
}
.intro-text p:nth-child(4) {
  animation-delay: 0.7s;
}
.intro-text p:nth-child(5) {
  animation-delay: 0.9s;
}
.intro-text p:nth-child(6) {
  animation-delay: 1.1s;
}
.intro-text p:nth-child(7) {
  animation-delay: 1.3s;
}
.intro-text p:nth-child(8) {
  animation-delay: 1.5s;
}
.intro-text p:nth-child(9) {
  animation-delay: 1.7s;
}
.intro-text p:nth-child(10) {
  animation-delay: 1.9s;
}

/* 볼드체 키워드 스타일링 */
.intro-text strong {
  font-weight: 700;
  font-family: "Pretendard", sans-serif;
}

/* 공통 섹션 레이아웃 */
#section2 {
  min-height: 50vh !important;
}
#section3 {
  min-height: 60vh !important;
}

#section4,
#section5 {
  min-height: 80vh !important;
}

#section2,
#section3,
#section4,
#section5 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 60px 40px 20px 40px !important;
  width: 100% !important;
}

.content-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 120px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.title-area {
  width: 260px;
  flex-shrink: 0;
}

.title-area h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #25ff66;
  margin: 0;
  line-height: 1.2;
}

.title-sub {
  color: #25ff66;
  font-size: 3rem;
  font-weight: 700;
}

/* SKILLS 섹션 */
.skills-area {
  flex: 1;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
}

.skill-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
  animation: staggerFadeIn 1s ease-out forwards;
}

.skill-item:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-item:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-item:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-item:nth-child(4) {
  animation-delay: 0.4s;
}
.skill-item:nth-child(5) {
  animation-delay: 0.5s;
}
.skill-item:nth-child(6) {
  animation-delay: 0.6s;
}
.skill-item:nth-child(7) {
  animation-delay: 0.7s;
}
.skill-item:nth-child(8) {
  animation-delay: 0.8s;
}
.skill-item:nth-child(9) {
  animation-delay: 0.9s;
}
.skill-item:nth-child(10) {
  animation-delay: 1s;
}
.skill-item:nth-child(11) {
  animation-delay: 1.1s;
}
.skill-item:nth-child(12) {
  animation-delay: 1.2s;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(37, 255, 102, 0.3);
}

.skill-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Docker와 Kubernetes 아이콘 흑백 처리 및 오버레이 */
.skill-item:nth-child(11),
.skill-item:nth-child(12) {
  position: relative;
}

.skill-item:nth-child(11) img,
.skill-item:nth-child(12) img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.skill-item:nth-child(11):hover img,
.skill-item:nth-child(12):hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* 호버 시 오버레이 및 텍스트 */
.skill-item:nth-child(11)::after,
.skill-item:nth-child(12)::after {
  content: "학습중";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 15.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-item:nth-child(11):hover::after,
.skill-item:nth-child(12):hover::after {
  opacity: 1;
}

/* AWARDS 섹션 */
.awards-area {
  flex: 1;
}

.award-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  opacity: 0;
  transform: translateY(50px);
  animation: staggerFadeIn 1s ease-out 0.3s forwards;
}

.award-date {
  color: #898989;
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.award-title {
  color: #000000;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.award-details {
  color: #000000;
}

.award-detail {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* PROJECT 섹션 */
.gallery-area {
  flex: 1;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto; /* repeat(2, 1fr) 대신 auto 사용 */
  gap: 20px;
  flex: 1;
  max-width: 1000px;
}

.gallery-item {
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(50px);
  animation: staggerFadeIn 1s ease-out forwards;
}

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

.gallery-item-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(37, 255, 102, 0.15);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-item-image {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(37, 255, 102, 0.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 25px 20px 20px;
  color: white;
}

.gallery-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: white;
}

/* 모달 팝업 스타일 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 1000px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.modal-content {
  padding: 30px;
  max-height: 60vh;
  overflow-y: auto;
  color: #000000;
}

/* EXPERIENCES 섹션 */
.experience-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
}

.experience-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 30px;
  opacity: 0;
  transform: translateY(50px);
  animation: staggerFadeIn 1s ease-out forwards;
}

.experience-card:nth-child(1) {
  animation-delay: 0.2s;
}
.experience-card:nth-child(2) {
  animation-delay: 0.4s;
}

.experience-period {
  color: #898989;
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.experience-title {
  color: #000000;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.experience-details {
  color: #000000;
}

.experience-detail {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.4;
}

/* 마지막 섹션 */
#section6 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  background: #303030;
}

#section6:not(.show) h2,
#section6:not(.show) .final-message, 
#section6:not(.show) .email-contact-btn {
  animation: none !important;
  opacity: 0;
  transform: translateY(30px);
}

#section6 h2 {
  font-size: 4rem;
  margin-bottom: 50px;
  font-weight: 700;
  font-family: "Paperlogy", sans-serif;
  color: #25ff66;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.final-message {
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 50px;
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.final-message p {
  margin-bottom: 16px;
}

.email-contact-btn {
  padding: 18px 40px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: "Pretendard", sans-serif;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  min-width: 280px;
}

.email-contact-btn span {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.email-contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #25ff66;
  transition: left 0.4s ease;
  z-index: 1;
}

.email-contact-btn:hover::before {
  left: 0;
}

.email-contact-btn:hover span {
  color: #000000;
}

.email-contact-btn:hover {
  box-shadow: 0 8px 25px rgba(37, 255, 102, 0.4);
  transform: translateY(-3px);
}

/* 스크롤 인디케이터 */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #25ff66, #00cc52);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1000;
}

/* 파티클 효과 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(37, 255, 102, 0.3);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

/* 숨겨진 티스토리 데이터 */
.hidden-posts {
  display: none;
}

/* 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* 반응형 디자인 - 중복 제거 후 통합 */
@media (max-width: 1024px) {
  .navigation-menu {
    display: none; /* 모바일에서는 숨김 */
  }

  .profile-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    align-items: center;
  }

  .profile-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .profile-image {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .profile-content {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    width: 100%;
    text-align: center;
  }

  .profile-text p {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .profile-buttons {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    justify-content: center;
  }

  .content-container {
    flex-direction: column !important;
    gap: 40px !important;
    text-align: center !important;
    align-items: center !important;
  }

  .title-area {
    width: auto;
  }

  .title-area h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    max-width: 600px;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto; /* auto로 변경 */
    gap: 20px;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  #section4,
  #section5 {
    min-height: auto !important; /* 콘텐츠에 맞춰 자동 조정 */
    padding: 40px 20px !important; /* 패딩도 줄임 */
  }

  #section4,
  section3 {
    margin-bottom: 60px;
  }

  .toast-notification {
    font-size: 0.8rem;
    padding: 14px 20px;
    bottom: 15px;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 25px;
    right: 25px;
  }

  .scroll-to-top::before {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 10px solid #000000;
  }

  .greeting {
    font-size: 1.4rem;
  }

  .intro {
    font-size: 1.4rem;
  }

  .name {
    font-size: 2.2rem;
  }

  .profile-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  #intro-section {
    padding: 60px 20px;
    min-height: 60vh;
  }

  .intro-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
    max-width: 400px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto; /* auto로 변경 */
    gap: 15px;
    max-width: 500px;
  }

  .title-area h2 {
    font-size: 2.5rem;
  }

  #section6 {
    padding: 60px 20px;
    min-height: 100vh;
  }

  #section6 h2 {
    font-size: 3rem;
    margin-bottom: 40px;
  }

  .final-message {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .email-contact-btn {
    padding: 16px 32px;
    font-size: 1rem;
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  #section6 h2 {
    font-size: 2.5rem;
  }

  .final-message {
    font-size: 1rem;
  }

  .email-contact-btn {
    padding: 14px 28px;
    font-size: 0.9rem;
    min-width: 240px;
  }

  #section4,
  section3 {
    margin-bottom: 40px;
  }

  #section4,
  #section5 {
    min-height: auto !important; /* 콘텐츠에 맞춰 자동 조정 */
    padding: 30px 15px !important; /* 패딩도 줄임 */
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    max-width: 300px;
  }

  .intro-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .intro-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto; /* auto로 변경 */
    gap: 15px;
    max-width: 300px;
  }
}
