@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,1,0");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik+Mono+One&display=swap");

/* Tema claro */
:root {
    --cor-fundo: #ffffff;
    --cor-link: #3a4ca0;
    --cor-selecao: #d0cbc1;
    --cor-texto-guia: #20345c;
    --cor-fundo-items: #ffffff70;
    --cor-borda: #d1d1d1;
    --cor-hover: #e6e6e670;
    --cor-texto: #1d2536;
    --cor-avatar-borda: #d1d1d1;
    --cor-p: #1d2536;
    --cor-titulo-h2: #1d2536;
    --cor-titulo-h1: #1d2536;
    --cor-ball1: #3a4ca0;
    --cor-ball2: #6a3aa0;
    --cor-ball3: #60add1;
    --cor-ball4: #51c991;
    --cor-ball5: #a660d1;
    --cor-box-fundo: #dfdfdf;
    --cor-sombra: #0000004d;
    --cor-modal-fundo: #00000096;
    --cor-close-texto: rgb(50, 100, 123);
    --cor-close-fundo-hover: rgb(215, 215, 215);
    --cor-close-fundo: rgb(255, 255, 255);
    --cor-close-texto-hover: rgb(19, 64, 84);
    --cor-imagem-modal-borda: #687c88;
    --cor-i: #1d2536;
    --color-footer: #dfdfdf;
}

