:root {
    --primary-color: #837E9F;
    --secondary-color: #302F3D;
    --tertiary-color: #22212C;
    --contrast-color: #00FF00;
}

* {
    font-family: 'Merriweather Sans', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: var(--tertiary-color);
    padding: 3vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {

    display: grid;
    grid-template-columns: 28% 68%;
    gap: 4%;
    width: 100%;

    max-width: 1366px;
}

.box-gray {
    background-color: var(--secondary-color);
    border-radius: 20px;

    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#left-main {
    display: flex;
    flex-direction: column;
}

.profile-image, .post-imagem{
    height: 128px;
    width: 128px;
} 

.profile-image img, .post-imagem img{
    width: 100%;
    border-radius: 100%;
    object-fit: cover;
} 


#right-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content;

    grid-template-areas: "box-my-projects box-my-projects"
        "box-project-1 box-project-2"
        "box-recent-posts box-recent-posts"
        "box-post box-post";

    height: fit-content;
}

#box-recent-posts {
    grid-area: box-recent-posts;
}

#box-post {
    grid-area: box-post;

}

#box-recent-posts>.layer {
    padding: 4vh;
}

#left-main,
#right-main {
    width: 100%;
    gap: 4vh;
}


#box-i>.layer,
#box-links>.layer,
#box-technologies>.layer,
#box-experiences>.layer,
#box-education>.layer,
.box-project>.layer,
#box-post>.layer {
    padding: 2vw;
}

#box-links>.layer {
    padding-top: 2vh;
    padding-bottom: 2vh;
}

#box-i {
    height: fit-content;
}



#box-i>.layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

[class*=text] {
    color: var(--primary-color);
}

:is(#left-main, #right-main)>div {
    position: relative;
    overflow: hidden;
}



div :has(>.layer) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.layer {

    /* 
        A propriedade z-index permite alterar a 
        ordem de sobreposição dos elementos dispostos na tela
    */
    z-index: 3;
    background-color: var(--secondary-color);

    /* 
        A função calc() permite calcular 
        quando especificar valores de propriedades. 
    */
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border-radius: 20px;
}

.box-text-i {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2vh;
}

.my-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2vh;
    margin-bottom: 0.5vh;
}

.my-area {
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0;
}

.box-icon-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1vw;

    margin: 2vh 0;
}

.box-icon-text svg{
    min-width: 24px;
}


p.text-link {
    word-break: break-all;
}

div>[class*="text-title"] {
    font-size: 1.5rem;
    font-weight: bold;
}

.category-text-title {
    padding: 0vh;
    margin: 0vh 0vh 2vh 0;


}

.box-stacks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;

    gap: 0.7vw;
}

.box-stack {
    background-color: #CB92B1;
    border-radius: 30px;

    display: flex;
    justify-content: center;
}

.box-stack .stack-text {
    padding: 0;
    margin: 0.5vh 0vh;

    align-self: center;

    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #000;
}

.journey-ul,
.category-ul {
    margin: 0vh;
}

.experience-text-title,
.education-text-title {
    font-weight: 900;
}

div> :is(.experience-text-title, .education-text-title) {
    font-size: 1rem;
}

:is(.experience-text, .education-text):nth-of-type(1) {
    font-weight: 300;
}

:is(.experience-text, .education-text):nth-of-type(2) {
    font-weight: 600;
}

:is(.journey-li, .category-li):not(:last-child) {
    margin: 2vh 0vh;
}

li {
    list-style: none;
}

div[class^="box"][class$="title"] {
    display: flex;
    flex-direction: row;
}

li>div::before {
    content: "\2022";
    color: var(--primary-color);
    font-weight: bold;

    width: 1em;
    margin-left: -1em;
}

#box-my-projects {
    grid-area: box-my-projects;
}

#box-my-projects>.layer {
    display: flex;

    flex-direction: row;
    justify-content: space-between;

    box-sizing: border-box;

    padding: 4vh;
}

.see-more-text {
    text-decoration: none;

    display: flex;
    align-items: center;
}

.icon-text-title {
    display: flex;
    gap: 0.8vw;

    align-items: center;
}

.icon-text-title>svg {
    transform: scale(0.8);
}

.box-project:first-of-type {
    grid-area: box-project-1;
}

#right-main> :has(.box-project) {
    display: none !important;
}

.star-branch {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    gap: 1vw;
}

.project-meta {
    display: grid;
    grid-template-columns: 30% 60%;
    justify-content: space-between;
}

