@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Onest:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


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

body {
    font-family: 'Onest';
    /* font-family: Georgia, 'Times New Roman', Times, serif; */
}

header {
    position: fixed;
    top: 0;
    background-color: #fff;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(85, 84, 84, 0.1);
}


nav {
    display: flex;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
}




/* logo */
nav .logo {
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
}

.logo img {
    width: 150px;
}

nav .mainMenu {
    display: flex;
    list-style: none;
}


nav .mainMenu li a {
    display: inline-block;
    padding: 15px;
    text-decoration: none;
    font-weight: 700;
    color: #000;
    font-size: 1rem;
    position: relative;
}

nav .mainMenu li a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background-color: #561780;
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 0;
}

nav .mainMenu li a:hover::after {
    width: 100%;
}

nav .mainMenu li a:hover{
    color: #561780;
}


nav .openMenu {
    font-size: 2rem;
    margin: 20px;
    display: none;
    cursor: pointer;
}

nav .mainMenu .closeMenu , .icons i {
    font-size: 2rem;
    display: none;
    cursor: pointer;
}

.fa-facebook:hover {color: rgb(0, 110, 255);}
.fa-twitter:hover {color: rgb(86, 154, 243);}
.fa-instagram:hover {color: rgb(255, 0, 191);}
.fa-github:hover {color: rgb(255, 123, 0);}




/* Links ativos no navbar */
nav .mainMenu li a.active {
    color: #561780; /* Cor do texto */
    font-weight: bold; /* Negrito */
    position: relative; /* Garante que o pseudo-elemento ::after funcione */
}

nav .mainMenu li a.active::after {
    content: ''; /* Adiciona o tracejado */
    display: block;
    height: 2px;
    width: 100%; /* Garante o sublinhado completo */
    background-color: #561780; /* Cor do tracejado */
    position: absolute;
    bottom: 0;
    left: 0;
    animation: active-underline 0.3s ease; /* Animação para suavidade */
}

/* Adiciona animação para o link ativo */
@keyframes active-underline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}









/* footer */
footer {
    background-color: #561780;
    color: #fff;
    padding: 40px 0;
    margin-top: 25vh;
    text-align: center;
}

footer .conteiner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

footer .footer-section {
    flex: 1;
    min-width: 250px;
}

footer .footer-section p {
    text-align: left;
    margin: 30px;
}



footer .footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

footer .footer-section p {
    font-size: 1rem;
    line-height: 1.5;
}

footer .footer-section ul {
    list-style: none;
    padding: 0;
}

footer .footer-section ul li {
    margin-bottom: 10px;
}

footer .footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

footer .footer-section ul li a:hover {
    text-decoration: underline;
}

footer .social-icons {
    display: flex;
    gap: 15px;
}

footer .social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
}

footer .social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

footer .footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    font-size: 0.9rem;
    color: #ddd;
}




/* Responsive Web page */
@media(max-width: 850px){
    /* Responsive Nav bar */
    nav .mainMenu {
        height: 70vh;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 0;
        z-index: 10;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #000;
        color: #fff;
        transition: top 1s ease;
        display: none;

    }

    nav .mainMenu li a {
        color: #fff;
    }

    nav .mainMenu .closeMenu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    nav .openMenu {
        display: block;
    }

    nav .mainMenu li a:hover {
        color: #561780;
        font-size: 1.6rem;
    }
    
    .icons i {
        display: inline-block;
        padding: 12px;
    }

}









