@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --blue-black: #243e63;
  --tw-text-opacity: 1;
  --tw-bg-opacity: 1;
  --purple: rgb(100 21 255 / var(--tw-text-opacity));
  --darker-purple: rgb(80 11 200 / var(--tw-text-opacity));
  --grey: rgb(226, 232, 240);
}
html{
    scroll-behavior: smooth;
}

*:not(html) {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  /* border: 1px solid grey; */
}
input,
textarea {
  width: 100%;
  background-color: #242424;
  color: white;
  /* this: on input active remove blue outline */
  outline: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #c0c4cc;
  transition: all 300ms ease;
}
input:hover,
textarea:hover {
  border-color: #dcdfe6;
}
/* this pseudo-element focus is the equivalent to button:active */
input:focus,
textarea:focus {
  border-color: #f06449;
}

label {
  font-size: 0.875rem;
  font-weight: bold;
  color: white;
}
textarea {
  /* this: only allows vertical resizing in order to avoid weird resizing */
  resize: vertical;
  height: 100px;
  margin-top: 6px;
}
i{
  display: inline-block;
  height: 1rem;
  width: 1rem;
}
a {
  text-decoration: none;
}
section {
  background-color: rgb(245, 245, 245);
  transition: all 300ms ease;
}
p {
  line-height: 1.5;
  font-size: 1rem;
}
.click {
  transition: all 300ms ease;
  cursor: pointer;
}
.click:hover {
  transform: scale(1.1);
}
button {
  cursor: pointer;
}
.container {
  padding: 50px 0;
  width: 100%;
}
.row {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}
.link__hover-effect {
  position: relative;
}
/* this: adds cooler underline attached to links  */
.link__hover-effect:after {
  content: "";
  position: absolute;
  bottom: -3px;
  height: 3px;
  width: 0;
  right: 0;
  background-color: black;
  transition: all 300ms ease;
}
.link__hover-effect--white:after {
  background-color: #fff;
}
.link__hover-effect--black:after {
  background-color: black;
}
.link__hover-effect:hover:after {
  left: 0;
  width: 100%;
  border-radius: 32px;
}

nav,
.scroll,
.header {
  opacity: 1;
  visibility: visible;
  transition: all 600ms 800ms;
  padding: 4%;
}
.modal--open nav,
.modal--open .scroll,
.modal--open .header {
  opacity: 0;
  visibility: hidden;
  transition: all 400ms 200ms;
}
.modal--open :not(.modal):active{

}

/* 

MODAL

*/

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  height: 700px;
  border-radius: 20px;
  /* this: locks the user on the modal */
  overflow: hidden;
  display: flex;
  visibility: hidden;
  /* this: without it, some components of the modal remain on the screen delayed */
  z-index: -1;
  transition: visibility 1s, z-index 1s, box-shadow 0.5s ease;
}

.modal--open .modal {
  z-index: 60;
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.55);
  visibility: visible;
}
.modal__open .modal__about {
  transform: translateX(0%);
}
.modal__about {
  transform: translateX(-110%);
}

.modal__half {
  padding: 72px 72px;
  width: 50%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 300ms ease-in-out; /* apply transition here */
}

.modal--open .modal__about,
.modal--open .modal__contact {
  transform: translateX(0%);
}

.modal__about {
  background-color: rgb(245, 245, 245);
  transform: translateX(-110%);
  transition: all 300ms ease-in-out; /* apply transition here */
}
.modal__contact {
  background-color: #242424;
  transform: translateX(110%);
  color: white;
}

.modal__languages {
  display: flex;
  flex-wrap: wrap;
}
.modal__language {
  width: 25%;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 300ms ease;
}

.modal__language:hover .language__name {
  transform: scale(1);
}

.modal__language:hover {
  filter: brightness(80%);
  transform: scale(0.9);
}

.modal__language--img {
  width: 100%;
}
.modal__title {
  font-size: 1.625rem;
}
.modal__sub-title {
  margin: 12px 0 24px 0;
  font-size: 0.875rem;
}
.modal__para {
  margin-bottom: 12px;
  line-height: 1.75;
}
.language__name {
  position: absolute;
  bottom: -10px;
  transform: scale(0);
  transition: all 300ms ease;
}

.form__item {
  margin-bottom: 20px;
}
.modal__sub-title {
  margin: 12px 0 24px 0;
}
.form__submit {
  background-color: #50c5b7;
  border: 2px solid #50c5b7;
  color: white;
  font-weight: 700;
  width: 100%;
  max-width: 240px;
  padding: 12px 24px;
  font-size: 1.25rem;
  border-radius: 8px;
  transition: all 300ms ease;
}

