* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primaria: #4f46e5;
  --secundaria: #7c3aed;
  --escuro: #0f172a;
  --maisEscuro: #0a0f1c;
  --claro: #e2e8f0;
  --vidro: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--escuro);
  color: var(--claro);
  height: 100dvh;
}

.navegacao {
  position: fixed;
  background: rgba(15, 23, 42, 0.8);
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem;
}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

.menu-link {
  text-decoration: none;
  color: var(--claro);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.menu-link::after {
  content: "";
  height: 2px;
  width: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primaria), var(--secundaria));
  transition: width 0.5s ease;
}

.menu-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000;
}

.bar {
  width: 28px;
  height: 3px;
  background-color: var(--claro);
  transition: 0.2s;
  border-radius: 2px;
}

.cabecalho {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.foto-perfil {
  width: 350px;
  height: 350px;
  margin-top: 100px;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
  border-radius: 50%;
  border: 4px solid var(--vidro);
  animation: flutuar 5s ease-in-out infinite;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(90deg, var(--primaria), var(--secundaria));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  margin: 20px;
}

.cabecalho-sub-titulo {
  font-size: 1.5rem;
  color: var(--claro);
}

.sobre {
  padding: 6rem 2rem;
}

.sobre-titulo {
  font-size: 3rem;
  color: var(--claro);
  text-align: center;
  margin: bottom 20px;
}

.sobre-caixa {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--vidro);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.sobre-paragrafo {
  text-align: left;
  font-size: 1.2rem;
}

.projetos {
  padding: 6rem 2rem;
}

.projetos-caixa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;

  a {
    text-decoration: none;
    color: white;
  }
}

.projetos-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--vidro);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.projetos-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.projetos-card:hover {
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
  transform: translateY(-10px) scale(1.03);
}

.projetos-imagem {
  height: 70%;
  width: 100%;
  object-fit: cover;
}

.caixa-textos-projeto {
  padding: 1.5rem;
}

.paragrafo-projetos {
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.25rem;
}

.info-projetos {
  margin-bottom: 5px;
  text-shadow: 0 0 4px var(--secundaria);
}

.redes-caixa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;

  a {
    text-decoration: none;
    color: white;
  }
}

.redes-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--vidro);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 2rem; /* ⬅️ antes devia ser menor, aumenta o espaço interno */
  h2 {
    font-size: 30px;
    text-shadow: 0 0 8px gray;
  }
}

.redes-card:hover {
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
  transform: translateY(-10px) scale(1.03);
}

.redes-imagem {
  height: 70%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.info-link {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primaria);
  text-decoration: none;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.info-link:hover {
  color: var(--secundaria);
  transform: scale(1.05);
  text-shadow: 0 0 8px var(--secundaria);
}

.contatos {
  padding: 6rem 2rem;
}

.contatos-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.formulario-contato {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border: 1px solid var(--vidro);
  border-radius: 16px;
}

.campo-form {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--claro);
  border: 1px solid var(--vidro);
  outline: none;
}

.campo-form:focus {
  border-color: var(--secundaria);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.grupo-form {
  margin-bottom: 1.5rem;
}

.botao-form {
  color: var(--claro);
  background: linear-gradient(45deg, var(--primaria), var(--secundaria));
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: all 0.2s ease;
}

.botao-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.cv-body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
  padding-top: 150px;
}

.curriculo {
  width: 420px;
  padding: 30px 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid var(--vidro);
}

.curriculo h2 {
  text-align: center;
  text-shadow: 0 0 3px var(--claro);
}

.curriculo button {
  width: 100%;
  height: 40px;
  outline: none;
  border: 1px solid var(--claro);
  color: white;
  font-weight: 500;
  background-color: transparent;
  border-radius: 10px;
  margin: 20px 0 10px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.curriculo button:hover {
  background-color: white;
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 2px 2px rgba(255, 255, 255, 0.4);
}

.curriculo button:active {
  transform: translateY(3px);
}

.particulas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
  background: radial-gradient(
      circle at 10% 20%,
      var(--primaria) 0%,
      transparent 20%
    ),
    radial-gradient(circle at 90% 80%, var(--secundaria) 0%, transparent 20%),
    var(--maisEscuro);
  animation: flutuar 5s ease-in-out infinite;
}

