/* ============================================================
   PURIVA WATER — Custom Stylesheet
   Brand: Sarvorly Beverages Pvt. Ltd.
   Primary: #0B3C8C | Secondary: #3AA7FF | Accent: #FFFFFF
   ============================================================ */

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  overflow-x: hidden;
  color: #1a1a2e;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0B3C8C 0%, #1565c0 60%, #3AA7FF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loading-logo {
  color: white;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}
.loading-tagline { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 2.5rem; }

.loading-track {
  width: 200px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px; overflow: hidden;
}
.loading-fill {
  height: 100%; background: white; border-radius: 2px;
  animation: fill-bar 1.8s ease-out forwards;
}
@keyframes fill-bar { from { width: 0 } to { width: 100% } }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #0B3C8C, #3AA7FF);
  z-index: 9998; transition: width 0.08s linear;
}

/* ===== NAVBAR ===== */
#navbar {
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
#navbar.scrolled {
  background: rgba(11, 60, 140, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: #3AA7FF;
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Mobile menu */
#mobile-menu {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open { max-height: 500px; }

/* Navbar always solid on mobile */
@media (max-width: 767px) {
  #navbar {
    background: rgba(11, 60, 140, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #062770 0%, #0B3C8C 40%, #1a73c7 75%, #3AA7FF 100%);
  overflow: hidden;
  display: flex; align-items: center;
}

/* Bubbles */
.bubble {
  position: absolute; bottom: -120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  animation: bubble-rise linear infinite;
  pointer-events: none;
}
@keyframes bubble-rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0.6; }
  50%  { opacity: 0.3; }
  100% { transform: translateY(-115vh) scale(1.3); opacity: 0; }
}

/* Hero bottle float */
.hero-bottle {
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35));
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-22px) rotate(2deg); }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #0B3C8C, #3AA7FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-light {
  background: linear-gradient(135deg, #7DC4FF, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION LABELS ===== */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(11,60,140,0.1), rgba(58,167,255,0.15));
  color: #0B3C8C;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(11,60,140,0.2);
  margin-bottom: 1rem;
}
.section-underline {
  width: 64px; height: 4px;
  background: linear-gradient(90deg, #0B3C8C, #3AA7FF);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.section-underline-left { margin: 1rem 0 0; }

/* ===== PRODUCT CARDS ===== */
.product-card {
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275),
              box-shadow 0.4s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-14px) scale(1.02);
  box-shadow: 0 32px 64px rgba(11,60,140,0.22);
}
.product-card .bottle-img {
  transition: transform 0.5s ease;
}
.product-card:hover .bottle-img { transform: scale(1.08) translateY(-6px); }

/* Product bottle placeholder */
.bottle-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #e8f4ff 0%, #c8e7ff 100%);
  border-radius: 12px;
  position: relative; overflow: hidden;
}
.bottle-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(58,167,255,0.15));
}

/* ===== PROCESS STEPS ===== */
.process-connector {
  position: absolute; top: 34px; left: 60%; right: -40%;
  height: 2px;
  background: linear-gradient(90deg, #3AA7FF, rgba(58,167,255,0.1));
}

.step-icon-wrap {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, #0B3C8C, #3AA7FF);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem;
  margin: 0 auto 1.2rem;
  box-shadow: 0 12px 30px rgba(58,167,255,0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.step-icon-wrap:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 16px 40px rgba(58,167,255,0.5);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 3px solid transparent;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11,60,140,0.12);
  border-bottom-color: #3AA7FF;
}

/* ===== GALLERY ===== */
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 14px; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,60,140,0.7), transparent);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; align-items: flex-end; padding: 1.5rem;
  color: white;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== STATS ===== */
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11,60,140,0.14);
}
.quote-icon {
  font-size: 4rem; line-height: 1;
  color: rgba(58,167,255,0.2);
  font-family: Georgia, serif;
  margin-bottom: -1rem;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
}

/* ===== FORM ===== */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #e5e7eb;
  outline: none;
}
.form-input:focus {
  border-color: #3AA7FF;
  box-shadow: 0 0 0 4px rgba(58,167,255,0.12);
}
.btn-primary {
  background: linear-gradient(135deg, #0B3C8C, #1a6dd4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(11,60,140,0.4);
  background: linear-gradient(135deg, #0a3580, #3AA7FF);
}
.btn-secondary {
  border: 2px solid white; color: white;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  background: white; color: #0B3C8C;
  transform: translateY(-2px);
}
.btn-accent {
  background: linear-gradient(135deg, #3AA7FF, #1a6dd4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(58,167,255,0.4);
}

/* ===== WHATSAPP FLOAT ===== */
#whatsapp-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 997;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
#whatsapp-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 14px 40px rgba(37,211,102,0.6);
}
#whatsapp-btn svg { width: 32px; height: 32px; fill: white; }
#whatsapp-btn .pulse-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(37,211,102,0.4);
  animation: whatsapp-pulse 2s ease-out infinite;
}
@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed; bottom: 100px; right: 28px;
  width: 46px; height: 46px;
  background: #0B3C8C; color: white;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 996;
  box-shadow: 0 6px 20px rgba(11,60,140,0.35);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease,
              transform 0.3s ease, background 0.3s ease;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: #3AA7FF; transform: translateY(-3px); }

/* ===== WAVE DIVIDER ===== */
.wave { display: block; width: 100%; }

/* ===== MAP ===== */
.map-container { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.12); }

/* ===== BLOG CARD ===== */
.blog-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11,60,140,0.14);
}
.blog-card img { transition: transform 0.5s ease; }
.blog-card:hover img { transform: scale(1.06); }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.75; transform: scale(0.97); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fade-in-up 0.7s ease forwards; }

/* ===== UTILITIES ===== */
.text-primary   { color: #0B3C8C !important; }
.text-secondary { color: #3AA7FF !important; }
.bg-primary     { background-color: #0B3C8C !important; }
.bg-secondary   { background-color: #3AA7FF !important; }
.border-primary { border-color: #0B3C8C !important; }
.border-secondary { border-color: #3AA7FF !important; }

/* Active nav link highlight */
.nav-active { color: #3AA7FF !important; }

/* Distributor card */
.dist-card {
  background: linear-gradient(135deg, #0B3C8C, #1565c0);
  position: relative; overflow: hidden;
}
.dist-card::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(58,167,255,0.2), transparent 70%);
  border-radius: 50%;
}

/* Sticky CTA bar */
.cta-strip {
  background: linear-gradient(90deg, #0B3C8C, #3AA7FF);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-bottle { max-width: 250px; }
  .process-connector { display: none; }
}
