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

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-hover: #263548;
  --border: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #818cf8;
  --accent2: #2dd4bf;
  --accent3: #f472b6;
  --radius: 12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* ── Header ── */
header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}
.header-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-photo { flex-shrink: 0; }
.profile-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
}
.header-text { flex: 1; }
header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.tagline { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.domains {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Main ── */
main { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

section { margin-bottom: 3rem; }
section h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.section-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* ── Build Log ── */
.build-list { display: flex; flex-direction: column; gap: 0.5rem; }

.build-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.build-item:hover { border-color: var(--accent); background: var(--surface-hover); }

.build-date {
  min-width: 5.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent2);
  padding-top: 0.15rem;
}
.build-info { flex: 1; }
.build-name { font-size: 1rem; font-weight: 600; }
.build-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }
.build-links { margin-top: 0.4rem; display: flex; gap: 0.6rem; align-items: center; }
.domain-tag { font-size: 0.75rem; color: var(--accent3); }
.guide-link { font-size: 0.8rem; color: var(--accent); }
.guide-link:hover { color: var(--accent2); }

/* ── Featured Projects ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.project-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.project-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.project-card a { font-size: 0.85rem; font-weight: 500; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer a { margin: 0 0.5rem; }
.footer-quote { margin-top: 0.75rem; font-size: 0.8rem; color: #64748b; }

/* ── Responsive ── */
@media (max-width: 600px) {
  header { padding: 2rem 1rem; }
  .header-content { flex-direction: column; text-align: center; gap: 1rem; }
  .profile-photo { width: 100px; height: 100px; }
  header h1 { font-size: 1.75rem; }
  .chips { justify-content: center; }
  .build-item { flex-direction: column; gap: 0.25rem; }
  .build-date { min-width: unset; }
}
