/* Design tokens — mirrored from the Fantasy app for visual continuity (dark mode only) */
:root {
  --bg-primary:   #0f1117;
  --bg-secondary: #1a1d27;
  --bg-card:      #21242f;
  --bg-hover:     #282c3a;
  --border:       #2e3347;
  --text-primary:   #e8eaed;
  --text-secondary: #9aa0b0;
  --text-muted:     #6b7280;
  --accent:           #22c55e;
  --accent-secondary: #3b82f6;
  --radius:    8px;
  --radius-lg: 12px;
  --maxw: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.muted { color: var(--text-secondary); }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--accent);
}
.logo:hover { text-decoration: none; }
.logo-dot { color: var(--text-muted); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

/* Hero */
.hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding-block: 4rem 3rem;
}
.hero-avatar {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}
.hero-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-text h1 {
  margin: 0 0 0.25rem;
  font-size: 2.25rem;
  letter-spacing: -0.5px;
}
.tagline { margin: 0 0 0.75rem; color: var(--accent); font-weight: 600; }
.bio { margin: 0; color: var(--text-secondary); max-width: 52ch; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg-primary); }
.btn-primary:hover { background: #1eb152; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-hover); }

/* Sections */
.section { padding-block: 2.5rem; }
.section-title {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  margin: 0 0 1.25rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.resume-card { display: grid; gap: 1.5rem; }
.resume-block h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.resume-block p { margin: 0; }
.resume-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.resume-list li { color: var(--text-primary); }

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag-list li {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius);
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.project-card { display: flex; flex-direction: column; gap: 1rem; }
.project-card.featured { border-color: var(--accent); }
.project-head { display: flex; align-items: center; gap: 0.75rem; }
.project-head h3 { margin: 0; font-size: 1.25rem; }
.project-card p { margin: 0; color: var(--text-secondary); }
.badge {
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
}
.tag-list-wrap { margin-top: auto; }
.project-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2.5rem;
  background: var(--bg-secondary);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
}
.footer-inner .section-title { margin-bottom: 0.25rem; }
.social-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .hero { flex-direction: column; text-align: center; padding-block: 3rem 2rem; }
  .bio { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .nav-links { gap: 1rem; font-size: 0.9rem; }
}
