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

:root {
  --bg: #0a0a0f;
  --surface: #14141f;
  --surface-hover: #1a1a2a;
  --border: #1e1e2e;
  --text: #e4e4ef;
  --text-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.logo span { color: var(--accent-light); }
.header nav { display: flex; align-items: center; gap: 1.5rem; }
.header nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.header nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  max-width: 720px;
  margin: 6rem auto 4rem;
  padding: 0 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Projects grid */
.projects {
  max-width: 960px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--accent); background: var(--surface-hover); }

.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; flex: 1; }
.card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card .tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent-light);
}
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent-light);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { text-decoration: none; }

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

/* Detail page */
.detail {
  max-width: 760px;
  margin: 4rem auto 6rem;
  padding: 0 2rem;
}
.detail .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.detail .breadcrumb a { color: var(--accent-light); }
.detail h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.detail .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.detail h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  color: var(--accent-light);
}
.detail h2:first-of-type { margin-top: 0; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.stack-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
}
.stack-card ul {
  list-style: none;
  padding: 0;
}
.stack-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.15rem 0;
}

.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "\2022";
  color: var(--accent-light);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* About page */
.about {
  max-width: 680px;
  margin: 5rem auto 6rem;
  padding: 0 2rem;
}
.about-intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}
.about-intro h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.about-intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.about h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
.about p, .about li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.about ul {
  list-style: none;
  padding: 0;
}
.about ul li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.about ul li::before {
  content: "\2022";
  color: var(--accent-light);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.about .links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.about .links a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: var(--accent-light);
  transition: border-color 0.2s;
}
.about .links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

@media (max-width: 600px) {
  .hero { margin-top: 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .projects { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .about-intro { flex-direction: column; align-items: center; text-align: center; }
  .detail h1 { font-size: 1.5rem; }
}
