:root {
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --text-light: #f8f9fa;
  --text-dark: #212529;
  --text-muted-dark: #52525b;
  --text-muted-light: #d4d4d8;
  --border-dark: #212529;
  --border-light: #f8f9fa;
  --accent: #4A90D9;
  --accent-glow: rgba(74, 144, 217, 0.35);
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a78bfa, #f472b6);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  font-family: "Sora", sans-serif;
  color: var(--text-dark);
}

a {
  text-decoration: none;
}

ul li {
  list-style: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-light);
}

:target {
  scroll-margin-top: 0.8em;
}

:focus-visible {
  outline: 3px solid #4A90D9;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 6rem;
}

/* === ANIMATION SYSTEM === */
.animate {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.65s ease-out, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Flip-3D for project cards */
.animate-flip {
  opacity: 0;
  transform: perspective(800px) rotateX(20deg) translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-flip.active {
  opacity: 1;
  transform: perspective(800px) rotateX(0deg) translateY(0);
}

/* Stagger delays */
.animate-delay-1 { transition-delay: 0.05s; }
.animate-delay-2 { transition-delay: 0.12s; }
.animate-delay-3 { transition-delay: 0.19s; }
.animate-delay-4 { transition-delay: 0.26s; }
.animate-delay-5 { transition-delay: 0.33s; }
.animate-delay-6 { transition-delay: 0.40s; }

.cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
}

.cabecalho .cabecalho__logo {
  height: 3.5rem;
}

.cabecalho .cabecalho__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-shrink: 0;
}

.cabecalho__nav .cabecalho__link {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5rem;
  letter-spacing: -0.025rem;
  text-transform: capitalize;
  transition: all 0.3s ease-in-out;
}

.cabecalho__nav .cabecalho__link:hover {
  scale: 1.1;
}

.cabecalho .cabecalho__botao-container {
  background: var(--bg-dark);
  border: 2px solid var(--border-light);
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  padding: 1rem 1.25rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.cabecalho .cabecalho__botao-container:hover {
  background: var(--bg-light);
  border-color: var(--border-dark);
}

.cabecalho__botao-container .cabecalho__botao {
  background: none;
  color: var(--text-light);
  transition: color 0.3s ease-in-out;
  cursor: pointer;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5rem;
  letter-spacing: 0.025rem;
}

.cabecalho .cabecalho__botao-container:hover .cabecalho__botao {
  color: var(--text-dark);
}

.cabecalho .cabecalho__botao-container:hover svg path {
  stroke: var(--text-dark);
}

.cabecalho .cabecalho__menu-mobile {
  display: none;
}

.cabecalho__menu-mobile .cabecalho__menu-mobile--nav {
  display: none;
}

.banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 2rem;
  min-height: 75vh;
  position: relative;
  background-image: url("./../img/boy3.svg");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 45%;
}

.banner .banner__imagem {
  display: none;
}

/* === FLOATING PARTICLES === */
.banner::before,
.banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(74, 144, 217, 0.12);
  animation: floatParticle 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.banner::before {
  width: 320px;
  height: 320px;
  bottom: -80px;
  right: 20%;
  animation-duration: 9s;
}

