html{
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
}

body{
    background-image: linear-gradient(to left, #000000, #0A0000);
    height: 100vh;
    /* background-size: 500% 100%; */
    /* animation: fundoDegrade 2s infinite alternate; */
}

/* Animção fundo degrade não sendo utilizada */
/* @keyframes fundoDegrade {
    0%{
        background-position-x: 0;
    }
    100%{
        background-position-x: 100%;
    }
    
} */

.flex{
    display: flex;
}

.btnContato button{
    padding: 10px 40px;
    font-size: 18px;
    font-weight: 700;
    background-color: #FF0505;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    color: #000;
    transition: .2s;
}

.btnContato button:hover{
    color: #fff;
    box-shadow: 0px 0px 12px #ff050589;
    transform: scale(1.05);
}

h2.titulo{
    color: #fff;
    font-size: 38px;
    text-align: center;
}

h2.titulo span{
    color: #FF0505;
}


/* Sobre */

section.sobre{
    padding: 40px 4%;
}

section.sobre .flex{
    align-items: center;
    justify-content: center;
    gap: 90px;
}

.sobre h1{
    color: #fff;
    font-size: 38px;
    line-height: 35px;
    margin-bottom: 30px;
}

.sobre .txtSobre h1 span{
    color: #FF0505;
    font-size: 45px;
}

.sobre .txtSobre p{
    color: #fff;
    font-size: 18px;
    margin: 7px 0px;
    max-width: 600px;
    letter-spacing: 0.5px;
    line-height: 1.4;

}

.sobre .txtSobre button{
    margin-top: 30px;
}

@keyframes flutuar {
    0%{
        top: 0;
    }
    100%{
        top: 30px;
    }
}

.sobre .imgSobre{
    position: relative;
    animation: flutuar 2s ease-in-out infinite alternate;
}


/* CONHECIMENTOS */

section.conhecimentos{
    padding: 40px 4%;
}

section.conhecimentos .flex{
    gap: 60px;
    justify-content: space-evenly;
    flex-wrap: wrap;
}


.conhecimentos .conhecimentosBox{
    width: 250px;
    height: 400px;
    color: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 40px;
    margin-top: 35px;
    transition: .2s;
}

.conhecimentos .conhecimentosBox:hover{
    transform: scale(1.05);
    box-shadow: 0 0 8px #ffffff2f;
}

.conhecimentos .conhecimentosBox p{
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.4;
    font-size: 18px;
}

.conhecimentos .conhecimentosBox h3{
    font-size: 26px;
    margin: 15px 0;
}


.conhecimentos .conhecimentosBox i{
    font-size: 90px;
}

.conhecimentos .conhecimentosBox .fa-html5{
    color: #ff5a08;
}

.conhecimentos .conhecimentosBox .fa-js{
    color: #ffd014;
}

.conhecimentos .conhecimentosBox .fa-css3-alt{
    color: #0867ff;
}

.conhecimentos .conhecimentosBox .fa-react{
    color: #81E0FF;
}


/* Projetos */

section.projetos{
    padding: 60px 4%;
    margin-top: 40px;
}

section.projetos .flex{
    justify-content: space-around;
}

section.projetos .interface h2{
    margin-bottom: 35px;
}

/* containers específicos para as seções de projeto */
.projectList{
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.imageProjectList{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.imgProject{
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    transition: background-position 0.6s ease, transform 0.2s;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.imgProject:hover{
    background-position: 100% 100%;
}

.overlay{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    background-color: rgba(0,0,0,0.75);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 18px;
    box-sizing: border-box;
}

/* Cards text-only para Backend/Data */
.projectCard{
    background: linear-gradient(180deg, #0d0d0d, #120909);
    color: #fff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}

.projectCard h4{
    margin: 0 0 8px 0;
    color: #FF0505;
    display: flex;
    align-items: center;
}

.projectIcon{
    color: #FF0505;
    margin-right: 10px;
    font-size: 20px;
    width: 26px;
    display: inline-flex;
    justify-content: center;
}

.subtitulo{
    color: #fff;
    margin: 18px 0 12px 0;
    font-size: 20px;
}

.projectSection{
    margin-bottom: 28px;
}

.overlay a{
    font-size: 14px;
    margin-top: 12px;
    text-decoration: none;
    color: #fff;
    font-style: oblique;
    transition: .3s;
}

.overlay a:hover{
    border-bottom: 1px solid #fff;
}

.imgProject:hover{
    transform: translateY(-6px);
}

.overlay:hover{
    opacity: 1;
}

.overlay .descricaoProjeto{
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    max-height: 140px;
    overflow-y: auto;
    margin-top: 8px;
}

.overlay .metaProjeto{
    font-size: 13px;
    opacity: 0.9;
    margin-top: 8px;
}

.overlay .ctaProjeto{
    font-size: 13px;
    margin-top: 10px;
}

/* Footer */

footer{
    margin-top: 30px;
    padding: 40px 4%;
    box-shadow: 0 0 40px 10px #ffffff10;
}

footer .flex{
    justify-content: space-between;
    align-items: center;
}

footer .lineFooter{
    padding: 20px 0;
}

.borda{
    border-top: 2px solid #FF0505;
    display: flex;
    justify-content: space-between;
}

footer .btnSocial button{
    color: #000;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50px;
    border: none;
    background-color: #FF0505;
    transition: .2s;
}

footer .btnSocial button:hover{
    color: #fff;
    box-shadow: 0px 0px 12px #ff050589;
    transform: scale(1.05);
    cursor: pointer;
}

footer .logoFooter{
    transition: .2s;
}

footer .logoFooter:hover{
    cursor: pointer;
    transform: scale(1.05);
}

footer .lineFooter p i{
    color: #FF0505;
    font-size: 20px;
}

footer .lineFooter p a{
    color: #fff;
    text-decoration: none;
}

/* Responsivo */

@media screen and (min-width: 1021px) {
    .btnAbrirMenu{
        display: none;
    }
}

@media screen and (max-width: 1020px){
    /* Classes gerais */
    .flex{
        flex-direction: column;
    }



    /* Cabeçalho */
    .menuDesktop, .btnContato{
        display: none;
    }

    /* Sobre do site */
    .sobre h1{
        font-size: 28px;
    }

    section.sobre{
        padding: 20px 5%;
    }

    .imgSobre img{
        width: 100%;
    }

    section.sobre .flex{
        gap: 40px;
    }

    /* Conhecimentos */

    section.conhecimentos{
        padding: 40px 5%;
    }

    section.conhecimentos .flex{
        gap: 10px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .conhecimentos .conhecimentosBox{
        width: 300px;
        height: 350px;
    }

    /* Meus Projetos */

    section.projetos{
        padding: 40px 5%;
    }

    section.projetos .flex{
        justify-content: space-around;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Footer */
    
    footer{
        padding: 5px 4%;
    }

    .lineFooter p{
        font-size: 14px;
    }

    footer .lineFooter{
        align-items: center;
        flex-direction: column;
    }
}