@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto:wght@300;400;500;700&display=swap");

:root {
  --text: #070a10;
  --background: #f1f4fa;
  --primary: #272c34;
  --secondary: #9bb4de;
  --accent: #658ed0;

  --text-50: #edf1f7;
  --text-100: #dce2ef;
  --text-200: #b8c5e0;
  --text-300: #95a9d0;
  --text-400: #718cc1;
  --text-500: #4e6fb1;
  --text-600: #3e598e;
  --text-700: #2f436a;
  --text-800: #1f2c47;
  --text-900: #101623;
  --text-950: #080b12;

  --background-50: #ecf0f8;
  --background-100: #dae2f1;
  --background-200: #b4c4e4;
  --background-300: #8fa7d6;
  --background-400: #6989c9;
  --background-500: #446cbb;
  --background-600: #365696;
  --background-700: #294170;
  --background-800: #1b2b4b;
  --background-900: #0e1625;
  --background-950: #070b13;

  --primary-50: #f0f2f4;
  --primary-100: #e2e5e9;
  --primary-200: #c5cad3;
  --primary-300: #a8b0bd;
  --primary-400: #8b96a7;
  --primary-500: #6e7b91;
  --primary-600: #586374;
  --primary-700: #424a57;
  --primary-800: #2c313a;
  --primary-900: #16191d;
  --primary-950: #0b0c0f;

  --secondary-50: #ecf1f9;
  --secondary-100: #d9e2f2;
  --secondary-200: #b3c5e6;
  --secondary-300: #8ca8d9;
  --secondary-400: #668bcc;
  --secondary-500: #406fbf;
  --secondary-600: #335899;
  --secondary-700: #264273;
  --secondary-800: #192c4d;
  --secondary-900: #0d1626;
  --secondary-950: #060b13;

  --accent-50: #ebf1f9;
  --accent-100: #d8e2f3;
  --accent-200: #b1c6e7;
  --accent-300: #8aa9db;
  --accent-400: #638ccf;
  --accent-500: #3c70c3;
  --accent-600: #30599c;
  --accent-700: #244375;
  --accent-800: #182d4e;
  --accent-900: #0c1627;
  --accent-950: #060b14;
}

* {
  font-family: "Lato", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
span {
  color: var(--text);
  text-align: center;
  line-height: 1.25;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  position: relative;
  transition: opacity 300ms ease;
}

a:hover {
  opacity: 0.7;
}

h1 {
  font-size: 36px;
}

p {
  line-height: 1.5;
  font-size: 16px;
}

li {
  list-style-type: none;
}

.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;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.container {
  padding: 50px 0;
}

.row {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 12px;
}

.text--red {
  color: var(--secondary-500);
}

/* for every 2nd (even #) section, the bg color will be this */
section:nth-child(even) {
  background-color: var(--background-100);
}

section:nth-child(odd) {
  background-color: var(--background-50);
}

.section__title {
  margin-bottom: 20px;
}

/* 

NAV 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: black;
  text-decoration: none;
  font-weight: 700;
}

.nav__link--anchor-primary {
  background-color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  color: white;
  transition: all 300ms ease;
}

.nav__link--anchor-primary:hover {
  background-color: var(--primary-800);
}

.personal__logo {
  font-size: 24px;
  color: var(--secondary-500);
  margin: 0 12px;
  font-weight: 700;
}

/* ABOUT ME */

#about-me {
  min-height: 100vh;
  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 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 16px rgba(0, 0, 0, 0.16);
  margin-bottom: 28px;
  animation: animate-pfp 800ms 200ms backwards;
}

@keyframes animate-pfp {
  0% {
    transform: scale(0);
  }

  80% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.about-me__picture {
  width: 100%;
  /* Improve Pic */
  transform: scale(1.5);
}

.about-me__info--title {
  margin-bottom: 16px;
  animation: fade-up 650ms 300ms backwards;
}

.about-me__info--para {
  font-size: 20px;
  margin-bottom: 28px;
  animation: fade-up 650ms 600ms backwards;
}

.about-me__links {
  animation: fade-up 650ms 800ms backwards;
}

.about-me__link {
  font-size: 20px;
  color: black;
  text-decoration: none;
  padding: 0 16px;
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-me__img--container {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 16px;
}

.about-me__img {
  width: 100%;
  animation: fade-up 650ms 800ms backwards;
}

@keyframes fade-up {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* 

TECH STACK

*/

.language__img {
  width: 100%;
  max-width: 100px;
  transition: all 300ms;
}

.language:hover .language__img:hover {
  filter: brightness(80%);
  opacity: 0.8;
  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;
  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: 135px;
}

.project:last-child {
  margin-bottom: 40px;
}

.project__img {
  width: 100%;
  transition: all 500ms ease;
}

.project__wrapper {
  box-shadow: 0 20px 80px black;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  position: relative;
}

.project__wrapper:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #1c1d25;
  opacity: 0;
  transition: 450ms ease;
  z-index: 2;
}

.project:hover .project__wrapper:before {
  opacity: 0.7;
}

.project:hover .project__img {
  transform: scale(1.07);
  filter: blur(5px);
}

.project__list {
  padding-top: 40px;
}
.project:hover .project__description {
  opacity: 1;
  transform: translateY(-50%);
}

.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;
  color: white;

}

.project__description--link {
  font-size: 20px;
  margin-right: 16px;
  text-decoration: none;
  color: #658ed0;
}

.project__description--title,
.project__description--sub-title,
.project__description--para .project__description--link {
  text-align: left;
  color: #fff;
}

/* 

FOOTER

*/

footer {
  background-color: var(--accent);
}

.footer__social--link,
.footer__logo--popper,
.footer__copyright {
  color: white;
}

.footer__social--list {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-around;
  margin-bottom: 28px;
}

.footer__row {
  padding: 8% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__logo--img {
  width: 70px;
  height: 70px;
}

.footer__logo--popper {
  position: absolute;
  right: 0;
  top: 30px;
  font-weight: 700;
  opacity: 0;
  transition: all 300ms ease;
}

.footer__anchor {
  margin-bottom: 20px;
  position: relative;
}

.footer__anchor:hover .footer__logo--popper {
  transform: translateX(60px);
  opacity: 1;
}

/* 

DEVICE RESPONSIVENESS

*/

@media (max-width: 768px) {
  nav {
    height: 68px;
  }

  h1 {
    font-size: 28px;
  }

  .about-me__info--para {
    font-size: 18px;
  }

  .language {
    width: calc(100% / 2);
  }

  .project__description--para {
    font-size: 14px;
  }

  .project__description {
    padding-right: 30px;
    left: 30px;
  }
}

@media (max-width: 480px) {
  .nav__link:not(:last-child) {
    display: none;
  }

  .lastname {
    display: none;
  }

  .project__description {
    padding: 0;
    left: 0;
    width: 100%;
  }

  .project__description--para {
    display: none;
  }

  .project__description--links {
    justify-content: center;
    display: flex;
  }

  .project__description--title {
    line-height: 1;
    font-size: 32px;
  }

  .project__description--sub-title {
    text-align: center;
    margin: 12px 0;
  }
}

/* 

draggy

*/

.dragon {
  display: inline-block;
  animation: animate-dragon 2000ms infinite ease-in-out;
}

@keyframes animate-dragon {
  0% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(30deg);
  }
  100% {
    transform: rotate(0);
  }
}
