/* --- A MÁGICA DO SCROLL SNAP (EFEITO ÍMAN) --- */
html {
    scroll-snap-type: y mandatory;
}

body { 
    margin: 0; 
    font-family: sans-serif; 
    color: white;
    background-color: #121212;
}

    /* --- Bot���o Flutuante (Voltar) --- */
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #333;
        color: white;
        padding: 12px 20px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        font-size: 0.9em;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease;
        z-index: 1000;
    }
    .floating-button:hover {
        background-color: #555;
    }

/* --- AS SECÇÕES --- */
.seccao {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Texto perfeitamente centralizado */
    align-items: center;
}

.fundo-escuro { background-color: #121212; }
.fundo-claro { background-color: #1e1e1e; }

/* --- O TEXTO COM EFEITO VIDRO (Proteção contra Zoom) --- */
.caixa-texto {
    background-color: rgba(18, 18, 18, 0.55); 
    backdrop-filter: blur(12px); /* Efeito Desfoque */
    -webkit-backdrop-filter: blur(12px); /* Para funcionar no Safari */
    padding: 30px 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    z-index: 200; /* Garante que o texto está SEMPRE por cima do elemento animado */
    position: relative;
    text-align: center;
}

/* --- O NOSSO ELEMENTO MUTANTE --- */
#elemento-mutante {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
    
    z-index: 100; /* Garante que o elemento animado passa POR BAIXO do texto */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* ESTADO 1: O Quadrado no Topo */
.estado-quadrado {
    top: 25%; 
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background-color: #eab308;
    border-radius: 20px;
    pointer-events: none;
}

/* ESTADO 2: A Decoração no Canto */
.estado-bolinha {
    top: 20px;
    left: calc(100% - 80px);
    transform: translateX(0) rotate(180deg);
    width: 60px;
    height: 60px;
    background-color: #06b6d4;
    border-radius: 50%;
    pointer-events: none;
}

/* ESTADO 3: O Botão no Fundo */
.estado-botao {
    top: calc(100vh - 150px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 60px;
    background-color: #2563eb;
    border-radius: 30px;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
}

/* Texto de dentro do Botão */
#texto-botao {
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}

.estado-botao #texto-botao {
    opacity: 1;
    transition-delay: 0.3s;
}