* {
  margin: 0;
  padding: 0;
  font-family: "Questrial", sans-serif;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  transition: ease 0.5s;
}

nav {
  background-color: #000;
  /* box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1); */
  font-size: 18px;
  height: 60px;
}
nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: -1%;
}

nav li {
  height: 50px;
  margin-top: 0.3%;
}

.dark-mode {
  background-color: #121212;
  color: white;
  transition: ease 0.5s;
}

nav a {
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: 0.2s;
  border-radius: 10px;
  color: white;
}

nav a:hover {
  background-color: #3b3b3b;
}

/* Dropdown menus */
ul li ul.dropdown li {
  display: block;
  color: black;
}

ul li ul.dropdown {
  width: 8.2%;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  background-color: rgb(0, 0, 0);
  z-index: 999;
  display: none;
  position: absolute;
  margin-top: 0%;
}

ul li:hover ul.dropdown {
  display: block;
  transition: 0.3s;
}

ul li ul.dropdown-mobile li {
  display: block;
  color: black;
}

ul li ul.dropdown-mobile {
  width: 40%;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  background-color: rgb(182, 182, 182);
  z-index: 999;
  display: none;
  position: absolute;
  margin-top: 0%;
  color: black;
}

ul li:hover ul.dropdown-mobile {
  display: block;
  transition: 0.3s;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 350px;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.478);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  right: -100%;
  transition: right 0.3s ease-in-out;
}

.sidebar li {
  width: 100%;
  margin-top: 1%;
}

.sidebar a {
  width: 100%;
  color: black;
}

.icons-menu {
  height: 70%;
  fill: white;
}

.open {
  right: 0 !important;
}

.menu-button {
  display: none;
}

@media (max-width: 800px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
}

@media (max-width: 400px) {
  .sidebar {
    width: 100%;
  }
}

main {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  scrollbar-width: none;
}

/* Sections */
section {
  scroll-snap-align: start;
  height: 100vh;
}

/* Section 1 */
.section1 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: white;
}

.section1 h1 {
  justify-content: center;
  align-items: center;
  font-size: 50px;
  animation: slideUp 1.2s ease-out forwards;
  margin-top: -5%;
}

.section1 .small-circle {
  position: absolute;
  margin-top: 30%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: lightgray;
  animation: bounce 1.5s infinite;
  transition: transform 0.2s;
  box-shadow: 0 0 20px rgba(116, 116, 116, 0.671);
}

.small-circle svg {
  width: 50px;
}

@keyframes slideUp {
  0% {
    bottom: -300px;
    opacity: 0;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
    transform: translateY(-150%);
  }
}

.section1 .wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: #4973ff;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  transition: 0.5s;
  z-index: -1;
}

.section1 .wave span {
  content: "";
  position: absolute;
  width: 325vh;
  height: 325vh;
  top: 0;
  left: 50%;
  transform: translate(-50%, -75%);
  background: #000;
}
.section1 .wave span:nth-child(1) {
  border-radius: 45%;
  background: rgba(20, 20, 20, 1);
  animation: wave 5s linear infinite;
}

.section1 .wave span:nth-child(2) {
  border-radius: 40%;
  background: rgba(20, 20, 20, 0.5);
  animation: wave 10s linear infinite;
}
.section1 .wave span:nth-child(3) {
  border-radius: 42.5%;
  background: rgba(20, 20, 20, 0.5);
  animation: wave 15s linear infinite;
}
@keyframes wave {
  0% {
    transform: translate(-50%, -75%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -75%) rotate(360deg);
  }
}

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Section 2 */
.section2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.img-spot {
  display: flex;
  align-items: center;
  margin-left: 10%;
}

.img-holder {
  height: 70%;
  width: 60%;
  background-color: transparent;
  min-height: 300px;
  min-width: 300px;
  border-radius: 10px;
  position: relative;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.img-holder::after,
.img-holder::before {
  content: "";
  height: 100%;
  width: 95%;
  position: absolute;
  /* Another option of coloring */
  /* #ff4545, #00ff99, #006aff, #ff0095, #ff4545 */
  background-image: conic-gradient(from var(--angle), transparent 70%, blue);
  z-index: -1;
  padding: 10px;
  left: -2.2%;
  top: -1.6%;
  border-radius: 10px;
  animation: 3s spin linear infinite;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

.img-holder::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}

.img-holder img {
  width: 95%;
  border-radius: 10px;
  height: 100%;
}

.who-title {
  margin-top: 15%;
  margin-left: 10%;
  font-size: 25px;
}

.who-p {
  width: 50%;
  font-size: 20px;
  margin-top: 5%;
  line-height: 1;
  text-align: justify;
  margin-left: 7.5%;
}

.download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 60px;
  font-size: 20px;
  border: solid 2px rgb(47, 47, 162);
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
  color: rgb(47, 47, 162);
}

