@import url('https://fonts.googleapis.com/css2?family=Geom:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Geom', sans-serif;
    color: #222c1c;
}

html {
    scroll-behavior: smooth;
    background-color: #f2f5ef;
}

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

.text--green {
    color:#384d2f;
}

h1 {
    font-size: 36px;
}

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

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

a:hover {
    opacity: 0.8;
}


.link__hover-effect:after {
    content: "";
    position: absolute;
    height: 3px;
    background-color: #384d2f;
    width: 0;
    bottom: -3px;
    right: 0;
    transition: all 300ms ease;
}

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

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

.section__title {
    margin-bottom: 20px;
}

/* 

NAVIGATION BAR

 */

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

.nav__link--list {
    display: flex;
}

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

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

.nav__link--anchor-primary:hover {
    background-color: #222c1c;
}

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

/* 

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;
    margin-top: 50px;
}

.about-me__pic--mask {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    animation: animate-profile-pic 800ms 200ms backwards;
    margin: 16px;
}

@keyframes animate-profile-pic {

    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

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

.about-me__pic {
    width: 100%;
}

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

.about-me__info--para {
    font-size: 20px;
    margin-bottom: 28px;
    animation: fadeUp 650ms 500ms backwards;
}

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

.about-me__links {
    animation: fadeUp 650ms 600ms backwards;
}

@keyframes fadeUp {

    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%;
    animation: fadeIn 1200ms 800ms backwards;
    margin: 30px;
}

@keyframes fadeIn {

    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.emoji {
    display: inline-block;
    animation: animate-emoji 5s infinite ease-in-out;
}

@keyframes animate-emoji {

    0% {
        transform: rotate(-20deg);
    }

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

    100% {
        transform: rotate(-20deg);
    }
    
}

/*

TECH STACKS

*/

.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: 135px;
}

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

.project__img {
    width: 100%;
    height: 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;
}

.project:hover .project__wrapper:before {
    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:#222c1c;
}

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

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

.footer__logo--img {
    width: 170px;
    height: 150px;
}

.footer__social--link,
.footer__copyright,
.footer__logo--popper {
    color: #dae3d3;
}

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

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

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


/*

TABLETS

*/

@media (max-width: 728px) {

    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 {
        left: 30px;
        padding-right: 30px;
    }
}

/*

SMALL PHONES

*/

@media (max-width: 480px) {

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

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

    .project__description--para {
        display: none;
    }

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

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

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