@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@1,500&family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad&family=Open+Sans:wght@300&family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad&family=Montserrat:wght@100&family=Open+Sans:wght@300&family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad&family=Montserrat:wght@100;200;300&family=Open+Sans:wght@300&family=Roboto:wght@300&display=swap');

/** --- cores ----**/
:root {
    --primary-color: #5d1164;
    --second-color: #210230;
    --third-color: #ffee00;

}


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


header,
section {
    padding: 20px 140px;
    width: 100%;
    height: calc(100vh + 4em);
    background-color: var(--primary-color);
    transition: all .4s ease-in;
    overflow: hidden;
}


nav {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    flex-wrap: nowrap;
    padding: 20px 140px;
    width: 100%;
    background-color: var(--primary-color);
    transition: all .4s ease-in;
    z-index: 10;
}

nav .bx-code-alt {
    display: flex;
    color: #fff;
    align-items: center;
    flex-wrap: wrap;
    font-size: 40px;
    font-family: 'Roboto', sans-serif;
    width: 100%;

}

nav .bx-menu,
nav .bx-x {
    display: none;
    color: #fff;
}


nav .bx-code-alt a {
    font-size: 25px;
}

nav a {
    color: #fff;
    text-decoration: none;
    list-style-type: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
    padding: 0 10px;
    height: 25px;
    animation: animeNav 1s ease forwards;
    animation-delay: calc(0.1s * var(--i));
    opacity: 0;
}

nav i {
    animation: animeNav 1s ease forwards;
    animation-delay: calc(0.1s * var(--i));
    opacity: 0;
}

nav a:hover:not(.bx-code-alt a) {
    filter: opacity(0.5);
}

nav .bxs-sun {
    display: block;
    color: #fff;
    font-size: 35px;
    margin-left: 2em;
    margin-top: 0px;
    cursor: pointer;
}

nav .bxs-moon {
    display: block;
    color: #fff;
    font-size: 30px;
    margin-left: 2.5em;
    margin-top: 0px;
    cursor: pointer;
}

header {
    display: flex;
    flex-direction: column;
}


.me {
    margin-top: 4%;
    width: 100%;
}

.me p {
    color: #fff;
    font-family: 'Afacad', sans-serif;
    font-size: x-large;
    margin-bottom: 20px;
}

.me .name {
    font-family: 'Afacad', sans-serif;
    font-size: x-large;
    margin-bottom: 20px;
    transform: translateY(-100px);
    transition: all 1s ease;
    opacity: 0;
}

.me .textAboutMe {
    font-size: 15px;
    margin-top: 20px;
    height: auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    transform: translateY(100px);
    transition: all 1s ease;
    opacity: 0;
}

.me p span {
    color: #fffb03;
}

.me h1 {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: xx-large;
    word-wrap: break-word;
    transform: translateX(-100px);
    transition: all 1s ease;
    opacity: 0;
    /* transition: all 5s ease;     */
}

.me .info-me {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap-reverse;
    width: 100%;

}

.me .info-me .dados {
    width: 38rem;
    min-width: 18em;
    /* background-color: blue; */
}

.info-me .image {
    width: 25rem;
}

.computer {
    width: 100%;
    transform: translateX(280px);
    transition: all ease-out 1s;
    opacity: 0;

}

.social-media {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-top: 40px;
}

.social-media i {
    color: #fff;
    margin: 0 8px;
    font-size: 20px;
    border-radius: 50%;
    border: 1px solid #fff;
    background-color: none;
    cursor: pointer;
    padding: 4px;
    /* animation: animeSocialMedia 1s step-end forwards; */
    /* animation-delay: calc(.1s * var(--i)); */
    transform: translateX(-100px);
    transition: all step-end calc(.1s * var(--i));
    transition-delay: .3s;
    opacity: 0;
}


.social-media i:hover {
    color: var(--third-color);
    transition: all ease 1s;
}

.titulo::after {
    content: '|';
    animation: cursor .4s infinite;
    font-weight: lighter;
}

.animationCursor {
    animation: cursor .4s infinite;
}

.changeBackgroundColor {
    background-color: var(--second-color);
    transition: all .4s ease-in;
}

/** ----------- SOBRE ------------**/
.sobre {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 5em;
}

.sobre h2 {
    position: relative;
    font-family: 'Roboto', sans-serif;
    margin: 1.5em 0 5em;
    color: #fff;
    transition: all ease 3s;
    opacity: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.bx-user {
    position: absolute;
    left: -30px;
}

.sobre-mim {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: 0px 12em;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
    grid-template-areas: "image texto" "curriculum curriculum";
    column-gap: 20px;
    width: 80%;
}

.sobre-mim .image {
    grid-area: image;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transform: translateX(-100px);
    transition: all ease 1s;
    overflow: hidden;
    opacity: 0;
}

.sobre-mim .image img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
    transform: scale(1.2);

}

