@charset "UTF-8";

/* PALETA DE CORES */
:root{ 
    --corBranca: #ffffff;
    --corPreta: #000000;
    --corCinza: #8d8d8d;

    --cor1: #8741ea;
    --cor2: #793ad1;
    --cor3: #5b2c9e;
    --cor4: #3D2F52;
    --cor5: #2F1752;


    --cor6: #a37dd9;
    
    --corNav: #4f3b6b;
}

/* FONTES */
:root{
    --font1: "Inter", sans-serif;
}

/* ESTILO GERAL */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;

    font-family: Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
    /* background: radial-gradient(circle at top left, #1a0933, #100820); */
    background: url(../image/background-site.jpg) no-repeat;
    background-size: cover;
    min-height: 100vh;
}

section#home {
    height: calc(100vh - 87px);

    display: flex;
    align-items: center;
}
 
section#sobre,
section#contato {
    height: 100vh;

    display: flex;
    align-items: center;
}

.interface {
    max-width: 1380px;
    padding: 0 4%;
    margin: 0 auto;
}

button {
    background-color: transparent;
    border: 2px solid var(--corBranca);
    border-radius: 10px;

    font-size: 1.2em;
    color: var(--corBranca);

    cursor: pointer;
    transition: .5s ease;
}

button:hover{
    background-color: var(--cor2);
    transform: scale(1.05);
}

/* PARTE DO NAV */
nav.menu-desktop {
    background: linear-gradient(to bottom, #0B0618 80%, rgba(23, 17, 37, 0.100) 100%);
    color: var(--corBranca);

    width: 100%;
    padding: 25px;
    
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

nav.menu-desktop ul {
    display: flex;
    flex-flow: row wrap;
    gap: 100px;
}

nav.menu-desktop ul li {
    list-style-type: none;
}

nav.menu-desktop ul li a {
    display: inline-block;
    color: var(--corNav);

    font-size: clamp(1rem, 2.5vw, 2rem); /* ANTES ERA 30px */
    text-decoration: none;  
}

nav.menu-desktop ul li a:hover {
    color: var(--corBranca);

    transform: scale(1.05);
    transition: 0.4s;
}

/* PARTE DO HOME */
section#home > .interface {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    
    text-align: left;
    gap: 20px;
}

/* PARTE DA ESCRITA DO HOME */
.text-home h1 {
    color: var(--cor2);
    font-size: clamp(3rem, 5vw, 3.5em); /* ANTES ERA 5em */
    font-weight: bold;

    cursor: default;
}

.text-home h1 span {
    display: inline-block;
    transition: .5s;
}

.text-home h1 span:hover {
    color: var(--cor3);
    transform: scale(1.1);
}

.text-home p {
    color: var(--corBranca);
    font-size: clamp(2rem, 2.5vw, 2.25em); /*ANTES ERA 2em*/
    font-weight: normal;

    padding-left: 3px;
    cursor: default;
}

.text-home a {
    color: var(--corBranca);    
    text-decoration: none;
}

/* PARTE DA IMAGEM DO HOME */
.img-home {
    /*
    width: 450px; 
    height: 450px;
    */

    width: clamp(200px, 40vw, 450px);
    height: clamp(200px, 40vw, 450px);

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.img-home img{
    /*
    height: 350px;
    width: 350px;
    */

    width: clamp(180px, 35vw, 350px);
    height: clamp(180px, 35vw, 350px);

    object-fit: cover;
    object-position: center top;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-content: center;

    transition: 0.2s ease;
}   

.img-home:hover img {
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}   

.img-home div.arco-branco {
    /*
    height: 400px;
    width: 400px;
    */
    
    width: clamp(250px, 40vw, 400px);
    height: clamp(250px, 40vw, 400px);
    
    border: 15px solid var(--corBranca); 
    border-radius: 50%;
    mask-image: linear-gradient(to right, black 0 50%, transparent 50% 100%);

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    animation: rodar 10s ease-in-out infinite;
}

@keyframes rodar {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.text-home button {
    width: 200px;
    height: 50px;

    margin: 15px 0;
}

h1.titulo-section {
    font-size: 4rem;
    color: var(--corBranca);
}

h1.titulo-section span {
    color: var(--cor2);
}

/* PARTE DO SOBRE */
section#sobre .interface {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 96px;
}

.text-sobre p {
    color: var(--corCinza);
    
    font-size: 1.2em;
    text-align: justify;
    line-height: 1.5;

    margin: 24px 0;
}

.img-sobre img {
    height: 400px;
    width: auto;
    border-radius: 40px;

    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: .2s;
}

.img-sobre img:hover {
    transform: scale(1.05);
}

/* PARTE DO PROJETO */
section#projeto {
    height: 70vh;
}

section#projeto .interface > h1 {
    margin: 16px 0 70px 0;
    text-align: center;
}

