/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #8b8da3;
  --accent: #2d2d5e;
  --accent-light: #5a5a8f;
  --accent-lighter: #9494c0;
  --border: #e2e4e9;
  --border-light: #f0f1f4;
  --dot-color: #d8dae5;
  --dot-size: 1px;
  --dot-gap: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 8px;
  --radius-lg: 16px;
  --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-height: 64px;
  --container-max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========================================
   3D ISOMETRIC PIXEL BACKGROUND
   ======================================== */

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.pixel-text {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pixel-marker {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--accent);
}

.subsection-title {
  font-size: 11px;
  color: var(--accent-light);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-lang {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.btn-lang:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-download:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.pixel-icon {
  font-family: var(--font-pixel);
  font-size: 10px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 1px;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.nav-mobile a:hover {
  color: var(--accent);
}

.nav-mobile-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero .container {
  display: flex;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.hero-name {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-name-kr {
  display: block;
}

.hero-name-en {
  display: block;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--text-secondary);
}

.hero-tagline {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.hero-pixels {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
}

.pixel-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  opacity: 0.3;
  animation: pixelPulse 2s ease-in-out infinite;
  animation-delay: calc(var(--delay) * 0.25s);
}

@keyframes pixelPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.8; }
}

.hero-cta {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero {
  position: relative;
}

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

.hero-content {
  pointer-events: auto;
}

/* ========================================
   ABOUT
   ======================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.about-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.about-highlight {
  grid-column: 1 / -1;
  background: var(--accent);
  border-color: var(--accent);
  text-align: center;
  padding: 36px 28px;
}

.about-highlight:hover {
  border-color: var(--accent-light);
}

.about-quote {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  line-height: 1.7;
}

.about-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.about-personal {
  border-top: 1px solid var(--border-light);
  padding-top: 36px;
}

.about-personal .about-text {
  max-width: 720px;
}

.about-hobbies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hobby-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* ========================================
   SKILLS
   ======================================== */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.skill-card-core {
  grid-column: 1 / -1;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.skill-icon {
  color: var(--accent);
  font-size: 9px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  flex-shrink: 0;
}

.skill-header h3 {
  font-size: 16px;
  font-weight: 600;
}

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

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--accent-lighter);
  color: var(--accent);
}

.tag-core {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 500;
}

.tag-core:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}

/* ========================================
   PROJECTS
   ======================================== */

/* Node Filter */
.node-filter {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.node-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
}

.node-btn:hover {
  border-color: var(--accent-lighter);
  color: var(--accent);
}

.node-btn:hover .node-dot {
  background: var(--accent-lighter);
}

.node-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(45, 45, 94, 0.04);
}

.node-btn.active .node-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 45, 94, 0.15);
}

.node-line {
  width: 20px;
  height: 1.5px;
  background: var(--border);
  flex-shrink: 0;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Project card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Wide card — horizontal layout */
.project-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card-wide .project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

/* Thumbnail */
.project-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(45, 45, 94, 0.85);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.project-card:hover .project-play {
  opacity: 1;
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 7px;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 2px;
  z-index: 2;
}

/* Placeholder thumb */
.project-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.project-thumb-icon {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 3px;
}

/* Gallery (multi-image slider) */
.project-gallery {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}

.project-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-gallery img:first-child,
.project-gallery img.gallery-active {
  opacity: 1;
}

.gallery-nav {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.gallery-prev,
.gallery-next {
  width: 28px;
  height: 28px;
  background: rgba(45, 45, 94, 0.8);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  transition: background 0.2s;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--accent);
}

.gallery-counter {
  font-size: 7px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 3px;
}

/* Project info */
.project-info {
  padding: 16px 20px 20px;
}

.project-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.project-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-stat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.project-tag-inline {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent-lighter);
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .node-filter {
    gap: 0;
    margin-bottom: 24px;
  }

  .node-line {
    width: 12px;
  }

  .node-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ========================================
   TIMELINE (Experience)
   ======================================== */

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 15px;
  height: 15px;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:first-child .timeline-dot {
  background: var(--accent);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.timeline-content:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  margin-bottom: 16px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.timeline-type,
.timeline-duration {
  font-size: 8px;
  color: var(--accent);
  background: rgba(45, 45, 94, 0.06);
  padding: 3px 8px;
  border-radius: 3px;
}

.timeline-company {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 15px;
  color: var(--accent-light);
  font-weight: 500;
}

.timeline-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.timeline-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeline-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-details li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-details li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--accent-lighter);
  line-height: 2.6;
}

