body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #02030F;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* animação suave */
}

/*ESSA PARTE E O HEADER AONDE FICA OS LINKS DIREITO PARA O CONTEUDO */
/* header */
header {
    width: 100%;
    height: 60px;
    background-color: #2C2D42;

    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


#nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    list-style: none;
}


#nav-links a {
    color: #F0F0F0;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
    transition: 0.3s;
}

#nav-links a:hover {
    opacity: 0.7;
}

/* botao do mobile */
.menu-toggle {
    display: none;
    color: white;
    font-size: 28px;
    position: absolute;
    left: 20px;
    cursor: pointer;
}

/* mobile */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    #nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;

        background-color: #2C2D42;

        flex-direction: column;
        align-items: center;
        gap: 20px;

        padding: 20px 0;

        display: none; /* escondido */
    }

    #nav-links.active {
        display: flex; /* aparece quando clicar */
    }
}




/* Outro | Começo do Site | container fantasma */

#container_fantasma {
    width: 1000px;
    height: 500px;
    background: rgba(8, 10, 31, 0.7);
    box-shadow: /*Tirar Isso no final que tiver ruim podemos tirar*/ 
    0 -20px 60px rgba(20, 25, 60, 0.3),
    -20px 0 60px rgba(20, 25, 60, 0.3),
    20px 0 60px rgba(20, 25, 60, 0.3);
    border-radius: 10px;
    position: relative;
    top: 90px;
    left: 50%;
    transform: translate(-50%);
}


#icone_fantasma {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 25%;
    left: 15%;
    transform: translate(-50%, -50%);
}

#titulo_who_is {
    color: #F0F0F0;
    font-size: 34px;
    font-weight: 900;
    position: absolute;
    top: 13%;
    left: 37%;
    transform: translate(-50%, -50%);
}

#descricao_who_is {
    color: #F0F0F0;
    font-size: 19px;
    font-weight: 800;
    position: absolute;
    top: 55%;
    left: 37%;
    transform: translate(-50%, -50%);
}

#imagem_normal {
    width: 200px;
    height: 200px;
    background-size: contain;
    position: absolute;
    top: 70%;
    left: 90%;
    transform: translate(-50%, -50%);
}

#falando_sobre {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 90%;
    left: 90%;
    transform: translate(-50%, -50%);
}

#container_fantasma_2 {
    width: 1000px;
    height: 1100px;
    background: rgba(8, 10, 31, 0.7);
    box-shadow: /*Tirar Isso no final que tiver ruim podemos tirar*/ 
    0 -20px 60px rgba(20, 25, 60, 0.3),
    -20px 0 60px rgba(20, 25, 60, 0.3),
    20px 0 60px rgba(20, 25, 60, 0.3);
    border-radius: 10px;
    position: relative;
    top: 170px;
    left: 50%;
    transform: translate(-50%);
}

#titulo_areas {
    color: #F0F0F0;
    font-size: 30px;
    font-weight: 900;
    position: relative;
    top: 5%;
    left: 60%;
    transform: translate(-50%, -50%);
}

#contact-1 {
    text-decoration: none; 
    color: #868e91;
    cursor: pointer;
} 
#contact-1:hover {
    text-decoration: none; 
    color: #54585a;
}

#texto_about {
    color: #F0F0F0;
    font-size: 17px;
    width: 800px;
    font-weight: 800;
    position: relative;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*About*/

#container_fantasma_2_areas {
    width: 1000px;
    height: 1070px;
    background: rgba(8, 10, 31, 0.7);
    box-shadow: /*Tirar Isso no final que tiver ruim podemos tirar*/ 
    0 -20px 60px rgba(20, 25, 60, 0.3),
    -20px 0 60px rgba(20, 25, 60, 0.3),
    20px 0 60px rgba(20, 25, 60, 0.3);
    border-radius: 10px;
    position: relative;
    top: 270px;
    left: 50%;
    transform: translate(-50%);
}

.card {
    background: #0C0E2D;
    color: #F0F0F0;

    font-size: 16px;
    font-weight: 900; /* BLACK (bem grosso) */

    width: 150px;
    height: 180px;

    border-radius: 5px;
    margin: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centraliza vertical */

    text-align: center; /* centraliza texto */

    position: relative;
    top: 20px;
}

