@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  list-style-type: none;
  text-decoration: none;
  transition: all .5s ease;
}

:root {
  --cor-primaria: #0A192F;
  --cor-secundaria: #1E90FF;
  --cor-fonte: #0A192F;
  --cor-bg: #fff;
  --cor-bg-hover: #0A192F;
}

html {
  scroll-behavior: smooth;
}


@keyframes apresentacaoAnimada {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes animaMenuResponsivo {
  from {
    opacity: 0;
    transform: translateX(-160px);
  }

  to {
    opacity: 1;
    transform: translate(0px);
  }
}

.container {
  max-width: 1440px;
  width: 100%;
  margin: auto;
  padding: 0px 20px;
}

.header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--cor-bg);
  z-index: 1000;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
  color: var(--cor-fonte);
  /* transition: all .5s ease; */
}

.transHeader {
  background-color: #0A192F;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #fff;
  /* transition: all .5s ease; */
}

.header a {
  color: var(--cor-fonte);
}

.transHeader .header-logo a {
  color: #fff;
}

.transHeader a {
  color: #fff;
}

/* container interno do header */
.header .container {
  max-width: 1440px;
  width: 100%;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
  /* ou space-between, como preferir */
  align-items: center;
}

.header-logo {
  flex: 2;

}

.header-logo>a,
.sobreMim h1,
#habilidades h1,
#projetos h1,
#contato h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--cor-fonte);
}

.header nav {
  width: 400px;
  margin-right: 20px;
}

.header ul {
  display: flex;
  justify-content: space-between;
}

.header nav ul li>a {
  font-size: 18px;
  font-weight: 600;
  /*color: #0A192F;*/
}

.header nav ul li>a:hover {
  color: #1E90FF;
  transition: all 0.3s ease;
}

#btn-abrir,
#btn-fechar {
  display: none;
  cursor: pointer;
}

#btn-abrir i,
#btn-fechar i {
  font-size: 25px;
  color: var(--cor-fonte);
}

