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

/*     GENERAL     */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    color: #242424;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F5F5F5;
    transition: all 300ms ease;
}

section {
    transition: all 300ms ease;
}

a {
    text-decoration: none;
}

.secondary-color {
    color: #61abb5 !important;
}

.bold {
    font-weight: 700;
}

.white-color {
    color: white;
}

ul {
    list-style: none;
}

.dark-mode {
    background-color: #242424;
}

.dark-mode .nav__img {
    filter: invert();
}

.dark-mode .hero__title,
.dark-mode .hero__subtitle,
.dark-mode .projects__title,
.dark-mode .link__anchor,
.dark-mode .scroll__icon {
    color: white;
}

.dark-mode .contact-icon {
    color: #242424;
}

.dark-mode .dark-mode__icon {
    filter: invert();
}

.dark-mode .scroll__icon {
    border: 2px solid white;
}

.dark-mode .scroll__icon:after,
.dark-mode .mail__button,
.dark-mode .link__hover:after {
    background-color: white;
}

.link__hover {
    position: relative;
}

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

.link__hover--white:after {
    background-color: white;
}

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

/*     NAVIGATION BAR     */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 10px;
    height: 100px;
    max-width: 1200px;
    transition: all 600ms ease;
}

.nav__link--list {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav__link {
    margin: 0 12px;
}

.link__anchor {
    color: black;
    font-weight: bold;
}

.nav__img {
    width: 50px;
    height: 50px;
    margin-left: 10px;
    transform: scale(1.3);
}

.dark-mode__icon {
    font-size: 20px;
}

/*     HERO SECTION     */
#hero {
    height: 100vh;
}

.header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding-left: 20px;
    max-width: 1000px;
    transition: all 600ms ease;
}

.hero__title {
    font-size: 120px;
    font-weight: bold;
}

.hero__subtitle {
    font-size: 24px;
    max-width: 450px;
    line-height: 2;
    color: #242424;
}

.file-size {
    transform: scale(0.85);
}

.social__list {
    display: flex;
    margin-top: 12px;
}

.social__link {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #61abb5;
    padding: 6px;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    text-decoration: none;
    border-radius: 50%;
}

.click {
    transition: all 300ms ease;
    cursor: pointer;
}

.click:hover {
    transform: scale(1.15);
}

.click:active {
    transform: scale(0.8)
}

.mail__button {
    position: fixed;
    border: none;
    bottom: 32px;
    right: 48px;
    background-color: #242424;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .46);
    z-index: 1;
}

.contact-icon {
    color: white;
    font-size: 32px;
}

.scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 600ms ease;
}

.scroll__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid black;
    border-radius: 24px;
    width: 20px;
    height: 30px;
}

.scroll__icon:after {
    content: '';
    background-color: #242424;
    width: 3px;
    height: 8px;
    border-radius: 24px;
    animation: scroll 1800ms infinite alternate-reverse;

}

@keyframes scroll {
    0% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(5px) scaleY(.8);
    }
}

/*     MODAL     */

.modal {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    height: 90%;
    border-radius: 24px;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 1s, box-shadow 0.5s ease;
}

.modal__half {
    width: 50%;
    display: flex;
    padding: 40px 72px;
    flex-direction: column;
    justify-content: center;
    transition: all 300ms ease-in;

}

.modal__about {
    background-color: #F5F5F5;
    transform: translateX(-100%);

}

.modal__text--container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.modal__title {
    font-size: 26px;
    margin-bottom: 12px;
}

.modal__subtitle {
    font-size: 14px;
    margin-bottom: 24px;
}

.modal__about--para {
    line-height: 1.75;
    margin-bottom: 12px;
}

.languages__list {
    display: flex;
    flex-wrap: wrap;
}

.language {
    position: relative;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: calc(100% / 4);
    transition: all 300ms ease;
}

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

.language:hover {
    scale: 0.9;
    filter: brightness(.7);
}

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

.language__image {
    width: 100%;
}

.modal__contact {
    position: relative;
    background-color: #242424;
    transform: translateX(100%);
}

.form__item {
    margin-bottom: 24px;
}

input,
textarea {
    position: relative;
    width: 100%;
    outline: none;
    border: none;
    padding: 8px;
    background-color: #242424;
    border-bottom: 4px solid #D9D9D9;
    transition: all 300ms ease;
    color: white;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: #61abb5;
}

#form__send {
    font-weight: bold;
    font-size: 20px;
    padding: 12px 48px;
    outline: none;
    border: 3px solid #61abb5;
    background-color: #61abb5;
    color: white;
    cursor: pointer;
    transition: all 300ms ease;

}

#form__send:hover {
    background-color: transparent;
    border: 3px solid white;
}

#form__send:active {
    border: 3px solid #61abb5;
    color: #61abb5;
}

.modal__state {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal__loading-state {
    background-color: #242424;
    display: none;
}

.fa-spinner {
    scale: 8;
    animation: loading 1000ms infinite linear;
}

.modal__success-state {
    text-align: center;
    line-height: 1.5;
    font-weight: bold;
    background-color: rgb(57, 167, 48);
    color: white;
    padding: 24px 64px;
    font-size: 36px;
    display: none;
}

.modal__failed-state {
    text-align: center;
    line-height: 1.5;
    font-weight: bold;
    background-color: #bd1c1c;
    color: white;
    padding: 24px 64px;
    font-size: 36px;
    display: none;
}

.modal__exit {
    position: absolute;
    top: 30px;
    right: 40px;
    scale: 3;
}

@keyframes loading {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }

}

