:root {
  --bg: #0b0d11;
  --surface: #14171f;
  --surface-hover: #1c212c;
  --border: #232836;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #6366f1, #38bdf8, #2dd4bf);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
}

.container { width: 100%; max-width: 640px; }

/* Profile Header */
.profile { text-align: center; margin-bottom: 2.5rem; }
.logo-wrapper { width: 90px; height: 90px; margin: 0 auto 1.2rem; }
.logo-wrapper svg { width: 100%; height: 100%; }
.profile h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.profile p { color: var(--text-muted); font-size: 0.95rem; }

/* Navigation */
.nav-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.nav-pills a {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.nav-pills a.active, .nav-pills a:hover {
  background: var(--surface-hover);
  color: var(--text-main);
  border-color: var(--accent);
}

/* Link Cards */
.link-list { display: flex; flex-direction: column; gap: 0.9rem; }
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}
.link-card:hover {
  background: var(--surface-hover);
  border-color: #3b4356;
  transform: translateY(-2px);
}

/* Projects Grid */
.projects-list { display: flex; flex-direction: column; gap: 1.2rem; }
.project-card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: #fff; }
.project-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.8rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 4px; background: #1c212c; color: var(--accent); }
.project-links { display: flex; gap: 1rem; font-size: 0.85rem; }
.project-links a { color: var(--accent); text-decoration: none; }
.project-links a:hover { text-decoration: underline; }

/* Admin UI */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
input, textarea, select, button {
  width: 100%;
  padding: 0.65rem 0.8rem;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
  background: #0e1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
}
button {
  background: #4f46e5;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
button:hover { opacity: 0.9; }
.btn-delete {
  background: #dc2626;
  width: auto;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 0.7rem; border-bottom: 1px solid var(--border); }