/* =====================================================
   임채현 포트폴리오 — 꾸밈(CSS) 파일
   피그마 디자인 기준으로 작성
   기본 글꼴: Noto Sans KR (Pretendard 대체)
   강조 색상: #754ea4 (보라색)
   배경 색상: #f2f2f2 (연회색)
===================================================== */


/* ===================== 기초 설정 ===================== */

/* 모든 요소의 크기 계산 방식을 통일 (테두리 포함 크기 계산) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 페이지 기본 글꼴과 배경색 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f2f2f2;
  color: #212121;
  line-height: 1.6;
}

/* 이미지가 부모 상자를 벗어나지 않도록 설정 */
img {
  max-width: 100%;
  display: block;
}

/* 버튼 기본 스타일 초기화 */
button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* 목록 기호 제거 */
ul {
  list-style: none;
}


/* ===================== 공통 너비 제한 상자 ===================== */

/* 내용이 너무 넓어지지 않도록 가운데 정렬하는 상자 */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ===================== 공통 섹션 제목 ===================== */

/* Projects / Others 대제목 스타일 */
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(60px, 8vw, 119px);
  font-weight: 200;
  color: #754ea4;
  line-height: 1;
  margin-bottom: 40px;
}


/* ===================== 1. 히어로 영역 ===================== */

/* 히어로 전체 배경 영역 */
.hero {
  width: 100%;
  padding: 20px;
  background-color: #f2f2f2;
}

/* 히어로 안쪽 둥근 이미지 상자 */
.hero-inner {
  border-radius: 40px;
  overflow: hidden;
  max-width: 1880px;
  margin: 0 auto;
  height: clamp(300px, 40vw, 664px);
}

/* 히어로 영상 — 상자를 꽉 채우도록 설정 */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ===================== 2. 소개 문구 영역 ===================== */

/* 소개 섹션 전체 — 피그마 1920x700, 세로 가운데 정렬 */
.introduce {
  width: 100%;
  padding: 70px 20px;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
}

/* 텍스트 감싸는 상자 — 내용 기준으로 가운데 정렬 */
.introduce-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 소개 문구 텍스트 — 가운데 정렬, 줄바꿈 금지로 화면에 꽉 차도록 */
.introduce-text {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 4.95vw;
  text-align: center;
  line-height: 2.19;
  letter-spacing: -0.005em;
}

/* 첫 번째 줄 — 검정, weight 100, 한 줄 고정 */
.introduce-line-kr {
  display: block;
  color: #000000;
  font-weight: 100;
  white-space: nowrap;
}

/* 두 번째 줄 — 보라색, weight 400, 한 줄 고정 */
.introduce-line-en {
  display: block;
  color: #6b3fa0;
  font-weight: 400;
  white-space: nowrap;
}


/* ===================== 3. 자기소개 영역 ===================== */

/* aboutme 섹션 전체 — 피그마: 1200x633, VERTICAL, 아래 패딩 100px, 가운데 정렬 */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* About Me 대제목 — 피그마: 119px / Inter / weight 200 / 보라 / 가운데 정렬 / lineHeight 296px */
.about-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(60px, 8vw, 119px);
  font-weight: 200;
  color: #754ea4;
  text-align: center;
  line-height: 2.49;
  letter-spacing: -0.002em;
}

/* 3단 가로 나열 — 피그마: space-between, 좌우 40px 패딩 */
.about-grid {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  gap: 20px;
}