.download:hover {
  background-color: rgb(47, 47, 162);
  color: white;
  svg {
    fill: white;
  }
}

.download svg {
  width: 12%;
  margin-left: 2%;
  fill: rgb(47, 47, 162);
}

.download-btn {
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 65%;
  margin-top: 2%;
}

.social-icons {
  height: 5dvh;
  width: 65%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3%;
  margin-top: 1%;
  transition: ease 0.3s;
}

#githubicon {
  transition: ease 0.3s;
  font-size: 36px;
}

#githubicon:hover {
  cursor: pointer;
  transform: scale(115%);
  transition: ease 0.3s;
}
#igicon {
  transition: ease 0.3s;
  font-size: 36px;
}

#igicon:hover {
  cursor: pointer;
  transform: scale(115%);
  transition: ease 0.3s;
}
#linkedinicon {
  transition: ease 0.3s;
  font-size: 36px;
}

#linkedinicon:hover {
  cursor: pointer;
  transform: scale(115%);
  transition: ease 0.3s;
}

@media (max-width: 400px) {
  .section2 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: 200vh;
  }
  .img-holder {
    margin-top: 10%;
    margin-left: 3%;
    height: 70%;
    background-color: transparent;
  }
  .img-holder::after,
  .img-holder::before {
    width: 105%;
  }
  .img-spot {
    margin-left: 5%;
  }
  .who-title {
    margin-left: 0%;
    text-align: center;
  }
  .who-p {
    margin-left: 9%;
    text-align: justify;
    font-size: 15px;
    line-height: 1;
    width: 300px;
    height: 100px;
  }
  .img-holder::after {
    left: -3.3%;
    height: 90%;
  }
  .img-holder img {
    width: 105%;
    height: 90%;
  }
  .download {
    margin-top: 50%;
    width: 230px;
    margin-left: 20%;
  }
  .title-container h2 {
    margin-top: 15%;
    margin-left: 15%;
  }
  .social-icons {
    width: 100%;
    margin-top: 3%;
  }
}
@media (min-width: 800px) {
  .img-spot {
    justify-content: center;
  }
}

/* Section 3 */
.section3 {
  height: 300vh;
  background-color: black;
  position: relative;
}

.projects-title {
  font-size: 37.5px;
  margin-top: 2%;
  color: rgb(193, 193, 0);
  font-family: "Star Wars", "Questrial", sans-serif;
}

.title-container {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5%;
  background-color: black;
}

/* Planets */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  height: 120vh;
  overflow: hidden;
}

.planets {
  font-size: 6px;
  width: 40em;
  height: 40em;
  position: relative;
}

.planets img {
  height: 130%;
  width: 130%;
}

.sun {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 15em;
  left: 15em;
  width: 10em;
  height: 10em;
  border-radius: 50%;
  box-shadow: 0 0 3em rgb(225, 128, 0);
  animation: orbit 50s linear infinite;
}

.mercury,
.venus,
.earth,
.moon,
.mars,
.jupiter,
.saturn,
.uranus,
.neptune,
.pluto {
  position: absolute;
  border-style: solid;
  border-color: white transparent transparent transparent;
  border-width: 0.1em 0.1em 0 0;
  border-radius: 50%;
}

