* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;

}

html {
    scroll-behavior: smooth;
}


:root {

    --primaria: #ADD8E6;
    --secundaria: #7c7469;
    --texto: #534e48;
    --escuro: #0f172a;
    --maisEscuro: #0a0f1c;
    --claro: #F8F8F0;
    --vidro: rgba(255, 255, 255, 0.1);
    --claro2: #FFFFFF;

}


body {

    background-color: var(--claro2);
    color: var(--texto);

}

.trilho {
    position: fixed;
    width: 100px;
    height: 50px;
    background-color: #a4e6ef;
    top: 12%;
    right: 2%;
    border-radius: 70px;
    transition: .7s;
}

.trilho.dark {
    background-color: #444342;
    transition: .7s;
}

.trilho .indicador {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ebed91;
    transform: scale(.8);
    cursor: pointer;
    position: absolute;
    left: 0;
    transition: .7s
}

.trilho.dark .indicador {
    left: 50px;
    background-color: #0a0f1c;
    transition: .7s;
}


.tema {
    position: fixed;
    font-size: 1.5rem;
    color: var(--texto);
    font-weight: bold;
    margin: 10px;
    top: 7%;
    right: 2.6%;
}

/* 
Menu suspenso
*/
.navegacao {
    position: fixed;
    background: rgba(173, 216, 230, 0.9);
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 1.5rem;
}

.menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    justify-content: center;

}

.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(--claro2));
    transition: width 0.5s ease;
}

.menu-link:hover::after {

    width: 100%;

}


.cabecalho {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 50rem;
    padding-top: 100px;
}

/*===================================*/

/* 
    Título e foto
*/
h1 {
    font-size: 3.5rem;
    color: var(--texto);
    font-weight: bold;
    margin: 10px;
    padding: 1rem 1rem;

}

.subtitulo {
    font-size: 2rem;
    color: var(--texto);
    display: flex;
    align-items: center;
    justify-content: center;

}

.foto-davi {


    width: 300px;
    height: 470px;
    box-shadow: 21px 20px 37px 3px rgba(175, 175, 175, 1);
    -webkit-box-shadow: 21px 20px 37px 3px rgba(175, 175, 175, 1);
    -moz-box-shadow: 21px 20px 37px 3px rgba(175, 175, 175, 1);
    border-radius: 70%;
    animation: flutuar 5s ease-in-out infinite;
    margin-top: 50px;
}


.sobre {
    padding: 450px;
}

.sobre-titulo {
    font-size: 3rem;
    color: var(--texto);
    text-align: center;
    padding: 10px;
}


.sobre-caixa {
    padding: 2rem;
    max-width: 650px;
    margin: 0 auto;
    border-radius: 16px;
    border: 3px solid var(--primaria);
    backdrop-filter: blur(10px);
    background: rgba(173, 216, 230, 0.23);
    text-align: center;
    font-size: 1.1rem;
}

/*===================================*/


/*
    Projetos
*/
.projetos {

    padding: 6rem 2rem;
}

.projetos-imagem {

    height: 200px;
    width: 100%;
    object-fit: cover;

}

.projetos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.projetos-card:hover {
    transform: translateY(-4px);
    box-shadow: 1px 0px 74px 9px rgba(175, 175, 175, 0.75);
    -webkit-box-shadow: 1px 0px 74px 9px rgba(175, 175, 175, 0.75);
    -moz-box-shadow: 1px 0px 74px 9px rgba(175, 175, 175, 0.75);
    transition: all 0.5s ease;
    cursor: pointer;
}

.caixa-textos-projeto {
    padding: 1.5rem;
    background-color: #ADD8E6;
    backdrop-filter: blur(10px);
    opacity: 0.8;

}

.textos-projeto {
    opacity: 1;

}

.projetos-caixa {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projetos-card {
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--primaria);
    overflow: hidden;

}

.info-projetos {
    margin-bottom: 5px;
}

.paragrafo-projetos {

    line-height: 1.25rem;
}

/*===================================*/

/*
    Formulário de contato
*/
.contatos {
    padding: 6rem 2rem;
}

.contatos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.formulario-contato {
    padding: 2rem;
    max-width: 650px;
    margin: 0 auto;
    border-radius: 16px;
    border: 3px solid var(--primaria);
    backdrop-filter: blur(10px);

}



