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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #3b2f2f;
  color: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 60px 0;
}

.hero {
  background: linear-gradient(to right, #2e2424, #5e4b4b);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #c69c6d;
}

.hero-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-texto {
  flex: 1 1 500px;
  text-align: left;
}

.hero-foto {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.hero-foto img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #c69c6d;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #c69c6d;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #a67c52;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #c69c6d;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background-color: #5e4b4b;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: scale(1.05);
}

/*Sobre Mim*/
.sobre {
  position: relative;
  color: #fff;
  overflow: hidden;
  z-index: 1;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  z-index: -2;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(25%) grayscale(50%) contrast(90%); /* deixa o vídeo mais apagado */
}

.video-bg .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(43, 36, 36, 0.931); /* camada escura por cima */
  z-index: -1;
}

.sobre-conteudo {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
}

.sobre-conteudo p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.sobre-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.sobre-texto {
  flex: 1 1 500px;
  font-size: 1.1rem;
}

.sobre-texto p {
  margin-bottom: 15px;
}

.sobre-foto {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.sobre-foto img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid #c69c6d;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

footer {
  background: #2e2424;
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
  color: #777;
}

.card, section h2, section p {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.redes-lista {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.redes-lista li a {
  color: #c69c6d;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.redes-lista li a:hover {
  color: #fff;
}

/*Projetos*/
.projeto h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #c69c6d;
}

.projeto p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.projeto .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.projeto img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

/*Contato*/
.contato-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.contato-info {
  flex: 1 1 350px;
  font-size: 1.1rem;
}

.contato-info p a {
  color: #c69c6d;
  text-decoration: none;
}

.contato-info p a:hover {
  text-decoration: underline;
}

.contato-form {
  flex: 1 1 400px;
}

.contato-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contato-form input,
.contato-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: #f9f9f9;
  font-size: 1rem;
  color: #333;
}

.contato-form input:focus,
.contato-form textarea:focus {
  outline: 2px solid #c69c6d;
}

.contato-form .btn {
  width: fit-content;
  align-self: flex-start;
  background: #c69c6d;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}

.contato-form .btn:hover {
  background: #a67c52;
}

/*Mensagem de envio de e-mail*/
.mensagem {
  padding: 15px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  font-family: sans-serif;
}
.mensagem.sucesso {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.mensagem.erro {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  animation: pulse 1.5s infinite;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}


/*Responsividade pra telas menores*/
@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding: 60px 20px;
  }

  .hero-flex {
    flex-direction: column;
    align-items: center;
  }

  .hero-texto {
    text-align: center;
  }

  .hero-foto img {
    width: 180px;
    height: 180px;
  }

  .sobre-conteudo {
    padding: 40px 20px;
  }

  .sobre-conteudo p {
    font-size: 1rem;
  }

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

  .projeto img {
    height: auto;
  }

  .contato-grid {
    flex-direction: column;
    gap: 20px;
  }

  .contato-form .btn {
    width: 100%;
    text-align: center;
  }

  .contato-form {
  display: flex;
  justify-content: center;
}

.contato-form form {
  width: 100%;
  max-width: 400px;
}

.hero h1,
  .hero h2,
  .hero p {
    font-size: 90% !important; /* ou ajuste conforme necessário */
  }

  footer {
    font-size: 0.8rem;
    padding: 30px 10px;
  }

  .redes-lista {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .redes-lista li a {
    font-size: 1rem;
  }
}
