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

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

@font-face {
    font-family: "Pink";
    src: url("../font/Pink\ Blue.ttf");
    font-weight: normal;
    font-style: normal;
}
/* Estilo para a silhueta da favela */
.silhueta-favela {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 400px; /* Largura da silhueta */
    height: 100%; /* Altura da silhueta (cobre toda a altura da tela) */
    background-image: url('../img/silhueta-favela-cinza.png'); /* Caminho da imagem */
    background-size: contain; /* Ajusta a imagem ao tamanho do container */
    background-repeat: no-repeat; /* Evita repetição */
    background-position: left bottom; /* Posiciona no canto esquerdo inferior */
    z-index: -1; /* Garante que fique acima do fundo, mas abaixo do conteúdo */
    opacity: 0.2; /* Transparência para não competir com o conteúdo */
}
/* Estilos adicionais para garantir funcionamento */
body.loaded {
    overflow: auto !important;
}

#preloader {
    pointer-events: none; /* Permite interação com elementos abaixo */
}
@keyframes pulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}
section{
    z-index: 1;
    position: relative;
    width: 100%;
    min-height: 95.2vh;
    padding: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0c44ed;
    transition: 0.5s;
}
header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .logo{
    position: relative;
    max-width: 150px;
}
/* Menu Mobile */
.navigation {
    display: flex;
    gap: 2rem;
}

.toggleMenu {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .toggleMenu {
        display: block;
        z-index: 1001;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
    }
    
    .navigation.active {
        left: 0;
    }
    
    .navigation li a {
        font-size: 1.2rem;
    }
}
/* ========== MENU DESKTOP ========== */
.navigation {
    display: flex;
    gap: 2rem;
}

.navigation li {
    list-style: none; /* Remove os pontos */
    position: relative;
}

.navigation li a {
    color: #fff !important; /* Força cor branca */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navigation li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff0060;
    transition: width 0.3s;
}

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

/* ========== MENU MOBILE ========== */
.toggleMenu {
    display: none;
    width: 40px;
    height: 40px;
    background: url('../img/menu.png') no-repeat center;
    background-size: 30px;
    z-index: 1001;
    transition: 0.3s;
}

.toggleMenu.active {
    background-image: url('../img/close.png');
    background-size: 25px;
}

@media (max-width: 768px) {
    .toggleMenu {
        display: block; /* Exibe o ícone */
        right: 30px;
        top: 20px;
    }

    .navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        padding: 20% 0;
    }

    .navigation.active {
        left: 0;
    }

    .navigation li {
        margin: 0px 0;
        opacity: 0;
        transform: translateX(-20px);
        animation: fadeIn 0.4s forwards;
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .navigation li a {
        font-size: 1.5rem;
    }
}
.content{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    justify-items: center;
    flex-wrap: wrap;
}
.content .textBox{
    position: relative;
    max-width: 600px;
    margin-top: 6%;
    margin-right: 50px;
}
.content .textBox h2 {
    font-size: 62px;
    line-height: 110px;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffd800; /* Cor branca por padrão */
    text-shadow: 5px 5px 0px #ff0060, 0px 0px 0px #ff0060; /* Sem sombra inicial */
    transition: color 0.5s ease-in-out, text-shadow 0.5s ease-in-out; /* Transição suave */
}
.content .textBox h2 span{
    font-size: 157px;
    font-family: "Pink","Saira";
    letter-spacing: 10px;
}  
.content .textBox p{
    color: #fff;
    margin-top: 20px;
}
.content .textBox a {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: #ff0060; /* Cor de fundo inicial (rosa) */
    color: #ffd800; /* Cor do texto inicial (amarelo) */
    border-radius: 40px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out; /* Transição suave */
}
.content .imgBox{
    width: 600px;
    display: flex;
    margin-top: 50px;
    justify-content: center;
}
.content .imgBox img{
    max-width: none;
}
.thumb{
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
}
.thumb li{
    list-style: none;
    display: inline-block;
    margin: 0 20px;
    cursor: pointer;
    transition: 0.5s;
}

