/* ================= Floating Buttons ================= */
.dr1floatingbuttons {
  /* container scope if needed */
}

/* Button Container */
.dr1floatingbuttons .floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Base Floating Button Style */
.dr1floatingbuttons .floating-button {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* default gradient */
  color: #fff;
  border: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: 2px solid #fff;
  position: relative;

  /* Fade-in Animation */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

/* Staggered animation delays */
.dr1floatingbuttons .floating-button:nth-child(1) { animation-delay: 0.1s; }
.dr1floatingbuttons .floating-button:nth-child(2) { animation-delay: 0.2s; }
.dr1floatingbuttons .floating-button:nth-child(3) { animation-delay: 0.3s; }
.dr1floatingbuttons .floating-button:nth-child(4) { animation-delay: 0.4s; }
.dr1floatingbuttons .floating-button:nth-child(5) { animation-delay: 0.5s; }
.dr1floatingbuttons .floating-button:nth-child(6) { animation-delay: 0.6s; }

/* Fade-in Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hover Animation */
.dr1floatingbuttons .floating-button:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

/* ================= Gradient Buttons ================= */

/* Move Top */
.dr1floatingbuttons .move-top { 
  background: linear-gradient(135deg, #ff6f61, #ffb347);
}
.dr1floatingbuttons .move-top:hover {
  background: linear-gradient(135deg, #ff856f, #ffc171);
}

/* Phone Call */
.dr1floatingbuttons .phone-call { 
  background: linear-gradient(135deg, #1de9b6, #1dc4e9);
}
.dr1floatingbuttons .phone-call:hover {
  background: linear-gradient(135deg, #30e5c3, #3ac4f0);
}

/* WhatsApp Chat */
.dr1floatingbuttons .whatsapp-chat { 
  background: linear-gradient(135deg, #25D366, #1ebe57); 
}
.dr1floatingbuttons .whatsapp-chat:hover {
  background: linear-gradient(135deg, #34e77d, #28c965);
}

/* WhatsApp Share */
.dr1floatingbuttons .whatsapp-share { 
  background: linear-gradient(135deg, #00c853, #00e676); 
}
.dr1floatingbuttons .whatsapp-share:hover {
  background: linear-gradient(135deg, #00d864, #00f584);
}

/* Arattai Chat */
.dr1floatingbuttons .arattai-chat { 
  background: linear-gradient(135deg, #FFD740, #FFC107);
}
.dr1floatingbuttons .arattai-chat:hover {
  background: linear-gradient(135deg, #ffdf5f, #ffd233);
}

/* Arattai Share */
.dr1floatingbuttons .arattai-share { 
  background: linear-gradient(135deg, #FFB300, #FFCA28);
}
.dr1floatingbuttons .arattai-share:hover {
  background: linear-gradient(135deg, #ffc24d, #ffe156);
}

/* Icons inside buttons */
.dr1floatingbuttons .floating-button i {
  font-size: 24px;
  color: #fff;
  transition: transform 0.3s ease;
}

/* Arattai icon image */
.dr1floatingbuttons .arattai-chat .arattai-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Hover Icon Scale Effect */
.dr1floatingbuttons .floating-button:hover i,
.dr1floatingbuttons .floating-button:hover .arattai-icon {
  transform: scale(1.2);
}

/* Tooltip */
.dr1floatingbuttons .floating-button::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%;
  margin-right: 10px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dr1floatingbuttons .floating-button:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .dr1floatingbuttons .floating-button { 
    width: 52px; 
    height: 52px; 
    border-radius: 16px; 
    font-size: 18px; 
  }
  .dr1floatingbuttons .floating-button i { font-size: 20px; }
  .dr1floatingbuttons .floating-button .arattai-icon { width: 22px; height: 22px; }
  .dr1floatingbuttons .floating-button::after { font-size: 12px; padding: 4px 8px; margin-right: 8px; }
}