@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: #020817;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.secao {
    padding: 100px 0;
    padding-left: 50px;
}

header {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
    margin-top: 30px;
    position: relative;
}

#btn-mobile {
    display: none;
}

ul {
    display: flex;
    justify-content: center;
    gap: 50px;
    list-style: none;
    font-size: 18px;
    width: 100%;
    text-align: center;
    margin: 0;
    margin-bottom: 25px;
    font-weight: 500;
}

ul li a {
    text-decoration: none;
    color: inherit;
}

.logo {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-54%);
}

.logo img {
    width: 210px;
    height: auto;
}

.principal {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 85vh;
    width: 100%;
}

.principal h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-align: center;
    font-family: "Audiowide", sans-serif;
}

.principal h1 span {
    color: #4d7cfe;
}

.principal p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #bbb;
    margin-bottom: 40px;
    text-align: center;
}

.botao {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid rgba(77, 124, 254, 0.5);
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    position: relative;
    left: 310px;
    text-decoration: none;
}

.botao i {
    margin-left: 7px;
}

.botao-dois {
    padding: 10px 30px;
    background-color: #4d7efe;
    color: #fff;
    font-family: "Audiowide", sans-serif;
    border-radius: 5px;
    position: relative;
    left: 260px;
}

.botao-mobile {
    display: none;
}

.botao-linkedin {
    display: inline-block;
    padding: 8px 12px;
    font-size: 17px;
    background-color: #0a66c2;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 25px;
    position: absolute;
    right: 150px;
}

.botao-topo {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: fixed;
    right: 50px;
    bottom: 70px;
    z-index: 100;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border: none;
    border-radius: 50%;
    background-color: transparent;
}

.botao-topo.active {
    opacity: 1;
    visibility: visible;
}

.botao-topo i {
    font-size: 2.5rem;
    border-radius: 50%;
}

.titulo-secao {
    font-size: 42px;
    margin-bottom: 60px;
    position: relative;
    text-align: center;
    font-family: "Audiowide", sans-serif;
}

.titulo-secao:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 100px;
    height: 4px;
    background-color: #4d7cfe;
    transform: translateX(-50%);
}

.grade-ajuda {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    color: #4d7cfe;
    width: 70%;
    margin: 100px auto;
}

.info-servico {
    padding: 20px;
}

.info-servico p {
    color: #bbb;
    margin-left: 30px;
    padding-right: 10px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    text-align: center;
}

.icon-box {
    width: 60px;
    height: 75px;
    background-color: #4d7cfe;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: absolute;
    top: -30px;
    left: 15px;
    z-index: 10;
}

.icon-box svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: white;
    stroke-width: 2;
}

.card-projeto {
    background-color: transparent;
    border: 1px solid rgba(77, 124, 254, 0.5);
    padding: 12px;
    border-radius: 10px;
    position: relative;
}

.card-projeto h1 {
    padding-top: 10px;
    padding-bottom: 5px;
    padding-left: 30px;
    font-family: "Audiowide", sans-serif;
    font-size: 22px;
    position: relative;
}

.grade-projetos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    color: #fff;
    width: 70%;
    margin: 100px auto;
}

.card-projeto2 {
    background-color: transparent;
    border: 1px solid rgba(77, 124, 254, 0.5);
    padding-left: 20px;
    padding-bottom: 20px;
    border-radius: 10px;
    position: relative;
}

.card-projeto2 h1 {
    padding-top: 20px;
    padding-bottom: 15px;
    font-size: 18px;
    position: relative;
}

