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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f4f0;
  font-family: 'Noto Serif KR', serif;
  padding: 24px;
  transition: background 0.3s, color 0.3s;
}

/* ── 다크모드 ── */
body.dark {
  background: #1a1916;
}
body.dark .card {
  background: #2a2825;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
body.dark .name { color: #f0ede8; }
body.dark .role { color: #6a6860; }
body.dark .divider { background: #3a3834; }
body.dark .contact-row { color: #c0bdb8; }
body.dark .contact-row:hover { color: #f0ede8; }
body.dark .link-btn {
  border-color: #3a3834;
  color: #7a9fc8;
}
body.dark .link-btn:hover {
  background: #2e3a44;
  border-color: #5a7fa8;
}
body.dark .copy-btn {
  background: #2e5f8a;
}
body.dark .dark-btn {
  background: #3a3834;
}

/* ── 카드 ── */
.card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  padding: 48px 40px 0;       /* 하단 padding 0 — 슬라이드쇼가 꽉 차게 */
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: fadeUp 0.6s ease both;
  overflow: hidden;           /* 슬라이드쇼 모서리 둥글게 유지 */
  transition: background 0.3s, box-shadow 0.3s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 프로필 이미지 ── */
.avatar-wrap {
  margin: 0 auto 24px;
  width: 110px;
  height: 110px;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #eeece8;
}

.avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #e8e6e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  color: #aaa8a0;
  border: 3px solid #eeece8;
}

/* ── 이름 ── */
.name {
  font-size: 26px;
  font-weight: 600;
  color: #1a1916;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: color 0.3s;
}

/* ── 직함 ── */
.role {
  font-size: 13px;
  color: #9a9890;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  transition: color 0.3s;
}

/* ── 역량 카드 ── */
.skill-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f5f4f0;
  border-radius: 10px;
  font-size: 13px;
  color: #3a3834;
  font-family: 'Noto Serif KR', serif;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.skill-card:hover {
  background: #eae8e2;
  transform: translateX(3px);
}

.skill-icon {
  width: 18px;
  height: 18px;
  color: #5a7fa8;
  flex-shrink: 0;
}

body.dark .skill-card {
  background: #222019;
  color: #c0bdb8;
}
body.dark .skill-card:hover {
  background: #2e2c28;
  color: #f0ede8;
}
body.dark .skill-icon {
  color: #7a9fc8;
}

/* ── 연락처 ── */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #3a3834;
  font-size: 14px;
  transition: color 0.18s;
}
.contact-row:hover { color: #111; }

.contact-icon { font-size: 15px; flex-shrink: 0; }

/* ── 이메일 복사 버튼 ── */
.copy-btn {
  display: block;
  width: calc(100% - 0px);
  margin: 0 0 16px;
  padding: 10px 0;
  background: #3a7bd5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s;
}
.copy-btn:hover { background: #2e5fb0; }

/* ── 링크 버튼 ── */
.links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.link-btn {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 100px;
  border: 1px solid #e0ded8;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #5a7fa8;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.link-btn:hover {
  background: #f0f4f8;
  border-color: #b8cfe0;
  color: #2e5f8a;
}

/* ── 다크모드 버튼 ── */
.dark-btn {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 10px 0;
  background: #3a7bd5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s;
}
.dark-btn:hover { background: #2e5fb0; }

/* ── 슬라이드쇼 ── */
.slideshow-wrap {
  overflow: hidden;
  margin: 0 -40px;    /* 카드 좌우 padding 상쇄 → 꽉 차게 */
  height: 200px;
}

.slideshow-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 슬라이드 닷 ── */
.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 16px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8d6d0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active {
  background: #5a7fa8;
  transform: scale(1.3);
}

/* ── 클립보드 토스트 ── */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1a1916; color: #f5f4f0;
  font-family: 'DM Mono', monospace; font-size: 12px;
  padding: 10px 20px; border-radius: 100px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 스크롤 페이드인 ── */
.fade-item {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-item.visible { opacity: 1; transform: translateY(0); }
