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

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-hover: #1e1e22;
  --border: #2a2a30;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

/* ── Hero ── */

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 32px var(--accent-glow);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.35rem;
}

.title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.subtitle a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.subtitle a:hover {
  text-decoration: underline;
}

.location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Links / Buttons ── */

.links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.link-btn:hover {
  background: var(--surface-hover);
  border-color: #4a4a55;
  transform: translateY(-1px);
}

.link-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--accent-glow);
}

.link-btn.primary:hover {
  filter: brightness(1.1);
}

/* ── Sections ── */

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.about p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── Skill Tags ── */

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── Project Card ── */

.project-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.project-card:hover {
  background: var(--surface-hover);
  border-color: #4a4a55;
  transform: translateY(-2px);
}

.project-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.project-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.project-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.project-lang {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
}

/* ── Footer ── */

footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .container {
    padding: 2.5rem 1rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .links {
    flex-direction: column;
    align-items: center;
  }

  .link-btn {
    width: 100%;
    justify-content: center;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