.form__submit:hover {
  border-color: #fff;
  background-color: transparent;
}
.form__submit:active {
  border-color: #50c5b7;
  color: #50c5b7;
}

/* this: great example of the POWER of REUSABLE CSS */
.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal__overlay--loading {
  background-color: #242424;
  font-size: 5rem;
  z-index: -1;
}
.fa-spinner {
  animation: spinner 750ms infinite linear;
}

@keyframes spinner {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.modal__overlay--success {
  background-color: #4bb543;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  padding: 28px;
  z-index: -1;
}

.modal__exit {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 2.25rem;
  z-index: 100;
}

.modal__overlay--visible {
  z-index: 1;
  display: flex;
}
.modal--open {
  z-index: 60;
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.55);
  visibility: visible;
}
/* 

DARK THEME

*/

.dark-theme .title,
.dark-theme .section__title,
.dark-theme .section__sub-title,
.dark-theme .nav__link--anchor,
.dark-theme .fa-adjust,
.dark-theme .header__para {
  color: white;
}

.dark-theme section {
  background-color: #242424;
}

.dark-theme #personal-logo {
  filter: invert(1);
}

.dark-theme .scroll__icon {
  border-color: white;
}
.dark-theme .scroll__icon:after,
.dark-theme .link__hover-effect--black:after {
  background-color: white;
}

.dark-theme .link__hover-effect--white:after {
  background-color: #242424;
}
.dark-theme .mail__btn {
  background-color: white;
  color: #242424;
}
.fa-envelope{
width: 50px;

}
/* .modal__para{
    max-width: ;
} */

/* 

LANDING PAGE

*/

#landing-page {
  min-height: 100svh;
}

.header {
  position: absolute;
  /* these: from here to bottom is how you center with position absolute */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
}
.header__para {
  font-size: 1.5rem;
  line-height: 2;
  max-width: 28.125rem;
}
.title {
  font-size: 7.5rem;
  margin-bottom: 12px;
  text-align-last: left;
  line-height: 1;
}
.title--secondary {
  color: #f06449 !important;
}
.orange {
  color: #f06449 !important;
}
.text--verdigris{
  color: #50c5b7 !important;
}
.bg--verdigris{
    background-color: #50c5b7 !important;
}

.about-me__links {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  margin-top: 16px;
}
.about-me__link--image-mask {
  width: 50px;
  height: 50px;
  display: flex;
  padding: 16px;
  margin: 0 20px 0 0;
  background-color: #f06449;
  border-radius: 32px;
}
.mail__btn {
  width: 70px;
  height: 70px;
  font-size: 32px;
  border-radius: 50%;
  border: none;
  background-color: #242424;
  color: rgb(250, 250, 250);
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 100;
  position: fixed;
  box-shadow: 0 12px 30px 0 rgb(0, 0, 0, 0.28);
}
.scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll__icon {
  width: 20px;
  height: 30px;
  border: 2px solid #000;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* animation: scroll 1000ms infinite alternate-reverse; */
}
/* this: targets the "pintinho no centro". Ja centralizado pelo flex do pai */
.scroll__icon:after {
  content: "";
  width: 4px;
  height: 6px;
  background-color: #242424;
  border-radius: 2px;
  animation: scroll 1000ms infinite alternate-reverse;
}

@keyframes scroll {
  0% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(-3px);
  }
}

/* 

NAVIGATION

*/
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100px;
}
.nav__link--list {
  display: flex;
}
.nav__link {
  margin: 0 12px;
}
.nav__link--anchor {
  font-size: 1rem;
  color: #242424;
  font-weight: 700;
}
li {
  list-style-type: none;
}
#personal-logo {
  width: 80px;
  height: 80px;
  /* filter: invert(100%); */
  background-color: none;
}

.fa-adjust {
  font-size: 1.25rem;
}

/* 

PROJECTS

*/

.section__title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 68px;
}
.project__img {
  width: 100%;
  height: 100%;
  transition: all 600ms ease;
}
.project__wrapper {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.45);
  overflow: hidden;
}
.project__wrapper:hover .project__description {
  opacity: 1;
  /* this: centers vertically in position absolute*/
  transform: translateY(-50%);
}
.project__wrapper:hover .project__img {
  transform: scale(1.07);
  filter: blur(5px);
}
.project__description {
  position: absolute;
  top: 50%;
  left: 90px;
  /* this: keeps the project description up in the bottom */
  transform: translateY(100%);
  opacity: 0;
  color: white;
  max-width: 550px;
  transition: opacity 300ms, transform 450ms ease;
}
.project__wrapper:hover .project__wrapper--bg {
  opacity: 0.7;
}
.project__wrapper--bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1c1d25;
  opacity: 0.7;
}

