/* ---- Fonts ---- */
@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Pretendard-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Pretendard-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Pretendard-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'NanumSquare Neo';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/NanumSquareNeoTTF-cBd.woff2') format('woff2');
}
@font-face {
  font-family: 'NanumSquare Neo';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/NanumSquareNeoTTF-dEb.woff2') format('woff2');
}
@font-face {
  font-family: 'NanumSquare Neo';
  font-weight: 900;
  font-display: swap;
  src: url('fonts/NanumSquareNeoTTF-eHv.woff2') format('woff2');
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }

:root {
  --background: #0a0a0a;
  --foreground: #ededed;
  --card: #121212;
  --card-foreground: #ededed;
  --primary: #22c55e;
  --primary-foreground: #0a0a0a;
  --secondary: #1f1f1f;
  --secondary-foreground: #cccccc;
  --muted-foreground: #8c8c8c;
  --border: #262626;
  --radius: 0.5rem;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'NanumSquare Neo', sans-serif;
  --font-mono: 'NanumSquare Neo', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  word-break: break-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background-color: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.nav-logo {
  font-family: var(--font-mono); font-size: 1.125rem; font-weight: 700;
  letter-spacing: -0.025em; color: var(--primary);
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; color: var(--muted-foreground);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-toggle { display: none; flex-direction: column; gap: 0.375rem; }
.nav-toggle span {
  display: block; height: 2px; width: 1.5rem; background: var(--foreground);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 1rem;
  padding: 1.5rem; border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.95); backdrop-filter: blur(12px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.875rem; color: var(--muted-foreground);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- Hero ---- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 1.5rem; text-align: center;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image:
    linear-gradient(var(--primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 56rem; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero h1 .green { color: var(--primary); }

.hero-typewriter {
  display: flex; align-items: center; justify-content: center;
  height: 2.5rem; margin-bottom: 2rem;
}
.hero-typewriter span {
  font-family: var(--font-mono); font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
}
.cursor {
  display: inline-block; width: 2px; margin-left: 2px;
  background: var(--primary); animation: pulse 1s ease-in-out infinite;
}

.hero-desc {
  max-width: 40rem; margin: 0 auto 2.5rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--muted-foreground); line-height: 1.7;
}

.hero-buttons {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); color: var(--foreground);
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-indicator span { font-size: 0.75rem; color: var(--muted-foreground); }
.scroll-pill {
  width: 1.25rem; height: 2rem; border-radius: 9999px;
  border: 1px solid rgba(140,140,140,0.3); padding: 0.25rem;
}
.scroll-pill-dot {
  width: 100%; height: 0.5rem; border-radius: 9999px;
  background: var(--primary); animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- Sections shared ---- */
.section { padding: 6rem 1.5rem; }
@media (min-width: 768px) { .section { padding: 8rem 1.5rem; } }
.section-inner { max-width: 72rem; margin: 0 auto; }
.section-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 4rem;
}
.section-num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--primary); }
.section-title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 800; }
.section-line { flex: 1; height: 1px; background: var(--border); }

/* ---- About ---- */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 3fr 2fr; } }
.about-name {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem;
}
.about-name .muted { color: var(--primary); font-weight: 700; font-size: 0.7em; }
.about-text p {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1.5rem;
}
.about-text p:last-child { margin-bottom: 0; }

.skills-label {
  font-family: var(--font-mono); font-size: 0.875rem;
  color: var(--primary); margin-bottom: 1rem;
}
.skills-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--secondary-foreground); background: var(--secondary);
  border: 1px solid var(--border); border-radius: 0.375rem;
  padding: 0.375rem 0.75rem; transition: border-color 0.2s, color 0.2s;
}
.skill-tag:hover { border-color: var(--primary); color: var(--primary); }

.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 4rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.stat-value {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700;
  color: var(--primary); margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); }

