@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
    font-family: myfont;
    src: url('crewniverse2.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    text-align: center;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

header {
    background: linear-gradient(to right, #D13F8F 100%, #663572);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    z-index: 1001; /* Mantém a navbar na frente */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative; /* Para o ::after funcionar */
    padding-bottom: 3px;
}

nav ul li a.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.dropdown {
    position: relative; 
    z-index: 1002; 
}

/* Estilização do submenu */
.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background: #DBC8E0;
    transform: translateX(-50%);
    border-radius: 8px;
    width: max-content;
    min-width: auto;
    box-sizing: border-box;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1050; 
    white-space: nowrap; 
    overflow: hidden; 
    padding: 3px 0;
    margin: 0;
}

/* Exibir o submenu ao clicar */
/* Mostra o submenu APENAS quando ele tiver a classe 'active' */
.dropdown-menu.active {
    display: block;
}

/* Melhorando a acessibilidade e estilo */
.dropdown-menu li {
    list-style: none;
    text-align: center;
}

.dropdown-menu li a {
    display: block;
    padding: 6px 10px;
    text-decoration: none;
    color: #663572;
    font-size: 14px;
    text-align: center;
}

.dropdown-menu li a:hover {
    background-color: #D13F8F;
    color: white;
}


header {
    position: relative;
    z-index: 1001;
}

/*Sessão barra 2 lilas*/
.hero {
    position: relative;
    background: #6A2E66;
    color: white;
    padding: 50px 20px;
    text-align: center;
    z-index: 1;

}
.hero p{
    background-color: #DBC8E02B; /* Cor do fundo da caixa */
    padding: 15px 20px; /* Espaçamento interno */
    border-radius: 10px; /* Borda arredondada */
    max-width: 500px; /* Largura máxima da caixa */
    text-align: center; /* Centralizar o texto dentro da caixa */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
    margin: 0 auto;
    display: block;
    font-size: 20px;
}
.hero img[alt="ativo 1"]{
    position: absolute;
    bottom: -40px; /* Faz a imagem encostar na borda inferior */
    left: -1px; /* Alinha a imagem à esquerda */
    width: 120px;
    height: auto; /* Mantém a proporção da imagem */
    opacity: 0.3;
    transform: rotate(-9.11deg);
}
.hero img[alt="ativo 2"] {
    position: absolute; /* Permite posicionamento absoluto */
    bottom: 50px; /* Ajuste fino na parte inferior */
    right: -5px; /* Mantém alinhado à direita */
    width: 120px;
    height: auto;
    opacity: 0.3;
    transform: rotate(11.01deg);
}
.hero img[alt="flor"]{
    position: absolute;
    bottom: -30px;
    width: 50px;
    height: auto;
}

.hero h1 {
    font-weight: normal;
    line-height: 2.0;
    letter-spacing: 2.5px;
    font-size: 28px;
    font-family: myfont;
    color: #ffff;
}

.destaque {
    color: #8CD3D0;
    font-weight: bold;
}

.destaque2 {
    font-weight: normal;
    font-family: myfont;
    color: #663572;
}
/* Estilos Sessão sobre o APP */

.sobre {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
    padding: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 5%;
}

.descricao-card {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    gap: 15px; 
    width: 60%;
    margin-left: 5%;
}

.descricao {
    font-family: "myfont", sans-serif;
    font-size: 24px;
    color: #0D9B9B;
    text-align: left;
    line-height: 2px;
    letter-spacing: 2px;
    width: 70%;
    margin-left: 3%;
}

.info-cards {
    display: flex;
    width: 100%;
    justify-content: space-between; 
    align-items: flex-start; 
}
.info-cards p{
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 3%;
}

.info-cards h2{
    color: #663572;
    font-family: "myfont", sans-serif;
    line-height: 3;
    font-size: 24px;
    letter-spacing: 6%;
    font-weight: normal;
}

/* Estilização dos cards */
.card {
    background: #DBC8E0;
    padding: 25px;
    border-radius: 26px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.card:last-of-type {
    width: 55%;
    margin-right: 5%;
}
.card:first-of-type{
    width: 70%;
}
/*Sessão sobre a equipe*/
.equipe {
    display: flex;
    flex-direction: column;
    background-color: #EFEAD2;
    padding: 5% 1%;
    align-items: center;
}

.equipe h1 {
    font-family: myfont;
    color: #663572;
    font-size: 28px;
    text-align: center;
    margin-bottom: 85px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.equipe h1::before,
.equipe h1::after {
    content: "";
    width: 430px;
    height: 3px;
    background-color: #D13F8F;
    display: block;
}

.membros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    justify-items: center;
}

.membro {
    width: 100%;
    max-width: 300px;
    height: 300px;
    perspective: 800px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    will-change: transform;
}

.membro:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #DBC8E0;
    border-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
    backface-visibility: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front img {
    width: 200px;
    height: 200px;
    border-radius: 14%;
    object-fit: cover;
    border: 3px solid #5A2D52;
    margin-bottom: 15px;
}

.card-front h2 {
    font-size: 16px;
    color: #000000;
    text-align: center;
}

.card-back {
    transform: rotateY(180deg);
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    text-align: justify;
}

/*Sessão redirecionamento para as redes sociais*/
.redes-sociais, .links-uteis {
    text-align: center;
    padding: 20px;
    padding-bottom: 5%;
}
.redes-sociais h2{
    color: #663572;
    font-family: myfont;
    font-size: 28px;
    letter-spacing: 1px;
    margin-top: 5%;
    font-weight: normal;
    margin-bottom: 3%;
}
/* Container dos botões */
.link {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espaço entre os botões */
    margin-top: 15px;
}

/* Botão de redes sociais */
.buttons {
    display: flex;
    align-items: center;
    width: 20%;
    height: 5%;
    gap: 8px; /* Espaço entre ícone e texto */
    background-color: #DBC8E0; /* Cor rosa claro do botão */
    padding: 10px 20px;
    border-radius: 30px; /* Bordas arredondadas */
    border: 3px solid #D13F8F; /* Borda rosa escuro */
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25); /* Sombra */
    transition: transform 0.2s ease-in-out;
}

/* Efeito de hover nos botões */
.buttons:hover {
    transform: scale(1.05);
}

/* Ícones das redes sociais */
.buttons img {
    width: 20px; /* Ajuste do tamanho do ícone */
    height: 20px;
}

/* Links estilizados */
.buttons a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    font-family: Arial, sans-serif;
}
/*Sessão redirecionamento para post do Instagram*/
.links-uteis h3{
    margin-bottom: 3%;
}
.links a img{
    transition: transform 0.2s ease-in-out;
}

