html {
    scrollbar-gutter: stable;
}

.btn-voltar-flutuante {
    position: fixed; /* A mágica para ele flutuar! */
    top: 20px;
    right: 20px;
    z-index: 1000; /* Garante que ele fique acima de tudo */
    
    width: 50px;
    height: 50px;
    background-color: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    backdrop-filter: blur(3px); /* Efeito de vidro fosco, um luxo! */
    transition: all 0.3s ease;
}

.btn-voltar-flutuante:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #00eaff;
    background-color: rgba(0, 234, 255, 0.1);
}

.btn-voltar-flutuante svg {
    width: 28px;
    height: 28px;
    stroke: #00eaff; /* Cor do neon */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    filter: drop-shadow(0 0 3px #00eaff); /* O brilho neon */
}

.main-footer {
    background-color: #0a0a0f;
    color: rgba(255, 255, 255, 0.5);
    /*padding: 30px 20px;*/
    padding-top: 10px;
    margin-top: 50px; /* Empurra o footer para baixo do conteúdo */
    text-align: center;
    border-top: 1px solid rgba(161, 86, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 20px;*/
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 25px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ff4ecb; /* Rosa neon no hover */
    transform: scale(1.2);
}

.social-links svg {
    width: 24px;
    height: 24px;
    stroke: currentColor; /* Pega a cor do link (<a>) */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Responsividade para telas menores */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright a {
    color: #a156ff; /* Roxo elétrico da nossa paleta! */
    text-decoration: none; /* Remove o sublinhado feio */
    font-weight: bold;
    transition: all 0.2s ease;
}

.copyright a:hover {
    color: #ff4ecb; /* Muda para rosa neon no hover */
    text-shadow: 0 0 8px #ff4ecb; /* E adiciona um brilho! */
}

/* css/global.css */

/* --- ESTILOS DO PRELOADER --- */
body.loading {
    overflow: hidden;
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo {
    width: 120px;
    filter: drop-shadow(0 0 15px #ff4ecb);
    animation: pulse-logo 2s infinite ease-in-out;
}
@keyframes pulse-logo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* --- ANIMAÇÕES DE TRANSIÇÃO DE PÁGINA --- */
body {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}
body.page-is-exiting {
    opacity: 0;
}

/* --- ANIMAÇÕES DE SCROLL (FADE-IN) --- */

/* 1. O estado inicial de todo elemento que vai ser animado:
   Ele começa invisível e um pouquinho para baixo. */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 2. O estado final, quando ele se torna visível:
   Totalmente opaco e na sua posição original. */
.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}