:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface-2: #f0f0ed;
  --text: #151515;
  --muted: #6d6d6d;
  --line: #deded9;
  --accent: #5b4bff;
  --accent-2: #7b6dff;
  --header-bg: rgba(248,248,246,.84);
  --shadow: 0 20px 60px rgba(0,0,0,.08);
}
[data-theme="dark"] {
  --bg: #0d0e11;
  --surface: #15171c;
  --surface-2: #1c1f25;
  --text: #f4f4f1;
  --muted: #a4a7af;
  --line: #2c3038;
  --accent: #8c7dff;
  --accent-2: #a79cff;
  --header-bg: rgba(13,14,17,.84);
  --shadow: 0 20px 60px rgba(0,0,0,.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.scroll-progress { position: fixed; z-index: 1000; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); }
.header { position: fixed; z-index: 100; top: 0; width: 100%; background: var(--header-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { height: 72px; display: flex; align-items: center; gap: 40px; }
.logo { font-size: 25px; font-weight: 900; letter-spacing: -1px; margin-right: auto; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 700; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { border: 0; background: transparent; color: var(--text); cursor: pointer; padding: 8px 10px; border-radius: 9px; }
.icon-btn:hover { background: var(--surface-2); }
.lang-wrap { position: relative; }
.lang-menu { display: none; position: absolute; right: 0; top: 44px; width: 120px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang-menu.open { display: block; }
.lang-menu button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); padding: 9px 10px; border-radius: 7px; cursor: pointer; }
.lang-menu button:hover { background: var(--surface-2); }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--text); font-size: 24px; cursor: pointer; }
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 110px 0 60px; }
.hero-bg { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(91,75,255,.15), transparent 65%); right: -100px; top: 5%; pointer-events: none; }
.hero-content { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; position: relative; z-index: 1; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(46px, 7vw, 82px); line-height: 1.08; letter-spacing: -4px; margin-bottom: 28px; }
.hero h1 strong { color: var(--accent); }
.hero-desc { max-width: 590px; color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 21px; border-radius: 9px; font-weight: 800; font-size: 14px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(91,75,255,.22); }
.btn.secondary { border: 1px solid var(--line); background: var(--surface); }
.socials { display: flex; gap: 20px; margin-top: 32px; color: var(--muted); font-size: 13px; font-weight: 700; }
.socials a:hover { color: var(--accent); }
.hero-card { perspective: 1000px; }
.code-window { background: #111318; color: #e7e7e7; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transform: rotateY(-4deg) rotateX(2deg); border: 1px solid #2a2d34; }
.window-bar { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid #2a2d34; color: #7e838f; font-size: 11px; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.window-bar span { margin-left: 8px; }
pre { padding: 28px; overflow: auto; font-size: 13px; line-height: 2; }
.code-purple { color: #c5a5ff; } .code-key { color: #79c7ff; } .code-green { color: #9fe3a6; }
.scroll-down { position: absolute; bottom: 30px; left: 50%; color: var(--muted); font-size: 22px; animation: bounce 1.7s infinite; }
@keyframes bounce { 50% { transform: translateY(8px); } }
.section { padding: 130px 0; }
.section.alt { background: var(--surface-2); }
.section-heading { display: grid; grid-template-columns: 80px 1fr; gap: 20px; margin-bottom: 65px; }
.section-number { font-size: 13px; color: var(--accent); font-weight: 900; padding-top: 4px; }
.section-heading h2 { font-size: clamp(34px, 5vw, 54px); line-height: 1.2; letter-spacing: -2.5px; }
.about-grid { display: grid; grid-template-columns: 1fr .7fr; gap: 100px; align-items: center; }
.about-text .lead { font-size: 22px; line-height: 1.6; font-weight: 700; margin-bottom: 25px; }
.about-text p:not(.lead) { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.stat { padding: 25px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.stat strong { display: block; font-size: 38px; letter-spacing: -2px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 11px; font-weight: 700; }
.skills-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.skill-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; min-height: 240px; transition: transform .25s, box-shadow .25s; }
.skill-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.skill-icon { display: inline-flex; align-items: center; justify-content: center; height: 46px; min-width: 46px; padding: 0 9px; border-radius: 11px; background: var(--surface-2); color: var(--accent); font-size: 12px; font-weight: 900; margin-bottom: 35px; }
.skill-card h3 { font-size: 16px; margin-bottom: 12px; }
.skill-card p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.projects-list { border-top: 1px solid var(--line); }
.project-item { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 25px; padding: 31px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding .25s; }
.project-item:hover { padding-left: 12px; padding-right: 12px; }
.project-no { color: var(--accent); font-size: 13px; font-weight: 900; }
.project-title { font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.project-meta { color: var(--muted); font-size: 12px; margin-top: 5px; }
.project-arrow { font-size: 24px; color: var(--muted); }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0 22px; }
.tag { border: 1px solid var(--line); color: var(--muted); padding: 4px 9px; border-radius: 100px; font-size: 11px; }
.timeline { max-width: 850px; }
.timeline-item { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 32px 0; border-top: 1px solid var(--line); }
.timeline-date { color: var(--accent); font-size: 13px; font-weight: 800; }
.timeline-content h3 { font-size: 19px; margin-bottom: 8px; }
.timeline-content p { color: var(--muted); font-size: 14px; }
.contact-section { padding: 150px 0; background: var(--accent); color: white; text-align: center; }
.contact-section .eyebrow { color: rgba(255,255,255,.7); }
.contact-inner h2 { font-size: clamp(35px, 6vw, 65px); line-height: 1.15; letter-spacing: -3px; margin-bottom: 18px; }
.contact-inner > p:not(.eyebrow) { color: rgba(255,255,255,.75); margin-bottom: 35px; }
.email-link { display: inline-block; font-size: clamp(22px,4vw,38px); font-weight: 800; border-bottom: 2px solid rgba(255,255,255,.6); padding-bottom: 4px; }
.contact-links { display: flex; justify-content: center; gap: 24px; margin-top: 40px; font-size: 13px; font-weight: 700; opacity: .8; }
footer { padding: 25px 0; background: var(--surface); color: var(--muted); font-size: 11px; }
footer .container { display: flex; justify-content: space-between; gap: 20px; }
.modal { display: none; position: fixed; inset: 0; z-index: 500; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(5px); }
.modal-box { position: relative; z-index: 1; width: min(650px,100%); max-height: 85vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 38px; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; color: var(--muted); font-size: 30px; cursor: pointer; }
.modal-box h2 { font-size: 32px; letter-spacing: -1px; line-height: 1.25; }
.modal-meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.modal-box > p:last-of-type { color: var(--muted); margin-bottom: 20px; }
.modal-box ul { padding-left: 20px; color: var(--muted); }
.modal-box li { margin: 8px 0; }
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 850px) {
  .nav { gap: 15px; }
  .mobile-menu { display: block; order: 2; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 15px 24px 22px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; }
  .nav-actions { order: 3; }
  .hero-content { grid-template-columns: 1fr; gap: 45px; }
  .hero-card { max-width: 650px; width: 100%; }
  .hero h1 { letter-spacing: -2.5px; }
  .section { padding: 95px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 45px; }
  .skills-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .container { width: min(100% - 32px,1120px); }
  .header .container { width: calc(100% - 28px); }
  #currentLang { display: none; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 48px; }
  .hero-desc { font-size: 15px; }
  .section-heading { grid-template-columns: 45px 1fr; gap: 10px; margin-bottom: 42px; }
  .section-heading h2 { font-size: 34px; }
  .stats { grid-template-columns: repeat(3,1fr); }
  .stat { padding: 18px 5px; }
  .stat strong { font-size: 29px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: auto; }
  .project-item { grid-template-columns: 42px 1fr 20px; gap: 10px; padding: 22px 0; }
  .project-title { font-size: 17px; }
  .project-meta { font-size: 11px; }
  .timeline-item { grid-template-columns: 1fr; gap: 7px; }
  .contact-section { padding: 105px 0; }
  .contact-links { flex-direction: column; gap: 10px; }
  footer .container { flex-direction: column; }
  pre { font-size: 10px; padding: 20px; }
}
