/* ========== RESET ========== */
* {
  margin: 0;   /* remove margens */
  padding: 0;   /* remove padding */
  box-sizing: border-box;
}



/* ========== BODY ========== */
body {
  font-family: 'Poppins', sans-serif;   /* fonte de texto */
  background: #000000;
  color: #fff;
  overflow-x: hidden;   /* evita scroll horizontal */
}



/* ========== CABEÇALHO ========== */
header {
  background: #252525;
  display: flex;   /* ativa flexbox */
  justify-content: space-between;   /* nome à esquerda e nav à direita */
  align-items: center;   /* centraliza verticalmente */
  padding: 15px 5%;   /* espaçamento */
  position: sticky;   /* header fica fixo ao rolar a página */
  top: 0;
  z-index: 1000;   /* garante que fique acima de outros elementos */
  border: 1px solid #31e6f0;  
}

header nav {
  display: flex;
  flex-wrap: wrap;   /* permite que quebrem linha em telas pequenas */
  gap: 10px;   /* espaço entre os links */
}

header .nome,
header nav a {
  background: #000000;
  padding: 8px 15px;   /* espaçamento interno */
  border-radius: 10px;   /* cantos arredondados */
  transition: all 0.5s ease;   /* transição suave */
  border: 1px solid #31e6f0;
}

header .nome:hover,
header nav a:hover {
  background: #31e6f0;
  color: #f3008e;
  transform: scale(1.1);   /* aumenta 10% no hover */
  border: 1px solid #f3008e;   /* muda borda */
}

header .nome {
  font-size: 1.2rem;
  font-weight: bold;   /* negrito */
  color: #fff;
}

header nav a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  margin-left: 15px;
  font-size: 1rem;
}



/* ========== SEÇÕES ========== */
section {
  padding: 60px 10%;
  text-align: center;
  background: #0d0d0d;
  transition: all 0.4s ease;
  position: relative;
  border-radius: 2%;
  margin: 10px 0;
  border-top: 15px solid #31e6f0;
  border-bottom: 15px solid #31e6f0;
}

section:hover {
  border: 2px solid #f3008e;
  box-shadow: 0 0 20px #f3008e;
}