.mercury {
  top: 12.5em;
  left: 12.5em;
  width: 15em;
  height: 15em;
  animation: orbit 68.7s linear infinite;
}
.venus {
  top: 10em;
  left: 10em;
  width: 20em;
  height: 20em;
  animation: orbit 48.7s linear infinite;
}
.earth {
  top: 6em;
  left: 6em;
  width: 28em;
  height: 28em;
  animation: orbit 36.5s linear infinite;
}
.moon {
  top: 2em;
  right: -1em;
  width: 7em;
  height: 7em;
  animation: orbit 2.4s linear infinite;
}
.mars {
  top: 2em;
  right: 2.5em;
  width: 36em;
  height: 36em;
  animation: orbit 26.5s linear infinite;
}
.jupiter {
  top: -2em;
  left: -2em;
  width: 45em;
  height: 45em;
  animation: orbit 21s linear infinite;
}
.saturn {
  top: -7em;
  left: -7em;
  width: 55em;
  height: 55em;
  animation: orbit 17s linear infinite;
}
.uranus {
  top: -12em;
  left: -12em;
  width: 65em;
  height: 65em;
  animation: orbit 19s linear infinite;
}
.neptune {
  top: -17em;
  left: -17em;
  width: 75em;
  height: 75em;
  animation: orbit 15s linear infinite;
}
.pluto {
  top: -22em;
  left: -22em;
  width: 85em;
  height: 85em;
  animation: orbit 18s linear infinite;
}

.mercury::before,
.venus::before,
.earth::before,
.moon::before,
.mars::before,
.jupiter::before,
.saturn::before,
.uranus::before,
.neptune::before,
.pluto::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  animation: orbit 50s linear infinite;
}

.mercury::before {
  top: 1.5em;
  right: 0.9em;
  width: 2em;
  height: 2em;
  background-image: url("images/mercury.png");
  background-size: cover;
}
.venus::before {
  top: 2em;
  right: 2em;
  width: 2em;
  height: 2em;
  background-image: url("images/venus.png");
  background-size: cover;
}
.earth::before {
  top: 3em;
  right: 0em;
  width: 5em;
  height: 5em;
  background-image: url("images/earth.png");
  background-size: cover;
}
.moon::before {
  top: 0.8em;
  right: 0.2em;
  width: 1.2em;
  height: 1.2em;
  background-image: url("images/moon.png");
  background-size: cover;
}
.mars::before {
  top: 5em;
  right: 3em;
  width: 3em;
  height: 3em;
  background-image: url("images/mars.png");
  background-size: cover;
}
.jupiter::before {
  top: 5em;
  right: 3em;
  width: 6em;
  height: 6em;
  background-image: url("images/jupiter.png");
  background-size: cover;
}
.saturn::before {
  top: 7em;
  right: 5em;
  width: 4.5em;
  height: 4.5em;
  background-image: url("images/saturn.png");
  background-size: cover;
}
.uranus::before {
  top: 10em;
  right: 5em;
  width: 4em;
  height: 4em;
  background-image: url("images/uranus.png");
  background-size: cover;
}
.neptune::before {
  top: 10em;
  right: 7em;
  width: 4em;
  height: 4em;
  background-image: url("images/neptune.png");
  background-size: cover;
}
.pluto::before {
  top: 12em;
  right: 8.5em;
  width: 4em;
  height: 4em;
  background-image: url("images/pluto.png");
  background-size: cover;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  z-index: 1;
}
.projects {
  margin-top: 2%;
  height: 90vh;
  width: 90%;
  border: 2px solid;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2%;
  background-color: black;
  border: none;
}

.projects div {
  width: 200px;
  height: 200px;
  background-color: lightblue;
  border-radius: 10px;
  border: solid 1px;
  min-width: 100px;
  min-height: 100px;
  margin: 1%;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
  transition: 0.3s ease;
}

.projects div:hover {
  transition: 0.3 ease;
  transform: scale(110%);
  cursor: pointer;
}

.project-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item1 {
  flex: 45%;
}

.item2 {
  flex: 35%;
}

.item3 {
  flex: 25%;
}

.item4 {
  flex: 25%;
}

.item5 {
  flex: 25%;
}

.item6 {
  flex: 25%;
}

.item7 {
  flex: 10%;
}

.item8 {
  flex: 20%;
}

.item10 {
  flex: 20%;
}

.item11 {
  flex: 12%;
}

.item12 {
  flex: 15%;
}

