/* Floating Buttons Styles */
.floating-buttons {
  position: fixed;
  z-index: 999;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--dark-bg);
  text-decoration: none;
  position: fixed;
}

.floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  font-size: 1.8rem;
  right: 20px;
  bottom: 30px;
}

.scroll-top-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  left: 20px;
  bottom: 30px;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* Pulse animation for WhatsApp button */
.whatsapp-btn {
  position: fixed;
}

.whatsapp-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: pulse 2s infinite;
}

/* Add tooltip for better UX */
.floating-btn::before {
  content: attr(aria-label);
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-btn::before {
  right: 70px;
}

.scroll-top-btn::before {
  left: 70px;
}

.floating-btn:hover::before {
  opacity: 1;
  visibility: visible;
}

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

/* Responsive styles */
@media screen and (max-width: 768px) {
  .whatsapp-btn {
    right: 15px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
  
  .scroll-top-btn {
    left: 15px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .floating-btn::before {
    display: none; /* Hide tooltips on mobile */
  }
}

@media screen and (max-width: 576px) {
  .whatsapp-btn {
    right: 10px;
    bottom: 20px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-top-btn {
    left: 10px;
    bottom: 20px;
    width: 45px;
    height: 45px;
  }
}
