/* 
  Divine Pure - Premium Design Stylesheet
  Includes custom glassmorphism, fonts, mouse follow, and premium GSAP animation helper styles.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-teal: #00B4D8;
  --primary-teal-rgb: 0, 180, 216;
  --secondary-blue: #005C8A;
  --secondary-blue-rgb: 0, 92, 138;
  --accent-cyan: #90E0EF;
  --accent-cyan-rgb: 144, 224, 239;
  --bg-soft-white: #F8FAFC;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px 0 rgba(0, 92, 138, 0.08);
  --text-dark: #0F172A;
  --text-muted: #475569;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base resets & Custom Scrollbar */
/* Hero 3D Floating & Hotspot Animations */
@keyframes floatPurifier {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.01);
  }
}

@keyframes waterPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 16px rgba(0, 180, 216, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
  }
}

@keyframes mineralFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

.animate-float-purifier {
  animation: floatPurifier 6s ease-in-out infinite;
}

.animate-water-pulse {
  animation: waterPulse 3s infinite;
}

.animate-mineral-1 {
  animation: mineralFloat 4s ease-in-out infinite;
}

.animate-mineral-2 {
  animation: mineralFloat 5s ease-in-out infinite 1s;
}

.animate-mineral-3 {
  animation: mineralFloat 4.5s ease-in-out infinite 2s;
}

.animate-mineral-4 {
  animation: mineralFloat 5.5s ease-in-out infinite 0.5s;
}

.hotspot-pin {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hotspot-pin:hover {
  transform: scale(1.25);
}

.hotspot-pin .hotspot-ring {
  animation: waterPulse 2.5s infinite;
}
html {
  scroll-behavior: auto; /* Handled by Lenis smooth scroll */
  font-family: var(--font-sans);
  background-color: var(--bg-soft-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Default Native Cursor */
body {
  cursor: default;
}
a, button, [role="button"], input[type="submit"], select, summary {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft-white);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 180, 216, 0.25);
  border-radius: 5px;
  border: 2px solid var(--bg-soft-white);
  transition: all 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 180, 216, 0.5);
}


/* Glassmorphism Styles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Glass Navbar */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 30px rgba(0, 92, 138, 0.04);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Animated Background Blobs */
.blob-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: float-blob 25s infinite alternate ease-in-out;
}

.blob-cyan {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(144,224,239,0.7) 0%, rgba(0,180,216,0.3) 100%);
  top: -100px;
  right: -50px;
  animation-duration: 20s;
}

.blob-blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,180,216,0.5) 0%, rgba(0,92,138,0.2) 100%);
  bottom: -200px;
  left: -100px;
  animation-duration: 30s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(80px, 60px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-40px, -80px) scale(0.9) rotate(360deg);
  }
}

/* Premium Buttons & Hover effects */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: 0.5s;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 180, 216, 0.4);
}

.magnetic-btn {
  display: inline-block;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Shiny Cards */
.card-shiny {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-shiny::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 55%
  );
  transform: rotate(-45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
  opacity: 0;
}

.card-shiny:hover::after {
  transform: translate(50%, 50%) rotate(-45deg);
  opacity: 1;
}

/* Loading Screen */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0F172A;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preloader-wave {
  width: 60px;
  height: 40px;
  display: flex;
  justify-content: space-between;
}

.preloader-wave span {
  display: block;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--primary-teal));
  border-radius: 3px;
  animation: preloader-wave-anim 1.2s infinite ease-in-out;
}

.preloader-wave span:nth-child(2) { animation-delay: 0.1s; }
.preloader-wave span:nth-child(3) { animation-delay: 0.2s; }
.preloader-wave span:nth-child(4) { animation-delay: 0.3s; }
.preloader-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes preloader-wave-anim {
  0%, 40%, 100% {
    transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1.0);
  }
}

/* Water Ripple Animation container */
.water-container {
  position: relative;
  overflow: hidden;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-teal), var(--accent-cyan));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s ease;
}

