:root {
  --bg: #0b1118;
  --bg-elev: #111b25;
  --text: #eaf2f8;
  --muted: #9cb1c4;
  --accent: #39d8ff;
  --accent-strong: #1ec6f0;
  --border: #25384c;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(57, 216, 255, 0.08), transparent 30%),
    radial-gradient(circle at 92% 20%, rgba(57, 216, 255, 0.1), transparent 24%),
    linear-gradient(160deg, #0b1118 0%, #0d1520 45%, #0a1017 100%);
  line-height: 1.6;
}

.bg-orb {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: -1;
}

.orb-one {
  top: -8rem;
  left: -8rem;
  background: rgba(57, 216, 255, 0.16);
  animation: floatA 11s ease-in-out infinite;
}

.orb-two {
  bottom: -10rem;
  right: -8rem;
  background: rgba(30, 198, 240, 0.14);
  animation: floatB 13s ease-in-out infinite;
}

@keyframes floatA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(25px, 20px);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-22px, -24px);
  }
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 24, 0.72);
  border-bottom: 1px solid rgba(57, 216, 255, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.lang-toggle {
  display: inline-flex;
  background: rgba(17, 27, 37, 0.96);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.lang-btn.is-active {
  background: rgba(57, 216, 255, 0.2);
  color: var(--text);
}

.hero {
  padding: 8rem 0 5rem;
}

.hero-kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin: 0;
}

h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
}

.hero-subtitle {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #03131a;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(17, 27, 37, 0.65);
}

.section {
  padding: 2.3rem 0 1.4rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
}

.section-lead {
  color: var(--muted);
  max-width: 75ch;
  margin: 0.85rem 0 0;
}

.chip-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-list li {
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(17, 27, 37, 0.55);
}

.project-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card,
.stack-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(17, 27, 37, 0.86) 0%, rgba(11, 17, 24, 0.9) 100%);
  box-shadow: var(--shadow);
}

.project-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-title {
  margin: 0;
  font-size: 1.08rem;
}

.project-period {
  color: var(--muted);
  font-size: 0.86rem;
}

.project-summary {
  margin: 0;
  color: #c8d8e6;
  font-size: 0.95rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.78rem;
  color: #8adfff;
  border: 1px solid rgba(57, 216, 255, 0.35);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
}

.project-links {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.project-link {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
}

.stack-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.stack-item {
  padding: 0.9rem 1rem;
}

.stack-item-title {
  margin: 0;
  font-size: 1rem;
}

.stack-item-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.stack-item-body {
  margin: 0.45rem 0 0;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-list a {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--text);
  background: rgba(17, 27, 37, 0.65);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(57, 216, 255, 0.15);
  padding: 1.2rem 0 1.8rem;
  color: var(--muted);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 1.4rem), var(--container));
  }

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

  .hero {
    padding-top: 6rem;
  }
}
