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

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

html {
    scroll-behavior: smooth;
}

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

a: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: #000;
}

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

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

h1 {
    font-size: 32px;
}

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

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

.text--pantone {
    color: #6276A3;
    font-weight: 700;
}

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

.section__title {
    font-weight: 600;
    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;
    text-decoration: none;
    font-weight: 600;
}

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

.nav__link--anchor-primary:hover {
    background-color: #0957c3;
}

.personal__logo {
    font-size: 24px;
    color: #6276A3;
    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;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

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

@keyframes animate-profile-picture {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

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

.about-me__picture {
    width: 100%;
    
    /* zooming into picture */
    transform: scale(1.4);
    padding-top: 16px;
}

.about-me__info--title {
    font-weight: 600;
    margin-bottom: 12px;
    animation: fade-up 650ms 400ms backwards;
}

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

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

.about-me__links {
    animation: fade-up 650ms 800ms backwards;
}

@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;
    justify-content: center;
}

.about-me__img {
    width: 75%;
    animation: fade-in 1200ms 800ms backwards;
}

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

.nerd {
    display: inline-block;
    animation: animate-nerd 1200ms 400ms backwards ease-in-out;
}

@keyframes animate-nerd {
    0% {
        scale: 0%;
    }
    50% {
        scale: 500%;
    }
    100% {
        scale: 100%;
    }
}

/* TECHNOLOGY STACK */

.language__img {
    width: 100%;
    max-width: 100px;
    transition: all 300ms;
}

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

.language {
    width: 25%;
    display: flex;
    justify-content: center;
    position: relative;
}

.language__name {
    position: absolute;
    bottom: 0;
    transform: scale(0);
    transition: all 300ms;
    font-size: 20px;
}

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

.language__img--wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 16px;
}

.language__list {
    display: flex;
    width: 100%;
}

/* MY 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;
}

.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;
    font-weight: 700;
    margin: 8px 0;
}

.project__description--sub-title {
    font-weight: 600;
}

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

/* FOOTER */

footer {
    background-color: #242424;
}

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

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

.footer__logo--img {
    width: 70px;
    height: 70px;
}

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

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

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

.footer__anchor:hover .footer__logo--popper {
    transform: translateX(60px);
    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;
        margin: 20px 0;
    }

    .about-me__info--title {
        margin: 0;
    }
    
    .row {
        padding: 0 30px;
    }

    .language__img {
        width: 100%;
        max-width: 85px;
    }

    .language__name {
        font-size: 18px;
    }

    .footer__row {
        padding: 40px 0;
    }
}

/*SMALL PHONES*/

@media (max-width: 480px) {
    nav {
        padding: 0 12px;
    }

    .personal__logo {
        font-size: 20px;
        margin: 0;
    }

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

    .language__img--wrapper {
        padding: 20px 10px;
    }

    .footer__social--list {
        justify-content: space-around
    }

    .project__description {
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

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

    .project__description--para {
        display: none;
    }

    .project__description--sub-title,
    .project__description--links {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 5px;
    }

    .project__description--link {
        margin: 0 10px;
    }

    .project__wrapper {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* almost small phones*/

@media (max-width: 572px) {
    nav {
        padding: 12px;
    }

    .personal__logo {
        font-size: 22px;
    }

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

    .project__description {
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

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

    .project__description--para {
        display: none;
    }

    .project__description--sub-title,
    .project__description--links {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 5px;
    }

    .project__description--link {
        margin: 0 10px;
    }

    .project__wrapper {
        width: 100%;
    }

    .footer__social--list {
        justify-content: space-around;
    }
}