/* Contact Bubble Button Styles
-------------------------------------------------- */
:root {
  --contact-btn-color: var(--color-primary, #FF4C61);
  --contact-btn-shadow: rgba(255, 76, 97, 0.3);
  --contact-btn-hover-shadow: rgba(255, 76, 97, 0.5);
  --contact-btn-gradient: linear-gradient(135deg, #FF6B7D 0%, #FF4C60 100%);
  --contact-btn-hover-gradient: linear-gradient(135deg, #FF5E70 0%, #FF3A50 100%);
}

.contact-prompt {
  display: inline-block;
  margin: 1.5rem auto;
  position: relative;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transform: translateZ(0);
}

.contact-bubble-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--contact-btn-gradient);
  border-radius: 22px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  box-shadow: 0 4px 15px var(--contact-btn-shadow),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transform-style: preserve-3d;
  perspective: 1000px;
  letter-spacing: 0.2px;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.contact-bubble-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--contact-btn-hover-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.contact-bubble-button:hover::before, 
.contact-bubble-button:focus::before {
  opacity: 1;
}

.contact-bubble-button:hover, 
.contact-bubble-button:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--contact-btn-hover-shadow),
              inset 0 1px 2px rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
}

.contact-bubble-button:active {
  transform: translateY(-1px) rotateX(2deg);
  box-shadow: 0 3px 10px var(--contact-btn-shadow),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  color: #fff;
}

.contact-bubble-button .button-text {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.contact-bubble-button:hover .button-text {
  transform: scale(1.02);
}

.contact-bubble-button .emoji-container {
  margin-left: 10px;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transform-origin: center right;
  animation: wave 2.5s ease-in-out infinite;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.contact-bubble-button:hover .emoji-container {
  animation: waveEnhanced 0.8s ease-in-out infinite;
}

.contact-bubble-button .button-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  z-index: 1;
  border-radius: 50%;
}

.contact-bubble-button:hover .button-ripple {
  transform: scale(2);
  opacity: 1;
}

/* Enhanced floating animation for the wave emoji */
@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* Faster, more energetic wave on hover */
@keyframes waveEnhanced {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(20deg) scale(1.1); }
  50% { transform: rotate(-15deg) scale(1.05); }
  75% { transform: rotate(15deg) scale(1.08); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Button ripple effect */
.contact-bubble-button:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.contact-bubble-button:focus:not(:active)::after {
  animation: rippleEnhanced 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rippleEnhanced {
  0% {
    transform: scale(0, 0);
    opacity: 0.8;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: scale(50, 50);
  }
}

/* Success animation for the button */
@keyframes successPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 76, 97, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 76, 97, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 76, 97, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-bubble-button {
    padding: 12px 25px;
    font-size: 15px;
  }
  
  .contact-bubble-button .emoji-container {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .contact-bubble-button {
    padding: 10px 22px;
    font-size: 14px;
  }
  
  .contact-bubble-button .emoji-container {
    font-size: 16px;
  }
} 