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

:root {
  --bg: #0f0f1a;
  --bg-surface: #1a1a2e;
  --bg-card: #16213e;
  --border: #0f3460;
  --text: #e0e0e0;
  --text-muted: #8892a4;
  --accent: #4fc3f7;
  --accent-hover: #81d4fa;
  --green: #66bb6a;
  --orange: #ffa726;
  --radius: 10px;
}

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

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

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.nav-links a:hover {
  color: var(--text);
}

/* Container */
.container {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-summary {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Projects grid */
.projects {
  padding: 2rem 0;
}
.projects h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #fff;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
  color: var(--text);
}
.project-card:hover {
  border-color: var(--accent);
  color: var(--text);
}
.project-card h3 {
  font-size: 1.1rem;
  color: #fff;
}
.project-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}
.project-card-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-card-status[data-status="complete"] {
  color: var(--green);
}
.project-card-status[data-status="in-progress"] {
  color: var(--orange);
}
.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.tech-tag {
  font-size: 0.7rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  padding: 2rem 0;
}
.contact h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}
.contact-links {
  display: flex;
  gap: 1.5rem;
}

/* Resume */
.resume-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.resume-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.resume-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  line-height: 1.7;
}
.resume-content h1 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.resume-content h2 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}
.resume-content h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-top: 1rem;
}
.resume-content ul {
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}
.resume-content li {
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}
.resume-content p {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}
.resume-content strong {
  color: #fff;
}

/* Project detail */
.project-detail {
  padding: 1rem 0;
}
.project-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.project-detail-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-detail-status[data-status="complete"] {
  color: var(--green);
}
.project-detail-status[data-status="in-progress"] {
  color: var(--orange);
}
.project-detail h1 {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.project-detail-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.project-detail-tech h3,
.project-detail-highlights h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.project-detail-highlights ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}
.project-detail-highlights li {
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}
.project-detail-actions {
  margin-top: 1.5rem;
}

/* Sidebar */
.project-sidebar {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.project-sidebar h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.project-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-sidebar-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.project-sidebar-list a {
  font-size: 0.9rem;
  font-weight: 600;
}
.sidebar-tech {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Not found */
.not-found {
  text-align: center;
  padding: 4rem 0;
}
.not-found h1 {
  font-size: 4rem;
  color: var(--border);
}
.not-found p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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