:root {
  --bg: #0f172a;
  --bg-light: #1e293b;
  --accent: #38bdf8;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --border: #334155;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Nav */
nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--accent); }

/* Header / hero */
header {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 50px;
  text-align: center;
}
.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  border: 3px solid var(--accent);
}
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; }
h1 span { color: var(--accent); }
.subtitle { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 28px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.badge {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  margin: 0 6px;
}
.cta:hover { opacity: 0.85; }
.cta.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* Main content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
section { margin-bottom: 48px; }
h2 { font-size: 1.5rem; margin-bottom: 16px; color: var(--accent); }
p { color: var(--text-dim); margin-bottom: 12px; }

/* Cards for projects */
.card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.card h3 { color: var(--text); margin-bottom: 8px; font-size: 1.15rem; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(56,189,248,0.12);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 6px;
  margin-top: 8px;
}

/* Resume */
.resume-block { text-align: center; }
.timeline-item {
  border-left: 2px solid var(--border);
  padding-left: 20px;
  margin-bottom: 24px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-item .role { color: var(--text); font-weight: 600; }
.timeline-item .meta { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 6px; }

/* Contact */
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 14px; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
