/* =========================================================
    VARIÁVEIS GLOBAIS
========================================================= */
:root {
    --bg: #32344f;
    --bg2: #353b42;
    --colorhover: #63cafe; /*  Eu escolhi essa cor por que no nome tem café me julgue :p  */
    --texto: #d5f4f9;
    --borda: #e5e7eb;
    --caixa: #f8fafc;
    --acao: #2563eb;

    /* Gradientes */
    --primaryGradient: linear-gradient(45deg, #0084b9 0%, #00d689 100%);
    --secondaryGradient: linear-gradient(180deg, #00b93e 0%, #b3f043 100%);
    --tertiaryGradient: linear-gradient(180deg, #d2a31e 0%, #fe7843 100%);
    --quarterGradient: linear-gradient(180deg, #2d6966 0%, #a6afe0 100%);
    --fiftithGradient: linear-gradient(90deg, #6e0cee 0%, #c5c0c9 100%);
    --sixthGradient: linear-gradient(180deg, #eb2828 0%, #d84e4e 100%);
    --Gradient7: linear-gradient(180deg, #f72f0c 0%, #f0821c 100%);

    /* Fontes */
    --fontnav: "Plus Jakarta Sans", sans-serif;
    --fontglobal: "Poppins", sans-serif;
}

/* =========================================================
    RESET / BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--fontglobal);
    background-color: var(--bg);
    color: var(--texto);
}


/* =========================================================
    ELEMENTOS PADRÃO
========================================================= */
a {
    text-decoration: none;
    color: var(--texto);
}

p {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

p.Paragrafo {
    margin-left: 1rem;
}

h1 {
    font-size: 2rem;
}

/* =========================================================
    NAVEGAÇÃO
========================================================= */
nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}


.navItem:hover {
    color: var(--colorhover);
}

/* =========================================================
    BOTÕES
========================================================= */
.btn {
    margin-bottom: 1rem;
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 0.7rem;
    background-color: var(--bg2);
    border-color: wheat;
}

.btn:hover {
    background-color: var(--colorhover);
    color: #6847c5;
    transition: 0.5s;
    cursor: pointer;
}

/*Não remover esta caixa. 
    Sim isso é um ajuste técnico,
mas seria muito mais complicado ajustar este botão agora.
    Este era o unico elemento bugando então agora ele está usando a camisa de força,
eu sei que esta errado,mas saber quando usar um ajuste tecnico é mais importante.
    Eu poderia corrigir, mas não é esta mensagem que passo agora;
    E sim que é melhor focar no importante e deixar os detalhes pra depois,
se não forem interferir em mais nada como o caso a baixo.*/
.camisadeforca{
    display: flex;
    justify-content: center;
    
}


/* =========================================================
    HEADER / CONTAINERS
========================================================= */
header {
    display: flex;
    justify-content: space-around;
}
button h2{
    margin: 0;
    display: inline;
}

header img {
    max-width: 5rem;
    max-height: 5rem;
}


.container {
    width: 100%;
    height: 100%;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aboutMe {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}


/* =========================================================
    TECNOLOGIAS / ÍCONES
========================================================= */
#tecnologias {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

#tecnologias i {
    font-size: 2.5rem;
    padding: 0.5rem;
    padding-top: 1rem;
}

.icon {
    width: 2.5rem;
    height: 2.5rem;
    transform: translateY(0.4rem);
}

/* Ícones específicos */
.fa-brands.fa-css3 {
    color: #264DE4;
    background-image: linear-gradient(#667dda, #2965F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fa-brands.fa-html5 {
    color: #E44D26;
    background-image: linear-gradient(#e27554, #be4e26);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fa-brands.fa-square-js {
    color: #F7DF1E;
}

/* =========================================================
    GRADIENTES DE TEXTO
========================================================= */

.gradient  {  background: var(--primaryGradient);}
.gradient1 { background: var(--secondaryGradient); }
.gradient2 { background: var(--tertiaryGradient); }
.gradient3 { background: var(--tertiaryGradient); }
.gradient4 { background: var(--quarterGradient); }
.gradient5 { background: var(--fiftithGradient); }
.gradient6 { background: var(--sixthGradient); }

.gradient,
.gradient1,
.gradient2,
.gradient3,
.gradient4,
.gradient5,
.gradient6,
.gradient7 {
    display: flex;
    justify-content: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
    SEÇÕES
========================================================= */
section {
    margin-bottom: 5rem;
}
section::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 3rem auto 0;
}


#projetos,#home,.box{
    margin: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.experiencias{
    display: grid;
    gap:1rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows:20rem 20rem ;
    grid-template-areas: 
    'experiencia1 experiencia2'
    'experiencia1  experiencia1'    
    'experiencia3 '
    ;
}



.presentation {
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================
    SOCIAL / CONTATO
========================================================= */
.socialMedia {
    width: 100%;
    display: flex;
    justify-content: center;
}

.socialMedia i {
    font-size: 2.5rem;
    padding: 1rem;
}

.socialMedia i:hover {
    color: var(--colorhover);
}

.contato {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
}

#contato {
    display: flex;
    flex-direction: column;
}

#contato span {
    align-self: center;
    padding: 2rem;
}

/* =========================================================
    IMAGENS
========================================================= */
.imagem1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img1:hover {
    transition: 0.3s;
    border: solid red 2px;
}

#sfew {
    max-width: 50rem;
    max-height: 50rem;
}

/* =========================================================
    EXPERIÊNCIA
========================================================= */
#experiencia {
    display: grid;
    grid-auto-flow: column;
}

.experience-item {
    background-color: #238d53;
    border-radius: 1rem;
    padding: 3rem;
    font-size: 1rem;
}



/* =========================================================
    UTILITÁRIOS
========================================================= */
.escondido {
    display: none;
}
/* =========================================================
    RESPONSIVIDADE
========================================================= */

/* -------------------------
    Tablets (até 1024px)
-------------------------- */
@media (max-width: 1024px) {

    nav {
        flex-direction: row;
        gap: 1rem;
    }

    .presentation {
        font-size: 1.6rem;
        text-align: center;
    }

    #tecnologias {
        flex-wrap: wrap;
        gap: 1rem;
    }

    #sfew {
        max-width: 90%;
        height: auto;
    }

    .experience-item {
        padding: 2rem;
        font-size: 1.3rem;
    }
    .btn {
    width: auto;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

}

/* -------------------------
    Celulares (até 768px)
-------------------------- */
@media (max-width: 768px) {

    body {
        padding: 0.5rem;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    .navItem {
        padding: 0.3rem 0;
        font-size: 1rem;
    }

    .presentation {
        font-size: 1.3rem;
        text-align: center;
    }

    p {
        font-size: 1.2rem;
        text-align: center;
    }

.btn {
    width: auto;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
    #tecnologias {
        flex-wrap: wrap;
        justify-content: center;
    }

    #tecnologias i,
    .icon {
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
    }

    #sfew {
        max-width: 100%;
    }

    .experience-item {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

    .socialMedia {
        flex-wrap: wrap;
    }
    
}

/* -------------------------
    Celulares pequenos (até 480px)
-------------------------- */
@media (max-width: 480px) {

    h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .presentation h2 {
        font-size: 1.2rem;
    }

    p {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.7rem;
        padding: 0.4rem;
    }

    .experience-item {
        padding: 1rem;
        font-size: 1rem;
    }

    .socialMedia i {
        font-size: 2rem;
    }
}
/* Ajuste dos ícones de tecnologias */
#tecnologias {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

#tecnologias i,
#tecnologias img {
    font-size: 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*Ajuste específico do ícone do java*/
#tecnologias i.fa-brands.fa-java{
    transform: translateY(-3px);
}

/* Ajuste específico do ícone do Spring */
#tecnologias img {
    transform: translateY(2px);
}
/* =========================================================
    MENU HAMBURGUER
========================================================= */

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 768px) {

    nav {
        flex-direction:column;
    }

    .menu-toggle {
        display: block;
    }

    .navItem {
        display: none;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    nav.active {
        flex-direction: column;
        background: var(--bg2);
        border-radius: 1rem;
    }

    nav.active .navItem {
        display: block;
    }

    nav.active .portico {
        display: none;
    }
}
