:root {
  --bg: #0a0c10;
  --surface: #111318;
  --surface2: #181c24;
  --border: #1e2330;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --text: #e2e8f0;
  --muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.6; }

/* SKIP LINK (acessibilidade — teclado) */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--accent); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0 0 8px 8px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none; z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* FOCUS VISIBLE (navegação por teclado) */
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,12,16,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { font-size: 1.1rem; font-weight: 700; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent2); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; padding: 0.25rem; }

/* HERO */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 6rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero-bg {
  background: radial-gradient(ellipse at 70% 50%, rgba(59,130,246,0.08), transparent 60%);
  position: absolute; inset: 0; pointer-events: none;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 400px; gap: 4rem; align-items: center;
}
.hero-tag {
  display: inline-block; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent2); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem;
  background: linear-gradient(135deg, #e2e8f0, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero-desc { font-size: 0.98rem; color: #94a3b8; max-width: 520px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent); color: #fff; padding: 0.75rem 1.75rem;
  border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--border); color: var(--text); padding: 0.75rem 1.75rem;
  border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }

.hero-photo-wrap { position: relative; }
.hero-photo-wrap::before {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(135deg, rgba(59,130,246,0.4), transparent 60%);
  border-radius: 20px; z-index: 0;
}
.hero-photo {
  width: 100%; border-radius: 18px; display: block;
  position: relative; z-index: 1; object-fit: cover; height: 500px;
  filter: brightness(0.92) contrast(1.05);
}

/* STATS */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2rem;
}
.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 1rem;
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent2); }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

/* SECTIONS */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 3rem; }
.center { text-align: center; }

/* SKILLS */
#skills { background: var(--surface); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.skill-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.skill-icon {
  width: 40px; height: 40px; border-radius: 8px; background: rgba(59,130,246,0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.2rem;
}
.skill-name { font-weight: 600; margin-bottom: 0.4rem; }
.skill-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.skill-bar-wrap { margin-top: 1rem; background: var(--surface2); border-radius: 100px; height: 4px; overflow: hidden; }
.skill-bar {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0; transition: width 1s ease;
}
.skill-bar.animated { width: var(--w); }

/* EXPERIENCE */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { display: flex; gap: 2rem; margin-bottom: 2.5rem; }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface2);
  border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1; font-size: 0.9rem;
}
.timeline-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; flex: 1; transition: border-color 0.2s;
}
.timeline-content:hover { border-color: rgba(59,130,246,0.3); }
.timeline-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.timeline-role { font-weight: 700; font-size: 1rem; }
.timeline-period {
  font-size: 0.8rem; color: var(--accent2);
  background: rgba(59,130,246,0.1); padding: 0.2rem 0.6rem; border-radius: 100px;
}
.timeline-company { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.8rem; }
.timeline-bullets { list-style: none; }
.timeline-bullets li {
  font-size: 0.88rem; color: #94a3b8; padding: 0.2rem 0 0.2rem 1rem; position: relative;
}
.timeline-bullets li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* PRAD BADGE */
.prad-badge {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-top: 1rem; padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(96,165,250,0.05));
  border: 1px solid rgba(59,130,246,0.25); border-radius: 8px;
}
.prad-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.prad-text { display: flex; flex-direction: column; gap: 0.2rem; }
.prad-title { font-size: 0.85rem; font-weight: 700; color: var(--accent2); }
.prad-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* CERTS */
#certs { background: var(--surface); }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cert-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.2rem; display: flex; gap: 1rem;
  align-items: flex-start; transition: border-color 0.2s;
}
.cert-card:hover { border-color: var(--accent); }
.cert-icon { font-size: 1.4rem; flex-shrink: 0; }
.cert-name { font-size: 0.88rem; font-weight: 600; line-height: 1.4; }
.cert-year { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }

/* CONTACT */
#contact { text-align: center; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 3rem 2rem; max-width: 600px; margin: 0 auto;
}
.contact-card p { color: var(--muted); margin-bottom: 2rem; }
.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.contact-link {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; padding: 0.7rem 1.2rem;
  border-radius: 8px; font-size: 0.9rem; transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent2); }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.85); cursor: pointer; }
.lightbox-box {
  position: relative; z-index: 1; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem; max-width: 720px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; gap: 1rem;
}
.lightbox-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; width: 32px; height: 32px;
  cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent2); }
.lightbox-title { font-size: 0.9rem; font-weight: 600; color: var(--accent2); }
.lightbox-img { width: 100%; border-radius: 8px; object-fit: contain; max-height: 70vh; }
.cert-clickable { cursor: pointer; }
.cert-view { color: var(--accent2); font-size: 0.72rem; }

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; }
  .hero-photo { height: 360px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--surface); padding: 1rem 2rem; border-bottom: 1px solid var(--border); gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ACESSIBILIDADE — respeitar preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .skill-bar { transition: none; }
}