/* ========================================
   EDUCATION
   ======================================== */

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.edu-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.edu-year {
  font-size: 9px;
  color: var(--accent);
  margin-bottom: 12px;
}

.edu-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
}

.edu-degree {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========================================
   CONTACT
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 14px;
  color: var(--accent);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  margin-bottom: 4px;
}

.contact-card:hover .contact-icon {
  border-color: var(--accent);
  background: rgba(45, 45, 94, 0.04);
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-value {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-dot {
  color: var(--border);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   PDF SPECIFIC STYLES (legacy, unused)
   ======================================== */

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card-core {
    grid-column: auto;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --dot-gap: 20px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .hero-name {
    font-size: 36px;
  }

  .hero-name-en {
    font-size: 22px;
  }

  .hero-tagline {
    font-size: 15px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -24px;
    width: 12px;
    height: 12px;
  }

  .timeline-company {
    font-size: 17px;
  }

  .timeline-stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .stat-value {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 8px;
    padding: 5px 12px;
  }

  .about-card,
  .skill-card,
  .timeline-content,
  .edu-card,
  .contact-card {
    padding: 20px;
  }
}

/* ========================================
   PRINT STYLES — A4 Optimized
   ======================================== */

@media print {
  /* --- Reset for print --- */
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* --- Hide non-essential UI --- */
  .bg-canvas,
  .nav,
  .hero-pixels,
  .hero-cta,
  .footer,
  .btn-download,
  .btn-lang,
  .nav-hamburger,
  .nav-mobile {
    display: none !important;
  }

  /* --- Page setup --- */
  @page {
    size: A4 portrait;
    margin: 15mm 18mm;
  }

  body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    font-size: 10.5pt;
    line-height: 1.5;
    background: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  /* --- Hero (Print Header) --- */
  .hero {
    min-height: auto;
    padding: 0 0 8mm;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 4mm;
  }

  .hero .container {
    display: block;
  }

  .hero-badge {
    font-size: 7pt;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    padding: 2px 8px;
    margin-bottom: 3mm;
    display: inline-block;
  }

  .hero-name {
    font-size: 24pt;
    margin-bottom: 2mm;
  }

  .hero-name-kr {
    display: inline;
  }

  .hero-name-en {
    display: inline;
    font-size: 14pt;
  }

  .hero-tagline {
    font-size: 10pt;
    margin-bottom: 0;
  }

  /* --- Sections --- */
  .section {
    padding: 4mm 0;
  }

  .section-alt {
    background: transparent !important;
  }

  .section-title {
    font-size: 13pt;
    font-weight: 700;
    margin-bottom: 4mm;
    padding-bottom: 1.5mm;
    border-bottom: 1px solid #ccc;
    break-after: avoid;
    page-break-after: avoid;
  }

  .pixel-marker {
    font-size: 8pt;
  }

  .subsection-title {
    font-size: 8pt;
    margin-bottom: 2mm;
  }

  /* --- About --- */
  .about-grid {
    display: block;
  }

  .about-card {
    border: none;
    padding: 2mm 0;
    margin-bottom: 1mm;
  }

  .about-highlight {
    background: var(--accent) !important;
    padding: 3mm 4mm;
    margin: 2mm 0;
    border: none;
  }

  .about-quote {
    font-size: 11pt;
    font-style: italic;
    color: #fff !important;
  }

  .about-text {
    font-size: 9.5pt;
  }

  .about-personal {
    border-top: 1px solid #ddd;
    padding-top: 3mm;
    margin-top: 2mm;
  }

  /* --- Skills --- */
  .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3mm;
  }

  .skill-card {
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 3mm;
  }

  .skill-card-core {
    grid-column: 1 / -1;
  }

  .skill-header {
    margin-bottom: 2mm;
  }

  .skill-icon {
    width: 20px;
    height: 20px;
    font-size: 6pt;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
  }

  .skill-header h3 {
    font-size: 10pt;
  }

  .skill-tags {
    gap: 2mm;
  }

  .tag {
    font-size: 8pt;
    padding: 1px 6px;
    border: 1px solid #aaa;
    border-radius: 2px;
  }

  .tag-core {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
  }

  /* --- Timeline (Experience) --- */
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-item {
    padding-bottom: 4mm;
  }

  .timeline-content {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .timeline-content {
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 4mm;
  }

  .timeline-header {
    margin-bottom: 2mm;
  }

  .timeline-meta {
    margin-bottom: 1mm;
  }

  .timeline-date {
    font-size: 8pt;
  }

  .timeline-type,
  .timeline-duration {
    font-size: 6pt;
    padding: 1px 4px;
    border: 1px solid #aaa;
  }

  .timeline-company {
    font-size: 12pt;
  }

  .timeline-role {
    font-size: 9.5pt;
  }

  .timeline-location {
    font-size: 8pt;
  }

  .timeline-summary {
    font-size: 9pt;
    margin-bottom: 2mm;
  }

  .timeline-stats {
    display: flex;
    gap: 6mm;
    padding: 2mm 0;
    margin-bottom: 2mm;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }

  .stat-value {
    font-size: 16pt;
    font-weight: 700;
  }

  .stat-label {
    font-size: 7pt;
  }

  .timeline-details {
    gap: 1mm;
  }

  .timeline-details li {
    font-size: 8.5pt;
    padding-left: 10px;
    line-height: 1.5;
  }

  .timeline-details li::before {
    font-size: 4pt;
    line-height: 2.8;
  }

  /* --- Education --- */
  .education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3mm;
  }

  .edu-card {
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 3mm;
    break-inside: avoid;
  }

  .edu-year {
    font-size: 7pt;
  }

  .edu-card h3 {
    font-size: 9pt;
  }

  .edu-degree {
    font-size: 8.5pt;
  }

  /* --- Contact --- */
  .contact-grid {
    display: flex;
    gap: 5mm;
  }

  .contact-card {
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 3mm;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 3mm 4mm;
    text-decoration: none;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
    font-size: 8pt;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    flex-shrink: 0;
  }

  .contact-label {
    font-size: 7pt;
  }

  .contact-value {
    font-size: 8.5pt;
  }

  /* --- Projects --- */
  .node-filter {
    display: none;
  }

  .project-play,
  .project-badge,
  .gallery-nav {
    display: none !important;
  }

  .project-card.hidden {
    display: block !important;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2mm;
  }

  .project-card {
    border: 1px solid #ddd;
    border-radius: 2px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .project-card-wide {
    grid-column: span 2;
  }

  .project-thumb,
  .project-gallery {
    aspect-ratio: 16 / 9;
  }

  .project-thumb img,
  .project-gallery img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-gallery img:not(:first-child) {
    display: none;
  }

  .project-thumb-placeholder {
    background: var(--accent) !important;
  }

  .project-info {
    padding: 2mm;
  }

  .project-info h4 {
    font-size: 8.5pt;
  }

  .project-info p {
    font-size: 7.5pt;
  }

  .project-stat {
    font-size: 7pt;
  }

  .project-tags {
    display: none;
  }

  /* --- Animation resets --- */
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  /* --- Links --- */
  a[href]::after {
    content: none;
  }
}
