@import url('https://fonts.googleapis.com/css2?family=Lato&family=Raleway:wght@800&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;
}


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 0.3s ease;
}

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

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

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

p {
    line-height: 1/5;
    font-size: 16px;
}

li {
    list-style-type: none;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}


/* NAVIGATION */
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: #242424;
    font-weight: 700;
    
}


.nav__link--anchor-primary {
    background-color: blue;
    padding: 8px 20px;
    color: white;
    border-radius: 50px;
    transition: all 300ms ease;
}


.nav__link--anchor-primary:hover {
    background-color: #677af2;
}

.personal__logo {
    font-size: 24px;
    color: blue;
    margin: 0 12px;
    font-weight: bold;
}

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


.text--blue {
    color: blue;
}


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

.section__title {
    margin-bottom: 20px;
}

.container {
    padding: 50px 0;
}

/* ABOUT ME */

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


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


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

.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 300ms 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.035);
    padding-bottom: 2996px;  */
    height: 100%;
    object-fit: cover;
    object-position: center 80%;   
} 

.about-me__links {
    margin-top: 28px;
    margin-bottom: 36px;
    animation: fade-in 650ms 800ms backwards;
}

.about-me__link {
    font-size: 20px;
    color: black;
    padding: 0 16px;
    
}

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

.about-me__img {
    width: 80%;
    margin: 0 auto;
    animation: fade-in 1200ms 800ms backwards;
}


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

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

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

.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 ease;
}

.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;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 25px 16px;
}

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

.language__name {
    position: absolute;
    bottom: 0;
    transform: scale(0);
    transition: all 300ms;
}

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

/* PROJECTS */
.project {
    margin-bottom: 135px;
}

.project__list {
    padding-top: 40px;
}


.project__img {
    width: 100%;
    transition: all 450ms ease;
    aspect-ratio: 16 / 8;
}

.project__wrapper {
    display: flex;
    box-shadow: 0 20px 80px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

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

.project:hover .project__wrapper:before,
.project:active .project__wrapper:before {
    opacity: 0.7;
    transform: translateY(0);
}

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

.project__description {
    position: absolute;
    top: 50%;
    left: 90px;
    max-width: 550px;
    transform: translateY(100%);
    z-index: 3;
    opacity: 0;
    transition: transform 0.45s, opacity 0.3s ease;
}

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

.project__description--title,
.project__description--subtitle, 
.project__description--text,
.project__description--link {
    text-align: left;
    color: #fff;
    
}

.project__description--title {
    font-size: 30px;
}

.project__description--subtitle {
    font-size: 18px;
}

.project__description--text {
    margin: 16px 0;
}

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


/* FOOTER */
footer {
    background-color: #242424;
}

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

.footer__social--links {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
}


.footer__social--link,
.footer__copyright {
    color: #fff;
}

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

    h1 {
        font-size: 28px;
    }

    .about-me__info--text {
        font-size: 18px;
    }

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

    .project__description--text {
        font-size: 14px;

    }

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

}

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

.project__description--title, .project__description--subtitle {
    margin: 12px 0;
    text-align: center;
}

.project__description--title {
    font-size: 28px;
    line-height: 1;
}

.project__description--subtitle {
    font-size: 16px;
}


.project__description--text {
        display: none;
    }

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

.project__wrapper {
    border-radius: 0;
  }


}