.star,
.git-branch {
    display: flex;
    flex-direction: row;

    align-items: center;
    gap: 0.2vw;
}

.project-title {
    font-size: 0.9rem;
}

.description {
    margin-bottom: 1vh;
}

.description-text {
    font-size: 0.8rem;
}

.star-branch svg {
    color: var(--primary-color);
}

.meta {
    font-weight: 400;
    color: var(--primary-color);
}

.stack {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 5px;
}

.stack-icon {
    width: 10px;
    height: 10px;

    border: 2px solid var(--primary-color);
    border-radius: 30px;

    background-color: #E7DE79;
}

.stack-text {
    font-size: 14px;
    text-transform: initial;
    font-weight: 700;
    text-transform: uppercase;
}

.project-meta {
    display: flex;
    justify-content: space-between;
}

.box-project>.layer {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}


#box-post>.layer {
    display: flex;
    gap: 2vh;
}

#box-post .box-description {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

#box-post .box-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2vh;
}

#box-post .post-box-title {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

#box-post .box-description .post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

#box-post .box-description .time {
    font-size: 0.9rem;
    color: var(--primary-color);
}

#box-post .post-box-description {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
}

#box-post .description-text {
    font-size: 1rem;
    color: var(--primary-color);
}

#box-post .box-hashtag {
    display: flex;
    flex-direction: row;
    gap: 2vw;

}

#box-post .hashtag {
    font-size: 1rem;
    color: var(--primary-color);
}

#footer>#text-footer {
    font-weight: 700;
    color: var(--primary-color);
}

@media (min-width:1280px) {
    :is(#left-main, #right-main)>div::before {
        content: '';
        box-sizing: border-box;
        transition: 0.75s ease-in-out;

        position: absolute;

        left: 0;
        bottom: 0;

        width: 0%;
        height: 0%;

        border-radius: 20px;

        border-left: solid 2px transparent;
        border-bottom: solid 2px transparent;
    }

    :is(#left-main, #right-main)>div:hover::before {

        width: 100%;
        height: 100%;

        border-left: solid 2px var(--contrast-color);
        border-bottom: solid 2px var(--contrast-color);
    }

    :is(#left-main, #right-main)>div::after {
        content: '';
        box-sizing: border-box;
        transition: 0.75s ease-in-out;
        position: absolute;
        right: 0;
        top: 0;
        width: 0%;
        height: 0%;
        border-radius: 20px;
        border-right: solid 2px transparent;
        border-top: solid 2px transparent;
    }

    :is(#left-main, #right-main)>div:hover::after {

        width: 100%;
        height: 100%;

        border-right: solid 2px var(--contrast-color);
        border-top: solid 2px var(--contrast-color);
    }
}

@media (max-width: 980px) {
    body {
        gap: 2vh;
    }

    main {

        display: flex;
        flex-direction: column;

        gap: 2vh;
        width: 100%;

        max-width: 90vw;
    }

    #left-main, #right-main {
        gap: 2vh;
    }

    #left-main {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
            "box-i box-i box-i" 
            " box-technologies box-technologies box-technologies"
            "box-links box-experiences box-education";
    }
    
    #box-i {
        grid-area: box-i;
    }
    #box-links {
        grid-area: box-links;
    }
    #box-technologies {
        grid-area: box-technologies;
        height: 20vh;
    }
    
    #box-technologies > .layer {
        display: flex;
        flex-direction: column;
    }
    
    #box-technologies > .layer > .box-stacks {
        height: 100%;
        gap: 1.5vw;
    }
    #box-experiences {
        grid-area: box-experiences;
    }
    #box-education {
        grid-area: box-education;
    }
    
   
    
}

@media (max-width: 720px) {
    #left-main {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
        "box-i"
        " box-technologies"
        "box-links"
        "box-experiences"
        "box-education";
    }

    #right-main {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: min-content;
        grid-template-areas:
            "box-my-projects "
            "box-project-1 "
            "box-project-2"
            "box-recent-posts"
            "box-post";
    }
    
    #box-i>.layer, #box-links>.layer, #box-technologies>.layer, #box-experiences>.layer, #box-education>.layer, .box-project>.layer, #box-post>.layer{
        padding: 4vw;
    }

    .post-imagem {
        display: none;
    }
    

    #box-my-projects>.layer, #box-recent-posts>.layer{
        padding: 4vh 4vw;
    }
}