:root {
  /* 색상 수정: 아래 변수만 바꾸면 사이트 전체 분위기를 빠르게 변경할 수 있습니다. */
  --color-primary: #007aff;
  --color-primary-strong: #0a84ff;
  --color-primary-soft: #eaf4ff;
  --color-secondary: #6fb6ff;
  --color-text: #09111f;
  --color-text-soft: #4d6077;
  --color-surface: rgba(255, 255, 255, 0.76);
  --color-surface-strong: rgba(255, 255, 255, 0.92);
  --color-border: rgba(100, 126, 160, 0.18);
  --color-shadow: rgba(12, 26, 51, 0.14);
  --page-gradient:
    radial-gradient(circle at top left, rgba(10, 132, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(111, 182, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #f4f8ff 0%, #ffffff 32%, #f5f9ff 100%);
  --section-gradient: linear-gradient(
    180deg,
    rgba(236, 244, 255, 0.64) 0%,
    rgba(255, 255, 255, 0.94) 100%
  );
  --radius-2xl: 36px;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-xl: 0 34px 90px var(--color-shadow);
  --shadow-lg: 0 26px 66px rgba(12, 26, 51, 0.11);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.08);
  --container: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR", system-ui, sans-serif;
  color: var(--color-text);
  background: var(--page-gradient);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 50%;
  width: min(980px, 90vw);
  height: calc(100% - 36px);
  transform: translateX(-50%);
  border-radius: 38px;
  background: var(--section-gradient);
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 42px rgba(15, 23, 42, 0.08);
}

.brand {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--color-text-soft);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
  background: rgba(0, 122, 255, 0.1);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 28px);
  display: flex;
  align-items: center;
  padding-top: 36px;
}

.hero::before {
  inset: 14px auto auto 50%;
  height: calc(100% - 28px);
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
}

.orb-a {
  top: 6%;
  left: -110px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.24) 0%, rgba(10, 132, 255, 0) 72%);
}

.orb-b {
  right: -130px;
  bottom: 10%;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.18) 0%, rgba(0, 122, 255, 0) 76%);
}

.orb-c {
  top: 42%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(234, 244, 255, 0.92) 0%, rgba(234, 244, 255, 0) 78%);
}

.grid-glow {
  position: absolute;
  inset: 10% 0 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black 16%, transparent 76%);
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 42px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.mini-label {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 9.8ch;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
}

.hero-text,
.hero-subtext {
  max-width: 620px;
  color: var(--color-text-soft);
}

.hero-text {
  margin: 24px 0 0;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.hero-subtext {
  margin: 16px 0 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.28);
}

.button.secondary {
  border-color: rgba(0, 122, 255, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: var(--color-text);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li,
.skill-cluster span {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.floating-card,
.card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
}

.spotlight-card {
  padding: 32px;
}

.spotlight-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.spotlight-card p:last-child {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.metrics-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.metric-card,
.message-card {
  padding: 22px;
}

.metric-value {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.metric-label,
.message-card p,
.section-heading p,
.card-body p,
.about-card p,
.profile-summary p,
.timeline-list p,
.footer-wrap p {
  margin: 0;
  color: var(--color-text-soft);
}

.message-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #48bb78 0%, #22c55e 100%);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
  flex-shrink: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(2.35rem, 4vw, 4.1rem);
  margin-bottom: 16px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.profile-card,
.about-card,
.timeline,
.portfolio-card,
.hobby-card {
  overflow: hidden;
}

.profile-card,
.about-card,
.timeline {
  padding: 28px;
}

.profile-photo {
  aspect-ratio: 1 / 1.16;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8) 0%, rgba(234, 244, 255, 1) 100%),
    linear-gradient(135deg, rgba(0, 122, 255, 0.18), rgba(10, 132, 255, 0.02));
}

.profile-photo img,
.card-visual img,
.hobby-visual img {
  height: 100%;
  object-fit: cover;
}

.profile-summary {
  margin-top: 20px;
}

.profile-summary h3,
.about-card h3,
.timeline-head h3,
.card-body h3 {
  margin: 0 0 12px;
  font-size: 1.58rem;
  letter-spacing: -0.04em;
  line-height: 1.24;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.skill-cluster span {
  color: var(--color-primary);
  background: rgba(0, 122, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.12);
  font-weight: 600;
}

.timeline {
  margin-top: 24px;
}

.timeline-head {
  margin-bottom: 22px;
}

.timeline-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.timeline-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 38px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.09);
  color: var(--color-primary);
  font-weight: 800;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-card,
.hobby-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.portfolio-card:hover,
.hobby-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.13);
  border-color: rgba(0, 122, 255, 0.24);
}

.card-visual,
.hobby-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.18) 0%, rgba(10, 132, 255, 0.04) 100%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96) 0%, rgba(234, 244, 255, 1) 86%);
}

.card-visual::before,
.hobby-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.2) 100%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 26%);
  pointer-events: none;
}

.card-visual::after,
.hobby-visual::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.card-body {
  padding: 24px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hobby-icon {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-primary);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.accent-text {
  display: block;
  margin-top: 20px;
  color: var(--color-primary);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.site-footer {
  padding: 10px 0 40px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-md);
}

.footer-title {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--color-text);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #ffffff;
  font-size: 1.18rem;
  cursor: pointer;
  box-shadow: 0 22px 40px rgba(0, 122, 255, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@media (max-width: 1024px) {
  .section {
    padding: 96px 0;
  }

  .hero-grid,
  .about-layout,
  .portfolio-grid,
  .hobby-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-visual {
    max-width: 720px;
  }

  .hobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 24px, 100%);
  }

  .section {
    padding: 82px 0;
  }

  .site-header {
    padding: 14px 0;
  }

  .nav-wrap {
    border-radius: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    font-size: 0.84rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 14px 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-actions,
  .hero-points,
  .footer-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .metrics-stack,
  .hobby-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card,
  .metric-card,
  .message-card,
  .profile-card,
  .about-card,
  .timeline,
  .card-body {
    padding: 22px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-year {
    width: fit-content;
    padding: 0 16px;
  }
}
