
*{ 
    transition: 300ms ease-in-out;
}
html{
    font-family:'Raleway';
    color: #ffffff;
}
body{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    background-color: #1C1C1C;
    padding: 4vw 8vw;
    margin: 0;
}
section{
    max-width: 92vw;
}

h1, h2, h3, h4, p{
    margin: 0;
}

h1{
    font-size: 96px;
    font-weight: 600;
}

h2{
    font-size: 80px;
    font-weight: 400;
}

h3{
    font-weight: 400;
    font-size: 32px;
}

h4{
    font-weight: 400;
    font-size: 24px;
}

p{
    font-size: 18px;
}

a{
    text-decoration: none;
    color: #fff;
}

.nav_mobile_overlay, .nav_mobile{
    display: none;
}

nav{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    max-width: 92vw;
    div{
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: fit-content;
        div{
            display: flex;
            flex-direction: row;
            gap: 24px;
            font-size: 24px;
        }
    }
    a{
        color: #ffffff;
        text-decoration: none;
    }
    a:hover{
        color: #25EE5D;
    }
    a.active{
        color: #25EE5D;
        font-weight: 600;
    }
    /*
    a::after{
        content: "";
        display: block;
        width: 100%;
        height: 4px;
        background-color: #25EE5D;
        opacity: 0;
        border-radius: 4px;
        margin-top: 4px;
    }
    a.active::after{
        opacity: 1;
    }
    */
}

button{
    width: fit-content;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    padding: 0;
    background-color: transparent;
    border: none;
}

#title_section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: fit-content;
    *{
        text-align: center;
    }

    h3 span{
        color: #25EE5D;
        font-weight: 600;
    }
}

#projects_section{
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.filter_container{
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    .filter_chip{
        font-size: 24px;
    }
}

.filter_chip{
    width: fit-content;
    position: relative;
    padding: 16px 24px;
    background-color: #1D3122;
    cursor: pointer;
    border-radius: 64px;
    font-size: 16px;
    align-content: center;
}

.filter_chip.active{
    background-color: #25EE5D;
    font-weight: 600;
    color: #141414;
}

.filter_chip:hover{
    background-color: #25EE5D;
}

#projects_container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 80px;
}

