:root {
  --bg: #08111f;
  --bg-soft: #0f1b31;
  --surface: rgba(10, 19, 36, 0.82);
  --surface-strong: #101c31;
  --surface-light: #f7fafc;
  --text: #e2e8f0;
  --text-soft: #94a3b8;
  --text-dark: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.16);
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 24%),
    linear-gradient(180deg, #07111d 0%, #0b1324 38%, #edf2f7 38%, #edf2f7 100%);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.page-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 29, 0.7);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: #03111f;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 360px);
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.section-kicker,
.hero-card-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #7dd3fc;
}

.hero h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2.7rem, 8vw, 5rem);
  line-height: 0.98;
}

.hero-role {
  margin: 1rem 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #cbd5e1;
}

.hero-summary {
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin: 2rem 0 1.5rem;
}

.quick-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.quick-links a {
  color: #d9f99d;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04111d;
}

.button-secondary {
  border-color: rgba(226, 232, 240, 0.18);
  background: rgba(15, 23, 42, 0.3);
}

.button-full {
  width: 100%;
}

.hero-card,
.panel,
.project-card,
.education-card,
.language-card,
.contact-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 17, 31, 0.85));
}

.profile-photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-card-content {
  padding: 1.4rem;
}

.hero-card-content p {
  margin: 0.3rem 0 1rem;
}

.hero-focus-list {
  margin: 0.3rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.hero-focus-list li {
  color: var(--text);
  line-height: 1.5;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  color: var(--text);
  background: linear-gradient(180deg, rgba(7, 17, 29, 0.98), rgba(11, 19, 36, 0.98));
}

.section-dark .section-kicker {
  color: #22d3ee;
}

.section-dark .section-heading h2 {
  color: var(--text);
}

.section-muted {
  color: var(--text-dark);
}

.section-muted .section-kicker {
  color: #0f766e;
}

.section-muted h2,
.section-muted h3,
.section-muted a,
.section-muted p,
.section-muted li,
.section-muted span {
  color: inherit;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

#competencias .section-heading h2 {
  color: var(--text-dark);
}

#competencias .section-kicker {
  color: #7dd3fc;
}

#formacao .section-heading h2 {
  color: var(--text-dark);
}

#atuacao .section-heading h2 {
  color: var(--text-dark);
}

#blog .section-heading h2,
#blog .contact-card p {
  color: var(--text-dark);
}

#especializacoes .section-heading h2 {
  color: var(--text-dark);
}

#contato .contact-wrap > div:first-child h2,
#contato .contact-wrap > div:first-child p:not(.section-kicker) {
  color: var(--text-dark);
}

.about-grid,
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr);
  gap: 1.5rem;
}

.about-copy {
  color: var(--text-dark);
  font-size: 1.04rem;
}

#sobre .about-copy {
  color: var(--text-soft);
}

.stat-grid,
.education-grid,
.language-grid {
  display: grid;
  gap: 1rem;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.panel {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 190px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.section-dark .timeline::before {
  background: rgba(148, 163, 184, 0.22);
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.5rem;
}

.timeline-meta {
  color: #475569;
  font-size: 0.94rem;
}

.section-dark .timeline-meta {
  color: #94a3b8;
}

.timeline-meta span {
  display: block;
}

.timeline-body {
  position: relative;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
}

.timeline-body::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 1.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.1);
}

.timeline-body h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.timeline-body h3 span {
  color: #0f766e;
}

.timeline-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
}

.timeline-body li {
  color: #334155;
}

.timeline-body li::marker {
  color: #64748b;
}

.skills-layout,
.projects-grid,
.specializations-grid {
  display: grid;
  gap: 1rem;
}

.skills-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.18);
  font-size: 0.92rem;
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.specializations-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card,
.education-card,
.language-card,
.contact-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-dark);
}

.project-card h3,
.education-card h3,
.language-card h3 {
  margin-top: 0;
}

.education-grid,
.language-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.education-card span,
.language-card p {
  color: #475569;
}

.contact-section {
  padding-bottom: 6rem;
}

.contact-wrap {
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
}

.contact-card a:not(.button) {
  color: #0f766e;
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .contact-wrap,
  .skills-layout,
  .projects-grid,
  .specializations-grid,
  .education-grid,
  .language-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 30%),
      linear-gradient(180deg, #07111d 0%, #0b1324 32%, #edf2f7 32%, #edf2f7 100%);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(7, 17, 29, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .about-grid,
  .contact-wrap,
  .stat-grid,
  .skills-layout,
  .projects-grid,
  .specializations-grid,
  .education-grid,
  .language-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .timeline-body::before {
    left: -7px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 4rem 0;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