.campo-form {
    width: 100%;
    padding: 1rem;
    background: rgba(173, 216, 230, 0.23);
    border-radius: 8px;
    border: 3px solid var(--primaria);
    outline: none;
}

.campo-form:focus {
    border-color: var(--claro);
    cursor: text;
    transition: all 0.5s ease;

}

.grupo-form {
    margin-bottom: 1.5rem;
}

.botao-form {
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.5 ease;
}

.botao-form:hover {
    transform: translateY(-4px);
    box-shadow: 1px 0px 74px 9px rgba(175, 175, 175, 0.75);
    -webkit-box-shadow: 1px 0px 74px 9px rgba(175, 175, 175, 0.75);
    -moz-box-shadow: 1px 0px 74px 9px rgba(175, 175, 175, 0.75);
    transition: all 0.5s ease;
    cursor: pointer;
}

/*===================================*/




/*
    Background céu de dia
*/

.sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1e90ff 0%, #87ceeb 100%);
    z-index: -1;
    overflow: hidden;
}

/*
    Pássaros
*/
/* Container do pássaro */
/* Pássaros */
.bird-container {
    position: absolute;
    z-index: 1;
    width: 40px;
    height: 40px;
}

.bird-img {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: flap 0.7s steps(2) infinite;
}

/* Pássaro 1 (esquerda para direita) */
.bird-1 {
    top: 20%;
    left: -100px;
    animation: fly 15s linear infinite;
}

/* Pássaro 2 (esquerda para direita) */
.bird-2 {
    top: 40%;
    left: -100px;
    animation: fly 18s linear infinite 3s;
}

/* Pássaro 3 (direita para esquerda) - CORRIGIDO */
.bird-3 {
    top: 60%;
    right: -100px; /* Alterado de 'left' para 'right' */
    animation: fly-reverse 20s linear infinite 2s;
}




@keyframes flap {
    0% {
        content: url('./img/passaro1.png');
    }
    50% {
        content: url('./img/passaro2.png');
    }
}
.cloud {
    position: relative;
    background: white;
    border-radius: 100px;
    filter: blur(4px);
    opacity: 0.9;
}

/* Nuvem 1 */
.cloud-1 {
    width: 150px;
    height: 60px;
    top: 20%;
    left: -200px;
    animation: moveCloud 25s linear infinite;
}

.cloud-1::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    top: -40px;
    left: 20px;
}

.cloud-1::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    top: -20px;
    right: 30px;
}

/* Nuvem 2 */
.cloud-2 {
    width: 200px;
    height: 70px;
    top: 35%;
    left: -250px;
    animation: moveCloud 35s linear infinite 5s;
}

.cloud-2::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 60%;
    top: -40px;
    left: 30px;
}

/* Nuvem 3 */
.cloud-3 {
    width: 120px;
    height: 50px;
    top: 50%;
    left: -150px;
    animation: moveCloud 30s linear infinite 5s;
}

.cloud-3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    top: -30px;
    right: 20px;
}


.cloud-4 {
    background: white;
    top: 60%;
    left: -150px;
    animation: moveCloud 50s linear infinite;
    width: 300px;
    height: 125px;
}

.cloud-4::after {
    content: '';
    position: absolute;
    background: white;
    top: -30%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    left: 50px;

}

.cloud-4::before {

    content: '';
    position: absolute;
    background: white;
    top: -30%;
    width: 150px;
    height: 160px;
    border-radius: 50%;
    left: 100px;
}





/* Animações */
@keyframes moveCloud {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(100vw + 400px));
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 60px #ffff00;
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 80px #ffff00;
    }
}

@keyframes flutuar {

    0%,
    100% {
        transform: tranlateY(0);
    }

    50% {
        transform: translateY(-20px)
    }
}

/* Animação de voo horizontal */
@keyframes fly {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

@keyframes fly-reverse {
    0% {
        transform: translateX(0) scaleX(-1); /* Remove o translateX inicial */
    }
    100% {
        transform: translateX(calc(-100vw - 200px)) scaleX(-1);
    }
}

/* Animação de bater asas */
@keyframes flap {
    0% {
        content: url('./img/passaro1.png');
    }

    99% {
        content: url('./img/passaro2.png');
    }
}



/*===================================*/