/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h4, h5 {
  text-align: center;
  margin: 20px 0;
}

h1 {
  font-size: 3rem;
  animation: fadeInDown 1s ease;
}

h2 {
  font-size: 2rem;
  color: #00f2fe;
}

h4, h5 {
  font-weight: 300;
  color: #ccc;
}

/* Cabeçalho */
.cabecalho-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.img-perfil {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid #00f2fe;
  box-shadow: 0 0 20px #00f2fe80;
  margin: 20px 0;
  transition: transform 0.3s ease;
}
.img-perfil:hover {
  transform: scale(1.05);
}

/* Typewriter */
.floating {
  font-size: 1.4rem;
  color: #00f2fe;
  border-right: 2px solid #00f2fe;
  white-space: nowrap;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
  animation: blink 1s step-end infinite;
}

/* Tecnologias */
.tecnologias {
  text-align: center;
  margin: 40px 0;
}
.icones {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.icone-item {
  text-align: center;
  animation: fadeInUp 1s ease;
}
.icone-item i {
  font-size: 3rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}
.icone-item:hover i {
  transform: scale(1.2);
}
.html {
  color: #e34c26;
}
.css {
  color: #264de4;
}
.js {
  color: #f0db4f;
}

/* Certificados */
.certificados-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.certificado1 img {
  width: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.certificado1:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.7);
}

/* Projetos */
.projetos-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
}
.projeto-item {
  text-align: center;
}
.projeto-item button {
  background: transparent;
  border: none;
  cursor: pointer;
}
.projeto-item img {
  width: 200px;
  height: 230px;        /* altura fixa */
  object-fit: cover;    /* corta a imagem sem distorcer */
  border-radius: 12px;
  box-shadow: 0 0 15px #00f2fe;
  transition: transform 0.3s ease;
}
.projeto-item img:hover {
  transform: scale(1.1);
}
.projeto-item span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

/* Contato */
.contato-section {
  background-color: #101d2c;
  padding: 60px 20px;
  border-top: 1px solid #00f2fe50;
}
.contato-section h2 {
  margin-bottom: 10px;
}
.contato-section p {
  text-align: center;
  margin-bottom: 30px;
  color: #ccc;
}
.contato-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.contato-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contato-item i {
  font-size: 1.5rem;
  color: #00f2fe;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}
form input, form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background-color: #1a2a3a;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 10px #00f2fe20;
}
form button {
  background: linear-gradient(to right, #00f2fe, #4facfe);
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  transition: background 0.4s ease;
}
form button:hover {
  background: linear-gradient(to right, #4facfe, #00f2fe);
}

#mensagem-status {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
}
#mensagem-status.sucesso {
  color: #00ff7f;
}
#mensagem-status.erro {
  color: #ff6347;
}

/* Animações */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  .img-perfil {
    width: 120px;
    height: 120px;
  }

  .icone-item i {
    font-size: 2.5rem;
  }

  .projeto-item img {
    width: 150px;
    height: 110px;
    object-fit: cover;
  }

  .certificado1 img {
    width: 150px;
  }
}
