/* -------------------
   🔁 Reset
-------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #0d1117;
  color: #e2e8f0;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
li {
  list-style: none;
}

/* -------------------
   🔹 Header
-------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 32px;
  background-color: rgba(13, 17, 23, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

header h1 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-family: 'Fira Code', monospace;
  color: #00d9ff;
  display: flex;
  align-items: center;
}

.nav-desktop {
  display: flex;
}

.nav-desktop a {
  margin-left: 24px;
  font-size: 1rem;
  text-decoration: none;
  color: #00d9ff;
}

/* 햄버거 메뉴 및 모바일 네비게이션 */
.hamburger {
  display: none;
  font-size: 1.5rem;
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 1001;
  cursor: pointer;
  color: #00d9ff;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: rgba(13, 17, 23, 0.95);
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  border-radius: 8px;
}

.nav-mobile a {
  color: #e2e8f0;
  font-size: 1rem;
  padding: 8px 0;
  text-decoration: none;
}

.nav-mobile.open {
  display: flex;
}

/* -------------------
   🔹 Hero
-------------------- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: radial-gradient(circle at top, #1c1f26, #0d1117);
}

.hero-inner h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-inner p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 32px;
}

.cta {
  display: inline-block;
  padding: 12px 28px;
  background-color: #00d9ff;
  color: #0d1117;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.cta:hover {
  background-color: #00b3cc;
}

/* -------------------
   🔹 About & Projects
-------------------- */
#about,
#projects {
  background-color: #0d1117;
  padding: 100px 20px;
  text-align: center;
}

.about-inner,
.projects-inner {
  max-width: 1080px;
  margin: 0 auto;
}

#about h2,
#projects h2 {
  font-size: 2rem;
  color: #00d9ff;
  margin-bottom: 30px;
  font-family: 'Fira Code', monospace;
}

#about p,
.card-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.project-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.project-card {
  position: relative;
  width: 300px;
  background-color: #1c1f26;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

.project-card img,
.project-card .card-content {
  position: relative;
  z-index: 1;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  text-align: left;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #e2e8f0;
}

/* -------------------
   🔹 Footer
-------------------- */
footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* -------------------
   🔁 Responsive
-------------------- */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 16px 24px;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-inner h2 {
    font-size: 1.6rem;
  }

  .hero-inner p {
    font-size: 1rem;
  }

  .cta {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  #about,
  #projects {
    padding: 60px 16px;
  }

  #about h2,
  #projects h2 {
    font-size: 1.4rem;
  }

  #about p,
  .card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .project-card {
    width: 100%;
  }

  .project-card img {
    height: 200px;
  }

  .card-content h3 {
    font-size: 1rem;
  }

  footer {
    font-size: 0.75rem;
    padding: 30px 16px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  nav a {
    margin-left: 24px;
    font-size: 0.9rem;
  }

  .hero-inner h2 {
    font-size: 2rem;
  }

  .hero-inner p {
    font-size: 1.05rem;
  }

  .cta {
    font-size: 1rem;
    padding: 12px 28px;
  }

  #about,
  #projects {
    padding: 80px 32px;
  }

  .project-card {
    width: 100%;
  }

  .project-card img {
    height: 240px;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  .card-content p {
    font-size: 0.95rem;
  }

  footer {
    font-size: 0.85rem;
  }
}