@keyframes flutuar {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ==========================
   Responsividade Mobile
========================== */
@media (max-width: 1024px) {
  .menu {
    gap: 1.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  .cabecalho-sub-titulo {
    font-size: 1.3rem;
  }

  .cv-body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    padding-top: 150px;
  }

  .curriculo {
    width: 420px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--vidro);
  }

  .curriculo h2 {
    text-align: center;
    text-shadow: 0 0 3px var(--claro);
  }

  .curriculo button {
    width: 100%;
    height: 40px;
    outline: none;
    border: 1px solid var(--claro);
    color: white;
    font-weight: 500;
    background-color: transparent;
    border-radius: 10px;
    margin: 20px 0 10px 0;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .curriculo button:hover {
    background-color: white;
    color: black;
    transform: translateY(0);
    box-shadow: 0 2px 2px rgba(255, 255, 255, 0.4);
  }

  .curriculo button:active {
    transform: translateY(3px);
  }

  .foto-perfil {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .navegacao {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 2rem;
    height: 70px;
    position: fixed;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: 0.4s ease-in-out;
    border-left: 1px solid var(--vidro);
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 200;
  }

  .menu.active {
    right: 0;
  }

  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .cabecalho {
    padding-top: 8rem;
  }

  h1 {
    font-size: 2.5rem;
    margin: 15px 0;
  }

  .cabecalho-sub-titulo {
    font-size: 1.1rem;
    text-align: center;
  }

  .foto-perfil {
    margin-top: -150px;
    width: 250px;
    height: 250px;
  }

  /* Sobre */
  .sobre-titulo {
    font-size: 2rem;
  }

  .sobre-paragrafo {
    font-size: 1rem;
  }

  .sobre-caixa {
    padding: 1.5rem;
    backdrop-filter: blur(8px);
  }

  /* Projetos */
  .projetos-titulo {
    font-size: 2rem;
  }

  .projetos-caixa {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .projetos-card {
    padding: 1rem;
    backdrop-filter: blur(8px);
  }

  .caixa-textos-projeto {
    padding: 1rem;
  }

  .info-projetos {
    font-size: 1.2rem;
  }

  .paragrafo-projetos {
    font-size: 0.95rem;
    line-height: 1.2rem;
  }

  /* Redes */
  .redes-card {
    padding: 1.5rem;
  }

  .curriculo button {
  width: 100%;
  height: 40px;
  outline: none;
  border: 1px solid var(--claro);
  color: white;
  font-weight: 500;
  background-color: transparent;
  border-radius: 10px;
  margin: 20px 0 10px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.curriculo button:hover {
  background-color: white;
  color: black;
  transform: translateY(0);
  box-shadow: 0 2px 2px rgba(255, 255, 255, 0.4);
}

.curriculo button:active {
  transform: translateY(3px);
}

  .info-link {
    font-size: 1.5rem;
  }

  /* Contato */
  .contatos-titulo {
    font-size: 2rem;
  }

  .formulario-contato {
    padding: 1.5rem;
  }

  .campo-form {
    padding: 0.8rem;
  }

  .botao-form {
    padding: 0.8rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .navegacao {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 2rem;
    height: 70px;
    position: fixed;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: 0.4s ease-in-out;
    border-left: 1px solid var(--vidro);
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 200;
  }

  .menu.active {
    right: 0;
  }

  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .cabecalho {
    padding-top: 8rem;
  }

  h1 {
    font-size: 2rem;
  }

  .cabecalho-sub-titulo {
    font-size: 1rem;
  }

  .foto-perfil {
    margin-top: -180px;
    width: 200px;
    height: 200px;
  }

  .sobre-titulo,
  .projetos-titulo,
  .contatos-titulo {
    font-size: 1.5rem;
  }

  .sobre-paragrafo,
  .paragrafo-projetos {
    font-size: 0.9rem;
  }

  .info-projetos {
    font-size: 1rem;
  }

  .botao-form {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .projetos-caixa,
  .redes-caixa {
    padding: 0 0.5rem;
  }
}
