:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --accent: #0066ff;
  --gray: #666;
  --border: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --text: #efefef;
    --gray: #aaa;
    --border: #333;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2rem 1rem;
}

header, main, footer {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 4rem 0 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

p {
  color: var(--gray);
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}

.subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.skills span {
  background: rgba(0,102,255,.1);
  color: var(--accent);
  padding: .35rem .75rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
}

.projects {
  display: grid;
  gap: 2rem;
}

.project {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: transform .25s ease, box-shadow .25s ease;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.links {
  margin: 1rem 0;
}

.links a {
  margin-right: 1.2rem;
  font-weight: 500;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tags span {
  font-size: .8rem;
  background: rgba(0,102,255,.1);
  color: var(--accent);
  padding: .15rem .5rem;
  border-radius: 4px;
}

footer {
  text-align: center;
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  color: var(--gray);
  font-size: .95rem;
}

.copy {
  margin-top: 1.5rem;
  font-size: .85rem;
}

/* Responsividade extra para telas pequenas */
@media (max-width: 640px) {
  h1 { font-size: 2.5rem; }
  .hero { padding: 3rem 0; }
  h2 { font-size: 1.6rem; }
}