
:root {
  --bg: #080b12;
  --bg-card: rgba(17, 24, 39, .78);
  --border: rgba(148, 163, 184, .16);
  --text: #edf2ff;
  --text-dim: #a5b1c8;
  --text-faint: #71809b;
  --accent: #8b5cf6;
  --accent-light: #38bdf8;
  --accent-soft: rgba(139, 92, 246, .12);
  --radius: 18px;
  --navbar-h: 72px;
}

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

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  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.75;
  font-size: 15px;
}

a {
  color: inherit;
}

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

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

.blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -180px;
  left: -150px;
}

.blob-2 {
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, #0284c7, transparent 70%);
  top: 38%;
  right: -180px;
  animation-delay: -6s;
}

.blob-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
  bottom: -180px;
  left: 22%;
  animation-delay: -11s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  35% {
    transform: translate(35px, -35px) scale(1.08);
  }
  70% {
    transform: translate(-20px, 25px) scale(.96);
  }
}

.navbar {
  position: sticky;
  top: 12px;
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 1100px;
  min-height: 60px;
  height: auto;
  padding: 12px 18px;
  margin: 12px auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  border-radius: 20px;
}

.navbar .logo {
  flex-shrink: 0;
}

.navbar .nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.navbar .nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.navbar .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    position: sticky;
    top: 10px;
    width: calc(100% - 24px);
    max-width: 420px;
    min-height: 0;
    height: auto;
    padding: 14px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    border-radius: 18px;
    box-sizing: border-box;
  }

  .navbar .logo {
    display: block;
    width: 100%;
    text-align: center;
  }

  .navbar .nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    gap: 6px;
    padding: 0;
    box-sizing: border-box;
  }

  .navbar .nav-pill {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
    border-radius: 10px;
  }

  .navbar .nav-cta {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
  }

  .nav-toggle {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }
}

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

.hero {
  max-width: 820px;
  min-height: 560px;
  margin: 0 auto;
  padding: 82px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-avatar {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 0 0 5px rgba(139, 92, 246, .35),
    0 16px 44px rgba(56, 189, 248, .16);
  margin-bottom: 25px;
  animation: popIn .65s ease both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.82) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.eyebrow,
.section-num,
.experience-type {
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
}

.hero-title {
  font-size: clamp(32px, 6vw, 49px);
  line-height: 1.3;
  letter-spacing: -2px;
  font-weight: 850;
  margin-bottom: 20px;
}

.hero-title span {
  color: transparent;
  background: linear-gradient(100deg, #a78bfa, #60a5fa, #67e8f9);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-sub {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 30px;
}

.hero-cta,
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 23px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: white;
  background: linear-gradient(120deg, #7c3aed, #2563eb);
  box-shadow: 0 9px 26px rgba(79, 70, 229, .25);
}

.btn-primary:hover {
  box-shadow: 0 13px 32px rgba(79, 70, 229, .38);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .035);
}

.btn-ghost:hover {
  border-color: rgba(167, 139, 250, .6);
}

.hero-caption {
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 42px;
}

.section {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 95px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-num {
  margin-bottom: 9px;
}

.section-title {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -.8px;
  margin-bottom: 18px;
}

.lead {
  color: #e2e8f0;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 17px;
}

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

.section-sub {
  color: var(--text-dim);
  margin: -7px 0 25px;
}

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

.value-card {
  background: linear-gradient(145deg, rgba(22, 30, 48, .88), rgba(13, 19, 32, .78));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 21px;
  transition: transform .25s, border-color .25s, background .25s;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, .55);
  background: rgba(25, 32, 53, .95);
}

.value-icon {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  background: var(--accent-soft);
  border-radius: 9px;
  font-size: 17px;
  margin-bottom: 13px;
}

.value-card h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

.value-card p {
  color: var(--text-faint);
  font-size: 12px;
}

/* Projects */

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

.project-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 30, 48, .88), rgba(13, 19, 32, .78));
  color: var(--text);
  text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.project-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -100px;
  right: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .17), transparent 70%);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, .6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
}

.project-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: white;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(79, 70, 229, .22);
}

.website-icon {
  background: linear-gradient(135deg, #0284c7, #0d9488);
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-label {
  color: #a78bfa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
}

.project-info h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

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

.project-arrow {
  color: var(--accent-light);
  font-size: 14px;
}

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

.tags span {
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, .2);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
}

.arrow {
  color: var(--accent-light);
  font-size: 22px;
  flex-shrink: 0;
  transition: transform .25s;
}

.project-card:hover .arrow {
  transform: translateX(5px);
}

/* Skills */

.skill-group {
  margin: 24px 0;
}

.skill-group h4 {
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #d7def0;
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  transition: .2s;
}

.chips span:hover {
  color: white;
  border-color: rgba(96, 165, 250, .6);
  background: rgba(59, 130, 246, .1);
  transform: translateY(-2px);
}

.skill-note {
  color: var(--text-faint);
  font-size: 11px;
  margin-top: 20px;
}

/* Contact */

.contact-card {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 30, 48, .88), rgba(13, 19, 32, .78));
}

.contact-symbol {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, #f9d64a, #e8a900);
  font-size: 22px;
  font-weight: 900;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-info h3 {
  font-size: 15px;
  margin-bottom: 3px;
}

.contact-info p {
  color: var(--text-faint);
  font-size: 12px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(120deg, #7c3aed, #2563eb);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, .3);
}

/* Footer */

.footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 25px 24px 55px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--text-faint);
  font-size: 11px;
}

.footer-logo {
  font-size: 16px;
}

.back-top {
  color: var(--text-dim);
  text-decoration: none;
}

.back-top:hover {
  color: white;
}

/* Mobile */

@media (max-width: 768px) {
  .navbar {
    max-width: calc(100% - 24px);
    padding: 0 13px 0 19px;
  }

  .nav,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(12, 17, 29, .97);
    backdrop-filter: blur(18px);
    transition: max-height .3s ease, opacity .2s ease;
  }

  .mobile-menu.open {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  }

  .mobile-menu a {
    padding: 12px 18px;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 520px;
    padding-top: 65px;
  }

  .hero-title {
    letter-spacing: -1.3px;
  }

  .section {
    padding: 55px 21px;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .value-card {
    padding: 18px;
  }

  .project-card {
    padding: 19px;
    gap: 14px;
  }

  .project-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 23px;
  }

  .project-info h3 {
    font-size: 16px;
  }

  .contact-card {
    flex-wrap: wrap;
  }

  .contact-info {
    flex-basis: calc(100% - 70px);
  }

  .contact-button {
    width: 100%;
  }

  .footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

