/* WhatsApp Floating Button */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* Position variants */
.whatsapp-float.position-bottom-left {
  left: 30px;
  right: auto;
}

.whatsapp-float.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  text-decoration: none;
}

.whatsapp-float i {
  font-size: 28px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
  transform: scale(1.1);
}

/* Click animation */
.whatsapp-float.clicked {
  transform: scale(0.95);
}

/* Pulse animation - only when enabled */
.whatsapp-float.pulse-enabled::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: #25d366;
  animation: whatsapp-pulse 2s infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-float.position-bottom-left {
    left: 20px;
    right: auto;
  }

  .whatsapp-float i {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float.position-bottom-left {
    left: 15px;
    right: auto;
  }

  .whatsapp-float i {
    font-size: 22px;
  }
}
