@charset "UTF-8";

/* estilo geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(0, 0, 0);
  height: 100vh;
}

.interface {
  max-width: 1280px;
  margin: 0 auto;
}

.flex {
  display: flex;
}

.scroll-top {
  outline: none;
  border: 0;
  background-color: #4B0082;
  width: 45px;
  height: 45px;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 30px;
  bottom: 30px;
  box-shadow: 0 1px 6px 2px rgba(0, 0, 0, 0.1), 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top img {
  width: 100%;
  transform: rotate(180deg);
}

.btn-contato button,
.btn-repositorio button {
  padding: 10px 40px;
  font-size: 18px;
  font-weight: 600;
  background-color: #4B0082;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  color: #000;
}

.btn-sobre button {
  padding: 10px 40px;
  font-size: 18px;
  font-weight: 600;
  background-color: #4B0082;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  color: #000;
  margin-top: 0.8rem;
}

.btn-idioma button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 600;
  background-color: #4B0082;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  color: #000;
  margin-left: 10rem;
}

.btn-idioma button img {
  width: 1.3rem;
}

h2.titulo {
  color: #fff;
  font-size: 45px;
  text-align: center;
}

h2.titulo span {
  color: #4B0082;
}

button:hover {
  box-shadow: 0px 0px 10px rgba(97, 23, 143, 0.801);
  transform: scale(1.1);
  transition: 0.2s;
}

/* estilo do cabeçalho */
header {
  padding: 40px 4%;
}

