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

:root {
  --bg: #080c14;
  --surface: #0d1220;
  --surface2: #111827;
  --border: #1e2d45;
  --accent: #3b82f6;
  --accent2: #06b6d4;
  --text: #f0f4ff;
  --text-dim: #64748b;
  --text-mid: #94a3b8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 20px;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-mid); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* HEADER */
header {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 40px 60px;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 70% 50%, rgba(59,130,246,0.06) 0%, transparent 60%);
}
.header-deco {
  position: absolute; right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.08);
  box-shadow: inset 0 0 80px rgba(59,130,246,0.04);
}
.header-deco::before {
  content: '';
  position: absolute; inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(6,182,212,0.08);
}
.header-content { max-width: 700px; animation: fadeUp 0.8s ease; }
.header-tag {
  font-family: 'DM Sans', monospace;
  font-size: 13px; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 20px;
}
header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(64px, 10vw, 100px);
  font-weight: 800; line-height: 0.95;
  margin-bottom: 24px;
}
header h1 span { color: var(--accent); }
.header-sub {
  font-size: 18px; color: var(--text-mid);
  max-width: 520px; margin-bottom: 40px;
}
.header-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: white;
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none; font-weight: 500;
  transition: all 0.2s;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }
.btn-secondary {
  border: 1px solid var(--border); color: var(--text-mid);
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none; font-weight: 500;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* SEÇÕES */
main { max-width: 1000px; margin: 0 auto; padding: 0 40px; }
section { padding: 100px 0; border-bottom: 1px solid var(--border); }
.section-label {
  font-size: 12px; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 12px;
  font-family: 'DM Sans', monospace;
}
section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700; margin-bottom: 48px;
}

/* SOBRE */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.sobre-texto p { color: var(--text-mid); margin-bottom: 16px; font-size: 16px; }
.sobre-texto strong { color: var(--text); }
.sobre-cards { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
}
.info-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--accent);
}
.info-label { font-size: 14px; color: var(--text-mid); }

/* HABILIDADES */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: all 0.2s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.skill-icon { font-size: 28px; margin-bottom: 12px; }
.skill-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  margin-bottom: 4px;
}
.skill-card p { font-size: 13px; color: var(--text-mid); }

/* PROJETOS */
.projetos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.projeto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: all 0.2s;
}
.projeto-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.projeto-card.destaque { border-color: rgba(59,130,246,0.3); }
.projeto-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 16px;
}
.projeto-tag {
  font-size: 11px; letter-spacing: 1px;
  color: var(--accent2);
  background: rgba(6,182,212,0.1);
  padding: 4px 10px; border-radius: 20px;
}
.projeto-link {
  color: var(--text-mid); text-decoration: none;
  font-size: 20px; transition: color 0.2s;
}
.projeto-link:hover { color: var(--accent); }
.projeto-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 700;
  margin-bottom: 10px;
}
.projeto-card p { font-size: 14px; color: var(--text-mid); margin-bottom: 20px; }
.btn-projeto {
  display: inline-block;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent); padding: 10px 20px;
  border-radius: 8px; text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all 0.2s;
}
.btn-projeto:hover { background: var(--accent); color: white; }

/* CONTATO */
.contato-sub { color: var(--text-mid); margin-bottom: 40px; font-size: 16px; }
.contato-links { display: flex; gap: 20px; flex-wrap: wrap; }
.contato-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 28px;
  text-decoration: none; color: var(--text);
  transition: all 0.2s; flex: 1; min-width: 240px;
}
.contato-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contato-icon { font-size: 24px; }
.contato-card strong { display: block; font-size: 15px; margin-bottom: 2px; }
.contato-card p { font-size: 13px; color: var(--text-mid); }

/* FOOTER */
footer {
  text-align: center; padding: 40px;
  color: var(--text-dim); font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ANIMAÇÃO */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVO */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  header { padding: 100px 20px 60px; }
  main { padding: 0 20px; }
  .sobre-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projetos-grid { grid-template-columns: 1fr; }
}