* {
  word-break: keep-all;
}

/* =====================
   전체 초기화
   모든 요소의 기본 여백, 패딩 제거
   ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   body 기본 설정
   배경 검정, 가로 스크롤 숨김
   클릭 전까지 세로 스크롤도 막힘 (entered 클래스로 해제)
   ===================== */
body {
  background-color: #000000;
  overflow-x: hidden;
}

body.entered {
  overflow-x: hidden;
  overflow-y: auto;
}

/* =====================
   로딩 배경 영상
   hero 섹션 전체를 덮는 영상
   ===================== */
.grid-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}

/* =====================
   전체 페이지 컨테이너
   ===================== */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* =====================
   히어로 섹션 (첫번째 화면)
   화면 전체 높이, 영상 배경
   ===================== */
.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #000000);
  z-index: 2;
}

/* =====================
   메인 배경 영상 (클릭 후 등장)
   ===================== */
.main-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
}

/* =====================
   상단 텍스트 (수원대학교 정보보호학과 · 이유나)
   클릭 후 등장
   ===================== */
.main-content {
  padding: 40px;
  opacity: 0;
  position: relative;
  z-index: 3;
}

.sub-text-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  opacity: 0;
}

/* =====================
   하단 LEE YUNA 글씨
   히어로 섹션 하단에 고정
   ===================== */
.bottom-name {
  display: flex;
  align-items: flex-end;
  padding: 0;
  opacity: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
}

.bottom-name span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10vw;
  font-weight: 300;
  color: #ffffff;
  line-height: 0.85;
  display: inline-block;
}

.bottom-name .space {
  width: 3vw;
}

/* =====================
   로딩 오버레이
   클릭 전까지 화면 전체 덮음
   ===================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  gap: 20px;
  background-color: transparent;
}

/* =====================
   로딩화면 LEE YUNA 글씨
   둥둥 떠다니는 애니메이션
   ===================== */
.center-name {
  display: flex;
  align-items: center;
  opacity: 0;
}

.center-name span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 8px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  text-shadow:
    0 0 10px rgba(212, 187, 239, 0.8),
    0 0 20px rgba(212, 187, 239, 0.5),
    0 0 40px rgba(212, 187, 239, 0.3);
}

.center-name .space {
  width: 30px;
}

.center-name span:nth-child(1) { animation-delay: 0s; }
.center-name span:nth-child(2) { animation-delay: 0.2s; }
.center-name span:nth-child(3) { animation-delay: 0.4s; }
.center-name span:nth-child(4) { animation-delay: 0.6s; }
.center-name span:nth-child(5) { animation-delay: 0.8s; }
.center-name span:nth-child(6) { animation-delay: 1.0s; }
.center-name span:nth-child(7) { animation-delay: 1.2s; }
.center-name span:nth-child(8) { animation-delay: 1.4s; }

@keyframes float {
  0%   { transform: translateY(0px); filter: blur(0px); }
  50%  { transform: translateY(-15px) translateX(-3px); filter: blur(1px); }
  100% { transform: translateY(0px); filter: blur(0px); }
}

/* =====================
   로딩화면 서브텍스트
   ===================== */
.sub-text {
  text-align: center;
  opacity: 0;
}

.sub-text p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 4px;
  line-height: 2.2;
}

/* =====================
   click anywhere 힌트 텍스트
   ===================== */
.click-hint {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 6px;
  opacity: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* =====================
   네비게이션 바
   ===================== */
.navbar {
  position: fixed;
  top: -80px;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: flex-end;
  z-index: 100;
  opacity: 0;
}

.navbar ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

.navbar ul li a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  letter-spacing: 3px;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #D4BBEF;
}

/* =====================
   별 반짝이는 캔버스
   ===================== */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

/* =====================
   섹션 공통 스타일
   ===================== */
.section {
  min-height: 100vh;
  padding: 120px 80px;
  position: relative;
  z-index: 2;
}

/* =====================
   About 섹션
   ===================== */
.about-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  background-color: #000000;
  position: relative;
  z-index: 10;
  padding: 220px 80px 120px;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: rgba(212, 187, 239, 0.6);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.about-title {
  font-family: 'Pretendard', sans-serif;
  font-size: 50px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.2;
  max-width: 700px;
}

.about-title span {
  color: #D4BBEF;
}