/* Heading Gradient text styling */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-teal) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-dark {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Apple-inspired Dark Theme overrides */
.dark {
  --bg-soft-white: #0F172A;
  --text-dark: #F8FAFC;
  --text-muted: #94A3B8;
  
  --glass-bg: rgba(30, 41, 59, 0.45);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.dark body {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
}

.dark html {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
}

.dark .glass-nav {
  background: rgba(15, 23, 42, 0.7) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dark .glass-nav.scrolled {
  background: rgba(15, 23, 42, 0.85) !important;
}

.dark #mobile-menu {
  background-color: rgba(15, 23, 42, 0.95) !important;
}

.dark ::-webkit-scrollbar-track {
  background: #0F172A;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(0, 180, 216, 0.35);
  border: 2px solid #0F172A;
}

.dark .text-brandDark {
  color: #F8FAFC !important;
}

.dark .text-brandBlue {
  color: #90E0EF !important;
}

.dark .bg-white {
  background-color: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.dark .bg-slate-50 {
  background-color: #0b0f19 !important;
}

.dark .bg-slate-100 {
  background-color: #1e293b !important;
}

.dark .text-slate-800 {
  color: #F8FAFC !important;
}

.dark .text-slate-700 {
  color: #E2E8F0 !important;
}

.dark .text-slate-600 {
  color: #CBD5E1 !important;
}

.dark .text-slate-500 {
  color: #94A3B8 !important;
}

.dark .border-slate-200\/60 {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.dark .border-slate-100 {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.dark .bg-gradient-to-b.from-slate-100.to-slate-200\/40 {
  background-image: linear-gradient(to bottom, #1e293b, rgba(15, 23, 42, 0.4)) !important;
}

/* Dynamic Interactive Dropdown State */
.show-dropdown {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

/* Premium Logo Badge Styling */
.logo-img {
  mix-blend-mode: multiply;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: -5px; /* Align visual text left edge in light mode */
}

.dark .logo-img {
  mix-blend-mode: normal;
  background-color: #ffffff !important;
  border-radius: 8px;
  padding: 4px 10px;
  margin-left: -14px; /* Pull visual logo text left to counter the 10px padding */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Premium Apple-Style Toast Animations & Styling */
.apple-toast-item {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#apple-toast-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#apple-toast-container .apple-toast-item * {
  color: inherit !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#apple-toast-container .apple-toast-item p {
  color: #1e293b !important;
  font-size: 13px !important;
}

.dark #apple-toast-container .apple-toast-item p {
  color: #e2e8f0 !important;
}

#apple-toast-container .apple-toast-close {
  color: #94a3b8 !important;
}

#apple-toast-container .apple-toast-close:hover {
  color: #475569 !important;
}

.dark #apple-toast-container .apple-toast-close:hover {
  color: #f1f5f9 !important;
}

/* Premium Solid Red Delete Buttons Design System Overrides */
button.bg-red-500\/10, 
a.bg-red-500\/10,
button.bg-red-600\/10,
a.bg-red-600\/10,
button[type="submit"].bg-red-500\/10,
.bg-red-500\/10 *,
.apple-delete-btn {
  background-color: rgba(220, 38, 38, 0.05) !important; /* Elegant light desaturated red tint */
  color: #B91C1C !important; /* Premium dark brick red text */
  border: 1px solid rgba(220, 38, 38, 0.16) !important;
  text-shadow: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button.bg-red-500\/10:hover, 
a.bg-red-500\/10:hover,
button.bg-red-600\/10:hover,
a.bg-red-600\/10:hover,
button[type="submit"].bg-red-500\/10:hover,
.apple-delete-btn:hover {
  background-color: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.08) !important;
  transform: translateY(-0.5px) !important;
  color: #7F1D1D !important;
}

button.bg-red-500\/10:active, 
a.bg-red-500\/10:active,
.apple-delete-btn:active {
  transform: translateY(0.5px) scale(0.97) !important;
  background-color: rgba(220, 38, 38, 0.18) !important;
}

html {
  scroll-behavior: smooth;
}

/* Fast, Lightweight Scroll Reveals */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-grid > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.revealed,
.reveal-grid > *.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Floating WhatsApp Button Animation */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-pulse {
  animation: pulse-ring 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* ================================================================= */
/* Infinite Bi-Directional Testimonial Marquee (Left & Right)        */
/* ================================================================= */
@keyframes marqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.marquee-row-left {
  display: flex;
  width: max-content;
  animation: marqueeLeft 38s linear infinite;
  will-change: transform;
}

.marquee-row-right {
  display: flex;
  width: max-content;
  animation: marqueeRight 42s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-row-left,
.marquee-container:hover .marquee-row-right,
.marquee-row-left:hover,
.marquee-row-right:hover {
  animation-play-state: paused !important;
}

/* Edge fading gradient mask */
.marquee-edge-mask {
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

@media (max-width: 768px) {
  .marquee-row-left {
    animation-duration: 28s;
  }
  .marquee-row-right {
    animation-duration: 32s;
  }
  .marquee-edge-mask {
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  }
}

/* ================================================================= */
/* Mobile UX & Native Touch Helpers                                  */
/* ================================================================= */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important; /* IE and Edge */
  scrollbar-width: none !important; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

/* Prevent accidental horizontal overflow on mobile body */
body, #app, main {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Fluid responsive images */
img, svg, video, iframe {
  max-width: 100%;
}

/* Touch target comfort on mobile */
@media (max-width: 640px) {
  button, a, input, select, textarea {
    touch-action: manipulation;
  }
}
