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

:root {
  --primary-color: #fff;
  --secondary-color: #181818;
  --tertiary-color: #145da0;
}

.dark-mode {
  --primary-color: #181818;
  --secondary-color: #fff;
  --tertiary-color: #189ab4;
}

* {
  font-family: "Lato", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h4,
h5,
h6,
span {
  color: var(--secondary-color);
  text-align: center;
  line-height: 1.25;
}

h1 {
  font-size: 36px;
}

h3 {
  color: #fff;
  text-align: left;
  font-weight: 100;
  line-height: 2.2;
}

p {
  line-height: 1.5;
  font-size: 16px;
}

a {
  text-decoration: none;
  position: relative;
  transition: opacity 300ms ease;
}

section {
  background-color: var(--primary-color);
}

i:hover {
  opacity: 0.7;
}

.link_hover-effect:after {
  content: "";
  position: absolute;
  height: 3px;
  width: 0;
  bottom: -3px;
  right: 0;
  transition: all 300ms ease;
}

.link_hover-effect--white:after {
  background-color: #fff;
}

.link_hover-effect--black:after {
  background-color: #000;
}

.link_hover-effect:hover:after {
  width: 100%;
  left: 0;
}

li {
  list-style-type: none;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.container {
  padding: 20px 0;
}

.row {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 12px;
}

.text-blue {
  color: var(--tertiary-color);
}

.section_title {
  margin-bottom: 20px;
}

/* NAVIGATION BAR */

nav {
  height: 100px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
}

.nav_link--list {
  display: flex;
}

.nav_link--anchor {
  margin: 0 12px;
  color: var(--secondary-color);
  font-weight: 700;
}

.nav_link--anchor-primary {
  background-color: var(--tertiary-color);
  padding: 8px 20px;
  border-radius: 50px;
  color: white;
  transition: all 300ms ease;
}

.nav_link--anchor-primary:hover {
  background-color: #189ab4;
}

.personal_logo {
  font-size: 24px;
  color: var(--tertiary-color);
  margin: 0 12px;
  font-weight: bold;
}

.dark_mode {
  width: 35px;
  cursor: pointer;
  position: relative;
  bottom: 8px;
}

/* ABOUT ME */

#about-me {
  min-height: 120vh;
  display: flex;
  flex-direction: column;
}

.about-me_info {
  display: flex;
  flex-direction: column;
}

.about-me_info--container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.about-me_picture--mask {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
  margin-bottom: 28px;
  animation: animate-profile-picture 800ms 200ms backwards;
}

@keyframes animate-profile-picture {
  0% {
    transform: scale(0);
  }

  80% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.about-me_picture {
  width: 100%;
  transform: scale(1.5);
  padding-top: 8px;
}

.about-me_info--title {
  margin-bottom: 16px;
  animation: fade-up 650ms 400ms backwards;
}

.about-me_info--para {
  color: var(--secondary-color);
  font-size: 20px;
  margin-bottom: 28px;
  animation: fade-up 650ms 600ms backwards;
}

.about-me_link {
  font-size: 20px;
  color: var(--secondary-color);
  padding: 0 16px;
}

.about-me_links {
  animation: fade-up 650ms 800ms backwards;
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-me_img--container {
  flex: 1;
  display: flex;
  align-items: center;
}

.about-me_img {
  width: 100%;
  height: 90%;
  animation: fade-in 1200ms 800ms backwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.wave {
  display: inline-block;
  animation: animate-wave 500ms infinite ease-in-out;
}

@keyframes animate-wave {
  0% {
    transform: rotate(0);
  }

  50% {
    transform: rotate(30deg);
  }

  100% {
    transform: rotate(0);
  }
}

/* TECH - STACK */

.language_img {
  width: 100%;
  max-width: 100px;
  transition: all 300ms;
}

.language:hover .language_img {
  filter: brightness(80%);
  opacity: 0.86;
  transform: scale(0.9);
}

.language {
  width: 25%;
  display: flex;
  justify-content: center;
  position: relative;
}

.language_img--wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 16px;
}

.language_list {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.language_name {
  position: absolute;
  bottom: 0;
  transform: scale(0);
  transition: all 300ms;
  font-size: 20px;
  opacity: 0;
}

.language:hover .language_name {
  transform: scale(1);
  opacity: 1;
}

/* PROJECTS */

.project {
  margin-bottom: 65px;
}

.project:last-child {
  margin-bottom: 40px;
}

.project_img {
  width: 100%;
  transition: all 700ms ease;
  border-radius: 20px;
}

.project_wrapper {
  display: flex;
  box-shadow: 0 20px 100px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

.project_wrapper:before {
  content: "";
  position: absolute;
  transition: all 700ms ease;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #1c1d25;
  opacity: 0;
  z-index: 2;
  transform: translateY(100%);
}

.project:hover .project_wrapper:before {
  transform: translateY(0);
  opacity: 0.7;
}

.project:hover .project_img {
  transform: scale(1.07);
  filter: blur(5px);
}

.project:hover .project_description {
  opacity: 1;
  transform: translateY(-50%);
}

.project_list {
  padding-top: 40px;
}

.project_description {
  position: absolute;
  top: 50%;
  left: 90px;
  transform: translateY(100%);
  max-width: 550px;
  z-index: 3;
  opacity: 0;
  transition: transform 450ms, opacity 300ms;
}

.project_description--title {
  font-size: 40px;
}

.project_description--para {
  margin: 16px 0;
}

.project_description--link {
  font-size: 20px;
  margin-right: 16px;
}

.project_description--title,
.project_description--sub-title,
.project_description--para,
.project_description--link {
  text-align: left;
  color: #fff;
}

/* FOOTER */

footer {
  background-color: var(--tertiary-color);
}

.footer_social--list {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-around;
  margin-bottom: 8px;
}

.footer_contact {
  width: 100%;
  max-width: 500px;
}

.footer_contact--information {
  font-weight: bold;
  color: #fff;
}

.footer_row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3% 0;
}

.footer_logo--img {
  width: 70px;
  height: 70px;
}

.footer_social--link,
.footer_logo--popper {
  color: #fff;
}

.footer_logo--popper {
  position: absolute;
  right: 0;
  top: 30px;
  font-weight: 700;
  opacity: 0;
  transition: all 300ms ease;
}

.footer_anchor {
  margin-bottom: 10px;
  position: relative;
}

.footer_anchor:hover .footer_logo--popper {
  transform: translateX(60px);
  opacity: 1;
}

/* Small phones, tablets, large smartphones */
@media (max-width: 768px) {
  nav {
    height: 68px;
  }

  h1 {
    font-size: 28px;
  }

  .about-me_info--para {
    font-size: 18px;
  }

  .language {
    width: calc(100% / 3);
  }

  .project_description--para {
    font-size: 14px;
  }

  .project_description {
    left: 30px;
    padding-right: 30px;
  }
}

/* SMALL PHONES */
@media (max-width: 480px) {
  .nav_link:not(:last-child) {
    display: none;
  }

  .project_wrapper {
    border-radius: 0;
  }

  .project_description {
    padding: 0;
    left: 0;
    width: 100%;
  }

  .project_description--para {
    display: none;
  }

  .project_description--links {
    display: flex;
    justify-content: center;
  }

  .project_description--title {
    font-size: 32px;
    line-height: 1;
    text-align: center;
  }

  .project_description--sub-title {
    text-align: center;
    margin: 12px 0;
  }
}