@keyframes appear {
  from {
    opacity: 0;
    scale: 0.5;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* Section 4 */

.section4-title h2 {
  font-size: 37.5px;
  margin-top: -50%;
}

.section4 {
  display: grid;
  place-items: center;
  height: 100vh;
  background-image: linear-gradient(#111, #222, #111);
  overflow: hidden;
  font-family: "Montserrat";
  color: #fff;
}
.carousel {
  transform: perspective(1000px) rotateX(70deg);
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
  animation: rotate 15s linear infinite;
  transition: all 1s;
  background-image: radial-gradient(
    circle at 50% 50%,
    #222 30%,
    transparent 40%
  );
  margin-top: -10%;
  scale: 1.2;
}
.carousel:hover {
  animation-play-state: paused;
}
.carousel .cardb {
  display: grid;
  place-items: center;
  width: 190px;
  height: 225px;
  background-color: #1f1f1f;
  position: absolute;
  border-radius: 5px;
}
.carousel .card {
  display: grid;
  place-items: center;
  width: 190px;
  height: 225px;
  background-color: #333;
  position: absolute;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  -webkit-box-reflect: below 3px
  linear-gradient(transparent 75%, rgba(255, 255, 255, 0.125));
}
.carousel .card .img {
  width: 180px;
  height: 100px;
  border-radius: 3px;
  margin-bottom: -10px;
  filter: brightness(0.7);
}
.carousel .card p {
  font-size: 16px;
  margin-bottom: -5px;
}
.carousel .card span {
  font-size: 12px;
  text-align: center;
  padding: 8px;
}
.c1 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(45deg) rotateX(90deg) translateY(120px) translateZ(280px)
    rotateZ(180deg);
}
.c1 .img {
  background-size: 190px 190px;
}
.cb1 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(45deg) rotateX(90deg) translateY(120px) translateZ(279px);
}
.c2 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(90deg) rotateX(90deg) translateY(120px) translateZ(280px)
    rotateZ(180deg);
}
.c2 .img {
  background-size: 190px 190px;
}
.cb2 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(90deg) rotateX(90deg) translateY(120px) translateZ(279px);
}
.c3 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(135deg) rotateX(90deg) translateY(120px) translateZ(280px)
    rotateZ(180deg);
}
.c3 .img {
  background-size: 190px 190px;
}
.cb3 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(135deg) rotateX(90deg) translateY(120px) translateZ(279px);
}
.c4 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(180deg) rotateX(90deg) translateY(120px) translateZ(280px)
    rotateZ(180deg);
}
.c4 .img {
  background-size: 190px 190px;
}
.cb4 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(180deg) rotateX(90deg) translateY(120px) translateZ(279px);
}
.c5 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(225deg) rotateX(90deg) translateY(120px) translateZ(280px)
    rotateZ(180deg);
}
.c5 .img {
  background-size: 190px 190px;
}
.cb5 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(225deg) rotateX(90deg) translateY(120px) translateZ(279px);
}
.c6 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(270deg) rotateX(90deg) translateY(120px) translateZ(280px)
    rotateZ(180deg);
}
.c6 .img {
  background-size: 190px 190px;
}
.cb6 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(270deg) rotateX(90deg) translateY(120px) translateZ(279px);
}
.c7 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(315deg) rotateX(90deg) translateY(120px) translateZ(280px)
    rotateZ(180deg);
}
.c7 .img {
  background-size: 190px 190px;
}
.cb7 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(315deg) rotateX(90deg) translateY(120px) translateZ(279px);
}
.c8 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(360deg) rotateX(90deg) translateY(120px) translateZ(280px)
    rotateZ(180deg);
}
.c8 .img {
  background-size: 190px 190px;
}
.cb8 {
  padding: 0;
  transform-origin: center center;
  transform: rotateZ(360deg) rotateX(90deg) translateY(120px) translateZ(279px);
}
@media screen and (max-width: 992px) {
  .carousel {
    scale: 0.7;
  }
}
@-moz-keyframes rotate {
  to {
    transform: perspective(1000px) rotateX(70deg) rotateZ(360deg);
  }
}
@-webkit-keyframes rotate {
  to {
    transform: perspective(1000px) rotateX(70deg) rotateZ(360deg);
  }
}
@-o-keyframes rotate {
  to {
    transform: perspective(1000px) rotateX(70deg) rotateZ(360deg);
  }
}
@keyframes rotate {
  to {
    transform: perspective(1000px) rotateX(70deg) rotateZ(360deg);
  }
}

@media (max-width: 400px) {
  .carousel {
    margin-top: -30%;
  }
}

/* Section5 */
.section5 {
  height: 100dvh;
}
.section5-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3%;
}

.section5-title h2 {
  font-size: 37.5px;
  margin-top: 3%;
}
.formacao-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70dvh;
}
.formacao {
  height: 60dvh;
  width: 70%;
  border: solid 2px black;
  border-radius: 25px;
  z-index: -1;
}