.card:hover {
    background: #14184b;
}

/* CONTAINER (ESSENCIAL PRA FICAR 5 POR LINHA) */
.cards-container {
    display: grid;
    grid-template-columns: repeat(5, 120px); /* 5 por linha */
    justify-content: center;
    gap: 70px;
}

#private {
    position: relative;
    top: 20px;
    color: #646464;
}

#imagem_areas {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 85%;
    left: 90%;
    transform: translate(-50%, -50%);
}

/*Projects*/

#container_fantasma_3 {
    width: 1000px;
    height: 800px;
    background: rgba(8, 10, 31, 0.7);
    box-shadow: /*Tirar Isso no final que tiver ruim podemos tirar*/ 
    0 -20px 60px rgba(20, 25, 60, 0.3),
    -20px 0 60px rgba(20, 25, 60, 0.3),
    20px 0 60px rgba(20, 25, 60, 0.3);
    border-radius: 10px;
    position: relative;
    top: 370px;
    left: 50%;
    transform: translate(-50%);
}

#imagem_projetos_1 {
    width: 300px;
    position: absolute;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

#imagem_projetos_2 {
    width: 400px;
    position: absolute;
    top: 20%;
    left: 60%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

#imagem_projetos_3 {
    width: 300px;
    position: absolute;
    top: 55%;
    left: 20%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

#imagem_projetos_4 {
    width: 400px;
    position: absolute;
    top: 55%;
    left: 60%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

#descricao_project {
    color: #F0F0F0;
    font-size: 17px;
    font-weight: 800;
    width: 500px;
    position: absolute;
    top: 80%;
    left: 30%;
    transform: translate(-50%, -50%);
}

#imagem_projetos {
    width: 200px;
    position: relative;
    top: 75%;
    left: 80%;
}

/*Contact Us*/

#container_fantasma_4 {
    width: 1000px;
    height: 1000px;
    background: rgba(8, 10, 31, 0.7);
    box-shadow: /*Tirar Isso no final que tiver ruim podemos tirar*/ 
    0 -20px 60px rgba(20, 25, 60, 0.3),
    -20px 0 60px rgba(20, 25, 60, 0.3),
    20px 0 60px rgba(20, 25, 60, 0.3);
    border-radius: 10px;
    position: relative;
    top: 470px;
    left: 50%;
    transform: translate(-50%);
}

#titulo_contact {
    color: #F0F0F0;
    font-size: 30px;
    font-weight: 900;
    position: absolute;
    top: 2%;
    left: 40%;
    transform: translate(-50%, -50%);
}

#descricao_contact_us {
    color: #F0F0F0;
    font-size: 18px;
    font-weight: 800;
    width: 750px;
    position: absolute;
    top: 40%;
    left: 49%;
    transform: translate(-50%, -50%);
}

#github {
    width: 200px;
    height: 50px;
    background-color: #0C0E2D;
    color: #F0F0F0;
    border: none;
    border-radius: 5px;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    top: 85%;
    left: 22%;
    transform: translate(-50%, -50%);
}

#Github:hover {
    background-color: #14184b;
}

#whatsapp {
    width: 200px;
    height: 50px;
    background-color: #0C0E2D;
    color: #F0F0F0;
    border: none;
    border-radius: 5px;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    top: 85%;
    left: 46%;
    transform: translate(-50%, -50%);
}
#whatsapp:hover {
    background-color: #14184b;
}

#container_fantasma_5 {
    width: 1000px;
    height: 50px;
    background: rgba(8, 10, 31, 0.0);
    border-radius: 10px;
    position: relative;
    top: 570px;
    left: 50%;
    transform: translate(-50%);
}

#titulo_thank {
    color: #F0F0F0;
    font-size: 30px;
    font-weight: 900;
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#final {
    background: #2C2D42;
    width: 100%;
    height: 50px;
    position: relative;
    top: 600px;
}

#Copyright {
    color: #F0F0F0;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    line-height: 50px; /* centraliza vertical */
}



