/* PV Cristal Agency - Custom Styles & Micro-interactions */

/* Custom smooth scroll and standard resets */
html {
  scroll-behavior: smooth;
}

/* Glassmorphism utility */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Custom Scrollbar for TOC & Tables */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f3f3fb;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d9d9e1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #F26522;
}

/* Hide scrollbar utility */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Modal Animations */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Mobile Drawer Animation */
.mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Subtle Card Hover Elevation */
.lift-on-hover {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.lift-on-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -4px rgba(43, 45, 51, 0.08), 0 4px 12px -2px rgba(242, 101, 34, 0.05);
}

/* Badge pulse animation */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.pulse-dot {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Custom Range Slider */
input[type=range] {
  -webkit-appearance: none;
  background: #ededf5;
  height: 6px;
  border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #f26522;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(242, 101, 34, 0.4);
  transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* WhatsApp Chat Widget Popup */
.wa-widget-popup {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.wa-widget-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Floating Quick Contact Stack (1 ke niche 1: WhatsApp, Calling, Instagram, Facebook) */
.floating-contact-stack {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #ffffff;
  position: relative;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

.floating-btn.whatsapp-btn {
  background: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.floating-btn.whatsapp-btn:hover {
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.floating-btn.call-btn {
  background: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}
.floating-btn.call-btn:hover {
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.6);
}

.floating-btn.insta-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}
.floating-btn.insta-btn:hover {
  box-shadow: 0 10px 25px rgba(225, 48, 108, 0.6);
}

.floating-btn.fb-btn {
  background: #1877F2;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}
.floating-btn.fb-btn:hover {
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.6);
}

.floating-tooltip {
  position: absolute;
  right: 62px;
  background: rgba(25, 27, 33, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .floating-contact-stack {
    bottom: 18px;
    right: 14px;
    gap: 10px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
  }
  .floating-tooltip {
    display: none;
  }
}

/* Print optimizations for legal pages */
@media print {
  header, footer, aside, .modal-backdrop, .no-print, #quoteModal, .mobile-drawer, .drawer-overlay, .wa-widget-popup, .floating-contact-stack {
    display: none !important;
  }
  main {
    padding-top: 0 !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
}

/* Animated Growth Plan CTA Button & Micro-interactions */
@keyframes cta-shimmer {
  0% { transform: translateX(-150%) rotate(25deg); }
  100% { transform: translateX(250%) rotate(25deg); }
}

@keyframes cta-pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 20px -2px rgba(242, 101, 34, 0.4), 0 0 0 0 rgba(242, 101, 34, 0.5);
  }
  50% {
    box-shadow: 0 8px 28px 2px rgba(242, 101, 34, 0.65), 0 0 0 8px rgba(242, 101, 34, 0);
  }
}

.cta-animated-btn {
  position: relative;
  overflow: hidden;
  animation: cta-pulse-glow 3s infinite ease-in-out;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-animated-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: cta-shimmer 3.5s infinite linear;
}

.cta-animated-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Service Rotator Animation for Home Hero Bottom Patty */
.service-rotator-pill {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}
.service-rotator-pill.slide-out {
  transform: translateY(-16px);
  opacity: 0;
}
.service-rotator-pill.slide-in {
  transform: translateY(16px);
  opacity: 0;
}
.service-rotator-pill.active {
  transform: translateY(0);
  opacity: 1;
}