.about-title em {
  font-style: italic;
  font-weight: 350;
  color: #D4BBEF;
}

.about-desc {
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 2;
  max-width: 500px;
  letter-spacing: 1px;
}

.about-info {
  display: flex;
  gap: 60px;
  margin-top: 20px;
}

.about-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-info-item .label {
  font-family: 'Pretendard', sans-serif;
  font-size: 11px;
  color: rgba(212, 187, 239, 0.5);
  letter-spacing: 4px;
}

.about-info-item .value {
  font-family: 'Pretendard', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
}

/* =====================
   스크롤 파티클
   About 섹션에서만 나타나는 보라색 가루
   ===================== */
.particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(180, 100, 255, 1);
  pointer-events: none;
  z-index: 9998;
  box-shadow: 0 0 6px rgba(180, 100, 255, 1), 0 0 12px rgba(180, 100, 255, 0.8);
}

/* =====================
   Skills 섹션
   SVG 선 + 스킬 항목들
   ===================== */
.skills-section {
  position: relative;
  background-color: #000000;
  min-height: 600vh;
  padding: 120px 80px;
  overflow: hidden;
}

.skills-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

#skillPath {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.skill-item {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  z-index: 2;
}

.skill-left {
  left: 25%;
}

.skill-right {
  right: 25%;
  text-align: right;
}

.skill-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 3px;
}

.skill-desc {
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  margin-top: 8px;
}

/* =====================
   Skills 섹션 마지막 - 달 + 아우라
   ===================== */
.skills-ending {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  opacity: 0;
  z-index: 2;
}

.moon-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.moon-aura {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(180, 100, 255, 0.5) 0%,
    rgba(140, 60, 255, 0.3) 30%,
    rgba(100, 40, 200, 0.1) 60%,
    transparent 75%
  );
  filter: blur(20px);
  animation: auraGlow 3s ease-in-out infinite;
  z-index: 0;
}

.moon-aura2 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(220, 150, 255, 0.6) 0%,
    rgba(180, 100, 255, 0.3) 40%,
    transparent 70%
  );
  filter: blur(10px);
  animation: auraGlow 2s ease-in-out infinite reverse;
  z-index: 0;
}

@keyframes auraGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.08); }
}

.star-image {
  width: 250px;
  position: relative;
  z-index: 1;
  mix-blend-mode: screen;
}

.skills-ending-text {
  font-family: 'Pretendard', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 4px;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 0 10px rgba(212, 187, 239, 0.8),
    0 0 20px rgba(212, 187, 239, 0.5);
  z-index: 3;
}

/* =====================
   산 섹션
   선이 산 뒤로 사라지는 효과
   ===================== */
.mountain-section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55vh;
  z-index: 3;
  pointer-events: none;
}

.mountain-back {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 75%;
  z-index: 4;
  mix-blend-mode: screen;
}

.mountain-front {
  position: absolute;
  bottom: 0;
  right: -5%;
  width: 35%;
  z-index: 5;
  mix-blend-mode: screen;
}

/* =====================
   Projects 섹션
   검정 배경 + 연보라 액자식 구성
   ===================== */
.projects-section {
  background-color: #000000;
  padding: 55px 30px 30px;
  margin-top: -20vh;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 6;
}

