/* Custom Styles for Urban Water Solutions - Clean, Human-Crafted Aquatic Theme */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Satisfy&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Urbanist:wght@400;500;600;700;800&display=swap');

:root {
  --primary-navy: #0f294a;
  --sky-blue: #0284c7;
  --cyan-accent: #00b4d8;
  --bg-aquatic: #8bd5fc;
  --emerald-accent: #059669;
  --slate-dark: #0f172a;
  --slate-body: #334155;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  color: #0f172a;
  background-color: #8bd5fc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .font-heading, .font-display {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.015em;
}

.font-stylish {
  font-family: 'Urbanist', sans-serif;
  letter-spacing: -0.015em;
}

.font-handwriting {
  font-family: 'Caveat', 'Satisfy', cursive;
}

/* Browser Surface Details */
::selection {
  background-color: #0284c7;
  color: #ffffff;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #8bd5fc;
}
::-webkit-scrollbar-thumb {
  background: #0284c7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0f294a;
}

/* Clean Solid Water Accent Text */
.water-gradient-text {
  color: #0284c7;
}

.hero-banner-bg {
  background: #8bd5fc;
}

/* Frosted Glass Paper Card Style (Original Crisp & Clean) */
.glass-paper-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px -5px rgba(15, 41, 74, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-paper-card:hover {
  background: #ffffff;
  border-color: #0284c7;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(15, 41, 74, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
}

/* Form Input Focus Styling */
.form-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

/* Interactive Card Hover */
.product-card {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px -6px rgba(15, 41, 74, 0.14), 0 6px 10px -4px rgba(0, 0, 0, 0.04);
}

/* Problem Option Buttons */
.problem-card-btn {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.problem-card-btn:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
}
.problem-card-btn.active {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.25);
}

/* Step-by-Step Process Timeline Styles */
.step-circle-badge {
  box-shadow: 0 6px 14px -2px rgba(2, 132, 199, 0.25);
}

.step-node-ring {
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px rgba(2, 132, 199, 0.35);
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #ffffff;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* Water Droplet Pulse Animation */
@keyframes waterPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.water-pulse {
  animation: waterPulse 3s infinite ease-in-out;
}

/* Ripple Effect Animation */
@keyframes ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.ripple-effect {
  position: relative;
}
.ripple-effect::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(2, 132, 199, 0.4);
  animation: ripple 2.5s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

/* WhatsApp Pulse Animation */
@keyframes whatsappGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 10px 25px -5px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 15px 30px -5px rgba(37, 211, 102, 0.5);
  }
}

.whatsapp-pulse {
  animation: whatsappGlow 2.5s infinite;
}

/* Floating animation for badge / icons */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

/* Subtle Shimmer for High Priority CTAs */
@keyframes ctaShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.cta-shimmer {
  background: linear-gradient(90deg, #0284c7 0%, #00b4d8 50%, #0284c7 100%);
  background-size: 200% 100%;
  animation: ctaShimmer 4s infinite linear;
}

/* Reveal on Scroll Transitions */
.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero Water Splash Background (Fixed real image path) */
.hero-water-bg {
  background-color: #f7fcff;
  background-image: url('Design/background%20image%20desktop.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

@media (max-width: 1024px) {
  .hero-water-bg {
    background-position: center right;
  }
}

/* Diagnostic Draggable Slider Styling */
.diagnostic-slider-card {
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.diagnostic-slider-card.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
}

.diag-fade-anim {
  animation: diagFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes diagFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Ultra-Transparent Glass Header (Mixes Perfectly with Background Images & Colors) ──────────────────── */
#main-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(4px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(4px) saturate(120%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  will-change: transform, opacity;
}

#main-header.header-hidden {
  transform: translateY(-115%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#main-header.header-scrolled {
  background: rgba(255, 255, 255, 0.32) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 41, 74, 0.03) !important;
}

/* Rotating Circular Badge Animation */
@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-clockwise {
  animation: spinClockwise 12s linear infinite;
  transform-origin: center center;
}


/* ───────────────────────────────────────────────────────────────────────── */
/* MODERN BUTTERY-SMOOTH SCROLL ANIMATION SUITE                             */
/* ───────────────────────────────────────────────────────────────────────── */

/* Universal Smooth Scrolling & Scroll Padding */
html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 85px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .scroll-reveal,
  .reveal-item,
  .reveal-section,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Glowing Top Scroll Progress Micro-Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #38bdf8, #0284c7 40%, #00b4d8 80%, #38bdf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  z-index: 100;
  pointer-events: none;
  transition: transform 0.08s ease-out;
  will-change: transform;
}

/* Floating Smooth Back-To-Top Capsule Button */
#scroll-to-top-btn {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(186, 230, 253, 0.9);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.25);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, box-shadow 0.2s;
}

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

#scroll-to-top-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.45);
}

/* Modern Scroll Reveal System */
.scroll-reveal,
.reveal-item,
.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  will-change: opacity, transform;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(32px);
  will-change: opacity, transform;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  will-change: opacity, transform;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Revealed States */
