/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }

/* ─── Variables ──────────────────────────────────────────── */
:root {
  /* Netlify-esque: deep teal + clean sans */
  --bg:         #0c2a2a;
  --surface:    #0d1818;  /* slightly darker than bg */
  --panel:      color-mix(in srgb, white 6%, transparent); /* Netlify-like "step image wrap" panel */
  --border:     rgba(208, 255, 254, 0.20);
  --text:       #ffffff;
  --muted:      rgba(255, 255, 255, 0.72);
  --accent:     #05bdbA;
  --accent-dim: rgba(5, 189, 186, 0.45);
  --link:       #05bdbA;
  --link-hover: rgba(208, 255, 254, 0.95);
  --font-serif: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:  'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  --max-width:  680px;
  --page-pad:   clamp(1.5rem, 5vw, 4rem);
}

/* ─── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─── Page wrapper ───────────────────────────────────────── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem var(--page-pad) 4rem;
}

/* ─── Links ──────────────────────────────────────────────── */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.hero__greeting {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero__bio {
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font-mono);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* Nav dots — a subtle section indicator on wider screens */
.nav-dots {
  display: none;
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
}
@media (min-width: 900px) { .nav-dots { display: flex; } }

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}
.nav-dot.active,
.nav-dot:hover {
  background: var(--accent);
  transform: scale(1.4);
}

/* ─── Section ────────────────────────────────────────────── */
.section {
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}
.section:last-of-type { border-bottom: none; }

.section__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.section__body {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.section__body p + p { margin-top: 1rem; }

/* ─── Work item ──────────────────────────────────────────── */
.work-item {
  margin-bottom: 3.5rem;
}

.work-item__meta {
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.work-item__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.work-item__body {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.work-item__body p + p {
  margin-top: 1rem;
}

.work-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ─── Project card (side projects) ───────────────────────── */
.project {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease;
}
.project:hover { border-color: var(--accent-dim); }

.project__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.project__desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.project__links {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ─── Social links ───────────────────────────────────────── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-link:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 2;
}

/* ─── Contact form ───────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}

.field {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
}

.field::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}

.field:focus {
  border-color: var(--accent-dim);
}

textarea.field {
  resize: vertical;
}

.btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}

.btn:hover {
  border-color: var(--accent-dim);
  color: var(--link-hover);
  transform: translateY(-1px);
}

/* ─── Project carousel ───────────────────────────────────── */
.project-carousel {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.project-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.project-carousel .swiper-slide {
  aspect-ratio: 3 / 2;
}

.project-carousel .swiper-button-prev,
.project-carousel .swiper-button-next {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.6);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.project-carousel .swiper-button-prev::after,
.project-carousel .swiper-button-next::after {
  font-size: 14px;
}

.project-carousel .swiper-pagination-bullet {
  background: var(--muted);
}

.project-carousel .swiper-pagination-bullet-active {
  background: var(--accent);
}

/* ─── Scroll fade-in ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

