:root {
  --bg: #fdfbf7;
  --ink: #1a1a2e;
  --ink-soft: #55536b;
  --purple: #7C5CFF;
  --pink: #FF6B9D;
  --orange: #FFA94D;
  --green: #6BCB77;
  --blue: #4D96FF;
  --card-bg: #ffffff;
  --border: rgba(26, 26, 46, 0.08);
  --radius: 20px;
  --font-display: "Space Grotesk", "Pretendard", sans-serif;
  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Decorative blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.blob-1 {
  width: 420px; height: 420px;
  background: var(--purple);
  top: -120px; left: -100px;
}
.blob-2 {
  width: 380px; height: 380px;
  background: var(--pink);
  top: 30%; right: -140px;
}
.blob-3 {
  width: 320px; height: 320px;
  background: var(--orange);
  bottom: -100px; left: 20%;
}

/* Nav */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(253, 251, 247, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--purple); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--purple); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--purple) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-title .dot { color: var(--pink); }
.hero-subtitle {
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 600;
  margin: 24px 0 20px;
  line-height: 1.4;
}
.highlight {
  background: linear-gradient(90deg, var(--purple), var(--pink) 50%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26,26,46,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--purple);
  box-shadow: 0 12px 28px rgba(124,92,255,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.scroll-cue {
  margin-top: 64px;
  width: 26px; height: 42px;
  border: 2px solid var(--ink-soft);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  background: var(--purple);
  border-radius: 999px;
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}

/* Sections */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-tag {
  font-weight: 700;
  color: var(--purple);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.about-text p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; }
.about-facts {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}
.fact { display: flex; flex-direction: column; }
.fact strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--purple);
}
.fact span { color: var(--ink-soft); font-size: 0.85rem; }

.about-card {
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--purple), var(--pink));
  padding: 3px;
}
.about-card-inner {
  background: var(--card-bg);
  border-radius: calc(var(--radius) - 3px);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  gap: 16px;
}
.about-emoji { font-size: 3rem; }
.about-card-inner p { color: var(--ink-soft); font-weight: 500; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(124,92,255,0.15);
}
.timeline-date {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.timeline-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.timeline-content p { color: var(--ink-soft); margin-bottom: 12px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(124,92,255,0.1);
  color: var(--purple);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26,26,46,0.1);
}
.project-cover {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: color-mix(in srgb, var(--accent) 18%, white);
}
.project-body { padding: 24px; }
.project-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }
.project-body .tags span { background: color-mix(in srgb, var(--accent) 16%, white); color: color-mix(in srgb, var(--accent) 70%, black); }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.skill-group h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.pill:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* Contact */
.contact-section { text-align: center; }
.contact-desc {
  max-width: 480px;
  margin: 0 auto 32px;
  color: var(--ink-soft);
}
.contact-actions { margin-bottom: 32px; }
.social-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-weight: 600;
  color: var(--ink-soft);
}
.social-row a:hover { color: var(--purple); }

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* Scroll reveal */
.section, .hero { opacity: 0; transform: translateY(24px); }
.section.in-view, .hero.in-view { animation: rise 0.7s ease forwards; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    width: 220px;
    padding: 16px;
    border-radius: 16px 0 0 16px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 10px 8px;
    width: 100%;
  }
  .nav-cta { text-align: center; }

  .about-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 72px 20px; }
  .hero { padding: 72px 20px 88px; }
}
