/* WhatsApp Float Button Stylesheet */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-icon-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  transition: transform 0.3s ease;
}

/* Tooltip styles */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 16px;
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tooltip arrow */
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(13, 13, 13, 0.85);
}

/* Pulsing background effect */
.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #25D366;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.75;
  animation: whatsapp-pulse-anim 2s infinite;
  pointer-events: none;
}

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

/* Hover & Active effects */
.whatsapp-float:hover {
  transform: scale(1.05);
}

.whatsapp-float:hover .whatsapp-icon-wrapper {
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

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

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-svg {
    width: 26px;
    height: 26px;
  }
  .whatsapp-tooltip {
    display: none; /* Hide tooltip on touch screens to prevent visual clutter */
  }
}