/* Tema escuro */
[theme="dark"] {
    --cor-fundo: #000000;
    --cor-link: #5a6ecc;
    --cor-selecao: #3e3e3e;
    --cor-texto-guia: #e0e0e0;
    --cor-fundo-items: #32164a70;
    --cor-borda: #2c1d3b;
    --cor-hover: #6a3d9160;
    --cor-texto: #ffffff;
    --cor-avatar-borda: #32164a;
    --cor-p: #e0e0e0;
    --cor-titulo-h2: #d1d1d1;
    --cor-titulo-h1: #ffffff;
    --cor-ball1: #3a4ca0;
    --cor-ball2: #6a3aa0;
    --cor-ball3: #60add1;
    --cor-ball4: #51c991;
    --cor-ball5: #a660d1;
    --cor-box-fundo: #212121;
    --cor-sombra: #00000080;
    --cor-modal-fundo: #000000cc;
    --cor-close-texto: #b0b0b0;
    --cor-close-fundo-hover: #4c4c4c;
    --cor-close-fundo: #2e2e2e;
    --cor-close-texto-hover: #d8d8d8;
    --cor-imagem-modal-borda: #3f4a53;
    --cor-i: #e0e0e0;
    --color-footer: #181818;
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    background-color: var(--cor-fundo);
    transition: background-color 0.2s;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-thumb {
    background-color: #939292;
    border-radius: 7px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #727272;
}

a:link {
    color: var(--cor-link);
}

a:visited {
    color: var(--cor-link);
}

.inicial {
    min-height: 100vh;
    min-width: 100%;
}

.inicial header,
.inicial .name,
.inicial .contatos,
.inicial .categorias {
    animation: iniciar 1s forwards;
}

@keyframes iniciar {
    0% {
        opacity: 0;
        transform: translateY(5vh);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

::selection {
    background-color: var(--cor-selecao);
}

.name {
    margin-top: 160px;
}

.me_container {
    padding-top: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.guia {
    margin-top: 70px;
    font-weight: 900;
    color: var(--cor-texto-guia);
    font-size: 30px;
}

.botoesGuia {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-left: 30px;
    margin-right: 30px;
}

.animar {
    opacity: 0;
    transform: translateY(5vw);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}
.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

.botaoGuia {
    margin: 2px;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    border-color: var(--cor-borda);
    background-color: var(--cor-fundo-items);
    color: var(--cor-texto);
    font-weight: bold;
    padding: 8px 14px;
    font-size: 15px;
    border-width: 1px;
    border-style: solid;
    transition:
        background-color 0.25s ease,
        transform 0.2s,
        color 0.25s,
        border-color 0.25s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.botaoGuia:hover {
    background-color: var(--cor-hover);
}

.botaoGuia:active {
    transform: scale(0.9);
}

.sobre {
    border-radius: 20px 10px 10px 20px;
}

.competencias {
    border-radius: 10px;
}

.projetos {
    border-radius: 10px 20px 20px 10px;
}

.categorias {
    margin-top: 10vh;
}

.boxBtn {
    margin-bottom: 10px;
    margin-left: 2px;
    margin-right: 2px;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    border-color: var(--cor-borda);
    background-color: var(--cor-fundo-items);
    color: var(--cor-texto);
    font-weight: bold;
    padding: 8px 14px;
    font-size: 15px;
    border-width: 1px;
    border-style: solid;
    transition:
        background-color 0.25s ease,
        transform 0.2s,
        color 0.25s,
        border-color 0.25s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    filter: brightness(90%);
}

.boxBtn:hover {
    background-color: var(--cor-hover);
}

.boxBtn:active {
    transform: scale(0.9);
}

.acessar {
    border-radius: 20px 10px 10px 20px;
}

.github {
    border-radius: 10px 20px 20px 10px;
}

.githubOnly {
    border-radius: 20px;
}

main {
    transition: filter 0.3s;
}

.avatar.widthFrames {
    animation: widthFrames 0.8s ease-in-out;
}

.avatar {
    cursor: pointer;
    border-style: solid;
    border-width: 4px;
    border-color: var(--cor-avatar-borda);
    width: 180px;
    border-radius: 50%;
    position: absolute;
    transition:
        transform 0.8s ease-in-out,
        opacity 0.8s ease-in-out,
        border-color 0.2s;
}

.avatar.pular {
    animation: pular 0.6s ease-in-out;
}

@keyframes pular {
    0% {
        width: 180px;
    }
    50% {
        width: 160px;
    }
    100% {
        width: 180px;
    }
}

p {
    text-align: justify;
    color: var(--cor-p);
    font-size: 16px;
}

@keyframes widthFrames {
    0% {
        transform: translateY(-20px);
        width: 130px;
    }
    65% {
        transform: translateY(5px);
        width: 185px;
    }
    100% {
        transform: translateY(0px);
        width: 180px;
    }
}

h2,
h3,
h4 {
    font-weight: 900;
    letter-spacing: 3px;
    font-family: "Poppins", sans-serif;
}

h2 {
    color: var(--cor-titulo-h2);
    text-align: center;
    font-size: 16px;
}

h3 {
    color: var(--cor-i);
}

h1 {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 30px;
    color: var(--cor-titulo-h1);
    font-family: "Rubik Mono One", monospace;
    text-align: center;
}
header {
    display: flex;
    align-items: center;
    height: 60px;
    margin-bottom: 35px;
}

.contatos {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contatos i,
.return i,
.theme i {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 5px;
    height: 24px;
    width: 24px;
    font-size: 20px;
    border-radius: 50%;
    padding: 8px;
    color: var(--cor-i);
    background-color: var(--cor-fundo-items);
    transition:
        background-color 0.25s ease,
        transform 0.2s;
    border: 1px solid var(--cor-borda);
}

.contatos i:hover,
.return i:hover,
.theme i:hover {
    background-color: var(--cor-hover);
}

.contatos i:active,
.return i:active,
.theme i:active {
    transform: scale(0.85);
}

.blur {
    filter: blur(50px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.return i,
.theme i {
    backdrop-filter: blur(5px);
}

@keyframes opacityFrames {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}

.ball {
    opacity: 60%;
    position: absolute;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: -1;
}

.ball1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation: float1 25s ease-in-out infinite alternate;
    background-color: var(--cor-ball1);
}

.ball2 {
    width: 250px;
    height: 250px;
    top: 70%;
    left: 80%;
    animation: float2 28s ease-in-out infinite alternate;
    background-color: var(--cor-ball2);
}

.ball3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 40%;
    animation: float3 22s ease-in-out infinite alternate;
    background-color: var(--cor-ball3);
}

.ball4 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 85%;
    animation: float4 30s ease-in-out infinite alternate;
    background-color: var(--cor-ball4);
}

.ball5 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 15%;
    animation: float5 26s ease-in-out infinite alternate;
    background-color: var(--cor-ball5);
}

@keyframes float1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(45vw, 15vh) scale(1.3);
    }
    50% {
        transform: translate(10vw, 55vh) scale(0.9);
    }
    75% {
        transform: translate(-25vw, 25vh) scale(1.1);
    }
    100% {
        transform: translate(15vw, -15vh) scale(1);
    }
}

@keyframes float2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    20% {
        transform: translate(-35vw, -45vh) scale(0.85);
    }
    45% {
        transform: translate(-60vw, -10vh) scale(1.15);
    }
    70% {
        transform: translate(-15vw, 25vh) scale(0.95);
    }
    100% {
        transform: translate(-45vw, -25vh) scale(1);
    }
}

@keyframes float3 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    30% {
        transform: translate(55vw, -35vh) scale(1.4);
    }
    60% {
        transform: translate(35vw, 45vh) scale(0.6);
    }
    85% {
        transform: translate(-5vw, 15vh) scale(1.1);
    }
    100% {
        transform: translate(-15vw, -20vh) scale(1.25);
    }
}

