:root {
  --bg:#0f1724;
  --card:#0b1220;
  --muted:#94a3b8;
  --accent:#6ee7b7;
  --primary:#60a5fa;
  --glass: rgba(255,255,255,0.03);
  --maxw:1100px;
  color-scheme: dark;
  color: #e6eef8;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #071028 80%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.wrap { width: 100%; max-width: var(--maxw); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #022025;
}

h1 { margin: 0; font-size: 22px; }
.subtitle { color: var(--muted); font-size: 13px; }

nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}

nav a:hover {
  background: var(--glass);
  color: var(--primary);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.03);
}

.intro h2 { margin: 0 0 8px 0; font-size: 20px; }
.lead { color: var(--muted); margin-bottom: 14px; }

.cta { display: flex; gap: 12px; }

.btn {
  background: var(--primary);
  color: #02102a;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn.alt {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--muted);
}

/* Skills */
.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.skill {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.01);
  font-size: 13px;
  color: var(--muted);
}

/* Sidebar */
.side-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat { display: flex; gap: 12px; align-items: center; }
.stat strong { display: block; font-size: 20px; }

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  font-size: 12px;
  color: var(--muted);
}

/* Projects */
section.projects { margin-bottom: 28px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project {
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.02);
}

.project h3 { margin: 0 0 6px 0; font-size: 16px; }
.project p { margin: 0; color: var(--muted); font-size: 13px; }

.tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* About & Contact */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.about p { color: var(--muted); }
.contact .contact-item { margin-bottom: 10px; }
.contact a { color: var(--primary); text-decoration: none; }

footer {
  color: var(--muted);
  font-size: 13px;
  margin-top: 26px;
  text-align: center;
}