*{
    font-family: Be Vietnam Pro, sans-serif;
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
    overflow: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

main{
    width: 80%;
    margin: 0 auto;
    overflow: visible;
    perspective: 1px;
}

header{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100vh;
    box-sizing: border-box;
    padding: 0 10%;
}

.header-right{
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;

}

.header-right img{
    height: 90vh;
    box-sizing: border-box;
    border-radius: 10px;
}

.header-right::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;

    animation: reveal_downwards 1s ease-in-out forwards;
    animation-delay: .5s;
    z-index: 1;
    border-radius: 0;
    transform-origin: bottom;
}

@keyframes reveal_downwards {
    0%{
        height: 100%;
    }
    100%{
        height: 0%;
    }
    
}

.header-left{
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.nametag{
    font-size: 1.3rem;
    font-weight: 700;
    border: 2px solid #000;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-sizing: border-box;
}

  

h1{
    font-size: 6vw;
    font-weight: 700;
    margin: 1rem 0;
    position: relative;
}

header h1::after{
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #000;
    animation: text-ambient 20s ease-in-out infinite;
    animation-delay: .3s;
    animation-fill-mode: backwards;
}

header h1::before{
    content: '';
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 50%;
    object-position: top;
    background-color: #000000;
    transform-origin: right;
    align-self: flex-end;
    /* reveal-sideways for in, then repeat text-ambient with delays between*/
    animation: text-ambient 20s ease-in-out infinite;
}

@keyframes reveal-sideways {
    0%{
        width: 100%;
    }
    100%{
        width: 0%;
    }
    
}

/*

    move black bar accross text and scale its width

*/
@keyframes text-ambient {
    0%{
        position: absolute;
        width: 0%;
        left:100%;
    }
    1%{
        position: absolute;
        width: 100%;
        left: 0%;
    }
    2%{
        position: absolute;
        width: 100%;
        left: 0%;
    }
    3%{
        position: absolute;
        width: 0px;
        left: 0%;
    }
    100%{
        position: absolute;
        width: 0px;
        left: 0%;
    
    }
}


.title-two{
    letter-spacing: .5vw;
}

.about-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    gap: 2rem;

}

.about{
    width: 50%;
    font-size: 1.2rem;
    line-height: 1.5;
    color: gray;

    /* block text */
    text-align: justify;

    /* animation */
    animation: reveal-about 1s ease-in-out forwards;
    overflow: hidden;
    animation-delay: .5s;
    animation-fill-mode: forwards;
    height: 0%;

}

@keyframes reveal-about {
    0%{
        height: 0%;
    }
    100%{
        height: 100%;
    }
    
}

h2{
    font-size: 5rem;
    font-weight: 600;
    margin: 2rem 0;
    width: 100%;
    border-bottom: 2px solid #000;
}

.container-two{
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 2rem;
    margin: 2rem 0;
    height: fit-content;
    overflow: visible;

}

/*

 __     __
/  \    /I     Title
I  I   / I     Title
\__/     I     Text
*/

.workflow{
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    align-items: center;
    margin: 1rem 0;
}

.workflow h3{
    font-size: 2rem;
    font-weight: 600;
    margin: 1rem 0;
}

.workflow p{
    font-size: 1.2rem;
    line-height: 1.5;
    color: gray;
}

.window-parallax{
    position: relative;
    overflow: visible;
}

.parallax-window{
    position: absolute;
    right: -10vw;
    top:10vh;
    height: 60vh;
    max-height: 600px;

}

.parallax-window.base{
    top: 0vh;
    right: -10rem;
}

.parallax-window.back{
    right: -50%;
}


.project-container{
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    background-color: rgb(245, 245, 245);
    padding: 2rem 4rem 0 2rem;
    --primary-color: #000000;
    --secondary-color: #464646;
    --tertiary-color: #707070;

}

.project-container.dark{
    background-color: #1d1d1d;
    --primary-color: #ffffff;
    --secondary-color: #c5c5c5;
    --tertiary-color: #bbbbbb;
}

.project-screen{
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 0;
}

.project-screen img{
    border-radius: 10px 10px 0 0;
    width: 100%;
    max-height: 100%;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    object-position: top;
}

