/* VÁRIAVEL DE COR */

:root {
  --cor-principal: #0017e2;
  --cor1-gradient: #181827;
  --cor2-gradient: #00063d;
  --border-black: #000;

  --border-projects: #000e8d;
  --cor1-gradient-projects: #1f1f31;
  --cor2-gradient-projects: #00063f;
}

.light {
  --cor-principal: #ca0000;
  --cor1-gradient: #130b0b;
  --cor2-gradient: #550000;
  --border-black: #000;

  --border-projects: #8d0000;
  --cor1-gradient-projects: #311f1f;
  --cor2-gradient-projects: #3f0000;
}

/* -------------------------------------- RESET -------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-margin-top: 65px;
}

body {
  font-family: "Poppins", sans-serif;
  color: #f9f9f9;
  min-height: 100svh;
  min-width: 98svw;
  background: linear-gradient(
    to right,
    var(--cor1-gradient),
    var(--cor2-gradient)
  );
}

/* Tags das partículas - - - - - - - - - - - - - - - - - - - - - - - - - - - */

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;

  min-height: 100vh;

  display: grid;
  place-items: center;

  color: rgb(255, 255, 255);
  font-family: Arial, sans-serif;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
a {
  text-decoration: none;
  color: inherit;
  align-self: center;
}

img {
  display: block;
  max-height: 100%;
  margin: 5px;
}

/* Linhas horizontais que estão em algumas partes da página, ajudam no visual */
.hr-l {
  border: solid 3px var(--border-projects);
  width: 80%;
  justify-self: center;
  margin: 0 5px;
}

.hr-center {
  border: solid 2px var(--border-projects);
  width: 30%;
  justify-self: center;
}

.hr-center-wide {
  border: solid 2px var(--border-projects);
  width: 65%;
  justify-self: center;
}

.hr-p--right {
  display: flex;
  border: solid 2px var(--border-projects);
  width: 20%;
  align-self: flex-end;
  margin: 0 5px;
}

.hr-p--left {
  border: solid 2px var(--border-projects);
  width: 20%;
  margin: 0 5px;
}

/*-------------------------------------- HEADER -------------------------------------- */

