:root {
  --bg: #0a0c16;
  --bg2: #0f1220;
  --bg3: #161b2e;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(90, 138, 240, 0.18);
  --accent: #5b8af0;
  --accent2: #93c5fd;
  --accent3: #3d6fcc;
  --text: #e8eaf0;
  --text-muted: #cacdd6;
  --green: #34d399;
  --shadow: rgba(20, 40, 100, 0.35);
  --progress-h: 3px;
}

[data-theme="light"] {
  --bg: #f0f4ff;
  --bg2: #e8eeff;
  --bg3: #dce5ff;
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(60, 110, 220, 0.18);
  --accent: #2563eb;
  --accent2: #1d4ed8;
  --accent3: #1e3a8a;
  --text: #0f1428;
  --text-muted: #4a5578;
  --green: #00442b;
  --shadow: rgba(20, 40, 120, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background .4s, color .4s;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* ── FOCUS ── */
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── SCROLL PROGRESS ── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--progress-h);
  width: 0%;
  background: linear-gradient(90deg, var(--accent3), var(--accent2));
  z-index: 9999;
  transition: width .1s;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: var(--progress-h);
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(10, 12, 22, .92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: background .4s;
}

[data-theme="light"] nav {
  background: rgba(240, 244, 255, .94);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .5px;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--accent2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .8rem;
}

#theme-toggle {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, transform .2s;
  color: var(--text);
}

#theme-toggle:hover {
  transform: scale(1.1);
  background: var(--accent3);
  color: #fff;
}

/* ── SECTIONS ── */
section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2.8rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--card-border), transparent);
}

.section-title span {
  color: var(--accent2);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 110, 240, .14) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 5s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from {
    opacity: .5;
    transform: translate(-50%, -50%) scale(.95);
  }

  to {
    opacity: .9;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

/* ── HERO PHOTO ── */
.hero-photo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-up .8s .2s ease both;
}

.hero-photo-ring {
  position: relative;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #1e3a6e, #5b8af0, #93c5fd, #5b8af0, #1e3a6e);
  box-shadow:
    0 0 40px rgba(10, 20, 60, .7),
    0 0 80px rgba(60, 110, 240, .2);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from {
    box-shadow: 0 0 30px rgba(10, 20, 60, .6), 0 0 60px rgba(60, 110, 240, .15);
  }

  to {
    box-shadow: 0 0 50px rgba(10, 20, 80, .8), 0 0 100px rgba(80, 140, 255, .28);
  }
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  border: 3px solid var(--bg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .9rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 1.4rem;
  animation: fade-up .6s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .2;
  }
}

.hero-name {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .6rem;
  animation: fade-up .7s .1s ease both;
  text-align: left;
}

.hero-name .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.4rem;
  animation: fade-up .7s .18s ease both;
}

.hero-sub {
  max-width: 540px;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  animation: fade-up .7s .26s ease both;
  text-align: left;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fade-up .7s .34s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.6rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1e3a6e, #2d5299);
  color: #fff;
  box-shadow: 0 4px 24px var(--shadow);
  border: 1px solid rgba(90, 138, 240, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--shadow);
  background: linear-gradient(135deg, #2d5299, #3d6fcc);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--card);
  transform: translateY(-2px);
}

/* ── SOBRE ── */
#sobre .sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}

.sobre-text p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

.sobre-highlight {
  font-style: italic;
  color: var(--accent2) !important;
  border-left: 3px solid var(--accent3);
  padding-left: 1rem;
}

.sobre-note {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
}

.sobre-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  backdrop-filter: blur(8px);
  transition: transform .25s, box-shadow .25s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

/* ── COMPETÊNCIAS ── */
#competencias .skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}

.skill-group {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.6rem;
  backdrop-filter: blur(10px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.skill-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px var(--shadow);
  border-color: var(--accent);
}

.skill-group-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

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

.skill-tag {
  background: rgba(60, 110, 240, .08);
  border: 1px solid rgba(90, 138, 240, .18);
  border-radius: 6px;
  padding: .28rem .7rem;
  font-size: .82rem;
  color: var(--text);
  transition: background .2s, border-color .2s;
}

.skill-tag:hover {
  background: rgba(60, 110, 240, .2);
  border-color: var(--accent);
}

/* ── EXPERIÊNCIA ── */
#experiencia .timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), transparent);
}

.exp-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.4rem;
  position: relative;
}

.exp-dot {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent3), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px var(--shadow);
  z-index: 1;
}

.exp-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.8rem;
  flex: 1;
  backdrop-filter: blur(10px);
  transition: transform .25s, box-shadow .25s;
}

.exp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--shadow);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .8rem;
}

.exp-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}

.exp-company {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent2);
  margin-top: .15rem;
}

.exp-period {
  font-size: .78rem;
  background: rgba(60, 110, 240, .1);
  border: 1px solid rgba(90, 138, 240, .22);
  color: var(--accent2);
  padding: .25rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.exp-desc {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.exp-bullets {
  list-style: none;
}

.exp-bullets li {
  font-size: .9rem;
  color: var(--text-muted);
  padding: .3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── DIFERENCIAIS ── */
#diferenciais .diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.diff-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.4rem;
  backdrop-filter: blur(10px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--accent2);
}

.diff-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: .1rem;
}

.diff-text {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── MOMENTO ATUAL ── */
#momento {
  background: linear-gradient(135deg, rgba(30, 58, 120, .2), rgba(20, 40, 90, .12));
  border-radius: 24px;
  margin: 0 2rem;
  padding: 4rem 3rem;
  border: 1px solid var(--card-border);
}

.momento-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.momento-inner h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.momento-inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  text-align: left;
}

.momento-cta {
  margin-top: 2rem;
}

/* ── CONTATO ── */
#contato .contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.4rem 2rem;
  text-align: center;
  min-width: 200px;
  backdrop-filter: blur(10px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
  border-color: var(--accent2);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 36px;
  height: 36px;
}

.contact-icon--linkedin {
  color: #0a66c2;
}

.contact-icon--email {
  color: var(--accent2);
}

.contact-icon--whatsapp {
  color: #25d366;
}

.contact-label {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  font-size: .95rem;
  font-weight: 600;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 0.4rem;
  color: var(--text-muted);
  font-size: .85rem;
  border-top: 1px solid var(--card-border);
}

/* ── ANIMATIONS ── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero-content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-photo-ring {
    width: 390px;
    height: 390px;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  #sobre .sobre-grid {
    grid-template-columns: 1fr;
  }

  .sobre-stats {
    grid-template-columns: 1fr 1fr;
  }

  #momento {
    margin: 0 .5rem;
    padding: 2.4rem 1.4rem;
  }

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

@media (max-width: 460px) {
  .hero-name {
    font-size: 2rem;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-photo-ring {
    width: 250px;
    height: 250px;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}