* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primaria: #d3d3d3;
    --secundaria: #646464;
    --escuro: #2e2e2e;
    --maisEscuro: #0f0f0c;
    --claro: #e2e8f0;
    --vidro: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--escuro);
    color: var(--claro);
}

.navegacao {
    position: fixed;
    top: 0;
    background: #5d6043;
    width: 100%;
    z-index: 100;
    padding: 1.5rem;
}

.onda {
    position: fixed;
    display: block;
    width: 3600px;
    height: 800px;
    /* altura da curva */
    margin-top: -1px;
    /* remove linha entre topo e onda */
    z-index: -1;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.8rem;
    /*melhorar espaçamento cabeçalho*/

}

.menu-link {
    text-decoration: none;
    color: var(--claro);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.menu-link::after {
    content: '';
    height: 2px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primaria), var(--secundaria));
    transition: width 0.5s ease;
}

.menu-link:hover::after {
    width: 100%;
}

.cabecalho {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.foto-perfil {
    width: 400px;
    width: 400px;
    box-shadow: 0 0 20px #d3d3d3;
    /* ou #5d6043*/
    border-radius: 50%;
    /*aumentar para 50 quando escolher uma foto melhor*/
    /* border: 4px solid var(--vidro); */
    animation: flutuar 5s ease-in-out infinite;
}

h1 {
    font-size: 3.5rem;
    color: var(--primaria);
    font-weight: bold;
    margin: 20px 0;
}

.cabecalho-sub-titulo {
    font-size: 1.5rem;
    color: var(--claro);
}

.sobre {
    padding: 8rem 2rem;
    margin-top: -5rem;
}

.sobre-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--claro);    
}

.sobre-caixa {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--vidro);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.sobre-conteudo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.imagem-sobre {
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(211,211,211,0.5);
    transition: transform 0.5s ease;
}

.imagem-sobre:hover {
    transform: scale(1.05);
}

.sobre-texto {
    color: var(--claro);
    font-size: 1.1rem;
    line-height: 1.8rem;
    font-weight: 600;
}

.servicos {
    padding: 6rem 2rem;
}

.servicos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--claro);
}

.servicos-caixa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servicos-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--vidro);
    padding: 2rem;
    transition: all 0.5s ease;
    cursor: pointer;
    text-align: center;
}

.servicos-card:hover {
    box-shadow: 0 10px 20px #d3d3d3;
    transform: translateY(-10px) scale(1.03);
}

.info-servicos {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primaria);
}

.paragrafo-servicos {
    color: rgba(226, 232, 240, 0.8);
    font-size: 1rem;
    line-height: 1.5rem;
}

.projetos {
    padding: 6rem 2rem;
}

.projetos-caixa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.projetos-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--vidro);
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
}

.projetos-card:hover {
    box-shadow: 0 10px 20px #d3d3d3;
    transform: translateY(-10px) scale(1.03);
}

.projetos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}


.projetos-imagem {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.caixa-textos-projeto {
    padding: 1.5rem;
}


.paragrafo-projetos {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.25rem;
}

.info-projetos {
    margin-bottom: 5px;
}

.contatos {
    padding: 6rem 2rem;
}

.contatos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.formulario-contato {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    padding: 2rem;
    border: 1px solid var(--vidro);
}

.campo-form {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--claro);
    border: 1px solid var(--vidro);
    outline: none;
}

.campo-form:focus {
    border-color: var(--secundaria);
    box-shadow: 0 0 10px #d3d3d3;
}

.grupo-form {
    margin-bottom: 1.5rem;
}

.botao-form {
    color: var(--claro);
    background: linear-gradient(45deg, #5d6043, #5d6043);
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.5 ease;
    border: none;
}

.botao-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px #d3d3d3;

}

/* ==== SLIDER NOS PROJETOS ==== */
.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px; /* mesmo tamanho do .projetos-imagem */
    border-radius: 15px 15px 0 0;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Botões */
.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;        /* sem fundo */
    border: none;            /* sem borda */
    color: white;            /* cor da seta */
    font-size: 1.5rem;       /* tamanho da seta */
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.3s ease;
}

.slider button:hover {
    color: var(--primaria);  /* muda a cor no hover */
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.footer{
    background-color: #2e2e2e; 
    text-align: center;  
}
.footer .share {
    padding: 1rem 0;
}

.footer .share img {
    margin: 0.3rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #2e2e2e;
}
.footer .share img:hover {
    box-shadow: 0 0 0 5px #2e2e2e;
}

/*.particulas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    background:
        radial-gradient(circle at 10% 20%, var(--primaria) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--secundaria) 0%, transparent 20%), 
        var(--maisEscuro);
} */

/* Botão do menu hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--claro);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Toggle ativo (transforma em X) */
.menu-toggle.ativo span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.ativo span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.ativo span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@keyframes flutuar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 34%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #5d6043;
        gap: 3 rem;
        transition: right 0.5s ease;
    }

    .menu.ativo {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-link {
        font-size: 1.5rem;
    }

    .sobre-caixa, .sobre-conteudo {
        flex-direction: column;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .imagem-sobre {
        width: 200px;
    }
    
    .sobre-texto {
        font-size: 1.1rem;
        line-height: 1.6rem;
        max-width: 100%;        /* garante que o texto ocupe todo o espaço disponível */
        word-wrap: break-word;  /* evita que palavras grandes quebrem mal */
        text-align: left;
    }

    .foto-perfil {
        max-width: 260px;
        /* menor no celular */
    }

    h1 {
        font-size: 2rem;
        /* título menor no celular */
        text-align: center;
        /* centraliza o texto */
    }

    .cabecalho-sub-titulo {
        font-size: 1.4rem;
        /* subtítulo menor também */
        text-align: center;
    }

    .onda {
        display: block;
        width: 100%;
        height: 211px;
        /* altura da curva */
        margin-top: -1px;
        /* remove linha entre topo e onda */
    }

    .imagem-sobre {
        width: 200px;
        width: 200px; /*box-shadow: 0 0 20px #d3d3d3; ou #5d6043*/
        border-radius: 5%;
        display: block; /* Transforma o elemento em bloco */
        margin: 0 auto; /* Centraliza horizontalmente */
    }

    .slider {
        height: 160px;
    }
    .prev, .next {
        font-size: 1.5rem;
        padding: 4px 8px;
    }

}