/* Define a cor neon como uma variável global */
:root {
    --neon-green: #11ee46;
    --dark-glass: rgba(0, 0, 0, 0.7);
     --dark-botton: rgba(0, 0, 0, 1);
}


.floating-contact-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Removido: display: none; para que o botão seja visível em desktop também */
}

/* Torna visível quando a classe .visible é adicionada via JS */
.floating-contact-button.visible {
    opacity: 1;
    visibility: visible;
}

/* Removido: Media query para mostrar o botão apenas em dispositivos móveis */

/* ==============
   BOTÃO PRINCIPAL (NEON)
   ============== */
#main-contact-btn {
    background-color: var(--neon-green);
    color: #040404; /* Cor do texto (branco) */
    border: none;
    border-radius: 50%; /* Torna o botão redondo */
    width: 50px; /* Largura para o botão redondo */
    height: 50px; /* Altura para o botão redondo */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em; /* Tamanho da fonte para o texto "Contato" */
    font-weight: bold;
    
    /* Transição mais elástica e moderna */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    position: relative; /* Garante que está sobre as opções */
    z-index: 10;
    /* Efeito neon piscante suave */
        box-shadow: 0 0 5px var(--dark-glass), 0 0 15px var(--dark-glass), 0 0 25px var(--dark-glass), 0 0 40px var(--dark-glass);
}

.floating-contact-button.active #main-contact-btn {
    transform: scale(1.1); /* Um pequeno "pop" quando ativo */
    color: #111; /* Cor do texto ao ativar */
    text-shadow: none; /* Remove a sombra do texto ao ativar */
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        box-shadow: 0 0 5px var(--dark-glass), 0 0 15px var(--dark-glass), 0 0 25px var(--dark-glass), 0 0 40px var(--dark-glass);
    }
    20%, 24%, 55% {
        box-shadow: none;
    }
}

/* ==============
   BOTÕES DE OPÇÃO (GLASSMORPHISM)
   ============== */
.contact-options {
    position: absolute;
    /* Começa do centro do botão principal */
    bottom: 0;
    right: 0;
    width: 120px; /* Ajustado para a largura do botão principal */
    height: 50px; /* Ajustado para a altura do botão principal */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.contact-option-btn {
    position: absolute;
    background-color: var(--dark-botton);
    
    /* Efeito de vidro moderno */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    color: white; /* Ícone branco */
    text-decoration: none;
    width: 40px; /* Um pouco menor que o principal */
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    
    /* Estado inicial (escondido no centro) */
    opacity: 0;
    visibility: hidden;
    transform: translate(0, 0) scale(0.5);
    pointer-events: auto;

    /* Animação "elástica" de fly-out */
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Remover estilo do ícone, já que o botão principal agora é texto */
/* .contact-option-btn i {
    font-size: 22px;
    transition: color 0.2s ease, transform 0.2s ease;
} */

/* Hover moderno: ícone fica neon */
.contact-option-btn:hover {
    background-color: rgba(29, 27, 27, 0.8);
}
.contact-option-btn:hover i {
    color: var(--neon-green);
    transform: scale(1.1); /* Efeito de zoom sutil */
}

/* ==============
   ANIMAÇÃO ATIVA (FLY-OUT)
   ============== */
.floating-contact-button.active .contact-option-btn {
    opacity: 1;
    visibility: visible;
}

/* Posições FINAIS (quando 'active') */
/* O 'transform' será animado do centro (0,0) para estas posições */

.floating-contact-button.active #whatsapp-btn {
    /* Posição 9 horas (esquerda) */
    transform: translate(-55px, 0) scale(1);
    transition-delay: 0.0s;
}

.floating-contact-button.active #call-btn {
    /* Posição 45 graus (entre 9 e 12 horas) */
    transform: translate(-30px, -50px) scale(1);
    transition-delay: 0.1s;
}

.floating-contact-button.active #instagram-btn {
    /* Posição 12 horas (cima) */
    transform: translate(20px, -75px) scale(1);
    transition-delay: 0.2s;
}