:root {
  --primary-color: #333;
  --secondary-color: #3182f6;
  --accent-color: #e2f0ff;
  --text-color: #333;
  --background-color: #fff;
  --light-gray: #f5f7fa;
  --border-color: #e9ecef;
  --section-gap-large: 2.5em;
  --section-gap-medium: 1.8em;
  --section-gap-small: 1.2em;
  --medium-gray: #555;
  --result-color: #16a085;
  --implementation-bg: rgba(49, 130, 246, 0.05);
  --result-bg: rgba(22, 160, 133, 0.05);
  --problem-color: #e74c3c;
  --problem-bg: rgba(231, 76, 60, 0.05);
  --implementation-color: #3182f6;
  --tech-color: #16a085;
  --tech-bg: rgba(22, 160, 133, 0.05);
}

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

body {
  width: 21cm;
  height: 29.7cm;
  margin: 0 auto;
  padding: 1.5cm;
  position: relative;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 10.5pt;
  line-height: 1.5;
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-medium);
}

h2 {
  margin-bottom: 1em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  font-size: 1.4em;
  font-weight: 700;
}

h2 i {
  margin-right: 0.4em;
}

h3 {
  color: var(--secondary-color);
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.6em;
}

h4 {
  color: var(--primary-color);
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.8em;
}

section {
  page-break-inside: avoid;
}

/* 섹션별 차별화된 간격 */
#profile {
  margin-bottom: var(--section-gap-large);
}

#projects {
  margin-bottom: var(--section-gap-medium);
}

#education,
#certifications {
  margin-bottom: var(--section-gap-small);
}

/* 프로필 섹션 */
#profile {
  break-inside: avoid;
}

.header-card {
  position: relative;
  margin-bottom: 1.5em;
  padding: 1.8em;
  overflow: hidden;
  background-color: var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.profile-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2em;
}

.profile-basics h1 {
  color: var(--primary-color);
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.tagline {
  position: relative;
  display: inline-block;
  margin-top: 0.3em;
  color: var(--secondary-color);
  font-size: 1.2em;
  font-weight: 500;
}

.tagline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.one-line-intro {
  margin-bottom: 1.5em;
  padding: 0.8em 0 1em 0;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.one-line-intro h1 {
  margin: 0 auto;
  color: var(--primary-color);
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  max-width: 95%;
  word-break: keep-all;
  overflow-wrap: break-word;
}


.profile-image-container {
  position: relative;
  z-index: 1;
}

.profile-img {
  position: relative;
  z-index: 2;
  width: 110px;
  height: 110px;
  border: 3px solid white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  object-fit: cover;
}

.profile-image-container::before {
  content: '';
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 1;
  width: 60px;
  height: 60px;
  background-color: rgba(49, 130, 246, 0.1);
  border-radius: 4px;
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em 2em;
  padding-top: 0.8em;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9em;
}

.contact-item i {
  width: 20px;
  color: var(--secondary-color);
  font-size: 0.95em;
  text-align: center;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--secondary-color);
}

.contact-item a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.intro-container {
  display: flex;
  gap: 1.5em;
  padding: 0.5em 1em 0.5em 0;
  position: relative;
}

.intro-marker {
  flex: 0 0 18px;
  position: relative;
  display: flex;
  justify-content: center;
}

.marker-line {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  background-color: var(--secondary-color);
  transform: translateX(-50%);
  opacity: 0.7;
}

.marker-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  transform: translateX(-50%);
}

.intro-text {
  flex: 1;
  margin: 0;
  padding: 0;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-color);
  word-break: keep-all;
}

/* 어바웃 섹션 */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
  max-width: 100%;
}

.about-intro {
  grid-column: 1 / -1;
  margin-bottom: 0.8em;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.6;
}

.about-item {
  margin-bottom: 0.5em;
  padding: 1em 1.2em;
  background-color: var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  line-height: 1.5;
}

.about-keyword {
  display: block;
  margin-right: 0.3em;
  margin-bottom: 0.5em;
  color: var(--secondary-color);
  font-weight: 600;
}

/* 스킬 섹션 */
.skills-intro {
  margin-bottom: 1.5em;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4em;
}

.skill-item {
  display: flex;
  flex-direction: column;
  padding: 1.3em;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 4px solid var(--secondary-color);
}

.skill-item h3 {
  position: relative;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border-color);
  color: var(--secondary-color);
}

.skill-reason h4 {
  color: var(--primary-color);
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.skill-reason p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.9em;
  line-height: 1.6;
  word-break: keep-all;
}

