/* Custom Styles for Moto Kurye Project */

/* Pulse animation for CTA buttons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 184, 46, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(243, 184, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(243, 184, 46, 0);
  }
}

.pulse-btn {
  animation: pulse 2s infinite;
}

/* Glassmorphic elements */
.glass-panel {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Smooth Transitions */
.hover-scale {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* WhatsApp buttons */
.whatsapp-icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  flex-shrink: 0;
}

.whatsapp-header-link {
  width: clamp(2.5rem, 7vw, 2.75rem);
  height: clamp(2.5rem, 7vw, 2.75rem);
  flex-shrink: 0;
}

.call-floating-btn,
.whatsapp-floating-btn {
  position: fixed;
  right: clamp(0.875rem, 2vw, 1.5rem);
  z-index: 50;
  width: clamp(3.25rem, 10vw, 3.75rem);
  height: clamp(3.25rem, 10vw, 3.75rem);
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.call-floating-btn {
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.call-floating-btn .material-symbols-outlined {
  font-size: clamp(1.45rem, 4vw, 1.8rem);
  color:#ffffff;
}

.whatsapp-floating-btn {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.whatsapp-floating-btn .whatsapp-icon {
  width: 100%;
  height: 100%;
}

/* Scroll to top button */
.scroll-to-top-btn {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(9.75rem, 14vw, 10.5rem);
  z-index: 49;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3rem, 8vw, 3.5rem);
  height: clamp(3rem, 8vw, 3.5rem);
  border: 0;
  border-radius: 9999px;
  background: #f3b82e;
  color: #111827;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.scroll-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  transform: translateY(-2px);
}

.scroll-to-top-btn .material-symbols-outlined {
  font-size: clamp(1.4rem, 4vw, 1.75rem);
}

@media (max-width: 767px) {
  .whatsapp-floating-btn {
    right: 0.875rem;
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.7rem;
  }

  .call-floating-btn {
    right: 0.875rem;
    bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.7rem;
  }

  .scroll-to-top-btn {
    right: 0.875rem;
    bottom: calc(13.25rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Reference Logos Custom Styling */
.reference-logo {
  height: clamp(40px, 5vw, 54px);
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .reference-logo {
  filter: grayscale(0%);
  transform: scale(1.06);
}