@keyframes float4 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    40% {
        transform: translate(-45vw, 55vh) scale(1.2);
    }
    70% {
        transform: translate(-65vw, 20vh) scale(0.8);
    }
    90% {
        transform: translate(-10vw, 60vh) scale(1.05);
    }
    100% {
        transform: translate(-30vw, 35vh) scale(1);
    }
}

@keyframes float5 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    15% {
        transform: translate(60vw, -25vh) scale(1.1);
    }
    45% {
        transform: translate(30vw, -70vh) scale(0.75);
    }
    80% {
        transform: translate(80vw, -10vh) scale(1.2);
    }
    100% {
        transform: translate(50vw, -30vh) scale(1.05);
    }
}

.segundaParte,
.terceiraParte,
.quartaParte {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-wrap: wrap;
}

.terceiraParte {
    flex-direction: column;
}

.h2Title {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
}

.boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.box {
    margin: 20px;
    width: 100%;
    max-width: 550px;
    background-color: var(--cor-fundo-items);
    border: 1px solid var(--cor-borda);
    padding-top: 10px;
    padding-bottom: 30px;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 24px;
    box-shadow: 0px 4px 10px var(--cor-sombra);
    transition: background-color 0.2s;
}

.box h2 {
    font-size: 22px;
}

.return {
    transform: translateY(-60px);
    text-align: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
    transition: transform 0.3s ease-in-out;
}
.theme {
    text-align: center;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.return i {
    font-size: 24px;
}
.box img {
    cursor: pointer;
    margin: 4px;
    border-radius: 12px;
    width: calc(50% - 8px);
    transition: transform 0.07s ease-in-out;
    box-shadow: 0px 4px 6px var(--cor-sombra);
    transition:
        transform 0.25s ease-out,
        filter 0.25s;
}

.box img:hover {
    transform: scale(1.03);
    filter: brightness(50%);
}

.modal img {
    border-width: 3px;
    border-style: solid;
    border-color: var(--cor-borda);
    border-radius: 24px;
    max-height: 80vh;
    max-width: 80vw;
    transition: transform 0.07s ease-in-out;
}

.box img:active {
    transform: scale(0.9);
}

footer {
    background-color: var(--cor-fundo-items);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: background-color 0.2s;
}

footer p {
    margin: 40px;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    position: fixed;
    background-color: var(--cor-modal-fundo);
    height: 100vh;
    width: 100vw;
    transition:
        opacity 0.5s,
        display 0.5s,
        filter 0.2s;
}

.modal .close {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--cor-close-fundo);
    height: 35px;
    width: 35px;
    font-size: 28px;
    position: fixed;
    color: var(--cor-close-texto);
    transform: translateY(calc(-50vh + 30px)) translateX(calc(50vw - 40px));
    transition:
        background-color 0.25s ease,
        transform 0.2s;
}

.modal .close:hover {
    background-color: var(--cor-close-fundo-hover);
    color: var(--cor-close-texto-hover);
}

.modal .close:active {
    transform: translateY(calc(-50vh + 30px)) translateX(calc(50vw - 40px))
        scale(0.9);
}

.habilidades {
    margin: 40px;
    margin-top: 60px;
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.habilidades img {
    height: 36px;
    border-radius: 10px;
    transition: transform 0.25s ease-out;
    margin: 2px;
}

.habilidades img:hover {
    transform: scale(1.08);
}

@media (max-width: 720px) {
    h1 {
        font-size: 24px;
    }
}

@media (min-width: 920px) {
    h1 {
        font-size: 36px;
    }
}
