/* RESET */

*{
    margin:0;
    padding: 5px;
    box-sizing: border-box;
}

/* VARIÁVEIS */
:root{

    --background-color:#222222;
    --primary-color:#D6A26B;
    --text-color:#a98554;
    --text-dark: #2d2d2d;

    --title-font:"Inter",sans-serif;
    --text-font:"Ubuntu",sans-serif;

}

section{
    animation:fade .8s ease;
}

@keyframes fade{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0.3);
    }

}

header{

    position:sticky;
    top:0;
    background:#2222;
    z-index:1000;
    backdrop-filter:blur(20px);
    background:rgba(34,34,34,.8);

}

/* BODY */
body{
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--text-font);
    min-height: 100vh;
}
 html{
    scroll-behavior: smooth;
 }
/* ESTILOS GLOBAIS */

h1,h2,h3{
    font-family: var(--title-font);
}
p, span, a{
    font-family: var(--text-font);
}
a{
    color: #a98554;
    text-decoration: none;

}
a:hover{
    text-decoration: underline;
}

/* HEADER */
header{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
   
}
.logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.header-actions{
    display: flex;
    flex-direction: row;
    gap: 70px;
}

/* QUEM SOU */

#quemsou{
    margin: 10px 0;
}

#quemsou h2{
    margin-bottom: 5px;
}

.quemsou-container{
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.foto-perfil{
    width: 170px;
    background-color: #A98554;
    border-radius: 16px;
    padding: 5px;

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

    flex-shrink: 0;
}

.foto-perfil img{
    width: 100%;
    display: block;
    border-radius: 16px;
}

.apresentacao{
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background-color: #A98554;
    color: #2D2D2D;

    border-radius: 16px;
    padding: 5px;
}

.apresentacao p{
    margin-bottom: 5px;
    line-height: 1.0;
}

.apresentacao p:last-child{
    margin-bottom: 10px;
}

/* STACKS */
.container-badge{
    display: flex;
    flex-wrap:wrap;
    justify-content: center;
    gap: 15px;

}
.badge{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #a98554;
    width: 300px;         
    height: 50px;
    border-radius: 99999px;
    padding: 5px 10px;
    align-items: center;
    color: var(--text-dark);
    transition:.3s;
}
.badge-content{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.badge img{
    min-width: 50px;
    max-height: 40px;
    object-fit: contain;

}
.badge span{
    flex: 1;
    text-align: center;
    margin: 0;
    font-weight: 500;
    align-content: center;  
}
.badge:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(134, 134, 134, 0.25);
}

/* PROJETOS */

.projects-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 90px;
    justify-content: center;
    align-items: stretch;
    
}
.project-card{
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: #A98554;
    border-radius: 16px;
    color: #2d2d2d;
    width: 250px;
    height: 300px; /* Troca de height para min-height para o texto não vazar */
    padding: 15px; /* Dá um respiro interno para os textos não colarem na borda */
    transition:.3s;
    
}
.project-card img{
    margin-top: auto;
    min-height: 100px; /* Troca de height para min-height para o texto não vazar */
    padding: 5px; /* Dá um respiro interno para os textos não colarem na borda */
    object-fit: contain;  
}
.project-card h3 {
    margin: 0 0 10px 0; /* Ajusta o espaçamento do título */
}

.project-card p {
    margin: 0;
    font-size: 14px; /* Ajuste opcional para o texto da descrição */
    
}
.project-card:hover img{
    transform:scale(1.05);
}

/* O "Pulo do Gato" para os links */
.project-links {
    margin-top: auto; /* Esta propriedade empurra a div de links sempre para o final do card */
    display: flex;
    justify-content: center; /* Centraliza os links */
    gap: 20px; /* Dá um espaço padronizado entre o "GitHub" e o "Link" */
    padding-top: 20px; /* Espaço entre o texto descritivo e os links */
}
.project-links a {
    color: #2D2D2D; /* Cor padrão de link, você pode alterar */
    text-decoration: none;
    font-weight: bold;
}

.project-links a:hover {
    text-decoration: underline; /* Efeito ao passar o mouse */
}
.project-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(134, 134, 134, 0.25);
}

/* CONTATO */

.contact-total{
    padding: 15px;

}

.contact-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
    padding: 15px;
   
}
.contact-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    background-color: #A98554;
    color: #2D2D2D;
    border-radius: 16px;
    transition:.3s;

}
.contact-container img{
    max-width: 100px;
    max-height: 150px;
}
.contact-container span{
    color: #2D2D2D;
    text-decoration: none;

}
.contact-container span:hover {
    text-decoration: underline; /* Efeito ao passar o mouse */
}
.contact-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(134, 134, 134, 0.25);
}

/* FORMA DE TRABALHAR */

.work-container{
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    margin-top: 15px;
    gap: 15px;
    
}

.card-intern{
    display: flex;
    flex-wrap: wrap;
}

.work-card{
    display: flex;
    flex-direction: row;
    background-color: #A98554;
    color:#2D2D2D;
    gap: 20px;
    border-radius: 16px;
    margin-top: 10px;
    transition:.3s;

}
.work-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(134, 134, 134, 0.25);
}
.work-card img{
    margin-top: auto;
    height: 100px; /* Troca de height para min-height para o texto não vazar */
    padding: 10px; /* Dá um respiro interno para os textos não colarem na borda */
    object-fit: contain;  
}