.banner::after {
  width: 180px;
  height: 180px;
  top: 20px;
  right: 35%;
  background: rgba(167, 139, 250, 0.10);
  animation-duration: 12s;
  animation-delay: -4s;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.banner .banner__textos {
  position: relative;
  z-index: 1;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: flex-end;
}

.banner .banner__titulo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.banner__titulo-row {
  display: flex;
}

.banner__titulo .banner__titulo-fw400 {
  color: var(--text-dark);
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
}

.banner__titulo .banner__titulo-fw800 {
  color: var(--text-dark);
  font-size: 3rem;
  font-style: normal;
  font-weight: 800;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
}

body .principal .outlined {
  color: var(--text-light);
  text-shadow:
    1.41px 1.41px var(--text-dark),
    2px 0 var(--text-dark),
    1.41px -1.41px var(--text-dark),
    0 -2px var(--text-dark),
    -1.41px -1.41px var(--text-dark),
    -2px 0 var(--text-dark),
    1.41px 1.41px var(--text-dark),
    0 2px var(--text-dark);
}

.banner__textos .banner__descricao {
  align-self: stretch;
  color: var(--text-muted-dark);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.02rem;
  width: 32vw;
}

.banner__textos .banner__redes {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  width: min(100%, 34rem);
  position: relative;
  left: 0;
  bottom: 0;
  margin-top: 1rem;
}

.banner__redes .banner__redes-link {
  border-radius: 0.25rem;
  border: 2px solid var(--border-dark);
  background: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  padding: 1rem;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.banner__redes .banner__redes-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.banner__redes .banner__redes-link:hover {
  background: var(--bg-dark);
  border-color: var(--border-light);
  color: var(--text-light);
  scale: 1.1;
}

.banner__redes .banner__redes-link svg,
.banner__redes .banner__redes-link svg * {
  color: inherit;
  transition:
    color 0.3s ease-in-out,
    fill 0.3s ease-in-out,
    stroke 0.3s ease-in-out;
}

.skills {
  padding: 7.5rem 2rem 3.75rem 2rem;
  text-align: center;
}

.skills .skills__titulo {
  padding: 1.25rem 0 2.5rem 0;
}

.skills .skills__cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 1.25rem 0;
  gap: 2rem;
}

.skills__cards .skills__card {
  border-radius: 0.25rem;
  border: 2px solid var(--border-dark);
  background: var(--bg-light);
  color: var(--text-dark);
  cursor: crosshair;

  display: flex;
  width: 186px;
  height: 186px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: all 0.3s ease-in-out;
}

.skills__cards .skills__card:hover {
  background: var(--bg-dark);
  border-color: var(--border-light);
  color: var(--text-light);
  scale: 1.1;
}

.skills__cards .skills__card:hover .skills__cardTitulo {
  color: var(--text-light);
}

.skills__card .skills__icon,
.skills__card .skills__icon * {
  color: inherit;
  transition:
    color 0.3s ease-in-out,
    fill 0.3s ease-in-out,
    stroke 0.3s ease-in-out;
}

.skills__card .skills__cardTitulo {
  align-self: stretch;
  color: var(--text-dark);
  transition: color 0.3s ease-in-out;
  text-align: center;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5rem;
  letter-spacing: -0.025rem;
  text-transform: capitalize;
}

.skills .skills__titulo {
  color: var(--text-dark);
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
}

.skills__titulo .skills__titulo-fw800 {
  color: var(--text-dark);
  font-size: 3rem;
  font-style: normal;
  font-weight: 800;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
}

.formacoes {
  background: var(--bg-dark);
  margin: 0 auto;
  padding: 3.75rem 2rem;
  text-align: center;
}

.formacoes .formacoes__titulo {
  color: var(--text-light);
  padding: 1.25rem 0;
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
}

.formacoes__titulo .formacoes__titulo-fw800 {
  color: var(--text-light);
  font-size: 3rem;
  font-style: normal;
  font-weight: 800;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
}

.formacoes .formacoes__container {
  display: flex;
  padding: 2.5rem 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  align-self: stretch;
  max-width: 1440px;
  margin: 0 auto;
}

.formacoes .formacao {
  cursor: default;
  display: flex;
  padding: 1.875rem 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  align-self: stretch;
  background: var(--bg-dark);

  border-radius: 10px;
  border: 1px solid var(--text-muted-dark);

  transition: all 0.4s ease-in-out;
}

.formacoes .formacao:hover {
  background: var(--bg-light);
  border-color: var(--border-dark);
  scale: 1.02;
}

.formacoes .formacao:hover .formacao__titulo,
.formacoes .formacao:hover .formacao__periodo,
.formacoes .formacao:hover .formacao__body p {
  color: var(--text-dark);
}

.formacao .formacao__header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
}

