* {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

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

h1 {
    font-size: 36px;
}

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

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

i:hover {
    opacity: 0.7;
}

input, textarea {
    width: 100%;
    outline: none;
    border: 3px solid white;
    border-top: none;
    border-left: none;
    border-right: none;
    background-color: black;
    color: white;
    height: 30px;
    margin-bottom: 20px;
    transition: all 300ms ease;
}

input:hover, textarea:hover {
    border-color: #ffffff;
}

input:focus, textarea:focus {
    border-color: #6030b1;
}

textarea {
    resize: vertical;
    height: 100px;
    margin-top: 6px;
}

label {
    font-size: 14px;
    font-weight: bold;
}

svg {
    width:20px;
    height:20px;
    margin-bottom: -2px;
}

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

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

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

.row {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 12px;
}
.text--purple {
    color: #6030b1;
}

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

.section__title {
    margin-bottom: 20px;
}

/* NAVIGATION BAR */
nav {
    height: 100px;
    max-width: 1000px;
    width: 100%;
    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 20px;
    border-radius: 50px;
    color: white;
    transition: all 300ms ease;
}

.nav__link--anchor-primary:hover {
    background-color: #5d3eff;
}

.personal__logo {
    font-size: 24px;
    color: #6030b1;
    margin: 0 12px;
}

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

.about-me__picture--mask {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    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%;
}

.about-me__info--title {
    margin-bottom: 16px;
    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 12px;
}

.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 {
    aspect-ratio: square;
    animation: fade-in 1200ms 800ms backwards;
    margin: 0 auto;
    width: 70%;
    max-width: 420px;
}


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

    100% {
        opacity: 1;
    }
}

.wave {
    display: inline-block;
    animation: animate-wave 500ms infinite ease-in-out;
}

@keyframes animate-wave {
    0% {
        transform: rotate(0deg);
    }

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

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

.about-me__img--container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    width: 100%;
}

/* TECH STACK */

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

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

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

.language:hover .language__img {
    filter: brightness(0.8);
    opacity: 0.86;
    transform: scale(90%);
}

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

.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%;
    transition: all 500ms ease;
}

.project__wrapper {
    display: flex;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    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;
    max-width: 550px;
    transform: translateY(100%);
    z-index: 3;
    opacity: 0;
    transition: transform 650ms, 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--link svg{
    filter: invert(100%);
}

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

.modal--open nav, .modal--open .scroll, .modal--open header {
    visibility: hidden;
    opacity: 0;
    transition: all 400ms ease;
}

/*****************************MODAL*************************/

.modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 1080px;
    height: 700px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    visibility: hidden;
    z-index: -1;
    transition: visibility 500ms, z-index 500ms, box-shadow 500ms;
}


.modal--open .modal{
    z-index: 60;
    box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.55);
    visibility: visible;
}

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

.modal--open .modal__contact {
    transform: translateX(0%);
}

.modal__contact {
    background-color: black;
}

.modal__title {
    font-size: 26px;
}

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

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

.modal__contact {
    /* color: #fdf8eb; */
    color: white;
    transform: translateX(110%);
}

.modal__contact h1, .modal__contact h2 {
    color: white;
}

.form__submit {
    background-color: #6030b1;
    border: 2px solid #6030b1;
    /* color: #fcf7ec; */
    color: white;
    font-weight: 500;
    max-width: 240px;
    width: 100%;
    padding: 12px 24px;
    font-size: 20px;
    border-radius: 40px;
    transition: all 300ms ease;
}

.form__submit:hover {
    /* border-color: #fcf7ec; */
    color: white;
    background-color: transparent;
}

.form__submit:active {
    border-color: #6030b1;
    color: #6030b1;
}

.modal__overlay {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.modal__overlay--visible {
    z-index: 1;
    display: block;
}

.modal__overlay--loading {
    background-color: black;
    font-size: 80px;
    text-align: center;
    margin: 40px 0;
}

.modal__overlay--success {
    background-color: #6030b1;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    padding: 28px; 
}

.modal__overlay--success p {
    margin:40px;
}

.fa-spinner {
    animation: spinner 700ms infinite linear;
}

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

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

.modal__exit {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 28px;
    z-index: 100;
}

/* FOOTER */

footer {
    background-color: #242424;
}

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

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

.footer__social--link,
.footer__copyright {
    color: #f8f8f8;
    margin: 0 12px;
}

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

    h1 {
        font-size: 150%;
    }

    .language {
        width: 50%;
    }

    .project__description--para {
        font-size: 80%;
    }

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

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

    .modal__half {
        width: 100%;
    }
}

@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 {
        font-size: 32px;
        line-height: 1;
        text-align: center;
    }

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

    .modal__half {
        padding: 40px;
    }

}