.project__description--title {
  font-size: 2.5rem;
}
.project__description--sub-title {
  margin: 8px 0;
}
.project__description--link {
  color: white;
  font-size: 1.25rem;
  margin-right: 16px;
}
.project__description--para {
  margin: 16px 0;
}
.project{
    /* position: relative; */
    margin: 64px 0;
}
/* this: selector targets elements that have both classes applied directly to them. */
 .project__wrapper.show{
    opacity: 1;
    transform: translateY(0%);
} 
.project__img--smaller{
  width: 100%;
  height: 100%;
  transition: all 600ms ease;
}



.project__wrapper{
  opacity: 0;
  transition: all 1s ease;
} 

.project__0,
.project__2,
.project__4{
  transform: translateY(10%);
}
.project__1,
.project__3{
  transform: translateY(10%);
}
.section__subtitle{
  padding-bottom: 10px;
  border-bottom: 2px solid #242424;
}
.dark-theme .section__subtitle{
  border-bottom: 2px solid #f4f4f4 !important;
  color: #f0f0f0f0;

}
.other-projects__container{
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.other-project__project{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.other-project__header{
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid #242424;
}

  .dark-theme .other-project__header{
    color: #f0f0f0a0;
  
  }

.other-project__languages{
  display: flex;
  gap: 8px;
}
.other-project__links{
  margin-right: auto;
  margin-left: 16px;
  display: flex;
  gap: 8px;


}
.other-project__link{
  text-decoration: none !important;
  color: inherit;



}
.other-project__list{
  font-size: 1rem;
  margin-left: 2%;
}
.dark-theme .other-project__list{
  color: #f0f0f0a0;

}
.other-project__bullet{
  margin-top: 8px;
  list-style-type: disc;

}
.lang{
  background-color: #50c5b7;
  color: white;
  min-width: 50px;
  border-radius: 0.75rem;
  padding: 0.25rem 1rem;
}

/* 

FOOTER

*/

footer {
  position: relative;
  background-color: #242424;
  display: flex;
  padding: 6% 0;
}
.footer__logo--img {
  filter: invert(100%);
  width: 70px;
  height: 70px;
}
.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer__social--list {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-around;
  margin: 28px 0;
}
.footer__social--link,
.footer__copyright {
  color: white;
}

/* 

SHAPES

shapes on the first row
height = 15vh

shapes on the 2 row
height = 50vh

shapes on the 3 row
height = 80vh

shapes on the first column
width = 5vw

shapes on the second column
width = 50vw

shapes on the second column
width = 80vw

*/

.shape {
  position: fixed;
}
.shape--0 {
  top: 15vh;
  left: 5vw;
}
.shape--1 {
  top: 15vh;
  left: 50vw;
}
.shape--2 {
  top: 15vh;
  left: 80vw;
}
.shape--3 {
  top: 50vh;
  left: 5vw;
}
.shape--4 {
  top: 50vh;
  left: 50vw;
}
.shape--5 {
  top: 50vh;
  left: 80vw;
}
.shape--6 {
  top: 80vh;
  left: 5vw;
}
.shape--7 {
  top: 80vh;
  left: 50vw;
}
.shape--8 {
  top: 80vh;
  left: 80vw;
}

@media (max-width: 48em) {
  .title {
    font-size: 5rem;
  }
  .header__para {
    font-size: 1.25rem;
  }
  .modal {
    top: 0;
    left: 0;
    height: auto;
    transform: none;
    width: 100%;
    flex-direction: column-reverse;
    border-radius: 0;
  }
  .modal__half {
    width: 100%;
  }
  .project__description--title{
    font-size: 1.5rem;
  }
  .project__description--sub-title{
    font-size: 1rem;
  }
  .project__description--para{
    font-size: 0.70rem;
    text-align: justify;
    width: 80%;
  }
  .section__subtitle{
    font-size: 2rem;
  }
 
  

}

@media (max-width: 30em) {
  .title {
    font-size: 3.25rem;
  }
  .header__para {
    font-size: 1.125rem;
  }
  .nav__link:first-child {
    display: none;
  }
  .project__description--para {
    display: none;
  }
  .project__description {
    left: 0;
    padding: 0;
    width: 100%;
    text-align: center;
  }
  .project__description--sub-title{
    margin-bottom: 8px;
  }
  .modal__half{
    padding: 40px;
  }
  .project__description--title{
    font-size: 1.5rem;
  }
  .project__description--sub-title{
    font-size: 1rem;
  }
 
  .section__title{
    font-size: 2rem;
  }
  .other-project__header{
    font-size: 0.80rem;
  }
  .other-project__languages{
    flex-wrap: wrap;
  }
  .lang{
    font-size: 0.75rem;
  }
  .other-project__list{
    font-size: 0.75rem;
  }
}

/*  */
