/* ====== Base Style ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f7fb;
  color: #111827;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ====== Navbar ====== */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* ====== Sections ====== */
section {
  padding: 40px 0;
}

.section-title {
  font-size: 22px;
  margin-bottom: 18px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

/* ====== Hero ====== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  padding-top: 32px;
  padding-bottom: 40px;
}

.hero-main {
  flex: 2 1 260px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5edff;
  color: #1d4ed8;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 14px;
}

.hero-text {
  font-size: 14px;
  color: #6b7280;
  max-width: 470px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.07s ease;
}

.btn-primary {
  background: #2563eb;
  color: #f9fafb;
  border-color: #2563eb;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}

.btn-ghost {
  background: white;
  color: #111827;
  border-color: #e5e7eb;
}

.btn-ghost:hover {
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.hero-side {
  flex: 1 1 220px;
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: white;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.07);
  border: 1px solid #e5e7eb;
  width: 100%;
  max-width: 260px;
}

.hero-card-title {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.hero-card-main {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-tag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #f3f4ff;
  color: #111827;
  border: 1px solid #e5e7ff;
}

/* ====== About ====== */
.about-text {
  font-size: 14px;
  color: #4b5563;
  max-width: 680px;
}

/* ====== Skills ====== */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  color: #374151;
}

/* ====== Projects ====== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.project-card {
  background: white;
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 130px;
  transition: box-shadow 0.12s ease, transform 0.12s ease,
    border-color 0.12s ease;
}

.project-card:hover {
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.project-tag {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-title {
  font-size: 15px;
  font-weight: 600;
}

.project-desc {
  font-size: 13px;
  color: #6b7280;
}

.project-footer {
  margin-top: 6px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #4b5563;
}

.project-link {
  font-size: 12px;
  color: #2563eb;
}

/* ====== Contact ====== */
.contact-box {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 18px 18px;
  max-width: 520px;
}

.contact-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 14px;
  word-break: break-all;
  font-weight: 500;
}

/* ====== Footer ====== */
footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px 0 26px;
  font-size: 12px;
  color: #9ca3af;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ====== Responsive ====== */
@media (max-width: 640px) {
  .hero {
    padding-top: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .nav-links {
    display: none;
  }

  .hero-side {
    justify-content: flex-start;
  }
}
