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

html, body {
  height: 100%;
  background-image: url(imgs/background.png);
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  overflow: hidden;
  font-family: sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Abertura */
.abertura {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #222;
  color: #fff;
  height: 100vh;
  position: fixed;
  width: 100%;
  z-index: 10;
  transition: opacity 0.5s ease;
}

/* Sky and Stars */
.sky {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s infinite ease-in-out;
  transition: box-shadow 0.5s ease-in-out;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
    box-shadow: 0 0 0px white;
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 8px 2px white, 0 0 12px 4px white;
  }
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(white, transparent);
  opacity: 0;
  transform: rotate(45deg);
  animation: shoot 1s linear forwards;
}

@keyframes shoot {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translate(-200px, 200px) rotate(45deg);
  }
}

/* Layout */
.main {
  width: 100%;
  display: none;
}

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

.links {
  color: rgba(255, 255, 255, 0.89);
  text-decoration: none;
}

.campo {
  font-size: 15px;
  margin-bottom: 10%;
  padding: 30px;
  border-radius: 15px;
  width: 80%;
}

.me {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(245, 245, 245, 0.63);
  font-size: 30px;
  border-radius: 5px;
  padding: 1%;
  box-shadow: 8px 8px 11px black;
  margin: 5% 0 15% 0;
}

.sobremim {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.circulo {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(245, 245, 245, 0.63);
  border-radius: 50%;
  width: 200px;
  height: 200px;
  margin: auto;
  box-shadow: 8px 8px 11px black;
}

/* Navegação */
nav {
  margin: auto;
  text-align: center;
}

nav ul {
  list-style: none;
}

.li-link {
  display: inline;
  margin: 5px;
}

/* Projetos */
.containerbrabo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.projeto {
  display: flex;
  flex-direction: column;
  background-color: rgba(245, 245, 245, 0.63);
  border-radius: 5px;
  margin: 1%;
  padding: 10px;
  flex: 1;
  min-width: 40%;
  box-shadow: 8px 8px 11px black;
}

.projeto > a {
  margin-top: 5px;
  text-decoration: none;
  justify-self: flex-end;
  color: purple;
}

/* Carrossel */
.carrossel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.itemsCar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 5%;
  transition: transform 0.5s ease;
}

.item-Car {
  background-color: rgba(245, 245, 245, 0.63);
  border-radius: 5px;
  margin: 30px 0 30px 40px;
  width: 20%;
  height: 20%;
  padding: 5%;
  box-shadow: 8px 8px 11px black;
  transform: scale(0.9);
  height: 10%;
  width: 100%;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.itemsCar .principal {
  transform: scale(1.2);
}

.itemsCar .principal:hover {
  transform: scale(1.3);
}

.next, .prev {
  background-color: rgba(245, 245, 245, 0.63);
  border-radius: 5px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10%;
  width: fit-content;
  box-shadow: 8px 8px 11px black;
  transition: transform 250ms ease-in-out;
}

.next, .prev,
.me, .containerbrabo div, .itemsCar div{
  transition: transform 250ms ease-in-out;
}

.next:hover, .prev:hover,
.me:hover, .containerbrabo div:hover, .itemsCar div:hover {
  transform: scale(1.1);
}

/* Footer */
.pe {
  background-color: black;
  padding: 3vh 9.4%;
  color: rgba(245, 245, 245, 0.63);
  text-align: center;
  width: 100%;
}

/* Efeitos de Fade */
.fade {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.in {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.hidden {
  opacity: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .me, .containerbrabo {
    flex-direction: column;
    align-items: center;
  }

  .projeto {
    width: 90%;
    margin: 20px 0;
  }

  .campo {
    padding: 10px;
  }

  .li-link {
    display: block;
    margin: 10px 0;
  }

  .textobuxa {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .textobuxa img {
    margin-top: 10px;
  }

  footer.pe ul {
    flex-direction: column;
    padding: 0;
  }

  footer.pe li {
    margin-bottom: 10px;
  }
}
