/* ── Reset & Base ─────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-hover: #1c2129;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --orange: #d29922;
  --red: #f85149;
  --blue: #58a6ff;
  --purple: #bc8cff;
  --radius: 10px;
}

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

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* ── Header ──────────────────────────────────── */
header {
  padding: 60px 0 30px;
  text-align: center;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

/* ── Profile ─────────────────────────────────── */
#profile {
  margin-bottom: 50px;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.profile-info h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.profile-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
}

.profile-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.profile-links a {
  font-size: 0.85rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.profile-links a:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
  opacity: 1;
}

.profile-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Projects ────────────────────────────────── */
#projects h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

/* ── Project Card ────────────────────────────── */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.project-name a {
  color: var(--text);
}

.project-name a:hover {
  color: var(--accent);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
}

.badge-active     { background: rgba(63,185,80,0.15); color: var(--green); }
.badge-profitable { background: rgba(188,140,255,0.15); color: var(--purple); }
.badge-sold       { background: rgba(88,166,255,0.15); color: var(--blue); }
.badge-abandoned  { background: rgba(248,81,73,0.15); color: var(--red); }

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.project-meta {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-meta span::before {
  margin-right: 4px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visit-btn {
  display: inline-block;
  padding: 6px 18px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.visit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

/* ── Empty state ─────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

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

/* ── Responsive ──────────────────────────────── */
@media (max-width: 640px) {
  header h1 {
    font-size: 1.8rem;
  }

  .profile-card {
    flex-direction: column;
  }

  .profile-stats {
    width: 100%;
    justify-content: space-around;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
