/* Floating Contact Button Styles */
.floating-contact-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.floating-contact-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f7c621 0%, #dbc64c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(247, 198, 33, 0.4);
  transition: all 0.3s ease;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.floating-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(247, 198, 33, 0.6);
}

.floating-contact-btn:active {
  transform: scale(0.95);
}

.floating-contact-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  transition: opacity 0.3s ease;
}

.floating-contact-btn.active svg {
  transform: rotate(45deg);
}

/* Pulse Animation for Button */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(247, 198, 33, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(247, 198, 33, 0.7), 0 0 0 10px rgba(247, 198, 33, 0);
  }

  100% {
    box-shadow: 0 4px 20px rgba(247, 198, 33, 0.4);
  }
}

.floating-contact-btn {
  animation: pulse 2s infinite;
}

/* Contact Box */
.contact-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.contact-box::before {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ffffff;
}

.contact-box-title {
  font-size: 18px;
  font-weight: bold;
  color: #252525;
  margin-bottom: 15px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 10px;
  text-decoration: none;
  color: #252525;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease;
  z-index: 0;
}

.contact-link:hover::before {
  left: 0;
}

.contact-link svg,
.contact-link span {
  position: relative;
  z-index: 1;
}

.contact-link svg {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.contact-link span {
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Individual Link Styles */
.contact-link.whatsapp {
  background-color: rgba(37, 211, 102, 0.1);
}

.contact-link.whatsapp::before {
  background-color: #25D366;
}

.contact-link.whatsapp svg {
  fill: #25D366;
}

.contact-link.whatsapp:hover {
  transform: translateX(5px);
}

.contact-link.whatsapp:hover svg,
.contact-link.whatsapp:hover span {
  color: #ffffff;
  fill: #ffffff;
}

.contact-link.call {
  background-color: rgba(66, 133, 244, 0.1);
}

.contact-link.call::before {
  background-color: #4285F4;
}

.contact-link.call svg {
  fill: #4285F4;
}

.contact-link.call:hover {
  transform: translateX(5px);
}

.contact-link.call:hover svg,
.contact-link.call:hover span {
  color: #ffffff;
  fill: #ffffff;
}

.contact-link.instagram {
  background: linear-gradient(45deg, rgba(225, 48, 108, 0.1), rgba(193, 53, 132, 0.1), rgba(131, 58, 180, 0.1));
}

.contact-link.instagram::before {
  background: linear-gradient(45deg, #E1306C, #C13584, #833AB4);
}

.contact-link.instagram svg {
  fill: #E1306C;
}

.contact-link.instagram:hover {
  transform: translateX(5px);
}

.contact-link.instagram:hover svg,
.contact-link.instagram:hover span {
  color: #ffffff;
  fill: #ffffff;
}

.contact-link.facebook {
  background-color: rgba(24, 119, 242, 0.1);
}

.contact-link.facebook::before {
  background-color: #1877F2;
}

.contact-link.facebook svg {
  fill: #1877F2;
}

.contact-link.facebook:hover {
  transform: translateX(5px);
}

.contact-link.facebook:hover svg,
.contact-link.facebook:hover span {
  color: #ffffff;
  fill: #ffffff;
}

.contact-link.youtube {
  background-color: rgba(255, 0, 0, 0.1);
}

.contact-link.youtube::before {
  background-color: #FF0000;
}

.contact-link.youtube svg {
  fill: #FF0000;
}

.contact-link.youtube:hover {
  transform: translateX(5px);
}

.contact-link.youtube:hover svg,
.contact-link.youtube:hover span {
  color: #ffffff;
  fill: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .floating-contact-container {
    bottom: 20px;
    right: 20px;
  }

  .floating-contact-btn {
    width: 55px;
    height: 55px;
  }

  .floating-contact-btn svg {
    width: 26px;
    height: 26px;
  }

  .contact-box {
    min-width: 260px;
    padding: 18px;
  }

  .contact-box-title {
    font-size: 16px;
  }

  .contact-link {
    padding: 10px 12px;
  }

  .contact-link svg {
    width: 22px;
    height: 22px;
  }

  .contact-link span {
    font-size: 13px;
  }
}

/* Backdrop for Mobile */
.contact-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.contact-backdrop.active {
  opacity: 1;
  visibility: visible;
}