.scroll-reveal.revealed,
.reveal-item.revealed,
.reveal-section.revealed,
.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed,
.scroll-reveal-scale.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Micro-Staggering Delays for Child Cards */
.stagger-1 { transition-delay: 60ms; }
.stagger-2 { transition-delay: 120ms; }
.stagger-3 { transition-delay: 180ms; }
.stagger-4 { transition-delay: 240ms; }
.stagger-5 { transition-delay: 300ms; }
.stagger-6 { transition-delay: 360ms; }

/* ==========================================================================
   Universal Floating WhatsApp Quick Action Button
   ========================================================================== */
#floating-whatsapp-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 8px 24px rgba(37, 211, 102, 0.38));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.whatsapp-icon-circle {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  border: 2.5px solid rgba(255, 255, 255, 0.95);
}

/* Outward Radar Pulse Animation */
.whatsapp-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2.5px solid rgba(37, 211, 102, 0.7);
  animation: waRadarPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes waRadarPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Floating Tooltip Pill */
.whatsapp-tooltip-pill {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  border: 1.5px solid rgba(186, 230, 253, 0.9);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.whatsapp-tooltip-pill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

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

@media (max-width: 640px) {
  #floating-whatsapp-btn {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-icon-circle {
    width: 48px;
    height: 48px;
  }
  #scroll-to-top-btn {
    bottom: 78px;
    right: 22px;
    width: 42px;
    height: 42px;
  }
  .whatsapp-tooltip-pill {
    display: none;
  }
}


/* Global Anchor Scroll Margin for Fixed Header */
[id] {
  scroll-margin-top: 100px;
}

/* 3D Flip Card Robust Stacking & Clickability */
.solution-flip-card {
  perspective: 1000px;
  -webkit-perspective: 1000px;
  position: relative;
}

.solution-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.34, 1.25, 0.64, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.solution-flip-card:hover .solution-flip-inner,
.solution-flip-card.is-flipped .solution-flip-inner {
  transform: rotateY(180deg);
}

.solution-flip-front,
.solution-flip-back {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  border-radius: 1.5rem;
  overflow: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.solution-flip-front {
  transform: rotateY(0deg);
  z-index: 2;
  pointer-events: auto;
  transition: visibility 0.2s;
}

.solution-flip-back {
  transform: rotateY(180deg) !important;
  z-index: 1;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.2s;
}

.solution-flip-card:hover .solution-flip-front,
.solution-flip-card.is-flipped .solution-flip-front {
  pointer-events: none !important;
  visibility: hidden !important;
  z-index: 1 !important;
}

.solution-flip-card:hover .solution-flip-back,
.solution-flip-card.is-flipped .solution-flip-back {
  pointer-events: auto !important;
  visibility: visible !important;
  z-index: 20 !important;
}

.solution-flip-back a,
.solution-flip-back button {
  position: relative !important;
  z-index: 35 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}


/* ==========================================================================
   MOBILE-FIRST SCREEN OPTIMIZATIONS & ERGONOMIC LAYOUT UTILITIES
   ========================================================================== */

/* Hide scrollbar for clean horizontal swipe on mobile tabs */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Touch-optimized smooth scrolling that allows native vertical scroll */
.touch-pan-x {
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Mobile-Friendly Form Controls & Touch Ergonomics */
@media (max-width: 640px) {
  /* Fluid typography scaling base for mobile viewports */
  .font-heading-hero {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    line-height: 1.18;
  }

  /* Ergonomic Touch Targets */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea,
  .btn-touch {
    min-height: 48px;
    font-size: 14px !important;
  }

  /* 3D Solution Flip Cards on Mobile */
  .solution-flip-card {
    height: 475px !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }
  .solution-flip-front,
  .solution-flip-back {
    padding: 1.25rem !important; /* compact 20px padding */
  }

  /* Orbit Badges on Mobile Family Banner (keep inside frame) */
  .floating-orbit-badge {
    transform-origin: center center;
  }
  #badge-oval {
    top: -12px !important;
    left: -8px !important;
  }
  #badge-oval > div {
    width: 72px !important;
    height: 72px !important;
    font-size: 9px !important;
    padding: 4px !important;
  }
  #badge-circular {
    top: 24px !important;
    right: -8px !important;
  }
  #badge-circular > div {
    width: 76px !important;
    height: 76px !important;
    font-size: 9px !important;
    padding: 4px !important;
  }
  #badge-star {
    bottom: -12px !important;
    left: 8px !important;
  }
  #badge-star > div {
    width: 76px !important;
    height: 76px !important;
    font-size: 9px !important;
    padding: 4px !important;
  }

  /* Mobile Floating Actions Positioning above bottom bars */
  .fixed.bottom-6.right-6 {
    bottom: max(1.25rem, env(safe-area-inset-bottom)) !important;
    right: 1rem !important;
  }
}

/* Extra Compact Mobile (Screens < 375px) */
@media (max-width: 375px) {
  .solution-flip-card {
    height: 500px !important;
  }
  .solution-flip-front,
  .solution-flip-back {
    padding: 1rem !important;
  }
}
