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

:root,
[data-theme="dark"] {
  --bg: #0f0f0f;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #6ee7b7;
  --border: #2a2a2a;
}

[data-theme="light"] {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #059669;
  --border: #e5e5e5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.theme-toggle:hover {
  color: var(--text);
}

.theme-icon {
  display: block;
}

.theme-icon-moon {
  display: none;
}

.theme-icon-sun {
  display: block;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

/* Main */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}

.hero-greeting {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.hero-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-bio {
  max-width: 36ch;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

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

/* Sections */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Tech Stack */
.tech-stack-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-logo {
  flex-shrink: 0;
}

/* Next.js logo is black - invert on dark theme for visibility */
[data-theme="dark"] .tech-logo-dark {
  filter: invert(1);
}

.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Projects */
.project-list {
  list-style: none;
}

.project {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.project:last-child {
  border-bottom: none;
}

.project-year {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.project-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

.project-tags {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Contact */
.contact-section .section-title {
  margin-bottom: 0.5rem;
}

.contact-text {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.footer p {
  font-size: 0.85rem;
  color: var(--muted);
}
