/* Variáveis para os botões */
:root {
  --whatsapp-color: #25D366;
  --whatsapp-hover: #128C7E;
  --toggle-color: #fbaa00;
  --toggle-hover: #e69500;
  --social-bg: #1a1a1d;
  --social-hover: #fbaa00;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --transition-fast: all 0.1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Botão WhatsApp fixo - Versão Modernizada */
.whatsapp-fixo {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--whatsapp-color);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition-fast);
  text-decoration: none;
  border: 2px solid transparent;
  animation: pulse 2s infinite;
}

.whatsapp-fixo:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--whatsapp-hover);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Animação de pulsação para o WhatsApp */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Botão de toggle - Versão Modernizada */
.social-toggle {
  position: fixed;
  bottom: 95px;
  right: 25px;
  background-color: var(--toggle-color);
  color: #1a1a1d;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.social-toggle:hover {
  background-color: var(--toggle-hover);
  transform: scale(1.1);
}

.social-toggle.open {
  background-color: #ff0033;
  color: #fff;
  transform: rotate(135deg);
}

/* Transição suave para o ícone do toggle */
.social-toggle i {
  transition: transform 0.2s ease;
}

.social-toggle.open i {
  transform: rotate(180deg);
}

/* Menu de redes sociais - Versão Modernizada */
.social-menu {
  position: fixed;
  bottom: 170px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 999;
}

.social-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Ícones sociais - Versão Modernizada */
.social-menu a {
  background: var(--social-bg);
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  transform: scale(0.8);
  opacity: 0.8;
}

.social-menu.show a {
  transform: scale(1);
  opacity: 1;
}

.social-menu a:hover {
  background: #0097FF;
  color: #1a1a1d;
}




@media (max-width: 768px) {
  /* Ajuste dos botões para mobile */
  .whatsapp-fixo {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }

  .social-toggle {
    width: 46px;
    height: 46px;
    font-size: 20px;
    bottom: 75px;
    right: 15px;
  }

  .social-menu {
    bottom: 135px;
    right: 20px;
    gap: 10px;
  }

  .social-menu a {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  /* Ajuste de animação para performance no mobile */
  .social-menu {
    transition: all 0.3s ease-out;
  }

  .social-menu a {
    transition: all 0.15s ease-out;
  }

  /* Garantir que os botões não desapareçam atrás do menu */
  .floating-buttons {
    z-index: 1001;
  }
}

@media (max-width: 480px) {
  /* Ajustes extras para telas muito pequenas */
  .whatsapp-fixo {
    width: 44px;
    height: 44px;
    font-size: 22px;
    bottom: 10px;
    right: 10px;
  }

  .social-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 65px;
    right: 10px;
  }

  .social-menu {
    bottom: 120px;
    right: 15px;
  }

  .social-menu a {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}