.links a img:hover{
    transform: scale(1.05);
}
/* Estilo para o menu responsivo */

.menu-mobile{
    display: none;
    background-color: #DBC8E0;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    overflow: hidden;
    transition: .5s;
    z-index: 99999;
}
.btn-abrir-menu{
    font-size: 40px;
    display: none;
}
.menu-mobile.abrir-menu{
    width: 56%;
}

.menu-mobile.abrir-menu~ .overlays-menu{
    display: block;
}
.menu-mobile .btn-fechar i{
    color: #663572;
    font-size: 40px;
}

.menu-mobile .btn-fechar{
    display: flex;
    padding: 20px 5%;
    justify-content: flex-start;
}
.menu-mobile nav ul{
    text-align: right;
    flex-direction: column;
}
.menu-mobile nav ul li{
    padding: 20px 4%;
}
.menu-mobile nav ul li a{
    font-size: 25px;
    font-weight: 600;
    color: #663572;

}
.overlays-menu{
    background-color: #0000001e;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 1;

}
footer {
    background: #EFEAD2;
    color: black;
    padding: 30px;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}
/* Responsividade */
@media (max-width: 768px) {

    /* menu hamburguer*/
    #menu {
        display: none;
    }

    /* Mostra o menu mobile ao ativar */
    .menu-mobile{
        display: block;
    }

    .btn-abrir-menu{
        display: block;
    }
    nav ul li a.active::after {
        background-color: #663572;
    }
    .menu-mobile.dropdown-menu{
        display: flex;
        margin-right: 0%;
    }
    .menu-mobile.abrir-menu{
        text-align: right;
        align-items: self-end;
    }
    .dropdown-menu {
        position: static; /* Para que fique no fluxo do layout */
        transform: none; /* Remove deslocamento lateral */
        background: #DBC8E0;
        width: 100%; /* Ocupa toda a largura do contêiner pai */
        border-radius: 0;
        box-shadow: none;
        width: max-content;
        min-width: auto;
        text-align: center;
      }
    .dropdown-menu li a:hover {
        width: fit-content;
        color: white;
    }

    /* Ajustes no hero */
    .hero {
        padding: 30px 10px;
    }
    .hero h1{
        font-weight: 100;

    }

    .hero p {
        font-size: 16px;
        padding: 10px;
        max-width: 90%;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero img[alt="ativo 1"],
    .hero img[alt="ativo 2"],
    .hero img[alt="flor"] {
        display: none; /* Oculta imagens decorativas em telas pequenas */
    }
    .sobre{
        margin-top: 5%;
        margin-bottom: 5%;
    }
    .info-cards {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .card, .card:last-of-type, .card:first-of-type {
        width: 90% !important;
        margin: 0 auto;
    }

    .descricao {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .descricao-card {
        width: 100%;
        align-items: center;
        margin: 0 ;
    }
    .descricao-card p{
        font-size: 18px;
        font-weight: normal;
    }
    .equipe{
        padding-top: 50px;
        padding-bottom: 60px;
    }
    .equipe h1{
        margin-bottom: 50px;
    }
    .membros {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 0;
    }
    .membro {
        max-width: 100%; /* Para garantir que ocupem toda a largura disponível */

    }

    .membro {
        max-width: 90%;        /* Ocupa toda a largura disponível */
        padding: 10px;          /* Reduz o espaço interno */
        font-size: 14px;        /* Menor tamanho de texto */
        flex-direction: column; /* Empilha conteúdo, se for flex */
      }
    
      .membro img {
        width: 200px;            /* Reduz o tamanho da imagem */
        height: 210px;
        margin-bottom: 10px;
    }
    .membro p{
        font-size: 14px;
    }

    .redes-sociais h2{
        line-height: 1.5;
        font-weight: 100;
        font-size: 20px;
    }
    .link {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 10%;
        margin-top: 20px;
        
    }

    .buttons{
        display: flex;
        align-items: center;
        width: 90%;
        height: -2%; 
    }
    .links  img{
        width: 280px;
        height: 330px;
    }
    
}
/* ===== MEDIA QUERY PARA TABLET (768px a 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .membros{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;

    }
    .membro{
        width: 40%;
    }

    .link .buttons {
        width: 65%;
        height: 40%;
    }
    .redes-sociais {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        
    }
    
      .redes-sociais .link {
        flex: 1 1 45%; /* ocupa cerca de 45% do espaço para permitir 2 por linha */
        display: flex;
        flex-direction: column;
        
    }.links-uteis img{
        width: 30%;
        height: 40%;
    }
    .redes-sociais h2{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    }
    .links-uteis {
        display: flex;
        flex-direction: column;  
        justify-content: center;  
        align-items: center;        
    }    
}
