:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-soft: #e5e7eb;
  --accent: #facc15;
  --accent-soft: rgba(250, 204, 21, 0.18);
  --accent-strong: #f59e0b;
  --text: #111827;
  --text-muted: #6b7280;
  --border-subtle: rgba(209, 213, 219, 1);
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.65);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
  text-transform: uppercase;
  color: #f9fafb;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.nav a {
  padding: 6px 0;
  position: relative;
  color: #e5e7eb;
  transition: color 0.15s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-image: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.1),
      rgba(15, 23, 42, 0.7)
    ),
    url("https://images.unsplash.com/photo-1454496522488-7a8e488e8606?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 40px 20px 64px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background-color: var(--accent);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.65),
    rgba(15, 23, 42, 0.1)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.hero-logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--accent);
  padding: 10px 24px;
  margin-bottom: 28px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-color: rgba(15, 23, 42, 0.4);
}

.hero-logo span + span {
  margin-top: 2px;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw + 1.3rem, 3rem);
  line-height: 1.08;
  margin: 0 0 32px;
}

.hero-cta {
  background-color: var(--accent);
  color: #111827;
  font-weight: 600;
  padding-inline: 34px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(250, 204, 21, 0.6);
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(250, 204, 21, 0.8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.45);
  color: #111827;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(79, 70, 229, 0.65);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text);
}

.btn.full-width {
  width: 100%;
}

.hero-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card {
  perspective: 1200px;
}

.hero-card-inner {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 60%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-soft);
  transform: rotate3d(1, -1, 0, 12deg);
}

.hero-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-card h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.hero-card-role {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.hero-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
}

.section {
  padding: 40px 0;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: left;
  margin-bottom: 26px;
}

.section-header h2 {
  font-size: 1.4rem;
  margin: 0 0 5px;
}

.section-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.two-columns {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--accent);
}

.list.small {
  font-size: 0.8rem;
}

.cards {
  align-items: stretch;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 16px 16px 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.project h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.project p {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.project-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 1);
  background: #f9fafb;
  color: #111827;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.5);
  background: #ffffff;
}

.form-note {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0 22px;
  background: #111827;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.footer-note {
  max-width: 480px;
}

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-card-inner {
    transform: none;
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .three-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    height: 58px;
  }

  .nav {
    position: fixed;
    inset: 58px 16px auto;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 10px 12px;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.8);
    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav a {
    padding: 7px 2px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 42px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-card-inner {
    padding: 18px 16px 16px;
  }

  .section {
    padding: 32px 0;
  }
}
