/* ========================================
   FLOATING CONTACT BUTTONS SECTION
   Phone & WhatsApp buttons fixed to viewport
   ======================================== */

/* Container for floating buttons */
.floating-buttons-container {
  font-size: 1.5em;
}

/* Base button styling */
.phone-btn,
.whatsapp-btn {
  z-index: 9999;  /* High z-index to float above all content */
  position: fixed;
  width: 40px;  /* Smaller button: 60px → 40px */
  height: 40px;
  left: 40px;  /* Fixed position on left side */
  background-color: transparent;
  color: #FFF;
  border-radius: 50%;  /* Perfect circle */
  display: flex;              /* flexbox layout */
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center */
  text-align: center;
  transition: all 0.3s ease-in-out;
}

/* Phone Button - Top button in vertical stack */
.phone-btn {
  top: calc(50% - 50px);  /* Center vertically, then move up */
  box-shadow: 0px 0px 6px 2px rgba(246, 8, 0, 0.6);
  animation: bounceIn 0.8s ease-out, pulse 2s infinite 1s;
}
.phone-btn:hover {
  transform: scale(1.1);
  box-shadow: 0px 0px 15px 4px rgba(246, 8, 0, 0.9);
  animation: ring 0.4s ease-in-out 3;
}

/* WhatsApp Button - Bottom button in vertical stack */
.whatsapp-btn {
  top: calc(50% + 50px);  /* Center vertically, then move down */
  box-shadow: 0px 0px 6px 2px rgba(37, 211, 102, 0.6);
  animation: bounceIn 0.8s ease-out 0.2s, pulseGreen 2s infinite 1.2s;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0px 0px 15px 4px rgba(37, 211, 102, 0.9);
  animation: wiggle 0.4s ease-in-out 3;
}

/* Icon styling */
.floating-icon {
  font-size: 24px;   /* Size of icon */
  margin: 0;         /* Remove offset */
  transition: transform 0.3s ease;
}
.phone-btn:hover .floating-icon,
.whatsapp-btn:hover .floating-icon {
  transform: rotate(15deg);
}

/* SVG icon styling for img tags - smaller: 28px → 14px */
.whatsapp-btn img {
  width: 14px;
  height: 14px;
  filter: invert(46%) sepia(97%) saturate(300%) hue-rotate(90deg) brightness(90%) contrast(90%);
}
.phone-btn img {
  width: 14px;
  height: 14px;
  filter: invert(20%) sepia(90%) saturate(6000%) hue-rotate(0deg) brightness(90%) contrast(100%);
}

/* ========================================
   ANIMATION KEYFRAMES
   ======================================== */

/* Bounce In animation - initial entry */
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Pulse animation for phone button (red glow) */
@keyframes pulse {
  0% { box-shadow: 0 0 6px 2px rgba(246, 8, 0, 0.6); }
  50% { box-shadow: 0 0 15px 6px rgba(246, 8, 0, 0.9); }
  100% { box-shadow: 0 0 6px 2px rgba(246, 8, 0, 0.6); }
}

/* Pulse animation for WhatsApp button (green glow) */
@keyframes pulseGreen {
  0% { box-shadow: 0 0 6px 2px rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 0 15px 6px rgba(37, 211, 102, 0.9); }
  100% { box-shadow: 0 0 6px 2px rgba(37, 211, 102, 0.6); }
}

/* Ring animation for phone button (shake on hover) */
@keyframes ring {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

/* Wiggle animation for WhatsApp button (shake on hover) */
@keyframes wiggle {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

/* ========================================
   RESPONSIVE - Adjust for small screens
   ======================================== */
@media (max-width: 576px) {
  .phone-btn,
  .whatsapp-btn {
    width: 35px;
    height: 35px;
    left: 15px;
  }
  
  .phone-btn img,
  .whatsapp-btn img {
    width: 12px;
    height: 12px;
  }
  
  .phone-btn {
    top: calc(50% - 40px);
  }
  
  .whatsapp-btn {
    top: calc(50% + 40px);
  }
}