.info-projeto {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-projeto p {
    color: #6d6c6c;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    text-align: left;
    min-height: auto;
    margin-bottom: 10px;
}

.info-projeto a {
    background-color: #e05757;
    color: #fff;
    padding: 6px 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.linguagens {
    display: flex;
    flex-wrap: wrap;
}

.tag-linguagens {
    background-color: rgba(77, 124, 254, 0.2);
    color: #4d7cfe;
    padding: 8px 15px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.projeto {
    position: relative;
    display: inline-block;
}

.img-projeto {
    height: 200px;
    width: 370px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(163, 200, 255, 0.5);
    transition: 0.3s ease-in-out;
    box-sizing: border-box;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

.overlay a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.projeto:hover .overlay {
    opacity: 1;
}

.projeto:hover .img-projeto {
    filter: brightness(50%);
}

.sobre {
    display: flex;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    border: 1px solid rgba(77, 124, 254, 0.5);
    overflow: hidden;
    padding: 12px;
    border-radius: 10px;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
}

.img-sobre {
    height: 300px;
    background-color: #161616;
    border-radius: 10px;
    margin: 25px;
}

.conteudo-sobre {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.conteudo-sobre h2 {
    margin-bottom: 30px;
}

.conteudo-sobre p {
    margin-bottom: 20px;
    color: #bbb;
}

.habilidades {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.tag-habilidades {
    background-color: rgba(77, 124, 254, 0.2);
    color: #4d7cfe;
    padding: 8px 15px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.botoes-contato {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.botao-contato {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 500;
    min-width: 160px;
    text-decoration: none;
    color: white;
}

.instagram {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.whatsapp {
    background-color: #25D366;
}

.linkedin {
    background-color: #0a66c2;
}

.email {
    background-color: #9c2523;
}

.github {
    background-color: #333;
}

footer {
    padding: 105px;
    background-color: #0e1118;
    position: relative;
}

footer::after {
    content: "";
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background-color: #333;
    margin-bottom: 10px;
}

footer .footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    bottom: 20px;
    right: 290px;
    width: auto;
}

footer p {
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    bottom: 20px;
    left: 290px;
    width: auto;
    font-weight: 500;
}

footer svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

footer svg:hover {
    transform: scale(1.1);
}

.footer-logo {
    position: absolute;
    left: 21%;
    bottom: 45px;
    transform: translateX(-50%);
}

.footer-logo img {
    width: 200px;
    height: auto;
}

.navegacao-footer {
    position: absolute;
    font-size: 9px;
    left: 66%;
    bottom: 50px;
    transform: translateX(-50%);
}

.navegacao-footer ul {
    list-style: none;
    padding: 0;
    margin-top: 8px;
    display: block;
}

.navegacao-footer li {
    display: block;
    margin-bottom: 8px;
}

.navegacao-footer a {
    text-decoration: none;
    color: #949494;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contato-footer {
    position: absolute;
    font-size: 10px;
    left: 75%;
    bottom: 80px;
    transform: translateX(-50%);
}

.contato-footer ul {
    list-style: none;
    padding: 0;
    margin-top: 8px;
    display: block;
}

.contato-footer li {
    display: block;
    margin-bottom: 8px;
}

.contato-footer a {
    text-decoration: none;
    color: #949494;
    font-size: 14px;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: rgba(77, 124, 254, 0.5);
}

::-webkit-scrollbar-thumb {
    background-color: #4d7cfe;
}

@media (max-width: 1024px) {

    .grade-projetos,
    .grade-projetos2,
    .grade-ajuda {
        grid-template-columns: repeat(2, 1fr);
    }

    .principal h1 {
        font-size: 40px;
    }

    .principal p {
        font-size: 16px;
    }

    ul {
        gap: 20px;
        font-size: 16px;
    }

    #btn-mobile {
        display: flex;
        padding: .5rem 1rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        gap: .5rem;
        position: absolute;
        left: 620px;
        bottom: 15px;
    }

    .botao-dois {
        padding: 8px 20px;
    }
}

@media (max-width: 768px) {

    header {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        height: 40px;
    }

    .logo {
        display: flex;
        left: 3px;
        top: 20%;
        transform: translateY(-50%);
    }

    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: 40px;
        right: 0px;
        background: #141a2e;
        transition: .6s;
        z-index: 1000;
        height: 0px;
        visibility: hidden;
        overflow-y: hidden;
    }

    #nav.active #menu {
        height: 140px;
        visibility: visible;
        overflow-y: auto;
    }

    #menu a {
        display: block;
        margin: 6px;
    }

    #btn-mobile {
        display: flex;
        padding: .5rem 1rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        gap: .5rem;
        position: absolute;
        left: 320px;
        bottom: 15px;
    }

    #hamburguer {
        display: block;
        color: white;
        width: 20px;
        border-top: 2px solid;
    }

    #hamburguer::after,
    #hamburguer::before {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        margin-top: 5px;
        transition: .3s;
        position: relative;
    }

    #nav.active #hamburguer {
        border-top-color: transparent;
    }

    #nav.active #hamburguer::before {
        transform: rotate(135deg);
    }

    #nav.active #hamburguer::after {
        transform: rotate(-135deg);
        top: -7px;
    }

    .botao-linkedin {
        display: none;
    }

    .secao {
        padding: 100px 0;
        padding-left: 30px;
        padding-right: 30px;
    }

    .icon-box {
        width: 50px;
        height: 65px;
        top: -20px;
        left: 10px;
        border-radius: 6px;
    }

    .icon-box svg {
        width: 24px;
        height: 24px;
    }

    .img-projeto {
        width: 95%;
        height: auto;
    }

    .principal h1 {
        font-size: 35px;
    }

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

    .botao {
        margin-left: -230px;
        text-align: center;
        position: relative;
        padding: 10px 20px;
    }

    .botao-topo {
        right: 5px;
    }

    .grade-projetos, .grade-projetos2, .grade-ajuda {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .sobre {
        flex-direction: column;
    }

    .img-sobre {
        width: 80%;
        height: auto;
    }

    .botoes-contato {
        flex-wrap: wrap;
    }

    footer {
        padding: 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer::after {
        content: "";
        bottom: 35px;
        background-color: #333;
    }

    footer .footer-content {
        position: static;
        top: 50px;
        gap: 20px;
    }

    footer p {
        margin-top: 20px;
        left: 40px;
        position: static;
    }

    .navegacao-footer,
    .contato-footer,
    .footer-logo {
        display: none;
    }
}