.formacao__header .formacao__logo-puc {
  background-image: url("./../img/pucminas-logo.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  width: 2rem;
  height: 2rem;
}

.formacao__header .formacao__logo-uni {
  background-image: url("./../img/unifatecie-logo.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  width: 2rem;
  height: 2rem;
}

.formacao__header .formacao__logo-alu {
  background-image: url("./../img/alura-logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  width: 2rem;
  height: 2rem;
}

.formacao__header .formacao__logo-sei {
  background-image: url("./../img/senai-logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  width: 2rem;
  height: 2rem;
}

.formacao__header .formacao__titulo {
  color: var(--text-light);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.75rem;
  letter-spacing: -0.03rem;
}

.formacao__header .formacao__periodo {
  align-self: flex-end;
  color: var(--text-muted-light);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25rem;
  letter-spacing: -0.02rem;
}

.formacao .formacao__body p {
  color: var(--text-muted-light);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.02rem;
  text-align: start;
}

#sobreMim {
  padding: 3.75rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.sobreMim .sobreMim__imagem img {
  width: 31.483vw;
}

.sobreMim .sobreMim-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.25rem;
}

.sobreMim .sobreMim__titulo {
  color: var(--text-dark);
  padding: 1.25rem 0 0 0;
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
}

.sobreMim__titulo .sobreMim__titulo-fw800 {
  color: var(--text-dark);
  font-size: 3rem;
  font-style: normal;
  font-weight: 800;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
}

.sobreMim-container p {
  color: var(--text-muted-dark);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.32px;
}

#projetos {
  background: var(--bg-dark);
  color: var(--text-light);
  margin: 0 auto;
  padding: 3.75rem 0;
}

/* Intro row: title + filter tabs */
.projetos__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.projetos__intro-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.projetos__subtitulo {
  color: var(--text-muted-light);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 520px;
}

/* Category filter tabs */
.projetos__filtros {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.projetos__filtro {
  background: transparent;
  border: 1.5px solid rgba(248, 249, 250, 0.25);
  color: var(--text-muted-light);
  border-radius: 2rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Sora', sans-serif;
}

.projetos__filtro:hover {
  border-color: rgba(248, 249, 250, 0.6);
  color: var(--text-light);
}

.projetos__filtro.active {
  background: var(--text-light);
  color: var(--text-dark);
  border-color: var(--text-light);
}

.projetos .projetos__titulo {
  color: var(--text-light);
  padding: 1.25rem 0 0.25rem 0;
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
  text-align: left;
}

.projetos__titulo .projetos__titulo-fw800 {
  color: var(--text-light);
  font-size: 3rem;
  font-style: normal;
  font-weight: 800;
  line-height: 3.5rem;
  letter-spacing: -0.06rem;
}

.projetos .projetos__container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 0 1.25rem 0;
  max-width: 1440px;
  margin: 0 auto;
}

/* Featured project: full-width first card */
.projetos__container .projeto.projeto--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  min-height: 300px;
}

.projetos__container .projeto--featured .projeto__imagemContainer {
  width: 48% !important;
  min-width: 0;
  height: 300px !important;
  flex-shrink: 0;
}

.projetos__container .projeto--featured .projeto__textoContainer {
  flex: 1;
  min-width: 0;
  width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0.5rem;
}

.projeto--featured .projeto__titulo {
  font-size: 1.5rem !important;
  line-height: 2rem !important;
}

.projeto--featured .projeto__descricao {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category label badge */
.projeto__category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.projeto__category-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.projetos__container .projeto {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid #3a3f45;
  border-radius: 1rem;
  background: #2a2f34;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.projetos__container .projeto:hover {
  border-color: rgba(74, 144, 217, 0.4);
  box-shadow: 0 0 0 1px rgba(74, 144, 217, 0.15), 0 8px 32px rgba(74, 144, 217, 0.12);
  transform: translateY(-3px);
}

.projeto .projeto__imagemContainer {
  border-radius: 18.761px;
  background: #2a2f34;
  box-shadow:
    0px 12px 42px -4px rgba(24, 39, 75, 0.12),
    0px 8px 18px -6px rgba(24, 39, 75, 0.12);

  width: 100%;
  height: 260px;
  flex-shrink: 0;
  cursor: pointer;

  transition: transform 0.4s ease-in-out;
}

.projeto__imagem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 18.761px;
  display: block;
}

.projeto .projeto__imagemContainer.projeto-studioGhibli .projeto__imagem {
  filter: brightness(0.65);
}

.projeto .projeto__imagemContainer.projeto-git {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2f34;
}

.projeto .projeto__imagemContainer.projeto-git .projeto__imagem {
  width: 40%;
  height: 40%;
  object-fit: contain;
}

.projeto .projeto__imagemContainer:hover {
  animation: pulse 1.5s ease-in-out 1;
}

@keyframes pulse {
  0% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }

  50% {
    transform: scale(1.03) translateY(-0.5rem);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.projeto .projeto__textoContainer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.projeto__textoContainer .projeto__numero {
  font-size: 3rem;
  font-style: normal;
  font-weight: 800;
  line-height: 3.5rem;
  letter-spacing: -0.96px;
  color: var(--text-muted-light);
}

.projeto__textoContainer .projeto__titulo {
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.9rem;
  letter-spacing: -0.64px;
  color: var(--text-muted-light);
}

.projeto__textoContainer .projeto__descricao {
  color: var(--text-muted-light);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.32px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projeto .projeto__linksContainer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.projeto__linksContainer .projeto__link {
  color: var(--text-light);
  transition: all 0.3s ease-in-out;
}

.projeto__linksContainer .projeto__link:hover {
  scale: 1.05;
  color: var(--text-muted-light);
}

.projeto__linksContainer .projeto__link:hover svg path {
  stroke: var(--text-muted-light);
}

.projeto__linksContainer .projeto__link svg path {
  stroke: var(--text-light);
}

.projetos .projetos__toggle {
  display: block;
  margin: 0 auto;
  border-radius: 0.25rem;
  border: 2px solid var(--border-light);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

.projetos .projetos__toggle:hover {
  background: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--border-dark);
}

#contato {
  display: flex;
  padding: 3.75rem 2rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
}

.contato .form__container {
  padding: 1.25rem 0;
}

.form__container form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  align-self: stretch;
}

.form__container form input {
  border-radius: 4px;
  border: 1.4px solid var(--border-dark);

  display: flex;
  width: 500px;
  height: 56px;
  padding: 1rem 1.5rem;
  align-items: center;

  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25rem;
  letter-spacing: -0.32px;
}

.form__container form textarea {
  border-radius: 4px;
  border: 1.4px solid var(--border-dark);
  resize: none;

  display: flex;
  width: 500px;
  height: 140px;
  padding: 1rem 1.5rem;
  align-items: flex-start;

  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25rem;
  letter-spacing: -0.32px;
}

.form__campos-obrigatorios {
  font-size: 0.875rem;
  color: var(--text-muted-dark);
}

.form__container .form__submitButton {
  border-radius: 4px;
  border: 2px solid var(--border-light);
  background: var(--bg-dark);
  cursor: pointer;

  color: var(--text-light);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5rem;
  letter-spacing: 0.4px;

  display: flex;
  padding: 1rem 1.25rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.form__container form .form__submitButton-container {
  display: flex;
  gap: 1.5rem;
}

.form__container form .form__submitButton__redes {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.form__container .form__submitButton:hover {
  background: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--border-dark);
}

.form__container .form__submitButton:hover svg path {
  fill: var(--text-dark);
}

.form__container .form__submitButton:disabled {
  opacity: 0.5;
}

.success,
.error {
  color: greenyellow;
  width: 500px;
  text-align: center;
}

.success {
  color: greenyellow;
}

.error {
  color: tomato;
}

.contato .contato__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1 0 0;
  align-self: stretch;
}

.contato__info-titulos .contato__info__titulo {
  font-size: 2.75rem;
  font-style: normal;
  font-weight: 800;
  line-height: 3.5rem;
  letter-spacing: -0.96px;
}

.contato__info-descricao p {
  color: var(--text-muted-dark);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.32px;
  margin-bottom: 1.25rem;
}

.contato__info .contato__info-meios {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

.contato__info-meios h3 {
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: 2rem;
  letter-spacing: -0.56px;
}

.cta-section {
  background-color: var(--bg-dark);
  padding: 60px 20px;
  text-align: center;
  max-width: 100%;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: 700;
}

.cta-section p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 750px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
  color: var(--text-muted-light);
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--border-light);
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover,
.cta-button:focus {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--border-dark);
}

