/* ============================================================
   Jayden Portfolio — Warm Noir Editorial
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* 배경 계층 — 따뜻한 near-black */
  --bg-base: #09090b;
  --bg-raised: #111113;
  --bg-surface: #18181b;
  --bg-hover: #1f1f23;
  --bg-elevated: #27272a;

  /* 텍스트 — 따뜻한 화이트 */
  --text-primary: #fafaf9;
  --text-secondary: #a8a8a4;
  --text-muted: #6b6b68;
  --text-faint: #3f3f3c;

  /* 액센트 — 골든 앰버 */
  --accent: #e8b931;
  --accent-light: #fcd34d;
  --accent-dim: rgba(232, 185, 49, 0.12);
  --accent-glow: rgba(232, 185, 49, 0.06);

  /* 시맨틱 */
  --color-problem: #f97316;
  --color-solution: #e8b931;
  --color-result: #34d399;

  /* 보더 */
  --border: #1e1e21;
  --border-hover: #2e2e32;
  --border-accent: rgba(232, 185, 49, 0.3);

  /* 간격 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* 타이포 */
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;

  /* 기타 */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration: 0.35s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* --- Grain Overlay --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* --- 컨테이너 --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- 섹션 공통 --- */
section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: var(--space-md);
}

/* ============================================================
   네비게이션
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease);
}

#navbar.scrolled {
  border-bottom-color: var(--border);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration) var(--ease);
}

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

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

/* 햄버거 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--duration) var(--ease);
  border-radius: 1px;
}

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

/* ============================================================
   히어로
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px var(--space-lg) 80px;
}

/* 히어로 배경 그라데이션 */
#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 185, 49, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  width: 100%;
  position: relative;
}

.hero-profile {
  flex-shrink: 0;
}

.hero-profile .image-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
}

/* 골든 링 효과 */
.hero-profile .image-wrapper::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    transparent 40%,
    transparent 60%,
    var(--accent)
  );
  opacity: 0.6;
  z-index: -1;
}

.hero-profile .image-wrapper::after {
  border-radius: 50%;
  border: 1px solid var(--border);
}

.hero-profile .image-wrapper img {
  border-radius: 50%;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

.hero-name {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-name .accent {
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  min-height: 1.6em;
  font-weight: 400;
}

.hero-tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-contacts {
  display: flex;
  gap: var(--space-sm);
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
}

/* 스크롤 인디케이터 */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- 버튼 --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 185, 49, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

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

.btn-sm {
  padding: 7px 14px;
  font-size: 0.75rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

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

/* --- 이미지 래퍼 --- */
.image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-surface);
}

.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
  border-radius: inherit;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   스킬
   ============================================================ */
#skills {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-row {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 130px;
  flex-shrink: 0;
}

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

.skill-tag {
  font-size: 0.8125rem;
  padding: 5px 14px;
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  font-weight: 400;
}

.skill-tag:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   경력
   ============================================================ */
.experience-header {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.experience-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.exp-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.exp-company {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.exp-role {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 400;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.exp-product {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.exp-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 타임라인 */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 40%, var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: background var(--duration) var(--ease);
}

.timeline-item:hover::before {
  background: var(--accent);
}

.timeline-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.timeline-card:hover {
  border-color: var(--border-hover);
}

.timeline-card.open {
  border-color: var(--border-accent);
}

.timeline-card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.timeline-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.version-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.timeline-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
  color: var(--text-faint);
}

.timeline-card.open .timeline-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.timeline-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.timeline-card.open .timeline-card-body {
  max-height: 800px;
}

.timeline-card-content {
  padding: 0 20px 20px;
}

.timeline-section {
  margin-bottom: 14px;
}

.timeline-section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.timeline-section-label.problem { color: var(--color-problem); }
.timeline-section-label.solution { color: var(--color-solution); }
.timeline-section-label.result { color: var(--color-result); }

.timeline-section p,
.timeline-section li {
  font-size: 0.8375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-section ul {
  list-style: none;
  padding: 0;
}

.timeline-section li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}

.timeline-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ============================================================
   프로젝트
   ============================================================ */
#projects {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

/* 첫 2개 프로젝트(Giggle, Wave)는 이미지 더 크게 */
.projects-grid .project-card:nth-child(-n+2) .project-image,
.projects-grid .project-card:nth-child(-n+2) .project-carousel {
  height: 260px;
}

.project-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  position: relative;
  cursor: pointer;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--border-accent), transparent 40%);
  z-index: 0;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}

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

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-image-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* --- 캐러셀 --- */
.project-carousel {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: var(--bg-surface);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.carousel-track img.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--duration) var(--ease), background var(--duration) var(--ease);
}