h2 {   /* Titulos das seções */
  font-size: 50px;
  margin-bottom: 30px;
  color: #f3008e;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

h2:hover {
  color: #31e6f0;
  text-shadow: 0 0 20px #31e6f0;
  transform: scale(1.1);
}



/* ========== CAIXAS DE ITENS DAS SEÇÕES ========== */
.caixas {
  background: #252525;
  border-radius: 15px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 0 10px #f3008e;
  transition: all 0.5s ease;
}

.caixas:hover {
  box-shadow: 0 0 10px #31e6f0;
  transform: scale(1.05);
}



/* ========== TEXTOS DAS SEÇÕES ========== */
.caixas h3,
.projeto h3 {
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  transition: all 0.4s ease;
  margin: 10px;
}

.caixas h4,
.projeto h4 {
  font-size: 20px;
  margin: 10px 0;
  font-weight: normal;
  color: #fff;
  transition: all 0.4s ease;
  white-space: normal;   /* permite a quebra de linha */
  word-wrap: break-word; /* força quebra se a palavra for muito grande */
  text-align: center;    /* opcional: centraliza o texto */
}

.projeto h5{
    font-size: 25px;
  margin-bottom: 15px;
  transition: all 0.5s ease;
  color: #31e6f0;
}

.caixas h3:hover, 
.caixas h4:hover, 
.projeto h3:hover, 
.projeto h4:hover, 
.projeto h5:hover,
.linguagens:hover {
  border: 2px solid #f3008e;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}




/* ========== IMAGENS ========== */
.imgPERFIL {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 3px solid #f3008e;
  margin-bottom: 20px;
  transition: all 0.5s ease;
}

.imgPROJETO {
  width: 200px;
  height: 200px;
  border-radius: 10%;
  border: 3px solid #f3008e;
  margin-bottom: 20px;
  transition: all 0.5s ease;
}

.imgPERFIL:hover,
.projeto:hover .imgPROJETO{
  box-shadow: 0 0 10px #31e6f0;
  border: 3px solid #31e6f0;
  transform: scale(1.1);
}



/* ========== PROJETOS ========== */
#projetos .projeto-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.projeto {
  background: #252525;
  border-radius: 15px;
  padding: 30px; 
  margin-top: 30px; 
  box-shadow: 0 0 10px #f3008e;
  transition: all 0.4s ease;
  text-align: center;
  margin: 15px auto;
  max-width: 470px;
}

.projeto:hover {
  border: 3px solid #31e6f0;
  box-shadow: 0 0 20px #31e6f0;
}



/* ========== BOTÕES ========== */
.botão{
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.5s ease;
  margin: 5px;
  display: inline-block;
  background: #31e6f0;
  box-shadow: 0 0 10PX #31e6f0;
  color: #000000;
  text-decoration: none;
  flex-direction: row;
}

.botão:hover {
  background: #f3008e;
  color: #fff;
  box-shadow: 0 0 15px #f3008e;
  transform: scale(1.20);
}



/* ========== CONTATOS ========== */
.contato {
  background: rgba(5, 41, 161, 0.5);
  outline: 2px solid #000;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 20px #f3008e;
  transition: all 0.5s ease;
  width: 80%;
}

.contato:hover {
  box-shadow: 0 0 20px #31e6f0;
  transform: scale(1.03);
}

.contato-container {
  display: flex;
  gap: 30px; 
  padding: 40px 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.cards {
  display: flex;
  flex-direction: column; 
  gap: 20px;
  flex: 1; 
  min-width: 250px;
}



/* ========== TETXOS DE CONTATOS ========== */
.contato a, 
.contato p {
  color: #fff;
  text-decoration: none;
  transition: all 0.5s ease;
  display: inline-block; 
  transition: all 0.5s ease;
  margin: 5px 0;          
  padding: 0; 
}

.contato:hover a, 
.contato:hover p {
  transform: scale(1.00);
  color: #f3008e;
  border: 2px solid #f3008e;
  padding: 6px;
  border-radius: 8px;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}

.contato h4 {
  color: #f3008e;
  margin-bottom: 10px;
  text-decoration: none;
  transition: all 0.4s ease;
}

.contato:hover h4 {
  color: #31e6f0;
}



/* ========== FORMULÁRIO DE CONTATO ========== */
.formulario {
  flex: 1; 
  max-width: 500px;
  outline: 2px solid #000;
  background: rgba(5, 41, 161, 0.5);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 20px #f3008e;
  transition: all 0.5s ease;
}

.formulario:hover {
  box-shadow: 0 0 20px #31e6f0;
}

.formulario h3 {
  margin-bottom: 15px;
  transition: all 0.5s ease;
}

.formulario:hover h3 {
  transform: scale(1.05);
  color: #31e6f0;
}

textarea {
  resize: none;
}

input, 
textarea, 
.formulario input,
.formulario textarea {
  outline: 2px solid #000000;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
}

.formulario input:focus,
.formulario textarea:focus {
  outline: 2px solid #000000;
  background: #86cecb;
}



/* ========== RODAPÉ ========== */
footer {
  background: #252525;
  text-align: center;
  padding: 15px;
  font-size: 20px;
  color: #fff;
  border: 1px solid #31e6f0;
}



/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
  header nav a,
  header .nome {
    font-size: 0.9rem;
    margin-left: 10px;
    padding: 5px 10px;
  }

  section {
    padding: 40px 5%;
  }

  .perfil-foto {
    width: 200px;
    height: 200px;
  }

  #projetos .projeto-container {
    grid-template-columns: 1fr;
  }

  .contato-container {
    flex-direction: column;
    align-items: center;
  }

  .contato{
    width: 100%;
  }
}