/* 각 블록 */
.about-block {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 블록 소제목 — 피그마: 25px / weight 600 / #282828 / lineHeight 32.8px */
.about-block-title {
  font-size: 25px;
  font-weight: 600;
  color: #282828;
  line-height: 32.8px;
  letter-spacing: -0.125px;
}

/* 항목 목록 */
.about-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 각 항목 행 */
.about-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

/* 레이블 — 피그마: 20px / weight 500 / #505050 */
.about-label {
  font-size: 20px;
  font-weight: 500;
  color: #505050;
  line-height: 25.6px;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

/* 이름: / 나이: 레이블 — 피그마에서 ls=11 (넓은 자간으로 너비 맞춤) */
.about-label.ls-wide {
  letter-spacing: 11px;
}

/* 내용값 — 피그마: 20px / weight 400 / #787878 */
.about-value {
  font-size: 20px;
  font-weight: 400;
  color: #787878;
  line-height: 24px;
  letter-spacing: -0.1px;
}


/* ===================== 4. 프로젝트 영역 ===================== */

/* 프로젝트 섹션 — 피그마: 1920x3412, 상70 우100 하150 좌100, gap 70, 가운데 정렬 */
.projects {
  padding: 70px 100px 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
}

/* Projects 대제목 — 피그마: 119px / Inter / weight 200 / 보라 */
.projects > .section-title {
  align-self: center;
}

/* 소카테고리 묶음 — 가운데 정렬, 카드 그리드 기준 너비 */
.projects-category {
  width: 100%;
  max-width: 1130px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 소카테고리 제목 영역 — 피그마: 가운데 정렬 */
.category-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* 소카테고리 대제목 — 피그마: 39px / weight 600 / #505050 */
.category-title {
  font-size: clamp(22px, 3vw, 39px);
  font-weight: 600;
  color: #505050;
}

/* 소카테고리 설명 — 피그마: 20px / weight 600 / #707070 */
.category-desc {
  font-size: 20px;
  font-weight: 600;
  color: #707070;
}

/* 카드 격자 — 피그마: 2열, 카드 550px씩, gap 30px */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 550px);
  gap: 30px;
  justify-content: center;
}


/* ===================== 카드 스타일 ===================== */

/* 카드 전체 상자 — 피그마: Large, 550x540, white, r=24, 안쪽 패딩 8px */
.card {
  width: 550px;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 카드에 마우스를 올리면 살짝 위로 뜨는 효과 */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* 카드 이미지 상자 — 피그마: WrapperImage, 534x387, r=24 */
.card-img-wrap {
  width: 100%;
  height: 387px;
  border-radius: 20px;
  overflow: hidden;
  /* 이미지 없을 때 회색 플레이스홀더 표시 */
  background-color: #d4d4d4;
}

/* 카드 이미지 */
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 상단부터 시작하는 이미지 */
.card-img-top {
  object-position: top;
}

/* 카드 내용 영역 — 피그마: ContentText, 14px 패딩, Column gap=17px */
/* margin-top: 6px 는 피그마 TittleCard gap=6 을 반영 */
.card-body {
  margin-top: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

/* 제목 + 툴 태그 한 줄 배치 — 피그마: HORIZONTAL, gap 5px */
.card-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* 카드 프로젝트 이름 — 피그마: 25px / weight 700 / #212121 / ls -0.12px */
.card-title {
  font-size: 25px;
  font-weight: 700;
  color: #212121;
  letter-spacing: -0.12px;
}

/* 도구 태그 묶음 */
.card-tools {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-left: auto;
}

/* 각 도구 태그 — 피그마: 20px / weight 300 / 5px 14px 패딩 / #e8e8e8 / r=12 */
.tool-tag {
  background-color: #e8e8e8;
  color: #212121;
  font-size: 20px;
  font-weight: 300;
  padding: 5px 14px;
  border-radius: 12px;
  white-space: nowrap;
}

/* 카드 설명 텍스트 — 피그마: 16px / weight 600 / #707070 / ls -0.08px */
.card-desc {
  font-size: 16px;
  font-weight: 600;
  color: #707070;
  letter-spacing: -0.08px;
}

/* 설명 + 날짜 묶음 상자 — 피그마: infobox, 세로 배치, gap 12px, 좌우 패딩 8px */
.card-infobox {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
}

/* 날짜 텍스트 — 피그마: 16px / weight 400 / #8c8c8c / 왼쪽 정렬 */
.card-date {
  font-size: 16px;
  font-weight: 400;
  color: #8c8c8c;
  letter-spacing: -0.08px;
}

/* 버튼 2개 가로 배치 — 피그마: Frame 1, HORIZONTAL, gap 15px, 우측 정렬 */
.card-btns {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* 스토리보드 보기 버튼 — 피그마: StoryBoard, 176x50, #f4f4f4 배경, 보라 글씨, r=12 */
.storyboard-btn {
  background-color: #f4f4f4;
  color: #805da9;
  font-size: 20px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 12px;
  min-width: 176px;
  min-height: 50px;
  letter-spacing: -0.1px;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 영상 보기 버튼 — 피그마: WatchVid, 176x50, #805da9 배경, r=12 */
.watch-btn {
  background-color: #805da9;
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 12px;
  min-width: 176px;
  min-height: 50px;
  letter-spacing: -0.1px;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 버튼에 마우스를 올리면 색상이 살짝 변하는 효과 */
.storyboard-btn:hover {
  background-color: #f2f2f2;
}

.watch-btn:hover {
  background-color: #9b74c2;
}


/* ===================== 5. 기타 경력 영역 ===================== */

/* 기타 경력 섹션 여백 */
.others {
  display: flex;
  width: 100%;
  padding: 70px 100px 150px 100px;
  flex-direction: column;
  align-items: center;
  gap: 70px;
  box-sizing: border-box;
}

.others .section-title {
  text-align: center;
  margin-bottom: 0;
}

/* Others 컨테이너 — 최대 너비 제한 */
.others-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
}

/* Others 섹션의 카드 그리드 — Projects와 동일 구조 */
.others .card-grid {
  display: grid;
  grid-template-columns: repeat(2, 550px);
  gap: 30px;
  justify-content: center;
}

/* Others 섹션의 단 1개 버튼 — 가운데 정렬 */
.others .card-btns {
  justify-content: center;
}

/* 타임라인 목록 전체 (process 프레임) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0 100px 100px 100px;
  box-sizing: border-box;
}

/* 타임라인 각 항목 */
.timeline-item {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 24px 0 24px 20px;
  border: none;
  align-items: flex-start;
}

/* 타임라인 카테고리 박스 (좌측) */
.timeline-category-box {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

/* 타임라인 메타+콘텐츠 (중앙) - 슬래시, 연도, 제목, 설명 함께 표시 */
.timeline-meta-year-content {
  display: flex;
  flex-direction: row;
  gap: 56px;
  align-items: flex-start;
  flex: 1;
}

/* 타임라인 슬래시+연도 (슬래시 박스) */
.timeline-slash-year {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
  flex-shrink: 0;
}

/* 타임라인 왼쪽: 이미지 (레거시 - 사용 안 함) */
.timeline-left {
  display: none;
}

/* 타임라인 이미지 */
.timeline-img {
  width: 220px;
  height: 316px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 포스터 이미지 - 원본 이미지 비율 유지 */
.timeline-poster {
  /* height: auto; */
  object-fit: contain;
  aspect-ratio: auto;
  border-radius: 0;
}

/* 아트워크 이미지 - 가로는 포스터와 동일, 높이는 원본 비율 유지 */
.timeline-img-artwork {
  /* height: auto; */
  object-fit: contain;
}

/* 타임라인 오른쪽: 내용 (레거시 - 사용 안 함) */
.timeline-right {
  display: none;
}

/* 카테고리 / 연도 한 줄 */
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* 타임라인 텍스트 섹션 */
.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

/* 카테고리 이름 (공연 기획, 음원 발매) */
.timeline-category {
  font-size: 25px;
  font-weight: 600;
  color: #212121;
  white-space: nowrap;
}

/* 슬래시 구분자 */
.timeline-slash {
  font-family: 'Manrope', sans-serif;
  font-size: 36px;
  font-weight: 200;
  color: #dbdbdb;
  line-height: 1;
}

/* 연도 숫자 */
.timeline-year {
  font-size: 25px;
  font-weight: 600;
  color: #999999;
  white-space: nowrap;
}

/* 타임라인 항목 제목 */
.timeline-title {
  font-size: 25px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* 타임라인 항목 설명 */
.timeline-desc {
  font-size: 20px;
  font-weight: 300;
  color: #000000;
  line-height: 1.8;
}


/* ===================== 6. 꼬리말 영역 ===================== */

/* 꼬리말 검정 배경 */
.site-footer {
  background-color: #000000;
  padding: 80px 20px;
}

/* 꼬리말 내용 가운데 정렬 */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* 꼬리말 흰색 문구 */
.footer-text {
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.8;
}


/* ===================== 반응형: 태블릿 (768px 이하) ===================== */

@media (max-width: 768px) {

  /* 히어로 이미지 높이 줄이기 */
  .hero-inner {
    height: 280px;
    border-radius: 20px;
  }

  /* 소개 문구 여백 줄이기 */
  .introduce {
    padding: 50px 20px;
  }

  /* 자기소개 3단 → 1단으로 변경 */
  .about-grid {
    flex-direction: column;
    padding: 0 20px;
    gap: 32px;
  }

  /* 프로젝트 섹션 패딩 줄이기 */
  .projects {
    padding: 50px 20px 80px;
    gap: 50px;
  }

  /* Others 섹션 패딩 줄이기 */
  .others {
    padding: 50px 20px 80px;
  }

  .others-container {
    gap: 50px;
  }

  /* 프로젝트 + Others 카드 2열 → 1열로, 너비 자동 */
  .card-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .card {
    width: 100%;
  }

  /* 카드 이미지 높이 줄이기 */
  .card-img-wrap {
    height: 260px;
  }

  /* 타임라인 항목 세로 정렬로 변경 */
  .timeline-item {
    flex-direction: column;
    gap: 20px;
  }

  /* 타임라인 이미지 전체 너비로 변경 */
  .timeline-left {
    width: 100%;
    height: 200px;
  }
}


/* ===================== 반응형: 모바일 (480px 이하) ===================== */

@media (max-width: 480px) {

  /* 히어로 패딩 줄이기 */
  .hero {
    padding: 12px;
  }

  .hero-inner {
    height: 200px;
    border-radius: 14px;
  }

  /* 모바일에서 버튼 2개 세로 쌓기 */
  .card-btns {
    flex-direction: column;
    align-items: center;
  }

  /* 스토리보드 버튼 전체 너비 */
  .storyboard-btn {
    width: 100%;
    text-align: center;
  }
}
