/*
    GLOBAL
    HEADER
    HERO
    ABOUT
    TECH
    PROJECTS
    CONTACT
    FOOTER
*/


/*
    GLOBAL
*/

/* ROOT */
:root{
    --cor-principal: #061e4e;
    --cor-destaque: #3498db;

    --cor-titulo: white;
    --cor-texto: #9ca3af;
    --cor-azul: #100146;
    --cor-azul-sombra: #0d013a;
    --cor-verde: rgb(13 226 138);

    --rounded: 0.5rem;
}


/* FONTES */
@font-face {
    font-family: 'Bauhaus 93';
    src: url('../fonts/bauhaus-93/bauhaus-93.woff2') format('woff2'),  /* Formato mais moderno e leve */
         url('../fonts/bauhaus-93/bauhaus-93.woff') format('woff'),    /* Formato amplamente suportado */
         url('../fonts/bauhaus-93/bauhaus-93.ttf') format('truetype'), /* Para dispositivos mais antigos */
         url('../fonts/bauhaus-93/bauhaus-93.otf') format('opentype'); /* Caso o truetype não funcione */
    
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Open sans', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

body, html {
    height: 100%;
    color: var(--cor-texto);
}

ul[role="list"]{
    list-style: none;
}

a{
    color: var(--cor-destaque);
    transition: color 0.3s;
    text-decoration: none;
    font-weight: 600;
}

a:hover{
    color: var(--cor-verde);
}

main > section:not(#hero){
    padding: 90px 20px;
    background-color: var(--cor-azul);

    &:nth-child(2n-1){ background-color: var(--cor-azul-sombra); }
}

section header {
    text-align: center;
    margin-bottom: 4rem;
}

.container{
    max-width: 1280px;
    margin: 0 auto;
}

.flex {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}


[class*="grid"] {
    display: grid;
    gap: 2rem;
}
.grid-cols-1{ grid-template-columns: 1fr; }
.grid-cols-2{ grid-template-columns: repeat(2, 1fr); }
.grid-cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid-cols-4{ grid-template-columns: repeat(4, 1fr); }

h2, h3, h4, h5
{
    color: var(--cor-titulo);
    font-weight: 400;
}
h2{
    font-size: 2em;
    font-weight: 400;
    margin-bottom: 1rem;
}
h3, h4{
    margin-bottom: .5rem;
}
h3 { font-size: 1.5rem; }
h4,
.subtitulo
{ font-size: 1.125rem;}

p span { color: white; }

button, input[type="submit"]{
    all: unset;
    transition: 0.3s;
    border-radius: var(--rounded);
    padding: 0.5rem 1rem;
    background-color: var(--cor-destaque);
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    gap: .5rem;

    svg { height: 1rem;}

    &:hover{
        background-color: var(--cor-verde);
    }

    &.btn-transparente{
        background-color: transparent;
        border: 1px solid white;
        
        &:not([btn-desabilitado]):hover{
            border-color: var(--cor-verde);
            color: var(--cor-verde);
        }
    }

    &.btn-pequeno{
        font-size: .875rem;
    }
}
[btn-desabilitado]{
    cursor: no-drop;
    opacity: 0.5;
}


/* Scrollbar */
::-webkit-scrollbar-track{
    background-color: var(--cor-azul);
}
::-webkit-scrollbar{
    background-color: var(--cor-azul);
    width: 6px;	
}
::-webkit-scrollbar-thumb{
    background-color: #fff;
}
::-webkit-scrollbar-track-piece{
    background-color: var(--cor-azul);
}










/*
    HEADER
*/
#body__header{
    width: 100%;
    text-align: center;
    position: sticky;
    top: 0;
    background-color: #f3f3f3;
    z-index: 100;
}

.menu{
    padding: 6px 3px;
    display: flex;
    justify-content: center;
    gap: 10px;


    & li a{
        display: block;
        padding: 3px 10px;
        border-radius: 5px;
        color: black;
        border: 1px solid transparent;
    
    
        &:hover{
            background-color: white;
            color: rgb(12, 12, 180);
            border-color: rgb(160, 160, 160);
        }
        
    }
}

@media screen and (max-width: 768px){
    /* Menu */
    .menu{
        padding: 5px;
    }
    .menu li{
        font-size: 0.8em;
    }
    
}

@media screen and (max-width: 480px){
    /* Menú */
    .menu li{
        display: inline-block;
        margin: 0;
    }
}










/*
    HERO
*/
#hero{
    min-height: 100vh;
    background: linear-gradient(180deg, #0a012e, var(--cor-azul), var(--cor-azul));
    position: relative;

    & .menu-redes-sociais{
        position: absolute;
        top: 5%;
        right: 5%;
        z-index: 10;
    
        & ul{
            display: flex;
            gap: 10px;
            list-style: none;
        
            & li{
                transition: 0.3s;
                font-size: 22px;
                color: white;
            
                & a{
                    color: rgba(255, 255, 255, 0.458);
                }
                &:hover a{
                    color: rgb(13 226 138);
                    text-shadow: 0px 0px 20px rgb(24, 90, 155);
                }
            }
        }
    }
}



