:root {
  --bg: #f5f8ff;
  --bg-card: #ffffff;
  --border: #dde6fb;
  --text: #0f1b3d;
  --text-dim: #5a6a8f;
  --text-faint: #93a1c4;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-soft: #e8f0ff;
  --radius: 14px;
  --navbar-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
               "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  font-size: 15px;
  position: relative;
  overflow-x: hidden;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-light), transparent 70%);
  top: -120px;
  left: -100px;
}

.blob-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: 40%;
  right: -140px;
  animation-delay: -5s;
}

.blob-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #93c5fd, transparent 70%);
  bottom: -100px;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.navbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  max-width: 880px;
  margin: 16px auto 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px 0 20px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.14);
}

.logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo .dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 4px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 999px;
  padding: 4px;
}

.nav-pill {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-pill:hover {
  color: var(--accent);
}
.nav-pill.active {
  color: #fff;
  background: var(--accent);
}

.nav-cta {
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: sticky;
  top: calc(var(--navbar-h) + 16px);
  z-index: 99;
  margin: 8px 16px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 320px;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.14);
}
.mobile-menu a {
  padding: 14px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

.hero {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px 70px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--accent-light), 0 10px 28px rgba(37, 99, 235, 0.22);
  margin-bottom: 24px;
  animation: popIn 0.6s ease both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.35;
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--navbar-h) + 16px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-num {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.lead {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 500;
}

.body-text {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.14);
  border-color: var(--accent-light);
}

.value-card h3 { font-size: 15px; margin-bottom: 6px; color: var(--accent); }
.value-card p { font-size: 13px; color: var(--text-faint); }

.project-list { display: flex; flex-direction: column; gap: 12px; }

.project-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.16);
}

.project-info h3 { font-size: 16px; margin-bottom: 6px; }
.project-info p { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 2px 8px;
}

.arrow {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.25s ease;
}
.project-card:hover .arrow { transform: translateX(4px); }

.skill-group { margin-bottom: 20px; }
.skill-group h4 { font-size: 13px; color: var(--text-faint); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.chips span:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  color: var(--text-faint);
  font-size: 12px;
}

@media (max-width: 768px) {
  .navbar { padding: 0 8px 0 16px; max-width: calc(100% - 24px); }
  .nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .hero-title { font-size: 28px; }
  .section { padding: 50px 20px; }
  .values { grid-template-columns: 1fr; }
}