/* 연보라색 액자 */
.projects-frame {
  width: 100%;
  min-height: calc(100vh - 60px);
  padding: 90px 90px 100px;
  border-radius: 0;
  background-color: #c8b3de;
  border: 1px solid rgba(80, 40, 120, 0.35);
  box-shadow:
    0 0 40px rgba(212, 187, 239, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.projects-frame-header {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

.projects-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 3px;
  margin-top: 30px;
  margin-bottom: 16px;
}

.projects-title span {
  color: rgba(255, 255, 255, 0.45);
}

.projects-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 2px;
}

.projects-notice {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: rgba(80, 40, 120, 0.5);
  letter-spacing: 2px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.projects-loading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: rgba(80, 40, 120, 0.4);
  letter-spacing: 6px;
  text-align: center;
  padding: 80px 0;
  animation: pulse 1.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.projects-grid {
  display: none; /* 슬라이더로 교체 */
}

/* 슬라이더 전체 래퍼 */
.projects-slider-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* 슬라이더 뷰포트 (넘치는 부분 숨김) */
.projects-slider {
  flex: 1;
  overflow: hidden;
}

/* 슬라이드들을 가로로 나열하는 트랙 */
.projects-track {
  display: flex;
  transition: none; /* GSAP이 제어 */
  width: 100%;
}

/* 각 페이지 슬라이드 - 카드 1개, 전체 너비 */
.projects-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 20px;
}

.projects-slide .project-card {
  width: 100%;
  max-width: 860px;
  min-height: 320px;
}

/* 화살표 버튼 */
.slider-arrow {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.3s, color 0.3s, opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  border-color: #D4BBEF;
  color: #D4BBEF;
}

/* 점 네비게이션 */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(212, 187, 239, 0.25);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.slider-dot.active {
  background: #D4BBEF;
  transform: scale(1.4);
}

/* 숨겨진 카드 (이전 방식 잔재 제거) */
.card-hidden {
  display: none;
}

/* View More 버튼 (이전 방식 잔재 제거) */
.projects-more { display: none; }
.project-card {
  min-height: 230px;
  border: 1px solid rgba(80, 40, 120, 0.35);
  border-radius: 22px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  cursor: pointer;
  background-color: #d8c7e8;
  box-shadow: 0 12px 35px rgba(80, 40, 120, 0.18);
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(80, 40, 120, 0.65);
  background-color: #e2d4ef;
  box-shadow: 0 18px 45px rgba(80, 40, 120, 0.28);
}

.project-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.project-topic {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(80, 40, 120, 0.25);
  border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(80, 40, 120, 0.75);
  background-color: rgba(255, 255, 255, 0.28);
}

.card-top {
  display: flex;
  justify-content: flex-end;
}

.card-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: rgba(80, 40, 120, 0.55);
  letter-spacing: 2px;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: #2d1a4a;
  letter-spacing: 2px;
  word-break: break-all;
}

.card-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: rgba(40, 20, 70, 0.7);
  letter-spacing: 1px;
  line-height: 1.8;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(80, 40, 120, 0.15);
}

.card-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: rgba(80, 40, 120, 0.8);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.card-link:hover {
  color: #ffffff;
}

/* 숨겨진 카드 */
.card-hidden {
  display: none;
}

/* View More 버튼 영역 */
.projects-more {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.more-btn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 16px 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  border-radius: 2px;
}

.more-btn:hover {
  border-color: rgba(212, 187, 239, 0.8);
  color: #D4BBEF;
  background: rgba(212, 187, 239, 0.05);
}

.more-btn-count {
  font-size: 11px;
  color: rgba(212, 187, 239, 0.7);
  letter-spacing: 2px;
  background: rgba(212, 187, 239, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
}

/* =====================
   Contact 섹션
   ===================== */
.contact-section {
  background-color: #000000;
  min-height: auto;
  height: auto;
  padding: 70px 80px;
  border-top: 1px solid rgba(212, 187, 239, 0.08);
  position: relative;
  overflow: hidden;
}

.contact-section .section-label,
.contact-section .contact-title,
.contact-section .contact-info {
  position: relative;
  z-index: 3;
}

.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 3px;
  margin-top: 18px;
}

.contact-title span {
  color: #D4BBEF;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.contact-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: rgba(212, 187, 239, 0.5);
  letter-spacing: 4px;
  min-width: 80px;
}

.contact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-decoration: none;
  transition: color 0.3s;
}

a.contact-value:hover {
  color: #D4BBEF;
}

/* =====================
   푸터
   ===================== */
.footer-end {
  background-color: #000000;
  padding: 24px 80px 36px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(212, 187, 239, 0.35);
  border-top: 1px solid rgba(212, 187, 239, 0.06);
}

.tech-tag {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: rgba(212, 187, 239, 0.85);
  letter-spacing: 3px;
  pointer-events: none;
  z-index: 3;
  text-shadow:
    0 0 10px rgba(212, 187, 239, 0.6),
    0 0 20px rgba(212, 187, 239, 0.3);
}

.spark {
  display: inline-block;
  margin-left: 16px;
  font-size: 42px;
  color: #D4BBEF;
  pointer-events: none;
  text-shadow:
    0 0 10px rgba(212, 187, 239, 1),
    0 0 30px rgba(212, 187, 239, 0.8),
    0 0 60px rgba(212, 187, 239, 0.4);
  vertical-align: middle;
}