#hero h1,
#hero h1 *
{
    font-family: 'Bauhaus 93', sans-serif;
    font-size: 46px;
    text-transform: uppercase;
    text-align: center;
    color: white;
}
#hero h1{
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;

    & .bg-titulo{
        padding: 0px 10px 0 8px;
        margin-left: 5px;
        background: linear-gradient(45deg, white, #cfcfcf);
        border-radius: 10px;
    
        & .degrade-on {
            background: var(--cor-verde);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        
            animation: piscar 2s infinite ease-in-out;
        }
        & .degrade-off {
            background: linear-gradient(90deg, rgb(188, 12, 12), rgb(110, 8, 8));
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
    }
}



.icones-efeito {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    bottom: 0;
}

.icones-efeito img {
    padding: 10px;
    cursor: pointer;
    position: absolute;
    height: 20px;
    filter: invert(1);
    width: auto;
    transition: 5s ease-in-out, padding 1s ease-out; /* Transição suaves e no pading mais rápida */
    opacity: 0.2;
}

.icones-efeito img:hover {
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.5s ease-in-out;
    opacity: 1;
    padding: 0px !important;
}



/* Transições */
@keyframes piscar {
    0%, 100% {
        background: var(--cor-verde);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    50% {
        
        background: rgb(24, 90, 155);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}










/*
    ABOUT
*/
#sobre article{
    gap: 3rem;
    align-items: center;

    img{
        border-radius: var(--rounded);
        width: 100%;
        height: auto;
    }

    & > section > :not(:last-child){ margin-bottom: 1.5rem; }
    div p { font-size: .875rem; }
}

@media screen and (width < 768px) {
    #sobre article.grid-cols-2{
        grid-template-columns: 1fr;
    }
}










/*
    TECH
*/
#tech ul{
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));

    li{
        --size: 4rem;
        text-align: center;
        padding: 1rem;

        filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.25));
        &:hover{
            filter: drop-shadow(0 0 24px white);
        }
        
        .icon{
            display: inline-block;
            height: var(--size);
            width: var(--size);
            background-color: var(--cor-azul-sombra);
            border-radius: var(--rounded);
            padding: 1rem;
            margin-bottom: 1rem;
        }
        svg, img{
            max-height: 100%;
            max-width: 100%;
            path{ fill: white }
        }
        img{
            filter: invert(1) grayscale(100%);
            background-color: unset;
        }
    }
}

@media screen and (width < 768px) {
    #tech ul{
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}










/*
    PROJECTS
*/
/* --- Projetos --- */
#projetos section.projetos-box{
    row-gap: 2.5rem;

    article{
        transition: 0.3s;
        border-radius: var(--rounded);
        background-color: black;
        box-shadow: 0 0 40px 0 rgba(255, 255, 255, .25);

        &:hover{ box-shadow: 0 0 80px 10px rgba(255, 255, 255, .5); }

        img{
            width: 100%;
            height: auto;
            aspect-ratio: 1280/650;
            object-fit: cover;
            object-position: center top;
            border-radius: var(--rounded) var(--rounded) 0 0;
        }

        .descricao{
            padding: 1.5rem;
            padding-bottom: 2rem;

            p{
                margin-bottom: 1rem;
            }
        }
        .flex{ gap: 1rem; }
    }
}

@media screen and (width < 1024px){
    #projetos section.projetos-box{
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (width < 768px) {
    #projetos section.projetos-box{
        grid-template-columns: 1fr;
    }
}










/*
    CONTACT
*/
#contatos {
    article{
        h3 { margin-bottom: 1.5rem; }

        ul{
            li{ margin-top: 1rem; }

            a {
                color: var(--cor-texto);
                &:hover{ color: var(--cor-verde); }
            }

            i { margin-right: 1rem; }
            .fa-whatsapp { font-size: 1.2rem; }
        }
    }

    form{
        display: flex;
        flex-direction: column;
        gap: 1rem;
        
        input:not([type="submit"]),
        textarea
        {
            color: white;
            font-size: 1rem;
            padding: .75rem 1rem;
            border-radius: var(--rounded);
            border: 1px solid var(--cor-texto);
            outline: unset;
            background-color: rgba(255, 255, 255, 0.1);

            &:focus,
            &:hover
            {
                border-color: white;
                box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
            }
        }

        textarea {
            width: 100%;
            resize: vertical;
        }

        [type="submit"] {
            padding: .75rem 1rem;
            margin-top: .5rem;
        }

        .required-vazio{
            border-color: rgb(171, 7, 7) !important;
        }
    }
}

@media screen and (width < 768px) {
    #contatos section.grid-cols-2{
        grid-template-columns: 1fr;
    }
}










/*
    FOOTER
*/
/* Botão WHATSAPP */
#btn-fixo{
    z-index: 1000;
    transition: 0.3s;
    width: 60px;
    height: 60px;
    border-radius: 40px;
    position: fixed;
    bottom: 20px;
    right: 5%;
    background-color: var(--cor-destaque);

    &:hover{
        box-shadow: #0d72b8 0px 0px 20px 2px;
    }

    & img{
        max-width: 100%;
        height: auto;
        padding: 14px;
    }

}

/* Footer */
#footer{
	padding: 10px;
	text-align: center;
	background: var(--cor-azul);
}

#footer p{
	color: white !important;
}

@media screen and (max-width: 768px){
    /* Botão WHATSAPP */
    #btn-fixo{
        width: 50px;
        height: 50px;
        bottom: 30px;
    }
}