* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

#conteudo {
  opacity: 0;
}

#intro-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: black;
  transition: opacity 2s ease;
}

#spline-welcome {
  position: fixed;
  zoom: 1;
  pointer-events: none;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

header {
  padding: 20px;
  text-align: center;
}

header h2 {
  margin-bottom: 10px;
}

#visitantes {
  text-align: end;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

h1 {
  padding: 0px;
  border: 0.13rem solid;
  border-radius: 10px;
}

p {
  text-align: center;
}

.caixa {
  width: 100%;
  height: 100%;
  margin: 50px auto;
  text-align: center;
}

/*.caixa img {
  border-radius: 50%;
  margin: 20px 0;
  width: 70%;
}

.caixa button {
  margin-top: 20px;
}*/

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.projetos {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
}

.projetos h2 {
  text-align: center;
  margin-bottom: 30px;
}

.lista-projetos {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.projeto {
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  text-align: center;
}

.projeto img {
  width: 100%;
  border-radius: 5px;
}

.projeto h3 {
  margin-top: 15px;
}

.projeto p {
  margin: 15px 0;
  line-height: 1.4;
}

.projeto button {
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.sobre {
  width: 800px;
  height: 900px;
  max-width: 800px;
  margin: 50px auto;
  border-radius: 10px;
}

.sobre h2 {
  margin-bottom: 20px;
  text-align: center;
}

.timeline {
  margin-bottom: 40px;
}

.evento {
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
}

.evento::before {
  content: '';
  position: absolute;
  left: 15px; /* controla o quão à direita a linha azul vai ficar */
  top: 0;
  bottom: 0;
  width: 3px;
}

.evento .ano {
  font-weight: bold;
  position: absolute;
  left: -30px;
}

.habilidades {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.habilidade {
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
}

.contato {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  border-radius: 10px;
}

.contato h2 {
  text-align: center;
  margin-bottom: 20px;
}

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

.contato label {
  margin-bottom: 5px;
  font-weight: bold;
}

.contato input,
.contato textarea {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid;
  border-radius: 5px;
  font-family: inherit;
}

.contato button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contato #mensagem-sucesso {
  display: none;
  margin-top: 20px;
  color: green;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

/*      CHAT      */

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0px;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

#chat-container.hidden {
  display: none;
}

#chat-header {
  background-color: black;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-box {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f9f9f9;
}

#chat-form {
  display: flex;
  border-top: 1px solid #ccc;
}

#chat-input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

#chat-form button {
  background-color: black;
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
}


@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #visitantes {
    text-align: center;
    margin-top: 20px;
  }
  
  nav {
    margin-top: 10px;
  }
  
  nav a {
    display: block;
    margin: 10px 0;
  }
  
  .lista-projetos {
    flex-direction: column;
    align-items: center;
  }
  
  .contato {
    margin: 50px auto;
    padding: 20px;
  }
  
  .contato input,
  .contato textarea {
    font-size: 16px;
  }
  
  .contato button {
    padding: 12px;
    font-size: 16px;
  }
}