/* 프로젝트 섹션 - 스토리텔링 구조 */
.project-container {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.project-item {
  padding: 1.5em;
  background-color: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid var(--border-color);
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.project-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-title-group h3 {
  margin: 0;
  font-size: 1.2em;
}

.project-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

.project-status.ongoing {
  background-color: #e3f2fd;
  color: #1976d2;
}

.project-status.completed {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.project-duration {
  color: var(--medium-gray);
  font-size: 0.85em;
}

.project-duration i {
  margin-right: 6px;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.project-summary p {
  color: var(--text-color);
  font-size: 0.92em;
  line-height: 1.6;
}

.project-highlights {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.highlight-major {
  margin-bottom: 1.2em;
}

.highlight-title {
  display: flex;
  align-items: center;
  margin-bottom: 0.8em;
  gap: 10px;
}

.implementation-text {
  color: var(--secondary-color);
  font-weight: 600;
}

.result-text {
  color: var(--result-color);
  font-weight: 600;
}

.implementation-details,
.result-details {
  margin-bottom: 1em;
  padding: 0.8em 1em 0.8em 1.2em;
  border-left: 2px solid #e9ecef;
  border-radius: 0 6px 6px 0;
}

.implementation-details {
  border-left-color: var(--secondary-color);
  background-color: var(--implementation-bg);
}

.result-details {
  border-left-color: var(--result-color);
  background-color: var(--result-bg);
}

.implementation-details strong,
.result-details strong {
  display: inline-block;
  margin-bottom: 0.5em;
  font-size: 0.9em;
}

.implementation-details ul,
.result-details ul {
  margin-top: 0.2em;
  margin-bottom: 0.5em;
  padding-left: 1.2em;
}

.implementation-details li,
.result-details li {
  margin-bottom: 0.5em;
  font-size: 0.9em;
}

.highlight-arrow {
  margin: 0 6px;
  color: var(--medium-gray);
  font-size: 1.1em;
}

.highlight-major strong {
  display: inline;
  margin-bottom: 0;
}

.highlight-major ul {
  margin-top: 0.4em;
  padding-left: 1.2em;
}

.highlight-major ul li {
  margin-bottom: 0.5em;
  font-size: 0.9em;
}

.highlight-item {
  position: relative;
  margin-bottom: 0.6em;
  padding-left: 1.2em;
  font-size: 0.9em;
}

.highlight-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.project-tech-stack {
  margin-top: 1.2em;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  padding: 4px 10px;
  background-color: #e3f2fd;
  border-radius: 16px;
  color: #0d47a1;
  font-size: 0.8em;
  font-weight: 500;
}

/* Problem-Action-Result 구조 스타일 */
.project-problem,
.project-action,
.project-result {
  margin-bottom: 1.5em;
  padding: 1.2em;
  border-radius: 8px;
  border-left: 4px solid;
}

.project-problem {
  border-left-color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.05);
}

.project-action {
  border-left-color: var(--secondary-color);
  background-color: var(--implementation-bg);
}

.project-result {
  border-left-color: var(--result-color);
  background-color: var(--result-bg);
}

.action-step {
  margin-bottom: 1.2em;
  padding: 1em;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border-left: 2px solid var(--secondary-color);
}

.action-step h5 {
  color: var(--secondary-color);
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.6em;
}

.technology-choices {
  margin-top: 1.5em;
  padding: 1.2em;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(49, 130, 246, 0.2);
}

.tech-choice {
  margin-bottom: 1em;
  padding: 0.8em;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  border-left: 2px solid #34a853;
}

.tech-choice:last-child {
  margin-bottom: 0;
}

.tech-choice h5 {
  color: #34a853;
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.tech-choice p {
  font-size: 0.9em;
  line-height: 1.5;
  color: var(--text-color);
}

.result-metrics {
  margin-bottom: 1.2em;
}

.result-metrics ul {
  margin: 0;
  padding-left: 1.2em;
}

.result-metrics li {
  margin-bottom: 0.6em;
  font-size: 0.9em;
  line-height: 1.5;
}

.learning-outcome {
  padding: 1em;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  border-left: 3px solid var(--result-color);
}

.learning-outcome h5 {
  color: var(--result-color);
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.8em;
}

.learning-outcome p {
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 0.8em;
}

.learning-outcome ul {
  margin: 0 0 0.8em 0;
  padding-left: 1.2em;
}

.learning-outcome li {
  margin-bottom: 0.5em;
  font-size: 0.9em;
  line-height: 1.5;
}

/* AI 페이스메이커 프로젝트 전용 스타일 */
.project-overview {
  margin-bottom: 1.8em;
  padding: 1.2em;
  background-color: rgba(49, 130, 246, 0.08);
  border-radius: 10px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.project-overview p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color);
  word-break: keep-all;
}

/* 새로운 3단계 구조 스타일 */
.project-section {
  margin-bottom: 1.6em;
  padding: 1.3em;
  border-radius: 10px;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.project-section:last-child {
  margin-bottom: 0;
}

.problem-section {
  border-left-color: var(--problem-color);
  background-color: var(--problem-bg);
}

.implementation-section {
  border-left-color: var(--implementation-color);
  background-color: var(--implementation-bg);
}

.tech-section {
  border-left-color: var(--tech-color);
  background-color: var(--tech-bg);
}

.project-section h4 {
  margin-bottom: 1.2em;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid rgba(0,0,0,0.1);
  padding-bottom: 0.5em;
}

.project-section h5 {
  margin-bottom: 0.7em;
  margin-top: 1em;
  font-size: 1em;
  font-weight: 600;
  color: var(--secondary-color);
}

.project-section h5:first-child {
  margin-top: 0;
}

.project-section p {
  margin-bottom: 0.8em;
  font-size: 0.95em;
  line-height: 1.6;
  word-break: keep-all;
}

.project-section ul {
  margin: 1em 0;
  padding-left: 1.2em;
}

.project-section li {
  margin-bottom: 0.6em;
  font-size: 0.95em;
  line-height: 1.6;
}

/* 문제 정의 및 목표 내부 요소 */
.problem-definition,
.solution-goal {
  margin-bottom: 1.5em;
  padding: 1.2em;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

/* 기능 구현 및 해결 과정 내부 요소 */
.feature-implementation {
  margin-bottom: 1.5em;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2em;
  padding: 1.1em;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.feature-number {
  flex: 0 0 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1em;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9em;
}

.feature-content {
  flex: 1;
}

.feature-content h6 {
  margin-bottom: 0.8em;
  font-size: 1em;
  font-weight: 600;
  color: var(--primary-color);
}

.feature-content p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
}

.core-challenge {
  margin-bottom: 1.5em;
  padding: 1.2em;
  background-color: rgba(255, 193, 7, 0.08);
  border-radius: 8px;
}

.implementation-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1em;
}

.highlight {
  padding: 4px 10px;
  background-color: rgba(49, 130, 246, 0.1);
  border-radius: 16px;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--implementation-color);
  border: 1px solid rgba(49, 130, 246, 0.2);
}

.implementation-details {
  margin: 0;
  padding-left: 1.2em;
}

.implementation-details li {
  margin-bottom: 0.8em;
  font-size: 0.9em;
  line-height: 1.6;
}

.tech-architecture {
  margin-top: 1.5em;
  padding: 1.2em;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(49, 130, 246, 0.2);
}

/* 테크 스택 및 아키텍처 내부 요소 */
.tech-choice-section {
  margin-bottom: 1.2em;
  padding: 1.2em;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.tech-choice-section:last-of-type {
  margin-bottom: 1.5em;
}

.tech-choice-section h5 {
  color: var(--tech-color);
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.8em;
}

.tech-choice-section p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-color);
  word-break: keep-all;
}

.architecture-summary {
  margin-bottom: 1.5em;
  padding: 1.2em;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.architecture-summary h5 {
  color: var(--secondary-color);
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.8em;
}

.architecture-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.architecture-summary li {
  margin-bottom: 0.8em;
  font-size: 0.95em;
  line-height: 1.6;
}

.project-impact {
  padding: 1.2em;
  background-color: var(--tech-bg);
  border-radius: 8px;
}

.project-impact h5 {
  color: var(--tech-color);
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.8em;
}

.project-impact p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.7;
  word-break: keep-all;
}

.architecture-details h5 {
  color: var(--secondary-color);
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 0.6em;
}

.architecture-details ul {
  margin: 0;
  padding-left: 1.2em;
}

.architecture-details li {
  margin-bottom: 0.8em;
  font-size: 0.9em;
  line-height: 1.6;
}

.immediate-results {
  margin-bottom: 1.2em;
  padding: 1em;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  border-left: 3px solid var(--result-color);
}

.immediate-results p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.6;
}


.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.2em;
  padding-top: 1em;
  border-top: 1px solid var(--border-color);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  font-size: 0.85em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.project-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.project-link.github {
  background-color: #24292e;
}

.project-link.deploy {
  background-color: var(--secondary-color);
}

.project-link.docs {
  background-color: var(--result-color);
}

/* 교육 섹션 */
#education h3 {
  margin-top: 1em;
  margin-bottom: 0.7em;
}

.education-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.education-item {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 1em;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.education-date {
  min-width: 110px;
  color: var(--secondary-color);
  font-weight: 600;
}

.education-content {
  flex-grow: 1;
}

.education-content h4 {
  margin: 0 0 4px 0;
}

.education-description {
  margin: 0;
  color: var(--text-color);
  font-size: 0.9em;
}

/* 자격증 섹션 */
.certification-list {
  padding: 0;
  list-style-type: none;
}

.certification-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.certification-list li:last-child {
  border-bottom: none;
}

.certification-name {
  color: var(--primary-color);
  font-size: 1em;
  font-weight: 600;
}

.certification-name i {
  margin-right: 8px;
  color: var(--secondary-color);
}

.certification-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.certification-date {
  color: var(--secondary-color);
  font-weight: 600;
}

.certification-org {
  margin-top: 4px;
  color: var(--text-color);
  font-size: 0.9em;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
  body {
    width: 100%;
    padding: 1em;
  }
  
  .one-line-intro h1 {
    font-size: 1.1em;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
  
  .education-item {
    flex-direction: column;
  }
  
  .education-date {
    margin-bottom: 0.5em;
  }
  
  .project-header {
    flex-direction: column;
  }

  .project-meta {
    align-items: flex-start;
    margin-top: 0.5em;
  }

  .project-duration {
    margin-top: 0;
  }
  
  .highlight-title {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .highlight-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }
}

/* PDF 출력 최적화 - 독립 블록 기반 설계 */
@media print {
  body {
    width: 21cm;
    height: 29.7cm;
    margin: 0 auto;
    padding: 0.8cm;
    background-color: white;
    font-size: 8.5pt;
    line-height: 1.25;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  main {
    gap: 1em;
  }

  /* ===== 독립 블록 설정 - 각 블록이 페이지에 온전히 위치 ===== */
  .header-card,
  .intro-container,
  .project-header,
  .project-overview,
  .project-section,
  #education,
  #certifications {
    page-break-inside: avoid !important;
    margin-bottom: 1em;
  }

  /* ===== 상위 컨테이너 분할 허용 ===== */
  #profile,
  #projects,
  .project-container,
  .project-item {
    page-break-inside: auto;
  }

  /* ===== 자연스러운 흐름 보장 - 강제 분할 제거 ===== */
  section {
    page-break-before: auto;
    page-break-after: auto;
    page-break-inside: auto;
  }

  /* ===== 공통 스타일 - 효율적인 공간 사용 ===== */
  .one-line-intro h1 {
    font-size: 1.1em;
  }

  .project-section {
    padding: 1em;
  }

  .project-section h4 {
    margin-bottom: 0.6em;
    font-size: 0.95em;
    page-break-after: avoid;
  }

  .project-section h5 {
    font-size: 0.9em;
    margin-bottom: 0.5em;
    page-break-after: avoid;
  }

  .project-section p {
    font-size: 0.85em;
    line-height: 1.35;
    margin-bottom: 0.6em;
  }

  /* 내부 콘텐츠 블록들 */
  .problem-definition,
  .solution-goal,
  .feature-item,
  .core-challenge,
  .tech-choice-section,
  .project-impact {
    margin-bottom: 0.8em;
    padding: 0.8em;
  }

  /* 제목과 내용 분리 방지 */
  h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  .project-link {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 6px;
    font-size: 0.75em;
  }
  
  .project-link::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    font-style: italic;
    color: #666;
  }

  .project-links {
    gap: 6px;
    flex-wrap: wrap;
  }

  .implementation-details,
  .result-details {
    border-left-width: 1px;
  }
  

  /* 배경색 관련 스타일 */
  .header-card {
    position: relative;
    margin-bottom: 1.5em;
    padding: 1.5em;
    overflow: hidden;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  }

  .intro-container {
    background-color: #e2f0ff !important;
  }

  .about-item, 
  .skill-item, 
  .project-item, 
  .education-item, 
  .certification-list li {
    background-color: #f8f9fa !important;
  }

  .tech-tag {
    background-color: #e3f2fd !important;
  }

  .project-link.github {
    background-color: #24292e !important;
    color: white !important;
  }

  .project-link.deploy {
    background-color: #3182f6 !important;
    color: white !important;
  }

  .project-link.docs {
    background-color: #34a853 !important;
    color: white !important;
  }
  
  .implementation-details {
    border-left-color: #3182f6 !important;
    background-color: var(--implementation-bg) !important;
  }
  
  .result-details {
    border-left-color: #34a853 !important;
    background-color: var(--result-bg) !important;
  }
}