header > .interface {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header a {
  text-decoration: none;
  color: rgb(102, 102, 102);
  display: inline-block;
  transition: 0.2s;
}

header nav.menu-desktop a:hover {
  color: #fff;
  transform: scale(1.1);
}

header nav ul {
  list-style-type: none;
  margin-left: 8rem;
}

header nav.menu-desktop ul li {
  display: inline-block;
  padding: 0 45px;
}

.bandeira img {
  width: 10px;
}

/* estilo do menu mobile */
.btn-idioma-mobile button {
  display: none;
}

.btn-idioma-mobile button:hover {
  box-shadow: none;
  transform: scale(1.1);
  transition: 0.2s;
}

.btn-idioma-mobile img {
  display: none;
}

.btn-abrir-menu i {
  color: #4B0082;
  font-size: 40px;
  display: none;
}

.menu-mobile {
  background-color: #000;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99999;
  width: 0%;
  overflow: hidden;
  transition: 0.4s;
}

.menu-mobile.abrir-menu {
  width: 70%;
}

.menu-mobile.abrir-menu ~ .overlay-menu {
  display: block;
}

.menu-mobile .btn-fechar {
  padding: 20px 5%;
}

.menu-mobile .btn-fechar i {
  color: #4B0082;
  font-size: 30px;
}

.menu-mobile nav ul {
  text-align: right;
}

.menu-mobile nav ul li a {
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  padding: 20px 8%;
  display: block;
}

.menu-mobile nav ul li a:hover {
  background-color: #4B0082;
  color: #000;
}

.overlay-menu {
  background-color: #00000094;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 88888;
  display: none;
}

/* estilo do topo do site */
section.topo-do-site {
  padding: 40px 4%;
  margin-bottom: 20px;
}

section.topo-do-site .flex {
  align-items: center;
  justify-content: center;
  gap: 90px;
}

.topo-do-site h1 {
  color: #fff;
  font-size: 50px;
  line-height: 45px;
}

.topo-do-site .txt-topo-site h1 span {
  color: #4B0084;
  font-size: 60px;
}

.topo-do-site .txt-topo-site p {
  color: white;
  margin: 40px 0;
}

.topo-do-site .img-topo-site img {
  position: relative;
  animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar {
  0% {
    top: 0;
  }
  100% {
    top: 30px;
  }
}

/* estilo do sobre */
section.sobre {
  padding: 40px 4%;
  margin-top: 230px;
}

section.sobre .flex {
  align-items: center;
  gap: 60px;
}

.sobre .txt-sobre {
  color: #fff;
}

.sobre .txt-sobre h2 {
  font-size: 40px;
  line-height: 40px;
  margin-bottom: 30px;
}

.sobre .txt-sobre h2 span {
  color: #4B0082;
  display: block;
}

.sobre .txt-sobre p {
  margin: 20px 0;
  text-align: justify;
}

/* estilo das habilidades */
section.habilidades {
  padding: 40px 4%;
  margin-top: 230px;
}

section.habilidades .flex {
  gap: 60px;
}

.habilidades .habilidades-box {
  color: #fff;
  padding: 40px;
  border-radius: 20px;
  margin-top: 40px;
  transition: 0.2s;
  max-width: 24rem;
}

.habilidades .habilidades-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #ffffff79;
}

.habilidades .habilidades-box i {
  font-size: 100px;
  color: #fff;
  margin-bottom: 1.5rem;
}

.habilidades .habilidades-box h3 {
  color: #4B0082;
  font-size: 30px;
  margin: 15px 0%;
}

.flex-skills {
  display: flex;
  align-items: center;
  gap: 60px;
  margin: 0 auto;

}

/* estilo do portfólio */
section.portfolio {
  padding: 80px 4%;
  margin-top: 230px;
}

section.portfolio .flex {
  justify-content: space-around;
  margin-top: 80px;
}

.img-port {
  width: 380px;
  height: 180px;
  background-size: cover;
  background-position: 100% 0%;
  transition: 5s;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
}

.img-port:hover {
  background-position: 100% 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000b8;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: 0.5s;
}

.overlay:hover {
  opacity: 1;
}

/* estilo das redes */
section.redes {
  padding: 40px 4%;
  margin-top: 230px;
}

section.redes .flex {
  justify-content: center;
}

.redes .txt-redes button {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  background-color: #4B0082;
  font-size: 80px;
  cursor: pointer;
  margin: 60px 60px;
}

/* estilo do rodapé */
footer {
  margin-top: 230px;
  padding: 10px 4%;
  box-shadow: 0 0 40px 10px #ffffff1d;
}

footer .flex {
  justify-content: center;
  align-items: center;
  gap: 150px;
}

footer .email-footer p i {
  color: #ffffff;
  font-size: 16px;
}

footer .email-footer p a {
  color: #ffffff;
}

footer .telefone-footer {
  color: #ffffff;
}

/* responsividade */
@media screen and (max-width: 1210px) {
  /* cabeçalho estilo geral */
  .logo {
    display: none;
  }

  .flex {
    flex-direction: column;
  }

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

  .topo-do-site .flex {
    flex-direction: column-reverse;
  }

  .menu-desktop,
  .btn-contato {
    display: none;
  }

  .btn-idioma {
    display: none;
  }

  .btn-idioma-mobile button {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    text-decoration: none;
  }

  .btn-idioma-mobile img {
    display: flex;
    align-items: center;
    width: 2.5rem;
    margin-left: 0.3rem;
    margin-top: 0.2rem;
  }

  /* topo do site responsividade */
  section.topo-do-site {
    margin-top: -3rem;
  }

  section.topo-do-site .flex {
    gap: 45px;
  }

  section.topo-do-site {
    padding: 20px 8%;
  }

  .topo-do-site h1 {
    font-size: 35px;
    text-align: center;
  }

  .topo-do-site span {
    line-height: 1rem;
  }

  .topo-do-site p {
    text-align: center;
  }

  .topo-do-site .img-topo-site img {
    width: 100%;
  }

  /* sobre mim responsividade */
  section.sobre {
    padding: 40px 8%;
    margin-top: 60px;
  }

  .sobre .txt-sobre h2 {
    font-size: 30px;
    line-height: 35px;
    text-align: center;
  }

  section.sobre .flex {
    flex-direction: column-reverse;
  }

  .img-sobre img {
    width: 100%;
  }

  .btn-sobre {
    text-align: center;
  }

  .btn-sobre button {
    font-size: 14px;
  }

  /* habilidades responsividade */
  section.habilidades {
    padding: 40px 8%;
    margin-top: 60px;
  }

  h2.titulo {
    font-size: 38px;
    line-height: 40px;
  }

  /* portfólio reponsividade */
  section.portfolio {
    padding: 40px 8%;
    margin-top: 30px;
  }
  .img-port {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  section.portfolio .flex {
    gap: 60px;
  }

  .btn-repositorio {
    text-align: center;
    margin-top: -2rem;
  }

  .btn-repositorio button {
    font-size: 14px;
  }

  /* redes responsividade */
  section.redes {
    padding: 40px 8%;
    margin-top: 30px;
    text-align: center;
  }

  .redes .txt-redes button {
    width: 80px;
    height: 80px;
    font-size: 40px;
    margin: 60px 3px;
  }

  /* rodapé responsividade */
  footer {
    margin-top: 60px;
    padding: 10px 4%;
  }
  footer .flex {
    gap: 5px;
  }

  /* menu mobile responsividade */
  .btn-abrir-menu i {
    display: block;
  }
}