.cta-button svg path {
  fill: var(--text-light);
  transition: fill 0.2s ease;
}

.cta-button:hover svg path,
.cta-button:focus svg path {
  fill: var(--text-dark);
}

#rodape {
  background: var(--bg-dark);
  color: var(--text-light);
}

.rodape-container {
  display: flex;
  padding: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.rodape .rodape__logo {
  filter: invert();
  height: 3.5rem;
}

.rodape__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rodape .rodape__linkFigma,
.rodape h4 {
  color: var(--text-light);
  text-align: right;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25rem;
  letter-spacing: -0.32px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.rodape .rodape__linkFigma:hover {
  scale: 1.05;
}

.sr-only {
  position: absolute;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.honeypot {
  display: none !important;
}

.error-message {
  color: #ff5555;
  font-size: 0.875rem;
  display: block;
  margin-left: 4px;
}

.input-error {
  border-color: #ff5555 !important;
  box-shadow: 0 0 0 2px rgba(255, 85, 85, 0.2);
}

@keyframes show {
  0% {
    margin-right: -80vw;
  }

  100% {
    margin-right: 0;
    background-color: var(--bg-dark);
  }
}

@keyframes desaparecer {
  0% {
    margin-right: 0;
    background-color: var(--bg-dark);
  }

  100% {
    margin-right: -90vw;
    background-color: var(--bg-light);
  }
}

/* === RIPPLE EFFECT === */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* === HERO TITLE GRADIENT ANIMATION === */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-title {
  background: linear-gradient(270deg, #1a1a2e, #4A90D9, #7c3aed, #1a1a2e);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
  text-shadow: none;
}

/* --- ESTILOS DO MODAL E PROJETOS --- */

.projeto__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}

.projeto__tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted-light);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.projetos .projeto__link,
.projeto-modal__links .projeto__link {
  color: var(--text-muted-light);
}

.projetos .figma-link {
  color: #ff7262;
}

.projetos .figma-link svg path {
  stroke: #ff7262;
}

.projetos .figma-link:hover {
  color: #f24e1e;
}

.projetos .figma-link:hover svg path {
  stroke: #f24e1e;
}

.projeto__imagemOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 18.761px;
}

.projeto__imagemContainer {
  position: relative;
  overflow: hidden;
}

.projeto__imagemContainer:hover .projeto__imagemOverlay {
  opacity: 1;
}

.projeto__botao-modal {
  background: var(--bg-light);
  color: var(--text-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.projeto__botao-modal:hover {
  transform: scale(1.05);
  background: #e0e0e0;
}

/* Modal */
.projeto-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.projeto-modal[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.projeto-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.projeto-modal__content {
  position: relative;
  background: var(--bg-dark);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 12px;
  border: 1px solid var(--text-muted-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.projeto-modal[aria-hidden="true"] .projeto-modal__content {
  transform: translateY(20px);
}

.projeto-modal__fechar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  color: var(--text-light);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.projeto-modal__fechar:hover {
  background: rgba(255, 255, 255, 0.1);
}

.projeto-modal__header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.projeto-modal__titulo {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  padding-right: 2rem;
}

.projeto-modal__body {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.projeto-modal__galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.projeto-modal__imagem {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.projeto-modal__imagem-placeholder {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.projeto-modal__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.projeto-modal__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.projeto-modal__descricao {
  color: var(--text-muted-light);
  line-height: 1.6;
  font-size: 1.05rem;
}

.projeto-modal__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

@media screen and (max-width: 640px) {
  .projeto-modal__body {
    padding: 1rem;
  }

  .projeto-modal__header {
    padding: 1rem;
  }

  .projeto-modal__imagem-placeholder {
    height: 200px;
  }
}

@media screen and (max-width: 1280px) {
  .skills .skills__cards {
    gap: 1rem;
  }

  .skills__cards .skills__card {
    width: 166px;
    height: 176px;
    gap: 2rem;
  }

  .projeto .projeto__imagemContainer {
    width: 45vw;
    height: 35vw;
  }
}

@media screen and (max-width: 1024px) {
  .banner {
    padding: 3.75rem 2rem;
    background-size: contain;
    background-image: none;
  }

  .banner .banner__imagem {
    display: inline-block;
    width: 65vw;
    position: absolute;
    margin-top: 12rem;
    right: 5vw;
  }

  .skills .skills__cards {
    gap: 3rem;
  }

  .projeto .projeto__imagemContainer {
    width: 35vw;
    height: 30vw;
  }

  #contato {
    flex-direction: column;
    gap: 4rem;
  }

  #rodape {
    padding: 1.5rem 5rem;
  }
}

@media screen and (max-width: 768px) {
  .banner .banner__imagem {
    display: none;
  }

  .cabecalho {
    flex-direction: column;
    gap: 1.25rem;
  }

  .banner {
    background-image: none;
  }

  .banner__textos .banner__descricao {
    width: auto;
  }

  .skills__cards .skills__card {
    width: 28%;
    height: 186px;
  }

  #projetos {
    padding: 3rem 0;
  }

  .projetos .projetos__container {
    gap: 1rem;
    padding: 0;
  }

  .projetos .projetos__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projetos__container .projeto.projeto--featured {
    flex-direction: column;
  }

  .projeto--featured .projeto__imagemContainer {
    width: 100%;
    height: 220px;
  }

  .projeto .projeto__imagemContainer {
    width: 100%;
    height: 220px;
  }

  #contato {
    padding: 3rem 1.5rem;
    flex-direction: column;
    gap: 4rem;
  }
}

@media screen and (max-width: 640px) {
  .cabecalho {
    padding: 1rem;
    flex-direction: row;
  }

  .cabecalho .cabecalho__nav,
  .cabecalho .cabecalho__botao-container {
    display: none;
  }

  .cabecalho .cabecalho__menu-mobile {
    display: inline-block;
  }

  .cabecalho .cabecalho__menu-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .cabecalho .cabecalho__menu-toggle svg {
    width: 36px;
    height: 36px;
    display: block;
  }

  .cabecalho__menu-mobile--nav {
    display: none;
  }

  .cabecalho__menu-mobile--nav.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: show 0.6s normal ease-in-out;
    background: var(--bg-dark);
    position: fixed;
    box-shadow: -20px 0px 40px 120px #00000073;
    top: 0;
    right: 0;
    z-index: 5;
    gap: 8rem;
    width: 100vw;
    height: 100vh;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .cabecalho__menu-mobile--nav .cabecalho__navMobile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
  }

  .cabecalho__menu-mobile .cabecalho__menu-mobile--fechar {
    background: var(--bg-light);
    border: 2px solid var(--bg-dark);
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
  }

  .cabecalho__navMobile .cabecalho__navMobilelink {
    color: var(--text-light);
    font-family: Sora;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5rem;
    letter-spacing: -0.4px;
    text-transform: capitalize;
  }

  .banner {
    background-image: none;
    flex-direction: column;
    padding: 1rem;
  }

  .banner .banner__imagem {
    display: inline-block;
    align-self: center;
    width: 90%;
    margin-bottom: 3rem;
    position: static;
    margin-top: 0;
  }

  .banner__titulo .banner__titulo-fw400 {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.035rem;
  }

  .banner__titulo .banner__titulo-fw800 {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.035rem;
  }

  .banner__textos .banner__descricao {
    width: 100%;
  }

  .banner__textos .banner__redes {
    position: static;
  }

  .skills {
    padding: 2.5rem 1rem;
  }

  .skills .skills__titulo {
    padding: 1.25rem 0;
  }

  .skills .skills__titulo {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.56px;
  }

  .skills__titulo .skills__titulo-fw800 {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.56px;
  }

  .skills__cards .skills__card {
    width: 186px;
    height: 186px;
  }

  .skills .skills__cards {
    padding: 1.25rem 0 0 0;
    gap: 1.25rem;
  }

  .formacoes {
    padding: 2.5rem 1rem;
  }

  .formacoes .formacoes__titulo {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.56px;
  }

  .formacoes__titulo .formacoes__titulo-fw800 {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.56px;
  }

  .formacao .formacao__header {
    flex-direction: column;
  }

  .formacao__header .formacao__titulo {
    font-size: 1.25rem;
    line-height: 1.5rem;
    letter-spacing: -0.4px;
  }

  .formacao__header .formacao__periodo {
    margin: 1rem 0;
    align-self: flex-start;
  }

  #sobreMim {
    flex-direction: column;
    gap: 1.25rem;
  }

  .sobreMim .sobreMim__imagem img {
    width: 100%;
  }

  .sobreMim .sobreMim__titulo {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.56px;
  }

  .sobreMim__titulo .sobreMim__titulo-fw800 {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.56px;
  }

  #projetos {
    padding: 2.5rem 1rem;
  }

  .projetos__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .projetos__filtros {
    width: 100%;
  }

  .projetos .projetos__titulo {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.56px;
  }

  .projetos__titulo .projetos__titulo-fw800 {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.56px;
  }

  .projetos .projetos__container {
    padding: 1.25rem 0;
    gap: 1.75rem;
    grid-template-columns: 1fr;
  }

  .projetos__container .projeto.projeto--featured {
    flex-direction: column;
  }

  .projeto--featured .projeto__imagemContainer {
    width: 100%;
    height: 240px;
  }

  .projetos__container .projeto {
    padding: 0.9rem;
    gap: 1rem;
  }

  .projeto__textoContainer .projeto__numero {
    font-size: 1.5rem;
    line-height: 1.75rem;
    letter-spacing: -0.48px;
  }

  .projeto__textoContainer .projeto__titulo {
    font-size: 1.25rem;
    line-height: 1.5rem;
    letter-spacing: -0.4px;
  }

  .projeto .projeto__imagemContainer {
    width: 100%;
    height: 240px;
  }

  #contato {
    flex-direction: column;
    gap: 1.25rem;
    padding: 2.5rem 1rem;
  }

  .form__submitButton-container .form__submitButton {
    font-size: 1rem;
  }

  .contato .contato__info {
    gap: 2rem;
  }

  .contato__info-titulos .contato__info__titulo {
    font-size: 1.75rem;
    line-height: 2rem;
    letter-spacing: -0.56px;
  }

  .contato__info .contato__info-meios h3 {
    font-size: 1.25rem;
    line-height: 1.5rem;
    letter-spacing: -0.4px;
  }

  #rodape {
    padding: 1.25rem 1rem;
  }
}