/* ---- Experience ---- */
.exp-list { display: flex; flex-direction: column; gap: 0.5rem; }
.exp-item {
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: border-color 0.2s, background-color 0.2s;
}
.exp-item:hover { border-color: var(--border); background: var(--card); }
.exp-inner { display: grid; gap: 1rem; }
@media (min-width: 768px) { .exp-inner { grid-template-columns: 1fr 3fr; } }
.exp-period {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.05em; color: var(--muted-foreground);
}
.exp-title {
  font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.exp-item:hover .exp-title { color: var(--primary); }
.exp-title .dot { color: var(--primary); }
.exp-title .company { color: var(--muted-foreground); font-weight: 400; }
.exp-desc {
  font-size: 0.875rem; color: var(--muted-foreground);
  line-height: 1.7; margin-bottom: 1rem;
  list-style: none; padding: 0;
}
.exp-desc li {
  position: relative; padding-left: 1rem;
}
.exp-desc li::before {
  content: '·'; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.exp-tag {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--primary); background: rgba(34,197,94,0.1);
  border-radius: 9999px; padding: 0.25rem 0.75rem;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.quote-icon {
  width: 20px; height: 20px;
  color: var(--primary); opacity: 0.3; margin-bottom: 1rem;
}
.testimonial-text {
  font-size: 0.9375rem; color: var(--muted-foreground);
  line-height: 1.8; margin-bottom: 1.5rem;
}
.testimonial-author {
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.author-name {
  font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem;
  color: var(--primary);
}
.author-role {
  font-size: 0.8125rem; color: var(--muted-foreground);
}

/* ---- Media ---- */
.media-list { display: flex; flex-direction: column; gap: 0.5rem; }
.media-item {
  display: block; padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: border-color 0.2s, background-color 0.2s;
}
.media-item:hover { border-color: var(--border); background: var(--card); }
.media-inner { display: grid; gap: 1rem; }
@media (min-width: 768px) { .media-inner { grid-template-columns: 1fr 3fr; } }
.media-type {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.05em; color: var(--muted-foreground);
}
.media-title {
  font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem;
  transition: color 0.2s; display: flex; align-items: center; gap: 0.5rem;
}
.media-item:hover .media-title { color: var(--primary); }
.media-source {
  font-size: 0.875rem; color: var(--muted-foreground);
}

/* ---- Photography ---- */
.photo-intro {
  max-width: 40rem; margin-bottom: 3rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--muted-foreground); line-height: 1.7;
}
.photo-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }

.photo-card {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--secondary); cursor: pointer;
}
.photo-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.photo-card:hover img { transform: scale(1.05); }
.photo-overlay {
  position: absolute; inset: 0; background: rgba(10,10,10,0);
  transition: background 0.3s;
}
.photo-card:hover .photo-overlay { background: rgba(10,10,10,0.6); }
.photo-info {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.25rem;
  opacity: 0; transition: opacity 0.3s;
}
.photo-card:hover .photo-info { opacity: 1; }
.photo-info .cat {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary);
}
.photo-info .name { font-size: 1.125rem; font-weight: 600; }

/* ---- Lightbox ---- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  align-items: center; justify-content: center;
  background: rgba(10,10,10,0.92); backdrop-filter: blur(8px);
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--muted-foreground); transition: color 0.2s; padding: 0.5rem;
}
.lightbox-close:hover { color: var(--foreground); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--muted-foreground); transition: color 0.2s; padding: 0.5rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (min-width: 768px) {
  .lightbox-prev { left: 2rem; }
  .lightbox-next { right: 2rem; }
}
.lightbox-prev:hover, .lightbox-next:hover { color: var(--foreground); }
.lightbox-img {
  max-width: 90vw; max-height: 70vh; border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-caption {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  text-align: center;
}
.lightbox-caption .cat {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary);
}
.lightbox-caption .name { font-size: 1.125rem; font-weight: 600; }

/* ---- Contact ---- */
.contact-center { max-width: 32rem; margin: 0 auto; text-align: center; }
.contact-center h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; margin-bottom: 1rem;
}
.contact-center p {
  font-size: 1rem; color: var(--muted-foreground);
  line-height: 1.7; margin-bottom: 2.5rem;
}
.contact-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.875rem 2rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; transition: opacity 0.2s;
  margin-bottom: 3rem;
}
.contact-btn:hover { opacity: 0.9; }
.social-links { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.social-links a {
  color: var(--muted-foreground); transition: color 0.2s;
}
.social-links a:hover { color: var(--primary); }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border); padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-inner span {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-foreground);
}

/* ---- Utility ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
