/* ----- Variables ----- */
:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: #2a2a2a;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --space: 1.5rem;
  --max-width: 720px;
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space) 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  color: var(--text);
}

/* ----- Skip link (a11y) ----- */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ----- Sections ----- */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem;
}

/* ----- Hero ----- */
.hero {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}
.hero-greeting {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}
.hero-name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.hero-role {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero-tagline {
  max-width: 36ch;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

/* ----- About ----- */
.about-text {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.about-text:last-child { margin-bottom: 0; }

/* ----- Skills ----- */
.skills-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}
.skills-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.skills-list li:last-child { border-bottom: none; }

/* ----- Projects ----- */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.project-card:hover { border-color: var(--accent); }
.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.project-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.project-link:hover { text-decoration: underline; }
.project-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: underline;
}

/* ----- Contact ----- */
.contact-section p { color: var(--text-muted); margin: 0 0 1rem; }
.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.contact-links a:hover { text-decoration: underline; }
.contact-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: underline;
}

/* ----- Footer ----- */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
