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

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

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, span {
  color: #242424;
  text-align: center;
  line-height: 1.25;
}

h1 {
  font-size: 36px;
}

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

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

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--blue:after {
  background-color: #002366;
}

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

li {
  list-style-type: none;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.container {
  padding: 50px 0;
}

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

.text--blue {
  color: #002366;
}

section:nth-child(even) {
  background-color: #f8f8f8;
}

.section__title {
  margin-bottom: 20px;
  animation: fade-up 650ms 300ms backwards;
}

/* 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;
  flex-wrap: wrap;
  overflow:hidden;
  animation: animate-pop-up 500ms 200ms backwards;
}

.nav-container{
  position:fixed;
  width: 100%;
  background-color: white;
  z-index: 5;
}

.personal__logo {
  font-size: 24px;
  font-weight: bold;
  display: block;
  background-size: cover;
  margin: 0 12px;
}

.nav__link--anchor {
  margin: 0 12px;
  color: #002366;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  width: 60%;
  height: 100%;
  justify-content: space-around;
  align-items: center;
  margin-left: auto;
}

.nav-links li a {
  color: #002366;
  text-decoration: none;
  font-size: 16px;
}

.hamburger {
  display: none;
}

/* SLIDING BACKGROUND */
/* ============================================================================================ */

.slider{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider .slide{
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: circle(0% at 0 50%);
}

.slider .slide.active{
  clip-path: circle(150% at 0 50%);
  transition: 0.5s;
}

.slider .slide img{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}

.slider .slide .info{
  position: relative;
  padding: 50px;
  border-radius: 5px;
  /* color: #222; */
  /* background: rgba(255, 255, 255, 0.3); */
  /* box-shadow: 0 5px 25px rgb(1 1 1 / 5%); */
  animation: fade-up 650ms 400ms backwards;
}

.slider .slide .info h1{
  margin-top: 50px;
  margin-bottom: 50px;
  vertical-align: middle;
  text-shadow: 2px 2px 8px black;
  color: white;
}

.slider .slide .info h2{
  font-size: 2em;
  font-weight: 800;
  color: white;
}

.slider .slide .info p{
  font-size: 1em;
  font-weight: 400;
  color: white;
}

.navigation{
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.navigation-gallery{
  padding-top: 27.5%;
  padding-bottom: 27.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slider:hover,
.navigation:hover, 
.navigation-gallery:hover {
  opacity: 1;
}

.prev-btn, .next-btn{
  z-index: 4;
  font-size: 2em;
  color: #222;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  cursor: pointer;
}

.prev-btn{
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.next-btn{
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.navigation-visibility{
  z-index: 4;
  display: flex;
  justify-content: center;
}

.navigation-visibility .slide-icon{
  z-index: 4;
  background: rgba(255, 255, 255, 0.5);
  width: 20px;
  height: 10px;
  transform: translateY(-50px);
  margin: 0 6px;
  border-radius: 2px;
  box-shadow: 0 5px 25px rgb(1 1 1 / 20%);
}

.navigation-visibility .slide-icon.active{
  background: white;
}

/* ABOUT ME */
/* ============================================================================================ */

#about-me {
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-blend-mode: lighten;
}

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

.about-me__info--container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

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

.about-me__picture {
  width: 100%;
  /* transform: scale(1.1); */
  /* padding-top: 8px; */
}

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

.social-icon__links {
  animation: fade-up 650ms 500ms backwards;
}

.social-icon__link {
  font-size: 20px;
  color: black;
  padding: 0 16px;
}

.about-me__info--para {
  font-size: 20px;
  animation: fade-up 650ms 600ms backwards;
}

.about-me__img--container {
  flex: 1;
  display: flex;
  align-items: center;
}
.about-me__img {
  width: 100%;
  animation: fade-in 1200ms 800ms backwards;
}

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

@keyframes animate-pop-up {
  0% {transform: scale(0);}
  80% {transform: scale(1.1);}
  100% {transform: scale(1);}
}

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

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

@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;
  border-radius: 15%;
  box-shadow: 0 8px 16px rgba(172, 166, 166, 0.5);
}

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

.language {
  width: 25%;
  display: flex;
  justify-content: center;
  position: relative;
  animation: animate-pop-up 800ms 200ms backwards;
}

.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__list {
  padding-top: 40px;
}

.project__list-temporary {
  padding-top: 40px;
  visibility: hidden;
}

.project, 
.project-captionless {
  margin-bottom: 100px;
}

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

.project__left_right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  animation: fade-up 650ms 400ms backwards;
}

.project__left,
.project__right {
  display: flex;
  flex-direction: column;
  margin-left: 3%;
  margin-right: 3%;
  width: 50%;
}

.project__wrapper-captionless,
.project__wrapper {
  display: flex;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  animation: animate-pop-up 500ms 200ms backwards;
}

.project__img {
  width: 100%;
  transition: all 500ms ease;
}

.project__wrapper {
  display: flex;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  animation: animate-pop-up 500ms 200ms backwards;
}

.project__wrapper:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #1c1d25;
  opacity: 0;
  transition: all 450ms ease;
  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__description {
  position: absolute;
  top: 50%;
  padding: 10%;
  transform: translateY(100%);
  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: white;
  margin: 12px 0;
}

/* TABLE */
/* ============================================================================================ */

table {
  border-collapse: collapse;
}
table, th, td {
  border: 1px solid black;
}
th, td {
  padding: 10px;
  font-weight: normal;
}
table.secondary caption {
  caption-side: bottom;
}

/* FOOTER */
/* ============================================================================================ */

footer {
  background-color: #242424;
}

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

.footer__logo--img {
  width: 70%;
  height: 70%;
  font-size: 24px;
  align-self: center;
  display: block;
  margin: 5px auto;
  animation: animate-pop-up 500ms 200ms backwards;
}

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

.footer__links {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
  animation: fade-up 650ms 400ms backwards;
}

.footer__links--left{
  display: flex;
  flex-direction: column;
  width: 35%; 
  margin-left: 10%;
}

.footer__links--right{
  display: flex;
  flex-direction: column;
  width: 35%; 
  margin-left: 10%;
}

.footer__link,
.footer__logo--popper {
  color: white;
  margin-top: 10px;
  margin-right: auto;
  text-align: left;
}

.footer__copyright{
  color: white;
  margin: 5px auto;
  text-align: center;
}

.footer__anchor {
  margin-bottom: 20px;
  position: relative;
}

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

/* BUTTON */
/* ============================================================================================ */

.button {
  color: #002366;
  font-weight: 700;

  background-color: white;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);

  margin-bottom: 30px;
  margin-top: 30px;
  margin-left: 8%;
  margin-right: 8%;
  width: 85%;
  padding: 8px;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-radius: 12px;
  animation: fade-up 650ms 600ms backwards;
}

.button:hover {
  color: white;
  background-color: #002366;
}

.icon-and-text{
  display: flex;
  font-size: relative;
}

/* FLOATING ICON */
/* ============================================================================================ */

.floating-icon{
  display: block;
  background-size: cover;
	position:fixed;
	width:50px;
	height:50px;
	bottom:20px;
	right:20px;
  animation: animate-pop-up 500ms 200ms backwards;
  z-index: 10;
}

.floating-icon-shadow{
	position:fixed;
	width:50px;
	height:50px;
	bottom:20px;
	right:20px;
  border-radius: 50%;
  background-color: #cfd8db;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.45);
  animation: animate-pop-up 500ms 200ms backwards;
  z-index: 9;
}

/* Small phones, tablets, large smartphones */
/* ============================================================================================ */

@media (max-width: 1025px) {
  
  .navigation{
    height: 50vh;
  }

}

@media (max-width: 975px) {
  
  nav {
    height: 70px;
  }

  h1 {
    font-size: 25px;
  }

  h2 {
    font-size: 18px;
  }

  .about-me__info--para,
  .footer__section {
    font-size: 17px;
  }

  .hamburger {
    color: #002366;
    cursor: pointer;
    z-index: 2;

    background-color: transparent;
    margin: 0 12px;
    font-size: 20px;
    border: 0;
    cursor: pointer;
    display: block;
  }
  
  .hamburger:focus {
    outline: none;
  }

  .nav-links {
    background: white;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    clip-path: circle(0px at 100% 0%);
    -webkit-clip-path: circle(0px at 100% 0%);
    transition: all 0.3s ease-out;
    pointer-events: none;
    z-index: 1;
    justify-content: center;
    position:absolute;
    top:0px; right:0px; bottom:0px; left:0px;
  }

  .nav-links.open {
    justify-content: center;
    clip-path: circle(2000px at 100% 0%);
    -webkit-clip-path: circle(2000px at 100% 0%);
    pointer-events: all;
    position:absolute;
    top:0px; right:0px; bottom:0px; left:0px;
  }

  .lock-scroll {
    overflow: hidden;
  }

  .nav-links li {
    opacity: 0;
    margin: 20px auto;
  }

  .nav-links li a {
    font-size: 20px;
  }

  .nav-links li:nth-child(1) {
    transition: all 0.3s ease 0.05s;
  }
  .nav-links li:nth-child(2) {
    transition: all 0.25s ease 0.1s;
  }
  .nav-links li:nth-child(3) {
    transition: all 0.2s ease 0.15s;
  }
  .nav-links li:nth-child(4) {
    transition: all 0.15s ease 0.2s;
  }
  .nav-links li:nth-child(5) {
    transition: all 0.1s ease 0.25s;
  }
  .nav-links li:nth-child(6) {
    transition: all 0.05s ease 0.3s;
  }

  li.fade {
    opacity: 1;
  }

  .navigation{
    height: 50vh;
  }

  .project__list-temporary {
    padding: 0%;
    max-height: 0;
  }

  .project, 
  .project-captionless {
    margin-bottom: 50px;
  }

  .project__left_right {
    flex-direction: column;
  }
  
  .project__left,
  .project__right {
    width: 100%;
  }

  .project__description--title {
    font-size: 20px;
    line-height: 1;
    text-align: left;
  }

  .project__description--sub-title {
    font-size: 12px;
    text-align: left;
  }

  .project__description--para {
    display: none;
  }

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

/* SMALL PHONES */
/* ============================================================================================ */

@media (max-width: 370px) {

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 15px;
  }

  .about-me__info--para,
  .footer__section {
    font-size: 15px;
  }

  .personal__logo {
    font-size: 18px;
  }

  .nav__link:not(:last-child) {
    display: none;
  }

}

/* ============================================================================================ */