.animaMenuResponsivoClasse {
  animation-name: animaMenuResponsivo;
  animation-duration: 1s;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  background-image: url(../../assets/images/lua-crescente.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
  transition: 0.4s;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #1E90FF;
  background-image: url(../../assets/images/brilho-do-sol.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}

input:checked+.slider::before {
  transform: translateX(22px);
}

.apresentacao {
  height: calc(100vh - 150px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: auto;
  margin-top: 150px;
  column-gap: 25px;
}

.apresentacao-texto {
  flex: 2;
}

.apresentacao-texto h1 {
  font-size: 40px;
  color: var(--cor-fonte);
}

.apresentacao-texto span {
  color: #1E90FF;
}

.apresentacao-texto p {
  word-wrap: break-word;
  max-width: 610px;
  font-size: 18px;
  font-weight: 400;
  color: var(--cor-fonte);
}

.apresentacao-animada {
  white-space: pre;
  opacity: 0;
  animation-name: apresentacaoAnimada;
  animation-duration: 0.1s;
  animation-fill-mode: forwards;
  display: inline-block;
}

.button-contato {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  margin-top: 20px;
}

.button {
  display: flex;
  justify-content: space-between;
  width: 25%;
  column-gap: 25px;
}

.button-contato {
  min-width: 100px;
  padding: 5px 5px;
  border: 1px solid var(--cor-fonte);
  border-radius: 10px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  color: var(--cor-fonte);
}

.button-contato,
.contato-form {
  display: block;
  font-size: 18px;
  font-weight: 500;
}

.contato-form {
  max-width: 100px;
  color: #0A192F;
}

.button-contato:hover {
  background-color: var(--cor-bg-hover);
  color: #fff;
  transition: all 0.3s ease
}

/* .apresentacao-texto .button-contato:nth-child(3) {
  margin-right: 40px;
} */

.apresentacao-img {
  flex: 1;
  max-width: 400px;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.apresentacao-img:hover {
  scale: 1.01;
}

.apresentacao-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.apresentacao-img div {
  width: 100%;
  height: 100%;
  border: 3px solid #1E90FF;
  border-radius: 10px;
  position: absolute;
  top: -17px;
  right: -17px;
  z-index: -1;
  pointer-events: none;
}

.sobreMim {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sobreMim h1 {
  margin-top: 150px;
  margin-bottom: 100px;
}

.sobreMim p {
  text-align: center;
  max-width: 800px;
  font-size: 18px;
  font-weight: 400;
  color: var(--cor-fonte);
}

#habilidades,
#projetos,
#contato {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#habilidades h1,
#projetos h1,
#contato h1 {
  margin-top: 150px;
}

.habilidades-area {
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
  align-items: center;
}

.habilidade-icone {
  border-radius: 5px;
  box-shadow: 2px 2px 5px #000;
  background-image: linear-gradient(140deg, #1E90FF, #fff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100px;
  height: 100px;
  padding: 10px;
  cursor: pointer;
  transform: translateX(-100px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.habilidade-icone.show {
  transform: translateX(0);
  opacity: 1;
}

.habilidade-icone h2 {
  font-size: 15px;
  font-weight: 500;
  color: #0A192F;
}

.habilidade-icone img {
  max-width: 25px;
  width: 100%;
  align-self: flex-end;
}

.habilidade-icone:hover {
  scale: 1.1;
  transition: all 0.2s linear;
}

.projetos-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  max-width: 1140px;
}

.projeto-item {
  max-width: 300px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  transform: translateX(-100px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.projeto-item.show {
  transform: translateX(0);
  opacity: 1;
}

.projeto-item img {
  display: block;
  width: 100%;
  height: auto;
}

.projeto-item-info {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000005d;
  cursor: pointer;
}

.projeto-item div h2 {
  color: #fff;
  font-weight: 700;
  z-index: 1;
}

.projeto-item:hover {
  scale: 1.1;
  transition: all 0.2s linear;
}

.projeto-item:hover .projeto-item-info {
  display: flex;
  transition: all 0.2s linear;
}

.contato-area {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contato-area img {
  flex: 1;
  display: block;
  max-width: 700px;
  width: 100%;
}

.contato-area form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  max-width: 600px;
  width: 100%;
  height: 60vh;
}

form h4 {
  color: var(--cor-fonte);
}

input,
textarea {
  width: 100%;
  border: 2px solid #0A192F;
  border-radius: 5px;
  font-size: 18px;
  padding-left: 20px;
  outline: none;
}

input {
  height: 8vh;
}

input:focus,
textarea:focus {
  border: 2px solid #1E90FF;
}

input::placeholder,
textarea::placeholder {
  font-size: 18px;
}

textarea {
  height: 20vh;
  resize: none;
}

main {
  height: 100vh;
  background-color: var(--cor-bg);
}
.thanks {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 20px;
  font-weight: 500;
  color: var(--cor-fonte);
  /* background-color: var(--cor-bg); */
  border-radius: 5px;
}
.thanks-bg {
  flex: 1;
}
.thanks-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.thanks-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.thanks-content a {
  padding: 10px;
  border: 1px solid var(--cor-fonte);
  border-radius: 5px;
  color: var(--cor-fonte);
  text-decoration: none;
  font-weight: 600;
}

footer {
  background-color: #0A192F;
  margin-top: 20px;
}

footer .footerBox {
  height: 100px;
}

.footerBox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contato-icones a {
  text-decoration: none;
  font-size: 40px;
  color: #fff;
}

.contato-icones a:hover {
  color: #1E90FF;
  transition: all .5s ease;
}

.footerBox p {
  color: #fff;
}

.footerBox p a {
  text-decoration: none;
  color: #fff;
}

.footerBox p a:hover {
  color: #1E90FF;
  transition: all .5s ease;
}

dialog {
  max-width: 850px;
  height: auto;
  margin: auto;
  padding: 20px;
  background-color: var(--cor-bg);
  border-radius: 10px;
  border: none;
  box-shadow: 2px 2px 3px #000;
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: 1s;
}

dialog::backdrop {
  background-color: #0a192f3c;
}

.dialogHeader {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.dialogHeader div {
  border: none;
  background-color: transparent;
  font-size: 35px;
  color: var(--cor-fonte);
  cursor: pointer;
}

.dialogHeader h1 {
  font-size: 20px;
  color: var(--cor-fonte);
}

.dialogMain .descricao {
  font-size: 14px;
  color: var(--cor-fonte);
}

.dialogMain img {
  display: block;
  margin: auto;
  max-width: 600px;
  width: 100%;
}

.dialogBtns {
  display: flex;
  justify-content: space-between;
  width: 55%;
}

.dialogBtns a {
  display: block;
  max-width: 200px;
  width: 100%;
  padding: 10px;
  background-color: var(--cor-bg);
  color: var(--cor-fonte);
  text-align: center;
  border: 1px solid var(--cor-fonte);
  border-radius: 5px;
}

.dialogBtns a:hover {
  scale: 1.1;
}

@media (max-width: 768px) {

  /* Estilos gerais*/
  #habilidades,
  #projetos,
  #contato {
    height: 120vh;
  }

  .header-logo>a,
  .sobreMim h1,
  #habilidades h1,
  #projetos h1,
  #contato h1 {
    font-size: 25px;
  }

  /*Estilos Header*/

  .header .container {
    justify-content: space-between;
  }

  .header-logo {
    flex: 0;
    align-self: center;
  }

  #btn-abrir,
  #btn-fechar {
    font-size: 25px;
  }

  #btn-abrir {
    display: block;
  }

  #btn-fechar {
    display: none;
  }

  .header nav {
    display: none;
    width: auto;
    height: auto;
    border-radius: 5px;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .header ul {
    height: 30vh;
    padding: 30px 10px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /*Estilos de sobre mim*/
  .sobreMim {
    margin-top: 150px;
  }

  .sobreMim p {
    font-size: 16px;
  }

  /*Estilos Apresentação*/
  .apresentacao {
    flex-direction: column;
    margin-bottom: 150px;
  }

  .apresentacao-texto {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
  }

  .apresentacao-texto h1 {
    text-align: center;
    font-size: 30px;
  }

  .apresentacao-texto p {
    text-align: center;
    font-size: 16px;
  }

  .apresentacao-img {
    max-width: 250px;
  }

  .button {
    display: flex;
    width: 46%;
  }

  .button-contato {
    display: block;
  }

  .button-contato,
  .button-contato a {
    font-size: 16px;
    padding: 3px 3px;
  }

  .apresentacao-texto .button-contato:nth-child(3) {
    margin-right: 0px;
  }

  /*Estilos area de projeto*/
  .projetos-area {
    margin: 150px 0px;
  }

  .projeto-item {
    max-width: 225px;
  }

  /*Estilos de area de contato*/
  .contato-area {
    flex-direction: column;
  }

  .contato-area img {
    display: none;
  }

  .contato-area form {
    max-width: 600px;
    height: 30vh;
  }

  input,
  textarea {
    font-size: 16px;
  }

  input {
    margin-bottom: 5px;
  }

  input {
    height: 5vh;
  }

}

@media (max-width: 509px) {
  .button {
    width: 60%;
  }

  #projetos {
    height: 1000px;
  }

  .projeto-item {
    max-width: 280px;
  }

  #contato h1 {
    margin-top: 420px;
  }

  .contato-area img {
    display: none;
  }
  .thanks-bg {
    display: none;
  }
}

@media (max-width: 425px) {
  .sobreMim h1 {
    margin-top: 200px;
  }
}

@media (max-width: 375px) {
  .button {
    width: 75%;
  }

  .sobreMim h1 {
    margin-top: 450px;
  }

  #habilidades h1 {
    margin-top: 360px;
    margin-bottom: 100px;
  }
  #projetos h1 {
    margin-top: 360px;
  
  }
  #projetos {
    margin-bottom: 300px;
  }
  #contato h1 {
    margin-top: 360px;
  }
}