:root {
    --color-background-a: rgb(32, 31, 37);
    --color-background-b: rgb(16, 16, 17);
    --color-highlight-a: rgb(181, 81, 240);
    --color-highlight-b: rgb(181, 81, 240);
    --color-text-a: white;
    --color-text-b: #888;
}

@keyframes slide-left {
    from {
        margin-left: 2rem;
    }
    to {
        margin-left: 0rem;
    }
}

* {
    margin: 0; padding: 0;
    color: var(--color-text-a);

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-background-a);
}
aside {
    position: fixed;

    width: 60px;
    height: 100dvh;

    background-color: var(--color-background-b);
}
nav {
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: left top;
    
    width: 100dvh; 
    
    display: flex;
    justify-content: center;
    
    margin-left: 0.8rem;
}
main {
    /* height: 100dvh; */
    width: 100%;
}
section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    background-color: var(--color-background-b);
}

ul {
    list-style: none;

    display: flex;
    flex-direction: row-reverse;
    gap: 1.5rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
}
h2::before {
    font-size: 1.4rem;
    content: attr(data-heading);
    margin-top: 6rem;
    display: block;
    text-align: center;
    color: var(--color-text-b);
    text-transform: uppercase;
  }
h3 {
    font-size: 1.4rem;
    margin-bottom: .8rem;
}
p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
a {
    font-size: 1.3rem;
    text-decoration: none;
}
i {
    color: var(--color-text-b);
    font-weight: bold;
}
figure {
    position: relative;
    /* overflow: hidden; */
}
figure img {
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(1);
}
figure:hover img {
    transform: scale(1.1);
    filter: brightness(0.4);
}
figcaption {
    transition-delay: 0.2s;
    transition-duration: 0.6s;
    
    opacity: 0;
    
    position: absolute;
    bottom: 30%;
    width: 100%;
    font-style: italic;
    
    font-size: 1.1rem;
    color: var(--color-text-a);
}
figure:hover figcaption {
    opacity: 1;
}

.button {
    padding: 0.8rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border-radius: .5rem;
    background-color: var(--color-highlight-b);

    transition: opacity 0.6s ease;
}
.select {
    color: var(--color-highlight-a);
}
.sticker {
    width: 16rem;
}
.text-b {
    color: var(--color-text-b);
    transition: color 0.6s ease;
}
.text-b:hover {
    color: var(--color-text-a);
}
.stroke {
    color: var(--color-text-b);
    /* opacity: 0.4; */
    filter: blur(0.8px);
    text-decoration: none;
}

#home {
    height: 100dvh;

    background-color: var(--color-background-a);
}
#selfie {
    align-self: flex-end;
    
    width: 45%;
    min-width: 625px;
    max-height: 90dvh;
    /* height: auto; */
    object-fit: contain;
}
#home-text {
    height: 100%;
    width: 30%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4rem;
    align-items: start;
    flex-wrap: nowrap;
}
#home-text .button {
    animation: slide-left 0.4s ease;
}
#home-text .button:hover {
    opacity: 0.6;
}
#nav2 {
    position: relative;
    left: 0;
    
    margin-top: 2rem;
    height: 160px;
    width: 100%;
}
#nav2 ul {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
}
#social {
    margin-bottom: 2rem;
    align-self: flex-end;
}

#about-text{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    /* gap: 6rem; */
    align-items: start;
    flex-wrap: nowrap;
    padding-left: 4rem;
    padding-right: 4rem;
}
#about-text div {
    width: 40%;
}
#image {
    height: 60dvh;
}

#skills {
    flex-direction: column;
}
#langs {
    margin-top: 2rem;
    font-size: 1.1rem;
    background-color: var(--color-background-a);

    padding: 0.8rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border-radius: .5rem;
    border: rgb(92, 92, 92) 1px solid;

    flex-direction: row;
}

#cat {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 1.1rem;
}
#cat li {
    cursor: pointer;
}
#grid {
    display: grid;
    width: 100dvw;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
    /* background-color: dodgerblue; */
    padding: 4rem;
}
.project {
    /* background-image: url("../images/sampleBackground.jpg");
    filter: blur(2px); */

    max-width: 625px;

    background-color: var(--color-background-a);
    border-radius: 0.6rem;
    margin: 1rem;
    padding: 1rem;

    /* border: 1px solid black; */
    /* padding: 10px; */
    font-size: 30px;
    text-align: center;

    cursor: pointer;
    overflow: hidden;
}
.project img {
    width: 100%;
    border-radius: 0.4rem;
    margin-top: 0.2rem;
    margin-bottom: 1rem;
}
.project p {
    opacity: .6;
}

.fa2 {
    color: var(--color-text-a);
}

@media screen and (max-width: 920px) {
    aside {
        display: none;
    }
    #home {
        overflow: hidden;
        
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: center;

        /* justify-content: center;
        align-items: center;
        flex-wrap: wrap; */
    }
    #home-text {
        padding-top: 10dvw;
        height: 40%;
        width: 90%;
        min-width: 300px;
    }
    #selfie {
        max-height: 40%;
        width: 100%;
        align-self: auto;
        justify-self: auto;
        min-width: 300px;
    }
    #nav2 {
        display: none;
    }

    #about-text {
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
    #about-text div {
        width: 80%;
    }

    .sticker {
        width: 40dvw;
    }
    #langs {
        width: 80%;
        justify-content: center;
        flex-wrap: wrap;
    }
    #image {
        max-width: 100%;
        max-height: 60dvh;
        height: auto;
        object-fit: contain;
    }

    #cat {
        width: 80%;
        justify-content: center;
        flex-wrap: wrap;
    }

    #grid {
        padding: 0rem;
    }
}