:root{
    --bg-color: rgb(20, 20, 20);
    --text-color: rgb(225, 220, 230);
    --accent-color: rgb(76, 13, 50);
}

body{
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.title{
    font-size: 3rem;
    padding: 2rem;
    border-bottom: solid 1px white;
}

span[tag]{
    color: var(--accent-color);
    font-size: 1rem;
    font-style: italic;
    margin-inline: 2rem;
}

/* Nav */
header#nav{
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 1.5rem;
    gap: 1rem;
    background-color: rgba(20, 20, 20, .7);
    backdrop-filter: blur(.5rem);
}

.nav-item{
    color: var(--text-color);
    text-decoration: none;
    transition: all .3s ease;
}
.nav-item:hover{
    scale: 1.1;
    color: var(--accent-color);

}

/* Info */

@media screen and (min-width: 1375px){
    section#info{
        margin-top: 1.5rem;
        height: 100%;
        margin-inline: 2rem;

        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 5rem;
        justify-items: center;
        grid-template-areas:
            "h h"
            "a ."
            "a b"
            ". b"
            "f f";
    }

    .info-title{
        grid-area: h;
    }
    .info-tldr{
        grid-area: f;
        margin-inline: 25%;
        align-self: center;
    }
    .info-summary{
        grid-area: a;
        width: 30svw;
    }
    .info-current{
        grid-area: b;
        width: 30svw;
    }
}

@media screen and (max-width: 1374px){
    section#info{
        margin-top: 1.5rem;
        height: 100%;
        margin-inline: 2rem;

        display: flex;
        flex-direction: column;
    }

    section#info div p{
        width: 60svw;
    }
}

p{ 
    position: relative;
    z-index: -1;
}
p::before{
    content: '<p>';
    position: absolute;
    left: -2rem;
    color: var(--accent-color);
    font-style: italic;
    font-size: 1rem;
    top: 50%;
    transform: translate(0, -50%);
}
p::after{
    content: '</p>';
    position: absolute;
    right: -2rem;
    color: var(--accent-color);
    font-style: italic;
    font-size: 1rem;
    top: 50%;
    transform: translate(0, -50%);
}


/* Portfolio */
section#portfolio{
    margin-top: 3rem;
    height: 75svh;
}

.projects{
    width: 100svw;
    height: 100%;
    display: flex;
    list-style-type: none;
    margin-top: 3rem;
    gap: 3rem;
    justify-content: center;
}

.project-demo{
    height: 50svh;
    width: 30svw;
    border-radius: 1rem;
}

.project-demo:hover{
    position: fixed;
    top: 10svh;
    left: 10svw;
    width: 80svw;
    height: 80svh;
    filter: none;
    transform: none;
    z-index: 1;
}

.project-demo-backdrop{
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    height: 100lvh;
    width: 100lvw;
    background-color: rgba(20, 20, 20, .3);
    backdrop-filter: blur(10px);
}

/* Contact */
footer#contact{
    display: grid;
    margin: auto;
    justify-items: center;
    margin-bottom: 5rem;
    row-gap: 1rem;
    width: 60svw;
    grid-template-areas:
        "h h h"
        "c c c";
}

.contact-header{
    grid-area: h;
}
.contact-email{
    grid-area: e;
}
.contact-links{
    grid-area: l;
}

.contact-content{
    grid-area: c;
}
.contact-content:is(.email){
    justify-self: start;
}
.contact-content:is(.github){
    justify-self: center;
}
.contact-content:is(.linkedin){
    justify-self: end;
}

.hidden{
    display: none;
}

.inline-link{
    color: var(--text-color);
    text-decoration: none;
    font-style: italic;
    transition: color .3s ease;
}

.inline-link:hover{
    color: var(--accent-color);
}

