/* ===========================
   Floating WhatsApp Button
=========================== */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;

  width: 65px;
  height: 65px;

  border-radius: 50%;

  background: #25D366;
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 34px;

  text-decoration: none;

  box-shadow:
    0 12px 30px rgba(37, 211, 102, .35);

  z-index: 9999;

  transition: .3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow:
    0 18px 40px rgba(37, 211, 102, .45);
}

.whatsapp-float i {
  animation: shake 2.5s infinite;
}

/* Pulse Ring */

.whatsapp-float::before {

  content: "";

  position: absolute;

  width: 100%;
  height: 100%;

  border-radius: 50%;

  background: #25D366;

  z-index: -1;

  animation: pulse 2s infinite;

  opacity: .5;
}

/* Tooltip */

.whatsapp-tooltip {

  position: absolute;

  left: 80px;

  white-space: nowrap;

  background: var(--dark);

  color: #fff;

  padding: 10px 15px;

  border-radius: 8px;

  font-size: .9rem;

  opacity: 0;

  visibility: hidden;

  transition: .3s;

  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Pulse */

@keyframes pulse {

  0% {
    transform: scale(1);
    opacity: .6;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }

}

/* Shake */

@keyframes shake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  2% {
    transform: rotate(-12deg);
  }

  4% {
    transform: rotate(12deg);
  }

  6% {
    transform: rotate(-8deg);
  }

  8% {
    transform: rotate(8deg);
  }

  10% {
    transform: rotate(0);
  }

}

/* Mobile */

@media(max-width:768px) {

  .whatsapp-float {
    width: 58px;
    height: 58px;
    left: 18px;
    bottom: 18px;
    font-size: 30px;
  }

  .whatsapp-tooltip {
    display: none;
  }

}