.sobre-mim .texto {
    grid-area: texto;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 15px;
    /* width: 30em; */
    margin-bottom: 4em;
    transform: translateX(100px);
    transition: all ease 1s;
    opacity: 0;
}

.sobre-mim .curriculum {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    grid-area: curriculum;
    transform: translateY(100px);
    transition: all ease-out 1s;
    opacity: 0;

}

.sobre-mim .btnCurriculum {
    color: #fff;
    font-family: 'Afacad', sans-serif;
    font-size: medium;
    background: none;
    border-radius: 6px;
    border: 1px solid #fff;
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
}

.sobre-mim .btnCurriculum:hover {
    color: var(--third-color);
}


/** --------- SKILLS ------------ **/

.skills {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.skills .title {
    position: relative;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    text-align: center;
    margin-top: .3em;
    transform: translateY(-40px);
    transition: all ease .8s;
    opacity: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* background-color: red; */
}

.bxs-graduation {
    position: absolute;
    left: -35px;
    font-size: 30px;
}

#grafico {
    width: 60vw;
    height: 20em;
    margin-top: 4em;
}

.modelo {
    transition: all ease-out 2s;
    opacity: 0;
}

#button button {
    background-color: #4c67df;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    border: none;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-pizza,
.btn-barra,
.btn-linha {
    /* transform: translateX(-100px); */
    color: #fff;
    font-size: xx-large;
    margin-right: 20px;
    cursor: pointer;
    transition: all ease .5s calc(.2s * var(--b));
    opacity: 0;
}

.btn-pizza:hover,
.btn-barra:hover,
.btn-linha:hover {
   color: #ffffff69;
}

.colorGrafico {
    color: #ffffff69;
}



/**----------------------- HISTORICO ---------------------**/
.historico {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.historico .title {
    display: flex;
    align-items: center;
    position: relative;
    font-family: 'Roboto', sans-serif;
    margin: 0.3em 0 2.5em;
    transition: all ease 1s;
    transition-delay: .2s;
    opacity: 0;
    color: #fff;
}

.historico .bx-spreadsheet {
    position: absolute;
    left: -30px;
}

.historico .conteudo {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 8px;
    align-items: baseline;
    justify-content: center;
    width: 100%;
}


.hist-content {
    min-height: 110px;
    padding: 6px 4px 2px;
    cursor: pointer;
}

.hist-content .bx-play-circle {
    position: absolute;
    color: var(--third-color);
    font-size: xx-large;
    left: -12px;
    top: 0;
}

.hist-content p:nth-child(4) {
    color: var(--third-color);
    transition: all ease-out .2s;
    opacity: 0;
}

.hist-content:hover p:nth-child(4){
    opacity: 1;
}

.hist-content.from-top {
    transform: translateY(-100px);
    transition: all ease calc(.1s * var(--ev));
    transition-delay: .3s;
    opacity: 0;
}


.hist-content h2 {
    font-family: 'Roboto', sans-serif;
    color: var(--third-color);
    margin-left: 20px;
    font-size: 18px;
}

.hist-content p {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    margin-left: 20px;
    font-size: 14px;
}


/**-------------------- MODAL HISTORICO -----------------**/
.modal-historico {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.788);
    transition: all ease .1s;
    -webkit-transition: all ease .1s;
    z-index: 10;
}

.info-modal-historico {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    width: 20em;
    min-height: 300px;
    padding: 20px;
    border-radius: 4px;
    animation: animeModal 2s ease forwards;

}

.info-modal-historico .bx-x {
    position: absolute;
    top: 0;
    right: 0;
    color: #ff0000;
}

.info-modal-historico h2 {
    font-family: 'Montserrat', sans-serif;
    color: #000;
    margin-bottom: 2rem;
}

.info-modal-historico p {
    font-family: 'Rethink', sans-serif;
    color: #000;
}

.info-modal-historico p:nth-child(3) {
    margin-bottom: 2rem;
}




/**----------------------- PORTFOLIO----------------------**/
.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio .title {
    position: relative;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    margin: 2px 0 2.5em;
    transform: translateX(-100px);
    transition: all ease .8s;
}

.bx-task {
    position: absolute;
    left: -30px;
}

.portfolio .content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;

}

.bx-code-block {
    font-size: 4em;
    color: #fff;
    margin-bottom: .4rem;
    text-align: center;
}

.portfolio .info {
    display: flex;
    flex-direction: column;
}


.web-developer:hover button,
.developer:hover button,
.designer-grafico:hover button {
    transform: translateX(0)
}

.portfolio .web-developer,
.portfolio .developer,
.portfolio .designer-grafico {
    width: 15em;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    transition: all ease .5s calc(.2s * var(--a));
    overflow: hidden;
    margin: 0 1rem;
    opacity: 0;
}


.portfolio .content .image {
    position: relative;
    overflow: hidden;
    height: 8em;
    display: none;
}

.portfolio .content .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all ease .3s;
}

