* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans KR", sans-serif;
  background: #080b16;
  color: #f4f7fb;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 11, 22, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 24px;
  color: #b8c4d6;
  font-size: 14px;
}

.nav a:hover {
  color: #7dd3fc;
}

/* Hero */

.hero {
  min-height: 680px;
  padding: 120px 8% 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.2), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(168, 85, 247, 0.17), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(34, 197, 94, 0.08), transparent 26%),
    #080b16;
}

.hero-badge {
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.22);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-desc {
  max-width: 720px;
  margin: 28px 0 0;
  color: #b8c4d6;
  font-size: 20px;
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.btn.primary {
  background: #38bdf8;
  color: #06111f;
}

.btn.secondary {
  color: #e5edf7;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

/* Common Section */

.section {
  padding: 92px 8%;
}

.section-heading p {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 0 0 34px;
  font-size: 38px;
  letter-spacing: -0.03em;
}

/* Projects */

.project-slider-wrap {
  position: relative;
}

.project-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card.highlight {
  border-color: rgba(125, 211, 252, 0.3);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(125, 211, 252, 0.45);
}

.tag {
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.project-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.project-card p {
  margin: 0;
  color: #b8c4d6;
  line-height: 1.7;
}

.stack {
  margin-top: auto;
  padding-top: 24px;
  color: #d9e5f5;
  font-size: 14px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.card-actions a {
  color: #7dd3fc;
  font-size: 14px;
  font-weight: 800;
}

.card-actions a:hover {
  color: #bae6fd;
}

/* Slider Buttons */

.slider-btn {
  display: none;
}

/* Tech Stack */

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-list span {
  padding: 11px 15px;
  border-radius: 999px;
  color: #d9e5f5;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Docs */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.doc-item {
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-item h3 {
  margin: 0 0 12px;
}

.doc-item p {
  margin: 0;
  color: #b8c4d6;
  line-height: 1.7;
}

/* Footer */

.site-footer {
  padding: 36px 8%;
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: #7dd3fc;
}

/* Responsive */

@media (max-width: 1200px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    padding: 18px 5%;
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    min-height: auto;
    padding: 88px 5% 72px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 68px 5%;
  }

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

  .project-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}
