/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2d2d2d;
  background: #fafafa;
  line-height: 1.7;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav__inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-weight: 600;
  font-size: 1rem;
  color: #111;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.15s;
}

.nav__links a:hover {
  color: #2563eb;
  text-decoration: none;
}

/* ===========================
   Layout
   =========================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid #e5e7eb;
}

/* ===========================
   Hero
   =========================== */
.hero {
  padding-top: calc(56px + 5rem);
  padding-bottom: 5rem;
  background: #ffffff;
  text-align: center;
}

.hero__name {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 0.75rem;
}

.hero__tagline {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.hero__cta {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.hero__cta:hover {
  background: #1d4ed8;
  text-decoration: none;
}

/* ===========================
   About
   =========================== */
.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #111;
}

.about__body {
  color: #4b5563;
  max-width: 680px;
}

/* ===========================
   Projects
   =========================== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111;
}

.card__desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  background: #eff6ff;
  color: #2563eb;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}

.card__link {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===========================
   Contact
   =========================== */
.contact__body {
  color: #4b5563;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.contact__email {
  font-size: 1.05rem;
  font-weight: 500;
}

/* ===========================
   Footer
   =========================== */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 600px) {
  .hero__name {
    font-size: 2rem;
  }

  .nav__links {
    gap: 1.25rem;
  }

  .nav {
    padding: 0 1rem;
  }
}