.portfolio .content .image img:hover {
    transform: scale(1.2);
    object-fit: cover;
}

.portfolio .content h2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    color: var(--third-color);
    font-family: 'Montserrat', sans-serif;
    margin: 10px 0 10px;
    line-height: 25px;
}

.portfolio .content .bxl-html5, 
.portfolio .content .bxl-c-plus-plus,
.portfolio .content .bxs-paint{
    font-size: 60px;
    left: 0;
    margin-right: 10px;
}

.portfolio .content .info{
    margin-bottom: 6em;
}

.portfolio .content .info p {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 200;
    margin-bottom: .1em;
}


.portfolio .info:hover .saiba-mais {
    opacity: 1;
}

.info .saiba-mais {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--third-color) !important;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all ease-in .5s;
    opacity: 0;
}


/** ------ modal ------ **/
.fade {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.788);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    opacity: 0;
}

.modal-fade {
    display: flex;
    flex-direction: column;
    background: #fff;
    width: 20rem;
    height: 25rem;
    max-width: 50%;
    padding: 14px;
    margin-left: 2rem;
    border-radius: 4px 0 0 4px;
    opacity: 0;
}

.fade .modal-fade h2 {
    color: var(--primary-color)
}

.modal-fade p {
    margin-top: .4rem;
    line-height: 18px;
    text-align: justify;
    color: var(--primary-color)
}

.modal-fade img {
    object-fit: cover;
    height: 18rem;
}

.info-fade {
    position: relative;
    background: #fff;
    color: var(--second-color);
    width: 20em;
    height: 25rem;
    min-width: 2rem;
    padding: 50px 14px 0;
    border-radius: 0 4px 4px 0;
    margin-right: 2rem;
    animation: animeModal 1s ease forwards;
    opacity: 1;
}


.bx-x {
    position: absolute;
    top: 0;
    right: 0;
    color: #ff0000;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.bx-check-circle {
    margin-right: 10px;
}

.fade.hideModal,
.modal-fade.hideModal,
.info-fade.hideModal {
    display: none;
    opacity: 0;
}


.fade.showModal,
.modal-fade.showModal {
    display: flex;
    animation: animeModal 1s ease forwards;
}


/**------------ SECTION FORMULARIO------------------**/

.contato {
    position: relative;
}

.formulario {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.formulario legend h2 {
    position: relative;
    display: flex;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    margin: 5rem 0 2.5em;
    transition: all ease-out 2s;
    transition-delay: .2s;
    opacity: 0;
}

.formulario .bx-envelope {
    position: absolute;
    left: -30px;
}

.formulario {
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    display: grid;
    grid-template-columns: 50%;
    justify-content: center;
    width: 100%;
    min-width: 40em;
}

input,
textarea {
    width: 100%;
    margin-bottom: .4rem;
    border-radius: 4px;
    border: none;
    padding: 10px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    transform: translateX(-100px);
    transition: all ease-out calc(.2s * var(--t));
    opacity: 0;
}

.buttons {
    transition: all ease-out 1s;
    opacity: 0;
}

button {
    border-radius: 4px;
    padding: 10px 14px;
    cursor: pointer;
}

button#enviar {
    background-color: #0a6d57;
    color: #fff;
    border: 1px solid #fff;
}

button#limpar {
    background-color: #9c3333;
    color: #fff;
    border: 1px solid #fff;
}

button#enviar:hover {
    background-color: #0c4438;
}


button#limpar:hover {
    background-color: #812323;
}


.formulario .modal {
    display: none;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    position: fixed;
    background: #020000ab;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.formulario .modal .infoModal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 20em;
    height: 10em;
    padding: 8px;
    border-radius: 4px;
}

.formulario .modal .infoModal p {
    font-family: 'Afacad', sans-serif;
    font-size: x-large;
    color: var(--second-color);

}

.formulario .modal .infoModal p:nth-child(3) {
    font-size: 18px;
    color: var(--second-color);
}

.formulario .modal .infoModal button {
    background: #16a586;
    border: none;
    outline: none;
    cursor: pointer;
    min-width: 80px;
    margin: 10px 0 20px;
    font-weight: bold;
}

.formulario .modal .infoModal .bx-check-double {
    font-size: xx-large;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000;
    height: 100px;
    width: 100%;
}

footer p {
    font-family: 'Montserrat',sans-serif;
    color: var(--third-color);
    font-size: small;
}


/* animação no intersectionObserver*/
.animate.show {
    transform: translateY(0);
    transform: translateX(0);
    opacity: 1;
}


/** animações em keyframes **/

@keyframes cursor {
    50% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}


@keyframes animeNav {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes animeSocialMedia {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes animeModal {
    to {
        transition: all ease 2s;
        opacity: 1;
    }

    from {
        opacity: 0
    }
}

@keyframes opacity {
    to {
        transition: all ease 2s;
        opacity: 0;
    }

    from {
        opacity: 1;
    }
}