.project-content{
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.project-content h3{
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

.project-content h4{
    font-size: 1.5rem;
    font-weight: 300;
    margin: 1rem 0;
    color: var(--secondary-color);
    letter-spacing: .1rem;
}

.project-content p{
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--tertiary-color)
}

.project-content a{
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    margin: 1rem 0;
}


.skills-banner{
    height: 100%;
    width: 85%;
    object-fit: cover;
    border-radius: 10px;
}

.skills-wrapper{
    display: grid;
    grid-template-columns: 50% 50%;
}

.skill{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.skills-section{
    padding: 30px 0;
}

.skills-section p{
    font-size: 1.2rem;
    line-height: 1.5;
    color: gray;
}

.skills-section h3{
    color: rgb(92, 92, 92);
}

a.disabled{
    pointer-events: none;
    opacity: 0.5;
}

a.btn{
    padding: 1rem 2rem;
    border-radius: 100px;
    background-color: transparent;
    color: black;
    border: 2px solid black;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2rem;
    transition: all .3s ease-in-out;
    
}

a.btn:hover{
    background-color: black;
    color: white;
}

.contact-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin: 2rem auto;
}

.contact-info a{
    font-size: 3rem;
    font-weight: 600;
    color: gray;
    text-decoration: none;
    transition: all .3s ease-in-out;
    text-wrap: nowrap;
}

.contact-info a:hover{
    color: black;   
    transform: scale(1.1);
}

footer{
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
}

a.up{
    height: 40px;
    width: 40px;
    border: gray solid 2px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: gray;
    transition: all .3s ease-in-out;
}

a.up:hover{
    background-color: gray;
    color: white;
}

.reference_grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: flex-start;
}

.reference{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: black;
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.reference:hover{
    transform: scale(1.01);
}

.reference h3{
    margin: 1rem 0;
}

.reference p{
    font-size: 1.2rem;
    line-height: 1.5;
    color: gray;
    margin: 0;
}

.reference img{
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
}

.email-interaction-reminder{
    display: none;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 10%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: rgb(20, 20, 20);
    color: white;
    z-index: 999;
}

.email-interaction-reminder h3{
    font-weight: 600;
    margin: 1rem 0;

}

.email-interaction-reminder a{
    padding: 1rem 2rem;
    border-radius: 100px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2rem;
    transition: all .3s ease-in-out;
}

.email-interaction-reminder a:hover{
    background-color: white;
    color: black;
}

#email_offer_popup{
    display: none;
}

#email_offer_leave_popup{
    display: none;
}

.reminder-popup{
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    min-width: 20vw;
    min-height: 20vh;
    z-index: 999;
    background-color: #1d1d1d;
    color: white;
    transform-origin: 0% 0%;
}

.interaction a{
    padding: 1rem 2rem;
    border-radius: 100px;
    background-color: white;
    color: black;
    border: 2px solid white;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2rem;
    transition: all .3s ease-in-out;
    margin: 1rem 0;
}

.reminder-popup a:hover{
    background-color: transparent;
    color: white;
}

.reminder-popup a.alt{
    background-color: transparent;
    color: white;
}

.reminder-popup a.alt:hover{
    background-color: white;
    color: black;
}

.interaction{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

}

.reminder-popup h3{
    font-weight: 600;
    margin: 1rem 0;
    font-size: 2rem;
    padding: 1rem 0;
}

.reminder-popup p{
    font-size: 1.2rem;
    line-height: 1.5;
    color: gray;
    margin: 0;
}

.dampener{
    position: fixed;
    top: 0;
    left: 0;
    width: 400vw;
    height: 400vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9;

}

#indicator{
    display: none;
}

.availability{
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 5%;
    transform: translateX(-50%);
    gap: 5px;
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.164);
    padding: .5rem 1rem;
    border-radius: 10px 10px 0 0;
    text-decoration: none;

    animation: revealAvailability 1s ease-in-out forwards;

}

.availability p{
    font-size: 1rem;
    line-height: 1.5;
    color: gray;
    margin: 0;
}


.dot{
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: red;
    position: relative;
    transform-origin: 50% 50%;
    margin-right: 5px;
}

.dot::before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 50% 50%;
    background-color: inherit;
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite;
}

#avail-info-contact{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.inline{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

#avail-info-contact p{
    font-size: 1rem;
    line-height: 1.5;
    color: gray;
    margin: 0;

}

.clients{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    
}

.client{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;

    color: black;
    text-decoration: none;
    transition: all .3s ease-in-out;
    height: 100%;
}

.client img{
    object-fit: cover;
    object-position: center;
    width: 100%;
    box-sizing: border-box;
    filter: grayscale(100%);
}

.client:hover{
    transform: scale(1.01);
}

@keyframes pulse {
    0%{
        transform: scale(.9);
        opacity: 1;
    }
    10%{
        transform: scale(2);
        opacity: 0;
    }
    14%{
        transform: scale(.9);
        opacity: 0;
    }
    15%{
        transform: scale(.9);
        opacity: 1;
    }
    25%{
        transform: scale(2);
        opacity: 0;
    }
    100%{
        transform: scale(2);
        opacity: 0;
    }
}