/* Movimiento */
.thumb li:hover{
    transform: translateY(-15px);
}
.thumb li img{
    max-width: 40px;
}
.sci{
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.sci li{
    list-style: none;
}
.sci li a{
    display: inline-block;
    filter: invert(1);
    margin: 5px 0;
    transform: scale(0.6);
}

/* Animação para a miniatura ativa */
@keyframes floatThumb {
    0%, 100% {
        transform: translateY(0); /* Posição inicial e final */
    }
    50% {
        transform: translateY(-15px); /* Movimento para cima */
    }
}

.thumb li {
    list-style: none;
    display: inline-block;
    margin: 0 20px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out; /* Transição suave ao mudar a miniatura ativa */
}

.thumb li.active {
    animation: floatThumb 3s infinite ease-in-out; /* Aplica a animação apenas à miniatura ativa */
}

/* Efeito de hover (opcional) */
.thumb li:hover {
    transform: translateY(-15px); /* Efeito de hover */
}



/* Responsive */
@media(max-width: 768px){
    section{
        padding: 40px;
        padding-bottom: 150px; /* 120px */
        z-index: 1;
    }
    header{
        padding: 20px 40px;
    }
    header .logo{
        position: relative;
        max-width: 120px;
    }
    /* Menu Responsive */
    header ul{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000000;
        z-index: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.2s;
        visibility: hidden;
        opacity: 0;
    }
    header ul.active{ /* Para que aparezca el menu */
        visibility: visible;
        opacity: 1;
    }
    header ul li a{
        display: inline-block;
        color: #ffffff;
        font-weight: 400;
        margin-left: 0;
        text-decoration: none;
        font-size: 1.3em;
    }
    header ul li a:hover{
        color: #ff0060;
    }
    .toggleMenu{
        width: 40px;
        height: 40px;
        background: url(../img/menu.png);
        background-position: center;
        background-size: 30px;
        background-repeat: no-repeat;
        z-index: 2;
        cursor: pointer;
    }
    .toggleMenu.active{
        background: url(../img/close.png);
        background-position: center;
        background-size: 25px;
        background-repeat: no-repeat;
    }
    /* fin del menu */
    .content {
        flex-direction: column; /* Empilha os elementos verticalmente em telas menores */
        text-align: center; /* Centraliza o texto */
        margin-top: 80px;
    }
    .content .textBox{
        position: relative;
        max-width: 100%;
        margin-right: 0; /* Remove a margem direita em telas menores */
        margin-bottom: 20px; /* Adiciona um espaço entre o textBox e o imgBox */
    }
    .content .textBox h2{
        font-size: 32px;
        line-height: 55px;
    }
    .content .textBox h2 span{
        font-size: 75px;
        letter-spacing: 10px;
    }
    .content .textBox a{
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .content .imgBox{
        width: 100%;
        display: flex;
        padding-right: 0;
        margin-top: 20px;
        justify-content: center;
    }
    .content .imgBox img{
        max-width: none;
    }
    .thumb li img{
        max-width: 37px; /* 30px */
    }
    .sci{
        right: 0;
        width: 50px;
        background: rgba(0,0,0,0.2);
    }
}

/* Barra animada */
.moving-bar {
    height: 45px;
    background-image: url('../img/barra.jpg');
    background-size: auto 100%;
    background-repeat: repeat-x;
    animation: move 350s linear infinite;
    margin-bottom: 0px; /* Remove qualquer espaço extra */
}

@keyframes move {
    0% { background-position: 5000% 0; }
    100% { background-position: 0 0; }
}

@media (max-width: 768px) {
    .moving-bar {
        height: 35px; /* Menor altura no mobile */
        animation: move 550s linear infinite;
    }
    @keyframes move {
        100% { background-position: 5000% 0; }
        0% { background-position: 0 0; }
    }
}