.project_blob{
    cursor: pointer;
    width: 50%;
    height: fit-content;
    background-color: #141414;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 96px 32px 96px 32px;
    flex: 0 1 calc(50% - 40px);

    .title{
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .content{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 32px 40px 48px 40px;
        width: auto;
    }
    p{
        width: 100%;
    }
    
}

.tags{
        display: flex;
        flex-direction: row;
        gap: 8px;
        .filter_chip{
            width: auto;
            padding: 8px 16px;
        }
    } 

.project_blob.odd{
    margin-top: 2.5vw;
    border-radius: 32px 96px 32px 96px;
}

.project_blob:hover{
    -webkit-box-shadow:0px 0px 40px 0px rgba(37,238,94,0.25);
    -moz-box-shadow: 0px 0px 40px 0px rgba(37,238,94,0.25);
    box-shadow: 0px 0px 40px 0px rgba(37,238,94,0.25);
    transform: translateY(-1vw);
}

.contact_section{
    display: flex;
    flex-direction: column;
    gap: 48px;
    text-align: center;

    .filter_chip{
        margin-left: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .links{
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    a{
        display: inline-flex;
        align-items: center;
        width: fit-content;
        color: #0D76DE;
        font-weight: 600;
        text-decoration: none;
    }
    a:visited{
        color: #0D76DE;
        text-decoration: none;
    }
    a:hover{
        color: #09529b;
    }

    p{
        font-size: 32px;
    }
}

.icon{
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-left: 8px;
    background-size: contain;
}

.icon.copy{
    background-image: url(../images/icon_copy.png);
}

.icon.link{
    background-image: url(../images/icon_arrow.png);
}

.icon.download{
    background-image: url(../images/icon_download.png);
}

.icon.menu{
    background-image: url(../images/icon_menu.png);
    cursor: pointer;
}

.icon.menu.active{
    background-image: url(../images/icon_menu_opened.png);
    cursor: pointer;
}

.resume{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    img{
        width: 100%;
    }
}

.underline{
    position: relative;
}

.underline::after{
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background-color: #0D76DE;
    opacity: 0;
    transition: 300ms;
    transform: translate3d(-5%, 0, 0);
}

.underline:hover::after{
    opacity: 1;
    transform: translate3d(0,0,0);
    background-color: #09529b;
}

/* Project template section */

.project_title{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    .info{
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .container{
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    h3, h4{
        color: #ABAEAE;
    }

    .filter_chip:hover{
        background-color: #1D3122;
        cursor: default;
    }
    img{
        width: auto;
        height: auto;
        max-width: 25vw;
        max-height: 14vw;
    }
}

.project_content{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4vw;
    .chapter{
        display: flex;
        flex-direction: column;
        gap: 2vw;
    }
    h2{
        color: #25EE5D;
        font-weight: 600;
    }
    .image_container{
        margin: 2vw 0;
    }
    p{
        font-size: 32px;
    }
    iframe, video{
        width: 80%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
    }
}

.image_container{
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 1.5vw;
    img{
        width: 100%;
    }
}

.videos_row{
    display: flex;
    flex-direction: row;
    gap: 24px;
    video{
        aspect-ratio: 9 / 16;
        width: 100%;
    }
}

.videos_row.square{
    video{
        aspect-ratio: 1 / 1;
    }
}

.resume_doc{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

.resume_doc:hover{
    .download_overlay{
        opacity: 1;
    }
}

.download_overlay{
    opacity: 0;
    display: flex;
    position: absolute;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(29,49,34,0.75);
    color: #ffffff;
    font-size: 32px;
    h3{
        margin-top: 12vw;
        font-weight: 600;
    }
}

.copied_tooltip{
    display: block;
    position: absolute;
    opacity: 0;
    font-size: 32px;
    color: #fff;
    font-weight: 600;
}

#copy_email.active{
    p{
        opacity: 0;
    }
    .copied_tooltip{
        opacity: 1;
    }
    .icon.copy{
        opacity: 0;
    }
}

.download_resume_button{
    position: sticky;
    bottom: 64px;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.resume_body{
    min-height: calc(100vh - 24px);
    position: relative;
}


/* MOVIL */
@media only screen and (max-width: 768px) {
    html{
        height: auto;
    }
    body{
        gap: 32px;
        height: fit-content;
    }
    section{
        max-width: 100%;
    }
    h1{
        font-size: 40px;
    }

    h2{
        font-size: 32px;
    }

    h3{
        font-size: 20px;
    }

    h4{
        font-weight: 400;
        font-size: 20px;
    }

    p{
        font-size: 16px;
    }

    .nav_full{
        display: none;
    }

    .nav_mobile{
        display: block;
        .icon{
            position: relative;
            float: right;
        }
    }

    .nav_mobile_overlay{
            display: flex;
            visibility: hidden;
            flex-direction: column;
            gap: 16px;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            align-items:end;
            height: 100vh;
            background-color: #1C1C1C;
            z-index: 2;
            opacity: 0;
            transform: translateX(20px);
        }

        .nav_mobile_overlay.active{
            visibility: visible;
            opacity: 1;
            transform: translateX(0px);
        }
        
        a:hover{
            color: #25EE5D;
        }
        a.active{
            color: #25EE5D;
            font-weight: 600;
        }
        .icon.menu.active{
            margin-top: 4vw;
            margin-right: 8vw;
        }
        .nav_sect{
            width: -webkit-fill-available;
            padding: 0 8vw;
            *{
                display: block;
            }
            p{
                font-size: 14px;
            }
            a{
                font-size: 24px;
                padding: 18px 0 8px 16px;
            }
            .divider{
                display: block;
                height: 1px;
                background-color: white;
                width: -webkit-fill-available;
                padding: 0 8vw;
                margin: 24px 0;
                opacity: .2;
            }
        }

    .contact_section{
        gap: 16px;
        .links{
            gap: 8px;
        }
         p, .copied_tooltip{
            font-size: 20px;
        }
        .filter_chip{
            margin-left: 0;
            margin-top: 8px;
        }
        .underline{
            display: block;
            text-align: center;
            margin-top: 8px;
            width: 100%;
        }
    }

    #projects_container{
        width: 100%;
        gap: 32px;
        flex-direction: column;
    }
    .project_blob{
        width: 100%;
        border-radius: 48px 16px;
        .content{
            padding: 16px 20px 24px 20px;
            gap: 16px;
        }
    }
    .project_blob.odd{
        margin-top: 0;
        border-radius: 16px 48px;
    }
    .resume_doc{
        width: 100%;
        .download_overlay{
            display: none;
        }
    }

    .download_resume_button{
        bottom: 32px;
        font-size: 18px;
        .icon{
            width: 24px;
            height: 24px;
        }
    }

    .project_title{
        flex-direction: column-reverse;
        gap: 24px;
        img{
            max-width: 80%;
            max-height: 120px;
        }
        .container{
            width: 100%;
        }
    }
    .project_content{
        .chapter{
            gap: 24px;
        }
        p{
            font-size: 18px;
        }
        iframe, video{
            width: 100%;
        }
    }
    .videos_row{
        flex-direction: column;
    }
} 