/* ==========================================================================
   Promax Digital UAE - High-End Human Motion & Animation System
   Engineered with 60fps GPU acceleration & slower, graceful cinematic transitions
   Mobile App-Like Optimization (Zero Horizontal Overflow)
   ========================================================================== */

/* Smooth Scrolling & Mobile App-Like Baseline */
html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent image/media accidental overflow */
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* Base Reveal Class (Default: Fade In Up) - Slower, graceful pace */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Graceful Stagger Delays */
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }
.reveal-delay-5 { transition-delay: 0.75s; }

/* Horizontal & Scale Reveal Variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Mobile App-like Adjustments: Prevent horizontal shifts on small touchscreens */
@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(24px);
  }
  
  .reveal-left.revealed,
  .reveal-right.revealed {
    transform: translateY(0);
  }
  
  .reveal {
    transform: translateY(20px);
  }
}

/* Card Hover Elevation & Subtle Ambient Cyan Glow */
.hover-lift {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s ease;
  will-change: transform, box-shadow;
}

@media (hover: hover) and (pointer: fine) {
  .hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0, 156, 222, 0.14),
                0 2px 6px rgba(0, 43, 73, 0.05);
  }
}

/* Button Shimmer Effect - Slower, gentle shine */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  transition: all 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn-shimmer:hover::after {
  left: 140%;
}

/* Subtle Breathing Glow for Hero Cards */
@keyframes ambientGlow {
  0%, 100% {
    box-shadow: 0 0 35px -5px rgba(0, 156, 222, 0.2), 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 55px 0px rgba(0, 156, 222, 0.35), 0 25px 50px -15px rgba(0, 0, 0, 0.6);
  }
}

.ambient-glow {
  animation: ambientGlow 6s ease-in-out infinite;
}

/* Gentle Floating Motion */
@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.soft-float {
  animation: softFloat 5s ease-in-out infinite;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hover-lift:hover {
    transform: none !important;
  }
  .ambient-glow,
  .soft-float,
  .wa-btn-pulse {
    animation: none !important;
  }
}

/* ==========================================================================
   WhatsApp Interactive Live Floating Widget (Desktop & Mobile)
   ========================================================================== */
.wa-widget-container {
  position: fixed;
  bottom: 24px;
  right: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  font-family: inherit;
}

@media (min-width: 768px) {
  .wa-widget-container {
    bottom: 30px;
    right: 28px;
  }
}

.wa-prompt-bubble {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 10px 14px;
  width: 245px;
  max-width: calc(100vw - 36px);
  box-shadow: 0 12px 30px -4px rgba(0, 43, 73, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 156, 222, 0.16);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  cursor: pointer;
}

.wa-prompt-bubble.wa-bubble-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-prompt-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  color: #64748b;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.wa-prompt-close:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: scale(1.1);
}

.wa-btn {
  pointer-events: auto;
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -4px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 43, 73, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease,
              box-shadow 0.35s ease;
  text-decoration: none;
}

.wa-btn:hover {
  transform: scale(1.08) translateY(-3px);
  background: #20bd5a;
  box-shadow: 0 16px 34px -4px rgba(37, 211, 102, 0.7), 0 6px 18px rgba(0, 43, 73, 0.18);
}

.wa-btn:active {
  transform: scale(0.95);
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-btn-pulse {
  animation: waPulse 2.8s infinite;
}

.wa-badge-dot {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