.modal__show .modal__contact {
    transform: translateX(0);
}

.modal__show .modal__about {
    transform: translateX(0);
}

.modal__show .modal {
    box-shadow: 0 0 64px rgba(0, 0, 0, 0.5);
    visibility: visible;
}

.modal__show .header,
.modal__show nav,
.modal__show .scroll {
    visibility: hidden;
    opacity: 0;
}

.modal__show #projects {
    display: none;
}

.delayed__transition nav,
.delayed__transition .header,
.delayed__transition .scroll {
    transition-delay: 800ms;
}

/*     PROJECTS      */
.projects__title {
    font-size: 48px;
    text-align: center;
    color: #242424;
}

.row {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.project__list {
    margin-top: 48px;
}

.project__image--container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 0 64px rgba(0, 0, 0, 0.4);
}

.project__image {
    width: 100%;
    border-radius: 24px;
    transition: all 650ms ease;
}

.project {
    margin-bottom: 135px;
    padding: 0 24px;
}

.project:hover .project__image {
    transform: scale(1.1);
    filter: blur(4px);
}

.project__image--overlay {
    position: absolute;
    top: 0;
    left: 0;
    background-color: black;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 300ms ease;
}

.project:hover .project__image--overlay {
    opacity: .6;
}

.project__image--description {
    position: absolute;
    left: 80px;
    opacity: 0;
    transition: all 550ms ease;
}

.project:hover .project__image--description {
    opacity: 1;
}

.project__title {
    font-size: 40px;
    margin-bottom: 8px;
}

.project__subtitle {
    font-size: 18px;
    margin-bottom: 10px;
}

.project__paragraph {
    margin-top: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 550px;
    line-height: 1.5;
}

.project__description--links {
    margin-top: 12px;
}

.project__link {
    margin-right: 12px;
    font-size: 24px;
    transition: all 300ms ease;
}

.project__link:hover {
    filter: brightness(.8);
}

.project-link-size {
    font-size: 22px;
}

.project__icons {
    display: flex;
    align-items: center;
}

#footer {
    background-color: #242424;
    padding: 60px 0 120px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer__container {
    display: flex;
    justify-content: center;
    align-items: center;
    ;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    height: 100%;
}

.footer__image--wrapper {
    position: relative;
    width: 75px;
    filter: invert();
}

.footer__copyright {
    text-align: center;
}

.fa-arrow-up {
    margin-left: 6px;
}

.top__button {
    display: flex;
    position: absolute;
    top: 28px;
    left: 30px;
    opacity: 0;
    transition: all 300ms ease;
    z-index: -1;
}

.footer__image--wrapper:hover .top__button {
    left: 90px;
    opacity: 1;
}

.footer__image {
    width: 100%;
}

.footer__links--list {
    display: flex;
    justify-content: space-between;
}

.footer__link {
    margin: 12px 36px;
    padding: 24px 0;
}

/*     SHAPES     */

.shape {
    position: fixed;
    z-index: -1;
}


.shape--1 {
    top: 15vh;
    left: 5vw;
}

.shape--2 {
    top: 15vh;
    left: 50vw;
}

.shape--3 {
    top: 15vh;
    left: 80vw;
}


.shape--4 {
    top: 50vh;
    left: 5vw;
}

.shape--5 {
    top: 50vh;
    left: 50vw;
}

.shape--6 {
    top: 50vh;
    left: 80vw;
}


.shape--7 {
    top: 80vh;
    left: 5vw;
}

.shape--8 {
    top: 80vh;
    left: 50vw;
}

.shape--9 {
    top: 80vh;
    left: 80vw;
}


/*     Responsivness     */

@media (max-width: 768px) {
    .hero__title {
        font-size: 82px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .projects__title {
        font-size: 36px;
    }

    .project__title {
        font-size: 34px;
    }

    .project__image--description {
        right: 20%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project__paragraph {
        max-width: 420px;
        text-align: center;
    }

    .modal {
        top: 0;
        left: 0;
        transform: none;
        flex-direction: column-reverse;
        height: auto;
        border-radius: 0;
        width: 100%;
        z-index: 2;
    }

    .modal__half {
        width: 100%
    }

    .modal__text--container {
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #contact__form {
        width: 100%;
    }

    .languages__list {
        width: 70%;
    }
}

@media (max-width: 664px) {
    .project__paragraph {
        font-size: 12px;
    }
}

@media (max-width: 497px) {
    .project__title {
        font-size: 28px;
    }

    .project__subtitle {
        font-size: 16px;
    }

    .footer__links--list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer__link {
        width: 33%;
        text-align: center;
        padding-top: 0;
    }

    .responsive {
        display: none
    }
}

@media (max-width: 576px) {
    .project__paragraph {
        display: none;
    }

    .project__description--links {
        margin: 0;
    }

    .project__title,
    .project__subtitle {
        text-align: center;
    }

    .footer__link {
        margin: 12px 24px;
    }

    .mail__button {
        display: none;
    }
}