@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
*{
    font-family: "Lato", sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* smooth scrolling */
}

h1, h2, h3, h4, h5, h6, span{
    color: #242424;
    text-align: center;
    line-height: 1.25;
}

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--black:after{
    background-color: black;
}

.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__purple{
    color: #6030b1;
}

section:nth-child(even){
    background-color: #f8f8f8; /* light gray background for even sections */
}

.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: #242424;
    font-weight: 700;
}

.nav__link--anchor-primary{
    background-color: #6030b1;
    padding: 8px /*top and bottom*/ 20px /*left and right*/;
    border-radius: 50px /*curves the edges*/;
    color: white;
    transition: all 300ms ease;
    /*ease makes the transition on the hover effect smooth */
}

.nav__link--anchor-primary:hover{
    /* this adds and alters a hiver effect for the contact button*/
    background-color: #5d3eff;
}

.personal__logo{
    font-size: 24px;
    color: #6030b1;
    margin: 0 12px;
    font-weight: bold;
}

/* ABOUT ME */

#about-me{
    min-height: 100vh; /* vh = viewport height, 100vh = full height of the screen */
    display: flex;
    flex-direction: column;
}

.about-me__info{
    display: flex;
    flex-direction: column;
}
.about-me__info--container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-me__picture--mask{
    width: 170px;
    height: 190px;
    border-radius: 50%; /* makes the picture a circle */
    overflow: hidden;   
    box-shadow: 0 8px 16px rgba(0,0,0,0.16); /* adds a subtle shadow below the picture */
    margin-bottom: 28px; /* space between the picture and the text below it */
    animation: animate-profile-picture 800ms 200ms backwards; /* animates the profile picture */
}

@keyframes animate-profile-picture{
    0%{
        transform: scale(0);
    }
    80%{
        transform: scale(1.1);
    }
    100%{
        transform: scale(1);
    }
}

.about-me__picture{
    width: 68%;

    /*improving my own picture*/
    transform: scale(1.47);
    padding-top: 12px; /* moves the picture down a bit. increments of 4px are good. */
    padding-bottom: 120px;
}

.about-me__info--title{
    margin-bottom: 16px;
    animation: fade-up 650ms 400ms backwards; /* animates the title */
}

.about-me__info--para{
    font-size: 20px;
    margin-bottom: 28px;
    animation: fade-up 650ms 600ms backwards; /* animates the paragraph */
}

.about-me__link{
    font-size: 20px;
    color: #242424;
    padding: 0 16px;
}

.about-me__links{
    animation: fade-up 650ms 800ms backwards; /* animates the link */
}

@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%;
    padding: 60px;
    animation: fade-in 1200ms 800ms backwards; /* animates the image */

}

@keyframes fade-in {
    0%{
        opacity: 0;
    }

    100%{
        opacity: 1;
    }
}

.wave{
    display: inline-block;
    animation: animate-wave 2.5s infinite;
    transform-origin: 70% 70%; /* sets the pivot point for the wave animation */
}

@keyframes animate-wave{
    0%{
        transform: rotate(0deg);
    }
    15%{
        transform: rotate(14deg);
    }
    30%{
        transform: rotate(-8deg);
    }
    40%{
        transform: rotate(14deg);
    }
    50%{
        transform: rotate(-4deg);
    }
    60%{
        transform: rotate(10deg);
    }
    70%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(0deg);
    }
}

/* TECH - STACK */

.language__img{
    width: 100%;
    max-width: 100px;
}

.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{
    /* when hovering over the language div, the name will appear */
    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{
    display: flex;
    box-shadow: 0 20px 80px rgba(0,0,0,0.45);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.project__wrapper:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #1c1d25;
    opacity: 0;
    transition: opacity 450ms ease;
    z-index: 2; /* ensures the background is above the image */
}

.project:hover .project__wrapper:before{
    /* when hovering over the project, the background will appear */
    opacity: 0.7;
}

.project:hover .project__img{
    /* when hovering over the project, the image will be zoomed in */
    transform: scale(1.07);
    filter: blur(5px);
}

.project:hover .project__description{
    /* when hovering over the project, the description will appear */
    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; /* ensures the description is above the image */
    opacity: 0;
    transition: transform 450ms, opacity 300ms;
}

.project__description--title{
    font-size: 40px;
    margin-bottom: 12px;
}

.project__description--para{
    margin: 16px 0;
}

.project__description--link{
    font-size: 20px;
    margin-right: 16px;
    text-decoration: none;
}

.project__description--title,
.project__description--sub-title,
.project__description--para,
.project__description--link {
    text-align: left;
    color: #fff;
}

/* FOOTER */

footer{
    background-color: #242424;
}

.footer__social--list{
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 28px;
}
.footer__row{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* remember that fdc inverses the roles of ai and jc */
    padding: 8% 0;
}

.footer__logo--img {
    width: 70px;
    height: 70px;
}

.footer__social--link,
.footer__copyright,
.footer__logo--popper {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    margin: 8px 0;
}

.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;
    font-size: large;
}

.footer__anchor:hover .footer__logo--popper{
    transform: translateX(70px);
    
    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); /* 3 languages per row */
    }

    .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; /* hide all links except the last one */
    }

    .project__description{
        padding: 0;
        left:0;
        width: 100%;
    }
    .project__description--para{
        display: none; /* hide the project description paragraph */
    }

    .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;
    }
}