.project-card:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(9, 9, 11, 0.9);
  color: var(--accent);
  border-color: var(--border-accent);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.carousel-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

.project-image-placeholder.gradient-1 {
  background: linear-gradient(135deg, #141420, #1e1a2e);
}

.project-image-placeholder.gradient-2 {
  background: linear-gradient(135deg, #141a14, #1a2e1e);
}

.project-image-placeholder .placeholder-title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.project-body {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.project-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}

.project-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.project-subtitle {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.project-description {
  font-size: 0.8375rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.project-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  line-height: 1.5;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.project-highlights li {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-left: 12px;
  position: relative;
  margin-bottom: 3px;
  line-height: 1.6;
}

.project-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.project-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ============================================================
   활동/수상
   ============================================================ */
.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.activities-section-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.activity-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.activity-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.award-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.award-item:last-child {
  border-bottom: none;
}

.award-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent-dim);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.award-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================================
   프로젝트 모달
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px) saturate(0.8);
  -webkit-backdrop-filter: blur(16px) saturate(0.8);
}

.modal-container {
  position: relative;
  width: 90vw;
  max-width: 720px;
  max-height: 88vh;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 185, 49, 0.05);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(9, 9, 11, 0.9);
}

/* 모달 이미지 영역 */
.modal-image-area {
  width: 100%;
  height: 340px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

.modal-image-area img.modal-single-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 모달 캐러셀 */
.modal-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.modal-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.modal-carousel-track img.active {
  opacity: 1;
}

.modal-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all var(--duration) var(--ease);
}

.modal-carousel-btn:hover {
  background: rgba(9, 9, 11, 0.9);
  color: var(--accent);
  border-color: var(--border-accent);
}

.modal-carousel-btn.prev { left: 12px; }
.modal-carousel-btn.next { right: 12px; }

.modal-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.modal-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
}

.modal-carousel-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* 모달 플레이스홀더 */
.modal-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #141420, #1e1a2e);
}

.modal-placeholder span {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* 모달 콘텐츠 */
.modal-content {
  padding: var(--space-xl);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.modal-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.modal-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: var(--space-md);
  background: var(--bg-base);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.modal-highlights-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.modal-highlights {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.modal-highlights li {
  font-size: 0.8375rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.7;
}

.modal-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.modal-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-base);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

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

/* body 스크롤 잠금 */
body.modal-open {
  overflow: hidden;
}

/* ============================================================
   푸터
   ============================================================ */
footer {
  padding: var(--space-xl) 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* ============================================================
   애니메이션
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 접근성 */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-line { animation: none; }
  .hero-tagline .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1023px) {
  .hero-inner {
    gap: var(--space-xl);
  }
  .hero-profile .image-wrapper {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 767px) {
  section {
    padding: var(--space-3xl) 0;
  }

  .section-title {
    font-size: 1.375rem;
  }

  /* 네비게이션 */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 9, 11, 0.96);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 0.875rem;
  }

  /* 히어로 */
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-profile .image-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }

  .hero-name { font-size: 2rem; }
  .hero-tagline { font-size: 1rem; }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons { justify-content: center; }
  .hero-contacts { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-scroll-indicator { display: none; }

  /* 스킬 */
  .skill-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .skill-category { min-width: auto; }

  /* 프로젝트 */
  .projects-grid { grid-template-columns: 1fr; }

  /* 활동 */
  .activities-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* 타임라인 */
  .timeline { padding-left: 22px; }
  .timeline-item::before { left: -26px; width: 7px; height: 7px; }
  .timeline-card-header { padding: 14px 16px; }
  .timeline-title { font-size: 0.875rem; }
  .timeline-card-content { padding: 0 16px 16px; }

  /* 모달 */
  .modal-container {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-image-area {
    height: 240px;
  }

  .modal-content {
    padding: var(--space-lg);
  }

  .modal-title {
    font-size: 1.25rem;
  }
}
