header{
    position: fixed;
    z-index: 80; /*Be careful about stacking contexts: https://www.joshwcomeau.com/css/stacking-contexts/ */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: 'Poppins', sans-serif;
    padding:  2rem;
    width: 100%;
    background: var(--background);
}

header .left{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 1rem;

}
header .left img{
    width: 3rem;
    border-radius: 50%;
}


header .left .text{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    text-align: left;
}

#name{
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

#tagline{
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    color: var(--text);
    opacity: 0.8;
}

header .right{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding-top: 0.5rem;
    padding-right: 0.5rem;
    a{
        text-decoration: none;
        color: var(--text);
        font-size: 1rem;
        margin: 0 0.5rem;
        font-weight: 600;
        opacity: 0.8;
        padding: 1rem 0.25rem;
    }
    a:hover{
        text-decoration: none;
        color: var(--text);
        opacity: 1;
    }
}

@media(max-width:800px){
    header .right{
        display: none;
    }
    header {
        padding: 0.5rem;
    }

    #name{
        font-size: 1.2rem;
    }
    #tagline{
        font-size: 0.6rem;
    }
    header .left img {
        width: 2.5rem;
    }
    header .left{
        padding: 0.25rem;
    }
}

main{
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text);
    text-align: center;
    min-height: 100vh;
    z-index: 1;
    position: relative; /*Be careful about stacking contexts: https://www.joshwcomeau.com/css/stacking-contexts/ */
    animation: reveal-main 2s ease-in-out;
    h1{
        font-size: 4rem;
        font-weight: 800;
        letter-spacing: 2px;
        max-width: 60%;
    }

    h1 .colored-container{
        display: inline-block;
        animation: reveal-colored 1s cubic-bezier(0,.68,.44,1.57) forwards;
        animation-iteration-count: 1;
    }
    h1 .colored{
        color: #39bfd0;
        display: inline-block;
    }
    .colored:hover{
        cursor: pointer;
        animation: jump-colored 1s cubic-bezier(0,.68,.44,1.57) forwards;
        transition: transform 1s cubic-bezier(0,.68,.44,1.57);
    }

    .text{
        font-size: 1rem;
        font-weight: 600;
        margin-top: 2rem;
        opacity: 0.8;
    }

    .explore{
        background-color: var(--primary);
        padding: 0.5rem 3rem;
        border-radius: 16px;
        border: none;
        outline: none;
        position: absolute;
        bottom: 10vh;
        transition: all 0.1s ease-in-out;
        /*animation: reveal-main-btn 1.5s ease-in-out;*/
        svg{
            fill: var(--background);
            scale: 1.2;
            transition: scale 0.1s ease-in-out;
        }
    }

    .explore:hover{
        border-radius: 6px;
        cursor: pointer;
        opacity: 1;
        svg{
            scale: 1.4;
        }
    }
}

@media (max-width: 800px){
    main{

        h1{
            font-size: 2rem;
            max-width: 80%;
            margin-top: -25%;
        }
        .text{
            font-size: 0.8rem;
            max-width: 90%;
        }
        .explore{
            bottom: 4rem;
        }
    }
}


@media (max-width: 600px){
    main{

        h1{
            font-size: 1.8rem;
            max-width: 80%;
            margin-top: -25%;
        }
        .text{
            font-size: 0.8rem;
            max-width: 90%;
        }
        .explore{
            bottom: 6rem;
        }
    }
}

@keyframes reveal-main {
    0%{
        opacity: 0.1;
    }
    60%{
        opacity: 0.8;
    }
    100%{
        opacity: 1;
    }
}
@keyframes reveal-main-btn {
    0%{
        opacity: 0.1;
    }
    80%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}


@keyframes reveal-colored{
    0%{
        transform: translateY(-50px);
        opacity: 0.1;
    }
    49%{
        opacity: 0.1;
        transform: translateY(-50px);
    }
    50%{
        opacity: 1;
        transform: translateY(-50px);
    }
    80%{
        transform: translateY(10px);
    }
    100%{
        transform: translateY(0);
    }
}

@keyframes jump-colored{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-10px);
    }
    80%{
        transform: translateY(10px);
    }
    100%{
        transform: translateY(0);
    }
}