@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap");

/* 

GLOBAL STYLES

*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
}

li {
  list-style-type: none;
}

section {
  background-color: rgb(245, 245, 245);
  transition: all 0.3s ease-in-out;
}

p {
  line-height: 1.5;
  font-size: 16px;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.container {
  padding: 50px 0;
  width: 100%;
}

.row {
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  max-width: 1100px;
}

.green {
  color: #07b69e;
}

.title {
  font-size: 90px;
  margin-bottom: 12px;
  text-align: left;
  line-height: 1;
  transition: all 0.3s ease-in-out;
}

.click {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.click:hover {
  transform: scale(1.1);
}

.click:active {
  transform: scale(0.8);
}

.link__hover-effect {
  position: relative;
}

.link__hover-effect::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 0;
  height: 2px;
  transition: all 0.3s ease-in-out;
  background-color: #07b69e;
}

.link__hover-effect:hover::after {
  left: 0;
  width: 100%;
}

input,
textarea {
  width: 100%;
  background-color: #242424;
  color: white;
  outline: none;
  border: 3px solid #c0c4cc;
  border-top: none;
  border-left: none;
  border-right: none;
  height: 40px;
  transition: all 0.3s ease-in-out;
}

textarea {
  resize: vertical;
  min-height: 100px;
  margin-top: 8px;
}

label {
  font-size: 14px;
  font-weight: bold;
}

input:hover,
textarea:hover {
  border-color: #dcdfe6;
}

input:focus,
textarea:focus {
  border-color: #07b69e;
}

nav,
.scroll,
.header,
.shape {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s 0.5s ease-in-out;
}

.modal--open nav,
.modal--open .scroll,
.modal--open .header,
.modal--open .shape {
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
}

.modal--open {
  overflow: hidden;
}

.dark-theme .title,
.dark-theme .project__title,
.dark-theme .nav__link--anchor,
.dark-theme .fa-adjust,
.dark-theme .header__para {
  color: white;
}

.dark-theme .green {
  color: #07b69e;
}

.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 {
  background-color: white;
}

.dark-theme .mail__btn {
  background-color: #07b69e;
  color: #242424;
}

.dark-theme footer {
  background-color: #181818;
}

/*

LANDING PAGE

*/

#landing-page {
  min-height: 100vh;
}

.header {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: 24px;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  padding: 0 30px;
}

.header__para {
  font-size: 24px;
  line-height: 2;
  max-width: 450px;
  transition: all 0.3s ease-in-out;
}

.social__list {
  margin-top: 16px;
  display: flex;
}

.social__link {
  background-color: #07b69e;
  color: white;
  padding: 6px;
  width: 40px;
  height: 40px;
  font-size: 14px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mail__btn {
  width: 70px;
  height: 70px;
  font-size: 32px;
  border-radius: 50%;
  position: absolute;
  bottom: 32px;
  right: 40px;
  color: white;
  background-color: #07b69e;
  border: none;
  position: fixed;
  transition: all 0.3s ease-in-out;
  z-index: 100;
  box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.28);
}

.scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll__icon {
  width: 20px;
  height: 30px;
  border: 2px solid #242424;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll__icon::after {
  content: "";
  background-color: #242424;
  border-radius: 2px;
  width: 4px;
  height: 6px;
  animation: scroll 1s infinite ease-in-out 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: auto;
  padding: 30px;
}

.nav__link--list {
  display: flex;
  align-items: baseline;
}

.nav__link {
  margin: 0 12px;
}

.nav__link--anchor {
  font-size: 16px;
  color: #242424;
  font-weight: 700;
}

.fa-adjust {
  font-size: 24px;
}

/*

MODAL

*/

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  height: 700px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  opacity: 0;
  z-index: -1;
  transition: all 0.3s ease-in-out;
  border-radius: 8px;
}

.modal--open .modal {
  z-index: 70;
  box-shadow: 0 20px 80px 0 rgba(0, 0, 0, 0.55);
  opacity: 1;
}

.modal--open .modal__about,
.modal--open .modal__contact {
  transform: translateX(0%);
}

