/* estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #202024;
    height: 100vh;
}

/* Barra de rolagem */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: #010101;
}

::-webkit-scrollbar-thumb {
    cursor: grab;
    background-color: #7465D4;
    border-radius: 8px;
}

/* interface e titulo */

.interface {
    max-width: 1280px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

h2.titulo {
    color: #fff;
    font-size: 38px;
    text-align: center;
}

h2.titulo span {
    color: #7465D4;
}

/* estilo do cabecalho */

header {
    padding: 40px 4%;
}

header>.interface {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: .2s;
}

header nav.menu-desktop a:hover {
    color: #7465D4;
    transform: scale(1.05);
}

header nav ul {
    list-style-type: none;
}

header nav.menu-desktop ul li {
    display: inline-block;
    padding: 0 40px;
}

/* estilo do menu de mobile */

.btn-abrir-menu {
    display: none;
    cursor: pointer;
}

.btn-abrir-menu i {
    color: #7465D4;
    font-size: 40px;
}

.menu-mobile {
    background-color: #000;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: 0%;
    overflow: hidden;
    transition: .5s;
}

.menu-mobile.abrir-menu {
    width: 70%;
}

.menu-mobile.abrir-menu~.overlay-menu {
    display: block;
}


.menu-mobile .btn-fechar {
    padding: 20px 5%;
    cursor: pointer;
}

.menu-mobile .btn-fechar i {
    color: #7465D4;
    font-size: 30px;
}

.menu-mobile nav ul {
    text-align: left;
}

.menu-mobile nav ul li a {
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    padding: 20px 8%;
    display: block;
}

.menu-mobile nav ul li a:hover {
    background-color: #7465D4;
    color: #000;
}

.overlay-menu {
    background-color: #000000df;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 88888;
    display: none;
}

/* estilo de topo do site */
section.topo-do-site {
    padding: 124px 4%
}

section.topo-do-site .flex {
    align-items: center;
    justify-content: center;
    gap: 90px;

}

.topo-do-site h1 {
    color: #fff;
    font-size: 42px;
    line-height: 40px;
}

.topo-do-site .txt-topo-site h1 span {
    color: #7465D4;
}

.topo-do-site .txt-topo-site p {
    color: #fff;
    margin: 40px 0;
}

.topo-do-site .img-topo-site img {
    position: relative;
    animation: flutuar 2s ease-in-out infinite alternate;
}


@keyframes flutuar {
    0% {
        top: 0;
    }

    100% {
        top: 30px;
    }
}

/* estilo do sobre */

section.sobre {
    padding: 80px 4%;
    box-shadow: 0 0 50px 1px #ffffff1d;
}

section.sobre .flex {
    align-items: center;
    gap: 60px;
}

.sobre .txt-sobre {
    color: #fff;
}

.sobre .txt-sobre h2 {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 30px;
}

.sobre .txt-sobre h2 span {
    color: #7465D4;
    display: block;
}

.sobre .txt-sobre p {
    margin: 20px 0;
    text-align: justify;
}

/* estilo btn das redes sociais */

.btn-social {
    justify-content: center;
    align-items: center;
}

.btn-social a {
    margin: 5px;
    display: inline-block;
    text-decoration: none;
}

.btn-social button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.4s;
    transition: .2s;
}

.btn-social button:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.btn-social .bi-instagram,
.btn-social .bi-linkedin,
.btn-social .bi-github,
.btn-social .bi-whatsapp {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    border-radius: 50%;
}

/* Instagram */
.btn-social .bi-instagram {
    background: linear-gradient(#7f37c9, #ff2992, #ff9807);
}

/* github */
.btn-social .bi-github {
    background-color: #000;
}

/* LinkedIn */
.btn-social .bi-linkedin {
    background-color: #0e76a8;
}

/* whatsapp */

.btn-social .bi-whatsapp {
    background-color: #25D366;
}

/* habilidades */

section.habilidades {
    padding: 80px 4%;
}

.habilidades .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.habilidades .habilidades-box {
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    margin-top: 45px;
    transition: .2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
}

.habilidades .habilidades-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ffffff78;
}

.habilidades .habilidades-box i,
.habilidades .habilidades-box img {
    font-size: 65px;
    color: #7465D4;
    margin-bottom: 10px;
}

.habilidades .habilidades-box h3 {
    font-size: 24px;
    margin-top: 10px;
}
/* estilo especialidades */
section.especiliadades {
    padding: 80px 4%;
    box-shadow: 0 0 50px 1px #ffffff1d;
}

section.especiliadades .flex {
    gap: 60px;
}

.especiliadades .especialidades-box {
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    margin-top: 45px;
    transition: .2s;
}

.especiliadades .especialidades-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ffffff78;
}

.especiliadades .especialidades-box i {
    font-size: 70px;
    color: #7465D4;
}

.especiliadades .especialidades-box h3 {
    font-size: 28px;
    margin: 15px 0;
}

/* estilo do portfolio / projetos */

section.portfolio {
    padding: 80px 4%;
}

section.portfolio .flex {
    justify-content: space-around;
    margin-top: 60px;
    flex-wrap: wrap;
}

.img-port {
    width: 360px;
    height: 460px;
    background-size: cover;
    background-position: 100% 0%;
    transition: 8s;
    cursor: pointer;
    border-radius: 40px;
    position: relative;
    margin-top: 30px;
}

.img-port:hover {
    background-position: 100% 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000b8;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transition: .5s;
}

.overlay:hover {
    opacity: 1;
}

/* estilo do footer */