.btn{
    border: none;
    cursor: pointer;
    padding: 1rem 2rem;
    border-radius: 100px;
    background-color: transparent;
    color: black;
    border: 2px solid black;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2rem;
    transition: all .3s ease-in-out;
    margin-top: 1rem;
}
.btn:hover{
    background-color: black;
    color: white;
}

.btn.alt{
    background-color: black;
    color: white;
}

.btn.alt:hover{
    background-color: transparent;
    color: black;
}

.smallBtn{
    font-size: 1rem;
    border-radius: 100px;
    background-color: transparent;
    color: black;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
    
}





@media screen and (max-width:1300px){
    
    .clients{
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .client img{
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    .reminder-popup{
        padding: 1rem;
        width: 100vw;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .interaction{
        flex-direction: column;
        gap: 0;
    }

    .interaction a{
        width: 100%;
        box-sizing: border-box;

    }

    .email-interaction-reminder{
        position: fixed;
        top: unset;
        bottom: 0;
        left: 0;
        gap: 2rem;
    }

    .email-interaction-reminder a{
        padding: .5rem 1rem;
        margin: .2rem 0;
        width: 100%;

    }

    .reminder-right{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .reference_grid{
        grid-template-columns: 1fr;
    }

    body{
        overflow-x: hidden !important;
        overflow-y: scroll;
        width: 100vw !important;
        max-width: 100vw !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    header{
        grid-template-columns: 1fr;
        height: 100%;
        padding: 0 5%;
        margin-top: 2rem;
    }

    main{
        width: 100vw;
        margin: 0;
        padding: 5vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }


    .header-right{
        display: none;
    }

    .header-left{
        align-items: center;
        text-align: center;
    }

    .header-left h1{
        font-size: 13vw;
    }

    .header-left .nametag{
        font-size: 1rem;
    }

    .header-left .about{
        animation: none;
    }

    .about-wrapper{
        flex-direction: column;
        gap: 2rem;
    }

    .about{
        width: 100%;
        height: auto !important;
    }

    h2{
        font-size: 3rem;
    }

    

    .parallax-window{
        top: -30rem;
        height: 60vh;
        max-height: none !important;
    }

    .parallax-window.back{
        left: 70vw;
        opacity: 50%;
        z-index: -1;
        width: auto;
        /*mirror*/
        transform: scaleX(-1);

    }

    .parallax-window.base{
        left: -50rem;
        opacity: 50%;
        z-index: -1;
        width: auto;
        top: -40rem;
    }


    .container-two{
        grid-template-columns: 1fr;
    }

    

    .project-container{
        /* grid-template-columns: 1fr; */
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem;
        scroll-snap-align: center;
        flex: none;
        width: 85vw;
        margin-left: 5vw;
    }

    /* last element */
    .project-container:last-child{
        margin-right: 5vw;
    }



    .project-container.dark{
        flex-direction: column-reverse;
        justify-content: flex-end;
    }

    .project-screen{
        height: fit-content !important;
    }

    .project-screen img{
        border-radius: 10px;
        width: 100%;
        height: fit-content;
        object-fit: cover;
        object-position: top;
    }

    

    .project-content{
        padding: 0rem;
    }

    .skills-wrapper{
        grid-template-columns: 1fr;
    }

    .contact-info{
        width: 100%;
    }

    .skills-banner{
        display: none;
    }

    .contact-info{
        flex-direction: column;
        gap: 2rem;
        text-align: left;
        align-items: flex-start;
    }

    .contact-info a{
        font-size: 2.5rem;
        text-wrap: wrap;
    }

    footer{
        flex-direction: column;
        width: 90%;
    }

    a.up{
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        display: flex;
    }

    .projects{
        display: flex;
        overflow-x: scroll;
        margin-left: -5vw;
        margin-right: 5vw;
        width: 100vw;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;

        /* hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;

        scroll-padding: 5vw;

    }

    

    #indicator{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    #indicator button{
        border-radius: 100px;
        background-color: gray;
        height: 15px;
        width: 15px;
        background-color: transparent;
        color: gray;
        border: 2px solid gray;
        text-decoration: none;
        font-weight: 400;
        font-size: 1.2rem;
        transition: all .3s ease-in-out;
        position: relative;
        /* reverse anim */
        background: radial-gradient(circle, rgba(131,131,131,1) 50%, rgba(246,246,246,0) 50%) center/15000% 15000% no-repeat;
        background-position: 50% 50%;
        background-size: 0% 0%;
        transition: all .3s ease-in-out;
    }

    #indicator button.active{
        background-size: 200% 200%;
        color: white;
    }


    .availability{
        display: none;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: white;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.164);
        padding: .5rem 1rem;
        border-radius: 10px 10px 0 0;
        text-decoration: none;
        z-index: 100;
    }

    
}