.container-portfolio {
    display: grid;
    grid-template: 1fr / 1fr 1fr 1fr 1fr;
    gap: 24px;
}

.container-portfolio .box-portfolio {
    position: relative;

    height: 400px;
    width: 250px;

    border: 2px solid var(--cor2);
    border-radius: 10px;
    
    background-position-y: 0%;

    overflow: hidden;

    transition: background-position-y 2s;
}

.container-portfolio .box-portfolio .text-portfolio {
    position: absolute;

    height: 100%;
    width: 100%;

    top: 0;
    left: 0;

    background-color: #17043b77;
    border-radius: 16px;
    z-index: 999999;

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

    color: var(--corBranca);
    font-size: 18px;
    font-weight: 800;

    opacity: 0;
    transition: .5s;
}

.container-portfolio .box-portfolio .text-portfolio:hover {
    opacity: 1;
}

.container-portfolio .box-portfolio:hover {
    background-position-y: 100%;
}


.container-portfolio .projeto1 {
    background: url(../image/projetos/porftolio-completo.png);
    background-size: cover;
}

.container-portfolio .projeto2 {
    background: url(../image/projetos/site-exemplo1.jpg);
    background-size: cover;
}

.container-portfolio .projeto3 {
    background: url(../image/projetos/porftolio-completo.png);
    background-size: cover;
}

.container-portfolio .projeto4 {
    background: url(../image/projetos/site-exemplo2.jpg);
    background-size: cover;
}

/* PARTE DE HABILIDADES */
section#skills {
    padding: 180px 0;
}

section#skills article {
    display: grid;
    grid-template: 1fr / 300px 300px 300px;

    justify-content: center;

    gap: 40px;
    margin: 80px 0;
}

section#skills .git {
    grid-column: 2;
}

section#skills h1 {
    text-align: center;
}

#skills .box-skills {
    background-color: var(--cor3);
    padding: 20px;

    border-radius: 16px;

    color: var(--corBranca);
    font-weight: 600;
}

#skills .box-skills:hover {
    transform: scale(1.07);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.box-skills .icon-skills {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 20px;
    gap: 32px;
}

.box-skills .icon-skills img {
    max-width: 120px;
}

/* PARTE DO CONTATO */
section#contato > .interface {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.text-contato,
.formulario {
    flex: 1;
}

.text-contato p {
    color: var(--corCinza);
    font-size: 1.2em;
    margin: 40px 0;
    line-height: 25px;
}

.text-contato p > a {
    color: var(--cor2);
    text-decoration: none;
}

.text-contato p > a:hover {
    text-decoration: underline;
}

.btn-contato a {
    text-decoration: none;
}

.btn-contato button {
    width: 56px;
    height: 56px;
    font-size: 24px;
    margin-right: 10px;
}

.contato form {
    width: 50%;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;

    color: var(--corBranca);
    font-size: 1.1rem;

    margin-bottom: 10px;
}

form textarea {
    resize: none;
    height: 150px;
}

.formulario form button {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 10px;
    
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;

    background: var(--cor2);
    color: #fff;

    transition: 0.3s ease;
}

.formulario form button:hover {
    background: #432074;
    transform: scale(1.05);
}

/* PARTE DO FOOTER */
footer {
    background-color: transparent;
    color: var(--cor1);

    padding: 25px 0;

    font-size: clamp(0.8rem, 2vw, 0.75rem);  /* ANTES ERA 0.95rem */
    line-height: 1rem;
}

footer .interface {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

footer div {
    display: flex;
    gap: 20px;
}

footer div a {
    color: var(--cor2);
    text-decoration: none;
    transition: .3s;
}

footer div a:hover {
    color: var(--cor1);
    transform: scale(1.4);
}

footer div i {
    font-size: 1.3em;
    cursor: pointer;
}



