*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --bg-secondary: #f7f7f5;
  --text: #1a1a18;
  --text-secondary: #5a5a56;
  --text-tertiary: #9a9a94;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a18;
    --bg-secondary: #242422;
    --text: #f0efe8;
    --text-secondary: #a8a89e;
    --text-tertiary: #6a6a62;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ── */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  padding: 1rem 0;
}

nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-size: 14px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
}

.hero-label {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.hero > p > strong {
  font-weight: 500;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border-strong);
  color: var(--text);
  background: transparent;
  transition:
    background 0.15s,
    opacity 0.15s;
  cursor: pointer;
}

.btn:hover {
  background: var(--bg-secondary);
}

.btn-fill {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.btn-fill:hover {
  opacity: 0.85;
  background: var(--text);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0;
}

/* ── Section ── */
section {
  padding: 3.5rem 0;
}

.section-label {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ── Projects ── */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .projects {
    grid-template-columns: repeat(1, 1fr);
  }
}

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

.project-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.project-card:hover {
  border-color: var(--border-strong);
}

.project-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
  background: var(--bg-secondary);
}

.project-img-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img-placeholder svg {
  opacity: 0.25;
}

.project-body {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 3px;
}

.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
}

.project-link {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  padding-top: 2px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.project-link:hover {
  color: var(--text);
}

/* ── Certifications ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

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

.cert-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  transition: border-color 0.15s;
}

.cert-card:hover {
  border-color: var(--border-strong);
}

.cert-issuer {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 5px;
}

.cert-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

/* ── Availability banner ── */
.avail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.25rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a9e6e;
  flex-shrink: 0;
}

.avail p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.avail a {
  color: var(--text);
  border-bottom: 0.5px solid var(--border-strong);
}

.avail a:hover {
  border-bottom-color: var(--text);
}

/* ── Footer ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 1.75rem 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .hero h1 {
    font-size: 26px;
  }

  .nav-links {
    gap: 1rem;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
