/* PretendardVariable 폰트 선언 */
@font-face {
  font-family: 'Pretendard';
  src: url('./font/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 100 900; /* Variable 폰트 범위 지정 */
  font-style: normal;
  font-display: swap; /* 깃허브 로딩 느림 방지 */
}

/* 기본 폰트 강제 적용 */
body, html {
  font-family: 'Pretendard', sans-serif !important;
  margin: 0;
  background-color: #f5f5f5;
  color: #222;
}

/* 공통 페이지 레이아웃 */
.page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 카드 공통 스타일 */
.card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 24px;
}

/* 헤더 카드 특화 */
.header-card {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.profile-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc;
  margin-bottom: 16px;
}

.header-card h1 {
  font-size: 2.4em;
  margin-bottom: 4px;
}

.subtitle {
  color: #666;
  font-weight: 500;
}

/* 섹션 제목 */
.card h2 {
  font-size: 1.3em;
  border-left: 4px solid #4c4c4c;
  padding-left: 8px;
  margin-bottom: 12px;
}

/* 프로젝트 / 리스트 항목 */
.list-item {
  margin-bottom: 16px;
}

.list-item h3 {
  font-size: 1.1em;
  margin-bottom: 4px;
}

a {
  color: #0077ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 20px;
}

/* 아코디언 버튼 */
.accordion-button {
  width: 100%;
  text-align: left;
  background-color: #f5f5f5;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 1em;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background-color 0.2s;
}

.accordion-button:hover {
  background-color: #e0e0e0;
}

.accordion-button.active {
  background-color: #ddd;
}

/* 아코디언 내용 영역 */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 16px;
  margin-bottom: 8px;
}

/* 카드 표시 버튼 */
.show-card-button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s;
}

.show-card-button:hover {
  background-color: #e0e0e0;
}

/* 프로젝트 카드 */
.project-card {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 0 16px;
  margin-bottom: 16px;
  pointer-events: none;
}

.project-card.open {
  max-height: 600px;
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
}

/* 기술 스택 테이블 */
.skill-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.95em;
}

.skill-table th {
  background-color: #f0f0f0;
  padding: 10px;
  text-align: left;
  border-bottom: 2px solid #ccc;
}

.skill-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
}

.skill-table tr:hover {
  background-color: #fafafa;
}

/* 프로젝트 이미지 그리드 */
.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.project-images img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-images img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