@media screen and (max-width: 576px) {
  .skills__cards .skills__card {
    width: 156px;
    height: 156px;
    gap: 1rem;
  }

  .form__container form input,
  .form__container form textarea {
    width: 80vw;
  }

  .form__container form .form__submitButton-container {
    gap: 0.5rem;
  }

  .form__container form .form__submitButton__redes {
    gap: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .banner__textos .banner__redes {
    gap: 0.75rem;
    width: 100%;
  }

  .projeto .projeto__imagemContainer {
    width: 100%;
    height: 210px;
  }

  .form__container form .form__submitButton-container {
    flex-direction: column;
    margin: 0 auto;
  }
}

@media screen and (max-width: 375px) {
  .banner__textos .banner__redes {
    gap: 0.6rem;
    width: 100%;
  }

  .projeto .projeto__imagemContainer {
    height: 180px;
  }

  .skills__cards .skills__card {
    width: 142px;
    height: 142px;
  }
}

@media screen and (max-width: 290px) {
  .banner .banner__imagem {
    width: 80%;
    margin-bottom: 1rem;
  }

  .banner .banner__titulo {
    gap: 0.5rem;
  }

  .banner__titulo div {
    flex-direction: column;
    text-align: center;
  }

  .banner__textos .banner__redes {
    gap: 1rem;
    width: 50%;
    flex-wrap: wrap;
    margin: 0 auto;
  }

  .skills__cards .skills__card {
    width: 112px;
    height: 112px;
  }

  .formacao__header div {
    flex-direction: column;
  }

  .projeto .projeto__imagemContainer {
    height: 150px;
  }
}