/*ACABA PELA POR DE DEUS 7H PROGRAMANDO*/
/*Mobile Tablet*/
/* ====================== MOBILE RESPONSIVE ====================== */

/* Menu Hamburguer */
.menu-toggle {
    display: none;
    color: white;
    font-size: 32px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1100;
}

/* Header em mobile */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        justify-content: flex-start;
        padding-left: 20px;
    }

    #nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #2C2D42;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 25px;
        transition: left 0.4s ease-in-out;
        z-index: 1000;
    }

    #nav-links.active {
        left: 0;
    }

    #nav-links a {
        font-size: 22px;
        padding: 10px 0;
    }

    /* Containers - largura responsiva */
    #container_fantasma,
    #container_fantasma_2,
    #container_fantasma_2_areas,
    #container_fantasma_3,
    #container_fantasma_4,
    #container_fantasma_5 {
        width: 90%;
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        height: auto !important;
        min-height: auto;
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    /* Ajusta posição top dos containers */
    #container_fantasma { top: 80px; }
    #container_fantasma_2 { top: 100px; }
    #container_fantasma_2_areas { top: 120px; }
    #container_fantasma_3 { top: 140px; }
    #container_fantasma_4 { top: 160px; }
    #container_fantasma_5 { top: 180px; }

    /* HOME - remove posicionamentos absolutos problemáticos */
    #container_fantasma {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #icone_fantasma {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 120px;
        height: 120px;
        margin: 20px auto;
    }

    #titulo_who_is {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        font-size: 28px;
        text-align: center;
        margin: 10px 0;
    }

    #descricao_who_is {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        font-size: 16px;
        text-align: center;
        width: 100%;
        margin: 10px 0;
    }

    #imagem_normal {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 120px;
        height: 120px;
        margin: 20px auto;
    }

    /* ABOUT */
    #container_fantasma_2 {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #titulo_areas {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        font-size: 24px;
        text-align: center;
        margin: 20px 0;
    }

    #texto_about {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        font-size: 15px;
        text-align: justify;
        margin: 10px 0;
    }

    #falando_sobre {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 120px;
        height: 120px;
        margin: 20px auto;
    }

    /* AREAS - Cards */
    .cards-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-content: center;
        padding: 10px;
    }

    .card {
        width: 100%;
        height: auto;
        min-height: 140px;
        font-size: 14px;
        margin: 0;
        top: 0;
    }

    #imagem_areas {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 120px;
        height: 120px;
        margin: 30px auto;
        display: block;
    }

    /* PROJECTS */
    #container_fantasma_3 {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #imagem_projetos_1,
    #imagem_projetos_2,
    #imagem_projetos_3,
    #imagem_projetos_4 {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 90%;
        max-width: 280px;
        margin: 10px auto;
        border-radius: 10px;
    }

    #descricao_project {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        font-size: 14px;
        text-align: center;
        margin: 20px 0;
    }

    #imagem_projetos {
        position: relative;
        top: 0;
        left: 0;
        width: 100px;
        margin: 20px auto;
        display: block;
    }

    /* CONTACT */
    #container_fantasma_4 {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #titulo_contact {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        font-size: 22px;
        text-align: center;
        margin: 20px 0;
    }

    #descricao_contact_us {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        font-size: 14px;
        text-align: justify;
        margin: 10px 0;
    }

    /* BOTÕES - corrigido! */
    #github, #whatsapp {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 80%;
        max-width: 250px;
        height: 45px;
        font-size: 16px;
        margin: 10px auto;
        display: block;
    }

    /* THANK YOU */
    #container_fantasma_5 {
        position: relative;
        text-align: center;
    }

    #titulo_thank {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        font-size: 24px;
        margin: 10px 0;
    }

    /* FOOTER */
    #final {
        top: 200px;
        margin-top: 50px;
    }
}

/* Ajuste para telas muito pequenas (até 480px) */
@media (max-width: 480px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card {
        min-height: 120px;
        font-size: 12px;
    }
    
    #titulo_who_is {
        font-size: 24px;
    }
    
    #descricao_who_is,
    #texto_about,
    #descricao_contact_us {
        font-size: 13px;
    }
    
    #github, #whatsapp {
        width: 90%;
        font-size: 14px;
    }
}