.header__ {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: solid 4px var(--cor-principal);
  margin-bottom: 15px;
  background-image: linear-gradient(
    to right,
    var(--cor1-gradient),
    var(--cor2-gradient)
  );
  width: 100%;
  justify-self: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__turn-mode {
  background: none;
  border: 1px solid var(--cor-principal);
  color: #fff;
  margin-left: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  border-radius: 50px;
  transition: transform ease 0.3s;
}

.header__turn-mode img {
  width: 30px;
}

.header__turn-mode:hover {
  transform: scale(1.1);
}

.header__turn-mode:focus-visible {
  transform: scale(1.2);
  outline: none;
}

.header__list {
  display: flex;
  height: 10svh;
  align-items: center;
  justify-content: flex-end;
  padding-right: 50px;
  gap: 50px;
  list-style: none;
  font-weight: 600;
  color: #fff;
}

.header__list li {
  transition: transform ease 200ms;
  border: 2px solid transparent;
  outline: none;
}

.header__list li:hover {
  transform: scale(1.2);
}

.header__list li a:focus-visible {
  border: var(--border-projects) 2px solid;
  outline: none;
  padding: 10px;
  border-radius: 10px;
}

@media (max-width: 800px) {
  .header__ {
    justify-content: space-evenly;
  }

  .header__turn-mode:hover {
    transform: none;
  }

  .header__list {
    padding: 0;
    gap: 25px;
  }
}

@media (max-width: 450px) {
  .header__list {
    font-size: 0.8rem;
    height: 7svh;
    gap: 15px;
  }
}

/* -------------------------------------- HERO --------------------------------------*/

.hero__ {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 30px;
}

.hero__img img {
  width: 350px;
  height: 350px;
  border-radius: 1000px;
  border: solid 5px var(--cor-principal);
  transition: transform ease 300ms;
  animation:
    fade-in-left-animation 1s ease forwards,
    floating-animation 4s ease infinite 1.2s;
}

@keyframes fade-in-left-animation {
  0% {
    opacity: 0;
    transform: translateX(-300px);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes floating-animation {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(+8px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.hero__img img:hover {
  transform: scale(1.1);
}

.hero__img a:focus-visible {
  outline: none;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 450px;
  font-size: 1.8rem;
}

.hero__description {
  font-size: 1.4rem;
  text-align: center;
  padding-bottom: 15px;
}

.hero__title {
  font-size: 3rem;
  animation: fade-in-right-animation 1s ease forwards;
}

@keyframes fade-in-right-animation {
  0% {
    opacity: 0;
    transform: translateX(300px);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero__buttons {
  display: flex;
  align-items: center;
  justify-items: center;
  padding: 5px 0;
  gap: 13px;
}

.hero__buttons img {
  margin: 0;
}

.hero__buttons--button {
  display: flex;
  align-items: center;
  padding: 7px 15px;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: solid 2px var(--cor-principal);
  border-radius: 20px;
  transition:
    transform ease 300ms,
    background-color ease 300ms;
}

.hero__buttons--button:hover {
  color: #f9f9f9de;
  background-color: var(--cor-principal);
  transform: scale(110%);
}

.hero__buttons--button:focus-visible {
  outline: none;
  transform: scale(1.2);
}

.hero__buttons--icon {
  width: 23px;
  height: 23px;
}

@media (max-width: 800px) {
  .hero__ {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .hero__img img {
    width: 185px;
    height: 185px;
    border-radius: 1000px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .hero__buttons--button {
    font-size: 0.7rem;
    padding: 7px 10px;
  }

  .hero__buttons--button:hover {
    transform: none;
    background-color: initial;
  }

  .hero__buttons--icon {
    width: 18px;
    height: 18px;
  }
}

/* -------------------------------------- ABOUT ME --------------------------------------*/

.about-me__ {
  padding-bottom: 25px;
  width: 100%;
  justify-self: center;
  text-align: center;
  color: #f9f9f9de;
  justify-items: center;
}

.about-me__ h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
}

.about-me__title {
  padding: 15px 0 10px 0;
  font-weight: 700;
  font-size: 2rem;
}

.about-me__text {
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  padding: 10px 25px;
  gap: 15px;
  max-width: 800px;
}

.about-me__degrees {
  margin-top: 50px;
}

.about-me__degrees--images {
  display: grid;
  justify-items: center;
  justify-content: center;
  margin-bottom: 50px;
  gap: 120px;
  max-width: 950px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 110px));
  justify-self: center;
}

.about-me__degrees--images img {
  width: 130px;
  height: 130px;
}

.about-me__degrees--images figure {
  border: var(--border-projects) solid 3px;
  padding: 20px;
  border-radius: 20px;
  transition: transform ease 200ms;
  min-width: 200px;
  justify-items: center;
}

.about-me__degrees--images-ufabc {
  width: 150px;
  height: 130px;
}

.about-me__tecnologies {
  margin-top: 75px;
}

.about-me__tecnologies--images {
  display: flex;
  flex-wrap: wrap;
  justify-items: center;
  justify-content: center;
  margin-bottom: 50px;
  gap: 20px;
  max-width: 950px;
}

.about-me__tecnologies img {
  width: 70px;
  height: 70px;
}

.about-me__tecnologies--images figure {
  border: var(--border-projects) solid 3px;
  padding: 15px;
  border-radius: 20px;
  transition: transform ease 200ms;
}

figure:hover {
  transform: scale(1.14);
}

figure:focus {
  outline: none;
  transform: scale(1.14);
}

figcaption {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.text-complete {
  display: block;
  margin-top: 10px;
  color: rgb(0, 216, 0);
  font-weight: 700;
  font-size: 1rem;
}

.text-inprogress {
  display: block;
  margin-top: 10px;
  color: var(--cor-principal);
  font-weight: 700;
  font-size: 1rem;
}

.text-complete,
.text-inprogress {
  padding: 5px;
}

@media (max-width: 1100px) {
  .about-me__tecnologies--images {
    gap: 5px;
  }

  .about-me__degrees--images {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 150px;
  }
}

@media (max-width: 500px) {
  .about-me__tecnologies h2 {
    font-size: 1.8rem;
  }

  .about-me__tecnologies img {
    width: 40px;
    height: 40px;
  }

  .about-me__tecnologies--images figure {
    padding: 20px;
    max-width: 100px;
    justify-items: center;
  }

  figcaption {
    font-size: 0.7rem;
    font-weight: 600;
  }

  .about-me__degrees--images img {
    width: 75px;
    height: 75px;
  }

  .about-me__degrees--images figure {
    padding: 5px;

    min-width: 150px;
  }

  .text-complete,
  .text-inprogress {
    font-size: 0.8rem;
  }
}

@media (max-width: 430px) {
  .about-me__title {
    font-size: 1.8rem;
  }

  .about-me__text {
    font-size: 1rem;
  }
}

/* -------------------------------------- PROJECTS --------------------------------------*/

.projects__ {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.projects__container {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.projects__project {
  /* Quando está aberto*/
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-projects);
  width: 1050px;
  height: 500px;
  align-self: center;
  gap: 10px;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 0 10px 2px var(--border-projects);
  background-image: linear-gradient(
    to right,
    var(--cor1-gradient-projects),
    var(--cor2-gradient-projects)
  );
  margin: 15px;
  transition:
    transform ease 0.5s,
    width ease 0.5s,
    ease 0.3s transform;
  position: relative;
}

.projects__project.closed {
  /* Quando está fechado */
  width: 655px;
  padding: 15px;
  min-width: min-content;
}

.projects__project:hover {
  transform: scale(1.05);
}

.projects__project:active {
  transform: scale(1);
}

.projects__title {
  text-align: center;
  padding-top: 25px;
  padding-bottom: 5px;
  font-weight: 700;
  font-size: 2.3rem;
}

.projects__image-project {
  z-index: 1;
  width: 600px;
  border-radius: 15px;
  position: absolute;
  transition: left ease 0.5s;
  left: 20px;
  cursor: pointer;
}

.projects__description {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px;
  gap: 5px;
  text-align: justify;
  font-size: 0.95rem;
  width: 380px;
  height: min-content;
  transition:
    transform ease 0.5s,
    opacity ease 0.5s;
  position: absolute;
  opacity: 1;
  left: 640px;
}

.projects__description.hidden {
  transform: translateX(-120%);
  opacity: 0;
  height: 200px;
  z-index: -1;
}

.projects__buttons {
  display: flex;
  align-items: center;
  justify-items: center;
  padding: 5px;
  gap: 13px;
}

.projects__buttons--button {
  padding: 7px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  border: solid 2px var(--cor-principal);
  border-radius: 20px;
}

.projects__buttons--button:hover {
  color: #f9f9f9de;
  background-color: var(--cor-principal);
  transition: background-color ease 300ms;
  transform: scale(105%);
  transition: transform ease 200ms;
}

.projects__description--title {
  padding-bottom: 10px;
  gap: 5px;
  align-self: start;
  font-size: 1.6rem;
  text-align: start;
}

.projects__description--technologies {
  text-align: center;
}

.projects__project--click-description {
  opacity: 0;
}

.projects__project.closed .projects__project--click-description {
  opacity: 1;
  align-self: flex-end;
  position: absolute;
  color: #f9f9f93a;
}

@media (max-width: 1100px) {
  .projects__project {
    flex-direction: column;
    height: min-content;
    min-width: fit-content;
    max-width: fit-content;
    transition: height ease 0.5s;
  }

  .projects__project.closed {
    height: min-content;
  }

  .projects__project:active {
    -webkit-tap-highlight-color: transparent;
    /* quando a imagem é clickada, não pisca em azul  */
  }

  .projects__project:hover {
    transform: none;
  }

  .projects__description {
    gap: 10px;
    position: static;
    height: 450px;
    opacity: 1;
    transition:
      opacity ease 0.3s,
      height ease 0.5s;
  }

  .projects__description.hidden {
    transform: none;
    height: 0px;
    opacity: 0;
  }

  .projects__image-project {
    width: 500px;
    position: static;
  }

  .projects__project.closed .projects__project--click-description {
    position: static;
    align-self: center;
    min-height: fit-content;
  }

  .projects__project .projects__project--click-description {
    max-height: 0;
  }

  .projects__description--title {
    align-self: center;
    text-align: center;
  }

  .projects__description {
    max-width: fit-content;
    order: 0;
  }

  .projects__container {
    gap: 15px;
  }
}

@media (max-width: 650px) {
  .projects__image-project {
    width: 400px;
  }

  .projects__container {
    gap: 15px;
  }
}

@media (max-width: 530px) {
  .projects__image-project {
    width: 75vw;
  }

  .projects__project--click-description {
    font-size: 0.9rem;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .projects__description--title,
  .projects__description--title.reverse {
    font-size: 1.5rem;
  }

  .projects__description {
    font-size: 0.8rem;
    height: 367px;
  }

  .projects__description--technologies img {
    width: 60vw;
  }

  .projects__buttons--button {
    font-size: 0.7rem;
  }

  .projects__project:hover {
    transform: none;
  }
}

/* -------------------------------------- CONTACT -------------------------------------- */

.contact__title {
  padding: 25px;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
}

.contact__text {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.contact__icons {
  width: 50px;
  display: flex;
  align-items: center;
  transition: transform ease 300ms;
}

.contact__icons:hover {
  transform: scale(120%);
}

@media (max-width: 530px) {
  .contact__title {
    font-size: 1.8rem;
  }

  .contact__icons {
    width: 40px;
  }

  .contact__icons:hover {
    transform: none;
  }
}

/* -------------------------------------- FOOTER -------------------------------------- */

.foot__ {
  padding: 15px;
  justify-self: center;
  color: #ffffff7e;
  font-size: 1rem;
  text-align: center;
}

@media (max-width: 530px) {
  .foot__ {
    font-size: 0.8rem;
  }
}