.modal__half {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.modal__about {
  background-color: rgb(245, 245, 245);
  transform: translateX(-110%);
  transition: transform 0.3s ease-in-out;
}

.modal__languages {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
}

.modal__language {
  width: calc(100% / 3);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.modal__language:hover .modal__language--name {
  transform: scale(1);
}

.modal__language:hover {
  filter: brightness(80%);
  transform: scale(0.9);
}

.modal__language--name {
  transition: all 0.3s ease-in-out;
  position: absolute;
  bottom: -10px;
  transform: scale(0);
  font-weight: bold;
}

.modal__language--img {
  width: 100%;
  max-width: 70px;
  min-height: 60px;
}

.modal__title {
  font-size: 26px;
}

.modal__sub-title {
  margin: 12px 0 24px 0;
  font-size: 14px;
}

.modal__para {
  margin-bottom: 24px;
}

.modal__contact {
  background-color: #242424;
  color: white;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.form__item {
  margin-bottom: 20px;
}

.form__submit {
  background-color: #07b69e;
  border: 2px solid #07b69e;
  color: white;
  width: 100%;
  max-width: 240px;
  padding: 12px 24px;
  font-size: 20px;
  transition: all 0.3s ease-in-out;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  border-radius: 8px;
}

.form__submit:hover {
  background-color: transparent;
  border-color: white;
}

.form__submit:active {
  color: #07b69e;
  border-color: #07b69e;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal__overlay--loading {
  background-color: #242424;
  font-size: 80px;
  display: none;
}

.fa-spinner {
  animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.modal__overlay--success {
  background-color: #07b69e;
  font-size: 40px;
  text-align: center;
  padding: 28px;
  font-weight: 700;
  display: none;
}

.modal__overlay--visible {
  display: flex;
  z-index: 1;
}

.modal__exit {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 36px;
  color: white;
  z-index: 100;
}

.modal__exit.none {
  display: none;
}

/*

PROJECTS

*/

.project__title {
  font-size: 48px;
  text-align: center;
}

.project {
  width: 80%;
  margin: 100px auto;
}

.project__img {
  transition: all 0.5s ease-in-out;
  width: 100%;
  display: flex;
}

.project__wrapper {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 20px 48px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.project__wrapper:hover .project__description {
  transform: translateY(-50%);
  opacity: 1;
}

.project__wrapper:hover .project__img {
  transform: scale(1.07);
  filter: blur(5px);
}

.project__wrapper:hover .project__wrapper--bg {
  opacity: 0.7;
}

.project__description {
  position: absolute;
  top: 50%;
  left: 50px;
  padding: 24px 24px 24px 0px;
  transform: translateY(100%);
  opacity: 0;
  color: white;
  max-width: 550px;
  transition: opacity 0.3s ease-in-out, transform 0.45s ease-in-out;
}

.project__description--title {
  font-size: 40px;
}

.project__description--sub-title {
  margin-top: 8px;
}

.project__description--link {
  color: white;
  font-size: 20px;
  margin-right: 16px;
}

.project__description--para {
  margin: 16px 0;
}

.project__wrapper--bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1c1d25;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

/* 

FOOTER

*/

footer {
  position: relative;
  background-color: #242424;
  display: flex;
  padding: 6% 0;
}

.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__logo--img {
  width: 70px;
  filter: invert(1);
}

.footer__social--list {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 500px;
  margin: 28px 0;
}

.footer__social--link,
.footer__copyright {
  color: white;
}

/* 

SHAPES

*/

.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;
}

/* 

RESPONSIVENESS

*/

/* Small phones, tablets, large smartphones */
@media (max-width: 768px) {
  .modal--open {
    overflow: visible;
  }
  .modal--open #projects {
    display: none;
  }

  .title {
    font-size: 80px;
  }

  .header__para {
    font-size: 20px;
  }

  .modal {
    height: auto;
    width: 80%;
    flex-direction: column-reverse;
    margin-top: 5vh;
    top: 60%;
  }

  input {
    height: 30px;
  }

  textarea {
    min-height: 40px;
  }

  .modal__half {
    width: 100%;
  }

  .modal__para {
    font-size: 12px;
  }

  .form__submit {
    max-width: 200px;
  }

  .modal__title {
    font-size: 20px;
  }

  .modal__sub-title {
    margin: 8px 0;
  }

  .modal__language {
    padding: 20px;
  }

  .modal__language--img {
    max-width: 70px;
    min-width: 40px;
    max-height: 70px;
    min-height: 40px;
  }

  .modal--open .mail__btn {
    display: none;
  }

  .project__description--title {
    font-size: 36px;
  }

  .project__description--para {
    font-size: 14px;
  }
}

/* Small phones */

@media (max-width: 480px) {
  .title {
    font-size: 52px;
  }

  .header__para {
    font-size: 18px;
  }

  .nav__link:nth-child(1) {
    display: none;
  }

  .project {
    margin: 50px auto;
  }

  .project__title {
    font-size: 40px;
  }

  .project__description {
    left: 0;
    padding: 0;
    width: 100%;
    text-align: center;
  }

  .project__description--title {
    font-size: 24px;
  }

  .project__description--para {
    display: none;
  }

  .project__description--sub-title {
    margin-bottom: 8px;
  }

  .modal {
    margin-top: 10vh;
  }

  .modal__half {
    padding: 20px;
  }

  .form__submit {
    max-width: 150px;
  }

  .modal__overlay--success {
    font-size: 32px;
  }

  .modal__language {
    padding: 12px;
  }

  .modal__language--img {
    max-width: 50px;
    min-height: 40px;
  }

  .modal__language:hover .modal__language--name {
    transform: scale(0.8);
  }

  .modal__exit {
    top: 20px;
    right: 30px;
  }
}
