@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html {
    scroll-behavior: smooth;
}


*{
    padding: 0;
    margin: 0;
    outline: none;
    border: none;
    box-sizing: border-box;

}

img{
    width: 100%;
    display: flex;
    border-radius: 15px;
}

a{
    text-decoration: none;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: #181818;
}

.container{
    max-width: 1200px;
    margin: auto;
    padding: 5rem 2rem;
}

.fade-in{
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nav-logo{
    max-width: 200px;
    z-index: 10; /* Garante que o link fique no topo */

}

/* LINKS ficam centralizados na tela, NÃO em relação ao logo */
.desktop-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* centraliza de verdade */
    margin: 0;
    padding: 0;
}


.desktop-nav {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    position: relative; /* importante */
}

/* MENU MOBILE */
.mobile-nav {
    font-family: 'Montserrat', sans-serif;
    display: none;
}


.nav-links .link a {
    position: relative;
    z-index: 10; /* Garante que o link fique no topo */
    padding-bottom: 0.75rem;
}


.link a{
    position: relative;
    padding-bottom: 0.75rem;
    color: #fff;
    
}

.link a::after{
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: #351ba8;
    transition: all  0.3s ease;
}

.link a:hover::after{
    width: 70%;
}

.btn{
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #fff;
    background-color: #3803E6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover{
    background-color: #5423E5;
}

.blur{
    position:absolute;
    box-shadow: 0 0 10000px 140px #21106b; 
    z-index: -100;
}

/* Novo blur no canto inferior direito */
.blur-bottom-right {
    position: absolute; /* Fixa o elemento */
    right: 0;
    bottom: 0;
    box-shadow: 0 0 1000px 100px #21106b; 
    z-index: -100;
}


.sub-header{
    max-width: 600px;
    margin: auto;
    text-align: center;
    color: #ccc;
}


footer{
    position: relative;
    display: grid;
    grid-template-columns: 400px repeat(3, 1fr);
    gap: 2rem;
}

footer .column .logo{
    max-width: 140px;
    margin-bottom: 2rem;
}

footer .column p{
    color: #ccc;
    margin-bottom: 2rem;
}

footer .column .socials{
    display: flex;
    align-items: center;
    gap: 1rem;
}


footer .column .socials a{
    color: #ccc;
    border: 1px solid #ccc;
    padding:  5px 10px;
    font-size: 1.25rem;
    border-radius: 100%;
    transition: all 0.3s ease;

}

footer .column .socials a:hover{
    color: #fff;
    background-color: #5423E5;
    border-color: #5423E5;
}

footer .column h4{
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

footer .column > a{
    display: block;
    color: #ccc;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

footer .column > a:hover{
    color: #5423E5;
}


.copyright{
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
}

@media (max-width: 768px) {
    /* Barra de navegação mobile */
    .mobile-nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 10px 20px;
        z-index: 10001; /* Garantir que o menu móvel tenha alta prioridade */
    }

    .mobile-logo{
        max-width: 100px;
        z-index: 10; /* Garante que o link fique no topo */
    
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10002;
        position: relative;
    }
    
    .hamburger span {
        position: absolute;
        width: 30px;
        height: 3px;
        background: white;
        border-radius: 5px;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }
    
    /* Ajusta a posição inicial das barras */
    .hamburger span:nth-child(1) {
        top: 10px;
    }
    
    .hamburger span:nth-child(2) {
        top: 18px;
    }
    
    .hamburger span:nth-child(3) {
        top: 26px;
    }
    
    /* Transformação para o "X" */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(24, 24, 24, 0.85); /* Menos opaco, mais transparente */
        z-index: 10000; 
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    

    /* Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 9999; /* Overlay com z-index abaixo do menu */
        display: none;
    }

    /* Quando o menu está ativo */
    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* Esconder o menu desktop */
    .desktop-nav {
        display: none;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .mobile-menu li {
        margin: 15px 0;
        font-size: 24px;
        gap: 2rem;
        font-weight: 600;
        z-index: 10001; /* Z-index dos itens de menu */
    }

    .mobile-menu a {
        color: white;
        text-decoration: none;
    }

}


@media (width < 900px){
    .nav-links{
        display: none;
    }
    footer{
        grid-template-columns: 1fr 200px;
    }

}

/* Media Query para telas pequenas */
@media (max-width: 768px) {
    footer {
        grid-template-columns: 1fr; /* Força uma única coluna */
        gap: 1rem; /* Ajusta o espaço entre os elementos */
    }

    footer .column {
        margin-bottom: 1.5rem; /* Ajusta o espaço entre as colunas */
    }
}

@media (width < 600px){
    footer{
        grid-template-columns: 1fr 150px;
    }
}


/* Ajustes para garantir que os links funcionem corretamente no mobile */
@media (max-width: 768px) {
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    footer .column {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    footer .socials {
        justify-content: center;
    }

    footer .column .logo {
        margin: 0 auto 2rem;
        display: flex;
        justify-content: center;
    }

    footer .column .logo img {
        max-width: 100px;
        display: block;
    }
}
