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

body {
    overflow-x: hidden;
    background: url(imagens/fundo5.png);
    background-position: center;
    height: auto;
    min-height: 100vh;
    width: 100%;
    background-repeat: repeat-y;
    background-size: cover;
    border-radius: 10px;
    margin: 0;
    padding: 0;
}

#menu {
    float: right;
}

#menu a {
    padding: 10px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: large;
    text-decoration: none;
    color: white;
    padding: 10px;
}

#menu {
    margin: 15px;
}

#menu a:hover {
    background: gainsboro;
    color: black;
    border-radius: 10px;
}

@keyframes imagem {
    from {
        width: 10px;
    }

    to {
        width: 250px;
    }
}

#home #conteudo img {
    width: 250px;
    margin: 0 auto;
    display: block;
    margin-top: 200px;
    position: relative;
    animation: imagem 4s;
}


#conteudo {
    color: white;
    text-align: center;
    font-size: 25px;
    animation: fadeSlide 3s ease-out;
    overflow: hidden;
}

@keyframes fadeMenu {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


#topo h2 {
    margin: 0px;
    padding: 15px;
    color: white;
}

#topo {
    width: 100%;
    height: 57px;
    background: rgb(63, 63, 63);
}

#habilidades h1 {
    text-align: center;
    font-size: 50px;
}

#htmlcssjs,
#mysql,
#csharp,
#git {
    width: 800px;
    background: gray;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    margin: 15px auto;
    padding: 0px;
}

@keyframes bonitinho {
    from {
        background: gray;
        left: -500px;
    }

    to {
        background: gray;

        left: 0px;
    }
}

#csharp,
#mysql,
#git,
#htmlcssjs,
#portaldacidade,
#gazinbank {
    position: relative;
    animation: bonitinho 4s;
}


#experiencias {
    text-align: center;
    font-size: 25px;
}


.nivel {
    display: flex;
    width: fit-content;
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 20px;
    font-size: 50px;
    font-weight: bolder;
    margin: 30px auto;
    width: fit-content;
}

#habilidades h1 {
    margin-top: 15px;
}

#portaldacidade,
#gazinbank {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: gray;
    width: 60%;
    height: 200px;
    border-radius: 15px;
    justify-content: flex-start;
    gap: 20px;
    margin: 10px auto;
    padding: 20px;
}

#gazinbank,
#portaldacidade {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: justify;
    align-items: center;

}

#gazinbank img,
#portaldacidade img {
    width: 100%;
    min-width: 260px;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    padding-right: 5px;
    object-fit: cover;
}



#projetos img {
    width: 600px;
    height: 400px;
    margin: 10px;
    box-sizing: border-box;
}

#projetos {
    display: flex;
    flex-wrap: wrap;
    margin-left: 35px;
    justify-content: center;
}

#projetos img:hover {
    border: 10px solid gray;
}

#foto {
    height: 500px;
    width: 500px;
}

#foto img {
    display: flex;
    object-fit: cover;
    border-radius: 100%;

    margin-left: 300px;
    margin-top: 300px;
    height: 350px;
    width: 350px;
}

#conteudo-sobre {
    display: flex;
    color: white;
    background-color: gray;
    border-radius: 10px;
    width: 800px;
    height: 240px;
    float: right;
    margin: -450px 250px;
}

#conteudo-sobre p {
    text-align: center;
    padding: 5px;
    font-size: 20px;
}

#habilidades a.hab,
#home a.hom,
#projeto a.pro {
    background: gainsboro;
    color: black;
    border-radius: 10px;
}

#menu-btn {
    margin-top: 15px;
    margin-right: 10px;
    float: right;
    cursor: pointer;
}

#menu-btn {
    width: 30px;
    height: 25px;
}

#carouselExampleCaptions {
    width: 1200px;
    /* define largura padrão */
    height: 800px;
    /* define altura padrão */
    margin: 40px auto;
    /* centraliza e dá espaço acima e abaixo */
    border-radius: 10px;
    /* opcional: borda arredondada */
    overflow: hidden;
    /* evita imagens saindo do carrossel */
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ajusta sem distorcer */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(23%) sepia(97%) saturate(7478%) hue-rotate(357deg) brightness(0%) contrast(101%);
}

.carousel-caption h5,
.carousel-caption p {
    display: none;
}




/* Parte de Responsividade Mobile*/

@media (max-width: 1500px) {

    #carouselExampleCaptions {
        width: 95%;
        max-width: 900px;
        /* largura máxima no desktop */
        aspect-ratio: 16 / 9;
        /* mantém proporção de tela widescreen */
        margin: auto;
        overflow: hidden;
        border-radius: 12px;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .carousel-inner img {
        width: 95%;
        height: 100%;
        object-fit: cover;
        margin: auto;
        justify-content: center;

    }


    #portaldacidade,
    #gazinbank {
        width: 90%;
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    #gazinbank img,
    #portaldacidade img {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        padding-right: 5px;
    }

    #gazinbank img {
        
        max-width: 450px;
        height: 100px;
        object-fit: cover;
        /* Faz ela não se redimensionar mesmo com o height tão baixo */
    }

    #gazinbank p,
    #portaldacidade p {
        margin: 0;
        text-align: center;
    }


    #conteudo-sobre {
        width: 90%;
        margin: 20px auto;
        float: none;
        height: auto;
        flex-direction: column;
        align-items: center;
    }

    #conteudo-sobre p {
        font-size: 16px;
        padding: 10px;
    }

    #foto img {
        width: 200px;
        height: 200px;
        margin: 10px auto;
    }

    #projetos img {
        width: 100%;
        height: auto;
    }

    #habilidades h1,
    #experiencias {
        font-size: 30px;
    }

    #habilidades #htmlcssjs,
    #habilidades #mysql,
    #habilidades #csharp,
    #habilidades #git {
        max-width: 93%;
        height: 150px;
    }

    #habilidades #habilidades img {
        width: 170px;
    }

    .nivel {
        display: flex;
        width: fit-content;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        font-size: 25px;
        width: fit-content;
        margin-top: 60px;
    }

    #projeto #projetos a {
        max-width: 85%;
    }

    #projeto #projetos {
        margin: 5px 10px 0 0;

    }

    #topo h2 {
        display: none;
    }
}
