/* ---------- Reset & tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --fg: #fafafa;
  --fg-muted: #a1a1aa;
  --fg-dim: #71717a;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;
  --accent: #fafafa;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1080px;
  --radius: 6px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* Subtle scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-dim); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: var(--radius);
  z-index: 100;
}
.skip:focus { top: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
}
.nav-brand:hover { opacity: 0.85; }

.nav-logo {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 50%;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 400;
}
.nav-list a:hover { color: var(--fg); }

@media (max-width: 640px) {
  .nav-list { gap: 18px; }
  .nav-list a { font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 24px 80px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--fg-muted);
}

.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.muted { color: var(--fg-dim); }

.hero-lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--fg-muted);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-lede strong {
  color: var(--fg);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-muted);
  background: var(--bg-elev);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: #e4e4e7; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--fg); background: var(--bg-elev); }

/* ---------- Sections ---------- */
.section {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 56px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
}

.section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-lede {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 620px;
  margin-top: -32px;
  margin-bottom: 40px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 64px;
  margin-bottom: 72px;
}

.about-text p {
  color: var(--fg-muted);
  margin-bottom: 18px;
  font-size: 16px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--fg); font-weight: 500; }
.about-text a {
  color: var(--fg);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}
.about-text a:hover { border-color: var(--fg); }

.about-side {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.facts {
  display: grid;
  gap: 24px;
}
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.facts dd { font-size: 15px; color: var(--fg); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-side { padding-left: 0; border-left: none; padding-top: 24px; border-top: 1px solid var(--border); }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* Skills */
.skills-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.skill-col h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--fg);
}

.skill-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-col li {
  color: var(--fg-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.tl-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.tl-item:first-child { border-top: none; padding-top: 0; }

.tl-when {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.tl-year {
  font-size: 24px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
}
.tl-range { color: var(--fg-dim); font-size: 12px; }

.tl-content h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.tl-company {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.tl-content p:not(.tl-company) {
  color: var(--fg-muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.tl-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tl-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--fg-muted);
}

@media (max-width: 768px) {
  .tl-item { grid-template-columns: 1fr; gap: 16px; }
  .tl-year { font-size: 20px; }
}

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project {
  background: var(--bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--transition);
}
.project:hover { background: var(--bg-elev); }

.project header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--fg-dim);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition);
}
.project-link:hover {
  color: var(--fg);
  background: var(--border);
  transform: translate(2px, -2px);
}
/* Botão "Google Play" adicional nos cards de app */
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 4px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  transition: all var(--transition);
}
.store-link:hover {
  border-color: var(--fg);
  color: var(--fg);
  transform: translateY(-1px);
}
.store-link .play-icon { width: 16px; height: 16px; display: block; }

.project p {
  color: var(--fg-muted);
  font-size: 14px;
  flex-grow: 1;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  color: var(--fg-dim);
  background: var(--bg-elev);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.project:hover .tags li { background: var(--bg); }

.status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  margin-top: 4px;
  width: fit-content;
}
.status-live { color: #22c55e; }
.status-beta { color: #eab308; }
.status-soon { color: var(--fg-dim); }

@media (max-width: 768px) {
  .projects { grid-template-columns: 1fr; }
}

/* ---------- Certifications (HackerRank) ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 44px;
}

/* HackerRank hexagon badges (SVG colorido com ícone + estrelas) */
.hexagon {
  width: 88px;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition);
}
.hexagon:hover { transform: translateY(-3px); }
.badge-title {
  fill: #18181b;
  font-family: var(--font-sans);
  font-weight: 700;
  text-anchor: middle;
}
.badge-star .star { fill: #18181b; }

/* Rótulo de grupo de credenciais (emissor) */
.badge-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  margin: 40px 0 16px;
}
.badge-group-label a {
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border-strong);
}
.badge-group-label a:hover { color: var(--fg); }

/* Badges oficiais da Microsoft (imagens PNG do Credly) */
.ms-badge {
  display: inline-block;
  transition: transform var(--transition);
}
.ms-badge img {
  height: 96px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}
.ms-badge:hover { transform: translateY(-3px); }

.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cert {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  transition: border-color var(--transition), transform var(--transition);
}
.cert:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.cert-issuer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}
.cert-arrow {
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.cert:hover .cert-arrow { opacity: 1; transform: translate(2px, -2px); }

.cert-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.35;
}

.cert-verified {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #22c55e;
  margin-top: auto;
}

@media (max-width: 768px) {
  .certs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .certs { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-lede {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.3;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.contact-links li {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.contact-links li:last-child { border-bottom: 1px solid var(--border); }

.contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-links a {
  font-size: 17px;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  position: relative;
}
.contact-links a::after {
  content: "↗";
  font-size: 14px;
  opacity: 0;
  transition: all var(--transition);
}
.contact-links a:hover::after { opacity: 1; transform: translate(2px, -2px); }
.contact-links a:hover { color: var(--fg); }

@media (max-width: 640px) {
  .contact-links li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .contact-links a { font-size: 15px; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