/* FOOTER */

.rodape{
    display: flex;
    flex-direction: row;
    text-align: center;
    font-weight: bold;
    gap: 400px;
    
    
}
.footer-contact{
    display: flex;
    flex-direction: column;
    align-items: first baseline;
    
}
.footer-contact img{
    display: flex;
    flex-direction: row;
    max-width: 30px;
    max-height: 30px;
}


/* WHATSAPP FLUTUANTE */

.whatsapp-float{
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #A98554;
    color: #2D2D2D;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    box-shadow: 0 8px 20px rgba(131, 130, 130, 0.3);
    transition: .3s;
}
.whatsapp-float i{
    color: #2D2D2D;
    font-size: 40px;
}

.whatsapp-float:hover{
    transform: scale(1.1);
    text-decoration: none;

}
/* RESPONSIVIDADE */    

/* ============================= */
/* RESPONSIVIDADE TABLET */
/* ============================= */

@media (max-width:1024px){

    /* HEADER */

    .header-actions{
        gap:25px;
        flex-wrap:wrap;
        justify-content:center;
    }


    /* QUEM SOU */

    .quemsou-container{
        gap:20px;
    }


    /* STACKS */

    .badge{
        width:220px;
    }


    /* PROJETOS */

    .projects-container{
        gap:40px;
    }


    /* CONTATO */

    .contact-container{
        gap:40px;
    }


    /* FOOTER */

    .rodape{
        gap:50px;
    }

}

/* ============================= */
/* RESPONSIVIDADE MOBILE */
/* ============================= */


/* ===================================== */
/* RESPONSIVIDADE MOBILE */
/* Até 600px */
/* ===================================== */


@media(max-width:600px){


    /* ================= */
    /* GERAL */
    /* ================= */


    body{

        overflow-x:hidden;

    }


    section{

        padding:10px;

    }



    h2{

        font-size:24px;
        text-align:center;

    }



    p{

        font-size:14px;

    }



    /* ================= */
    /* HEADER MOBILE */
    /* ================= */


    header{

        position:relative;
        top:auto;

        background:#222222;

        backdrop-filter:none;

        padding:10px;

        gap:10px;

    }



    .logo{

        gap:3px;

    }



    .logo h1{

        font-size:22px;
        text-align:center;

    }



    .logo p{

        font-size:12px;
        text-align:center;

    }



    .header-actions{

        display:flex;

        flex-direction:row;

        flex-wrap:wrap;

        justify-content:center;

        gap:10px;

    }



    .header-actions a{

        font-size:13px;

    }



    /*
    Esconde links menos importantes
    no mobile
    */


    .header-actions a:nth-child(1),
    .header-actions a:nth-child(3),
    .header-actions a:nth-child(6){

        display:none;

    }



    /* ================= */
    /* QUEM SOU */
    /* ================= */


    .quemsou-container{

        flex-direction:column;

        align-items:center;

    }



    .foto-perfil{

        width:200px;

    }



    .apresentacao{

        width:100%;

        padding:15px;

    }



    .apresentacao p{

        line-height:1.5;

    }




    /* ================= */
    /* STACKS */
    /* ================= */


    .container-badge{

        flex-direction:column;

        align-items:center;

        gap:15px;

    }



    .badge{

        width:90%;

        max-width:300px;

        height:55px;

    }



    .badge img{

        min-width:40px;

        max-height:35px;

    }




    /* ================= */
    /* PROJETOS */
    /* ================= */


    .projects-container{

        flex-direction:column;

        align-items:center;

        gap:30px;

    }



    .project-card{

        width:90%;

        height:auto;

        min-height:350px;

    }



    .project-card img{

        height:150px;

        min-height:150px;

    }



    .project-links{

        padding-top:15px;

        gap:15px;

    }




    /* ================= */
    /* CONTATO */
    /* ================= */


    .contact-container{

        flex-direction:column;

        align-items:center;

        gap:25px;

    }



    .contact-card{

        width:200px;

    }



    .contact-container img{

        max-width:80px;

        max-height:80px;

    }




    /* ================= */
    /* FORMA DE TRABALHAR */
    /* ================= */


    .work-container{

        gap:20px;

    }



    .work-card{

        flex-direction:column;

        align-items:center;

        text-align:center;

        padding:15px;

    }



    .work-card img{

        height:80px;

        margin:auto;

    }



    .card-intern{

        flex-direction:column;

    }




    /* ================= */
    /* FOOTER */
    /* ================= */


    .rodape{
        flex-direction:column;
        align-items:center;
        gap:25px;
        text-align:center;
    }



    .footer-contact{
        align-items:center;
    }



    .footer-contact img{
        max-width:25px;
        max-height:25px;
    }




    /* ================= */
    /* WHATSAPP FLUTUANTE */
    /* ================= */


    .whatsapp-float{
        width:50px;
        height:50px;
        right:20px;
        bottom:20px;

    }



    .whatsapp-float i{

        font-size:30px;

    }

}