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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --text: #e2e8f0;
  --muted: #8892a4;
  --accent: #6366f1;
  --accent-hover: #818cf8;
}

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

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

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* Main */
main {
  flex: 1;
  padding: 3rem 1.5rem;
}

section {
  margin-bottom: 3.5rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
}

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

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

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

.tag {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-hover);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.btn:hover { color: #fff; }

/* About */
.about p {
  color: var(--muted);
  max-width: 60ch;
}

.links {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.link-btn:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.link-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

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

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

footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