:root {
    --color-primary: #010101;
    --color-secondary: #17191a;
    --color-text-secondary: #838f99;
    --color-text-primary: #f8f8f8;
    --color-details: #7f37c9;
}

footer {
    width: 100%;
    color: var(--color-text-primary);
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 50px 1px #ffffff1d;
}

.footer_links {
    text-decoration: none;
}

#footer_initial {
    background-color: var(--color-secondary);
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas */
    padding: 3rem 3.5rem;
    align-items: center;
    justify-items: center;
    text-align: center;
}

#footer_contato {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#footer_contato img {
    width: 90px;
    margin-bottom: 0.75rem;
}

#footer_contato img:hover {
    opacity: 0.9;
}

.footer_frase {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-text-primary);
    margin-top: 1rem;
    line-height: 40px;
}

.footer_frase span {
    color: #7465D4;
}

/* Links divididos em duas colunas */
#footer_veja_mais {
    text-align: center;
}

#footer_veja_mais h3 {
    margin-bottom: 1rem;
}

.footer_links_duas_colunas {
    display: flex;
    gap: 5rem;
    justify-content: center;
}

.footer_lista {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer_links {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: .2s;
}

.footer_links:hover {
    color: #7465D4;
    transform: scale(1.05);
}

/* Redes sociais com título */
#footer_redes_sociais {
    text-align: center;
}

#footer_redes_sociais h3 {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.footer_redes_container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#footer_redes_sociais .footer_links {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    color: var(--color-text-primary);
    border-radius: 50%;
    transition: all 0.4s;
    transition: .2s;
}

#footer_redes_sociais .footer_links i {
    font-size: 1.5rem;
}

#footer_redes_sociais .footer_links:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

#instagram {
    background: linear-gradient(#7f37c9, #ff2992, #ff9807);
}

#linkedin {
    background-color: #0e76a8;
}

#github {
    background-color: #000;
}

#whatsapp {
    background-color: #25D366;
}

/* Direitos reservados */

#footer_copyright a {
    color: var(--color-text-primary);
}

/* copyright */

#footer_copyright {
    display: flex;
    justify-content: center;
    background-color: var(--color-primary);
    font-size: 0.9rem;
    padding: 1.5rem;
    font-weight: 400;
    color: #fff;
}



/* botão de voltar */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px;
    background-color: #7f37c9;
    color: #333;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    transition: background-color 0.3s ease-in-out;
}

.back-to-top svg {
    color: #fff;
    width: 24px;
    height: 24px;
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 2px #7f37c9;
}










/* Responsivo */

@media screen and (max-width: 1190px) {
    .btn-abrir-menu {
        display: block;
    }

    /* classes gerais */

    .flex {
        flex-direction: column;
    }

    .topo-do-site .flex {
        flex-direction: column-reverse;
    }

    h2.titulo {
        font-size: 34px;
        line-height: 30px;
    }

    /* cabeçalho */

    .menu-desktop {
        display: none;
    }

    /* topo do site */

    section.topo-do-site .flex {
        gap: 40px;
    }

    section.topo-do-site {
        padding: 20px 8%;
    }

    .topo-do-site h1 {
        font-size: 30px;
    }

    .topo-do-site .img-topo-site img {
        width: 100%;
    }

    /* especialidades */

    section.especiliadades {
        padding: 40px 8%;
    }

    /* sobre */

    section.sobre {
        padding: 80px 8%;
    }

    .sobre .txt-sobre h2 {
        font-size: 34px;
        line-height: 35px;
        text-align: center;
    }

    .btn-social {
        text-align: center;
    }

    .img-sobre img {
        width: 100%;
    }

    /* portfolio */
    section.portfolio {
        padding: 80px 8%;
    }

    .img-port {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    section.portfolio .flex {
        gap: 60px;
    }

    .habilidades .habilidades-box {
        width: 100%;
        text-align: center;
    }

    #footer_initial {
        grid-template-columns: 1fr; /* Muda para uma única coluna */
        padding: 3rem 2rem;
        gap: 2rem;
    }

    /* Colocando os links em uma única coluna no centro */
    .footer_links_duas_colunas {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centraliza os links */
        gap: 1rem;
    }

    .footer_lista {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centraliza os links na coluna */
        gap: 0.75rem;
    }

    .footer_links {
        text-align: center;
    }

    #footer_veja_mais h3 {
        text-align: center;
    }


    /* footer */
    @media screen and (max-width: 768px) {
        #footer_initial {
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .back-to-top {
            right: 10px;
            bottom: 10px;
        }

        .habilidades .habilidades-box {
            width: 100%;
            text-align: center;
        }
    }

    @media screen and (max-width: 426px) {
        #footer_initial {
            grid-template-columns: repeat(1, 1fr);
            padding: 3rem 2rem;
        }

        .back-to-top {
            font-size: 14px;
        }

        .habilidades .habilidades-box {
            width: 100%;
            text-align: center;
        }

        .footer_lista .h3 {
            text-align: center;
            position: relative;
            left: 0;
        }
    }

    @media screen and (max-width: 770px) {
        /* footer */

        #footer_initial {
            grid-template-columns: repeat(1, 1fr);
            padding: 3rem 2rem;
        }

        .back-to-top {
            font-size: 0.8rem;
            right: 10px;
            bottom: 10px;
        }

        .habilidades .habilidades-box {
            width: 100%;
            text-align: center;
        }

        .footer_lista .h3 {
            text-align: center;
            position: relative;
            left: 0;
        }

        #footer_copyright {
            font-size: 0.8rem;
        }
    }
}