/* ==========================================================================
   OM SAI MOBILE - Brand Design System & Micro-Interactions
   Colors: Deep Slate (#0F172A), Pure White (#FFFFFF), WhatsApp/Emerald (#10B981)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Core Brand Palette */
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;
  --color-emerald: #10B981;
  --color-emerald-dark: #059669;
  --color-orange: #EA580C;
  --color-orange-light: #F97316;
  --color-whatsapp: #25D366;

  /* Om Sai Mobile Warm Background Design System Tokens */
  --bg-warm-ivory: #FAF8F5;
  --bg-soft-ivory: #FBF9F5;
  --bg-clean-white: #FFFFFF;
  --bg-subtle-tint: #FFFDF9;

  /* Texture & Ambient Lighting Tokens */
  --texture-diagonal-color: rgba(180, 115, 70, 0.055);
  --texture-diagonal-size: 28px;
  --ambient-orange-glow: rgba(249, 115, 22, 0.20);
  --ambient-emerald-glow: rgba(16, 185, 129, 0.16);
  --border-warm-subtle: rgba(234, 88, 12, 0.12);
  --border-warm-card: rgba(234, 88, 12, 0.16);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0F172A;
  background-color: var(--bg-warm-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   Om Sai Mobile - Reusable Background Variants & Texture Utility
   ========================================================================== */

/* Signature Diagonal Texture (CSS Repeating Linear Gradient - upper-left to lower-right) */
.texture-diagonal {
  background-image: repeating-linear-gradient(-45deg,
      var(--texture-diagonal-color) 0px,
      var(--texture-diagonal-color) 1px,
      transparent 1px,
      transparent var(--texture-diagonal-size));
}

/* Variant A: Signature Warm Background (Hero & Major Page Introductions) */
.bg-signature-warm {
  position: relative;
  background-color: var(--bg-warm-ivory);
  background-image:
    radial-gradient(ellipse 65% 55% at 95% 5%, var(--ambient-orange-glow) 0%, rgba(249, 115, 22, 0.10) 35%, rgba(251, 146, 60, 0.03) 60%, transparent 80%),
    radial-gradient(ellipse 60% 55% at 5% 95%, var(--ambient-emerald-glow) 0%, rgba(16, 185, 129, 0.08) 35%, rgba(52, 211, 153, 0.025) 60%, transparent 80%),
    repeating-linear-gradient(-45deg,
      var(--texture-diagonal-color) 0px,
      var(--texture-diagonal-color) 1px,
      transparent 1px,
      transparent var(--texture-diagonal-size));
}

/* Variant B: Clean White Background (Catalogs, Specifications, Process, Forms) */
.bg-clean-white {
  background-color: var(--bg-clean-white);
}

/* Variant C: Soft Ivory Section Background (Alternating Sections, Reviews, Reels Gallery) */
.bg-soft-ivory {
  position: relative;
  background-color: var(--bg-soft-ivory);
  background-image:
    radial-gradient(ellipse 60% 45% at 95% 40%, rgba(249, 115, 22, 0.03) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 5% 60%, rgba(16, 185, 129, 0.02) 0%, transparent 60%);
}

/* Variant D: Subtle Brand-Accent Background (Cards, Banners, Trust Highlights) */
.bg-subtle-accent {
  background: linear-gradient(135deg, #FFFDF9 0%, #FFFFFF 52%, #F5FBF7 100%);
  border: 1px solid var(--border-warm-card);
  box-shadow: 0 10px 30px -10px rgba(234, 88, 12, 0.07), 0 4px 12px -2px rgba(16, 185, 129, 0.04);
}

.card-warm-surface {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04), 0 1px 3px 0 rgba(15, 23, 42, 0.02);
  transition: all 0.25s ease;
}

.card-warm-surface:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 24px -6px rgba(234, 88, 12, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

/* Tablet & Mobile Media Queries for Optimal Atmosphere & Responsiveness */
@media (max-width: 768px) {
  :root {
    --texture-diagonal-color: rgba(180, 115, 70, 0.05);
    --texture-diagonal-size: 26px;
    --ambient-orange-glow: rgba(249, 115, 22, 0.22);
    --ambient-emerald-glow: rgba(16, 185, 129, 0.18);
  }

  .bg-signature-warm {
    background-image:
      radial-gradient(circle 320px at 95% 4%, var(--ambient-orange-glow) 0%, rgba(249, 115, 22, 0.09) 35%, rgba(251, 146, 60, 0.025) 60%, transparent 80%),
      radial-gradient(circle 300px at 5% 96%, var(--ambient-emerald-glow) 0%, rgba(16, 185, 129, 0.08) 35%, rgba(52, 211, 153, 0.02) 60%, transparent 80%),
      repeating-linear-gradient(-45deg,
        var(--texture-diagonal-color) 0px,
        var(--texture-diagonal-color) 1px,
        transparent 1px,
        transparent var(--texture-diagonal-size));
  }
}

/* Navigation glassmorphism styling */
.glass-nav {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(234, 88, 12, 0.12);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04), 0 1px 3px 0 rgba(234, 88, 12, 0.03);
}

/* Navigation Links with animated hover underline & active green bubble */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  color: #334155;
  padding: 0.42rem 0.5rem;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  box-sizing: border-box;
  transition: all 0.25s ease;
  text-decoration: none;
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 0.875rem;
    padding: 0.48rem 0.75rem;
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-orange);
  border-radius: 9999px;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--color-orange);
}

.nav-link:hover::after {
  width: 60%;
}

/* Active Nav Link: Green Bubble with hover orange + animated underline */
.nav-link-active {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  color: #065F46;
  /* Emerald-800 */
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  padding: 0.42rem 0.7rem;
  border-radius: 9999px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px -2px rgba(16, 185, 129, 0.20);
  transition: all 0.25s ease;
  text-decoration: none;
}

@media (min-width: 1280px) {
  .nav-link-active {
    font-size: 0.875rem;
    padding: 0.48rem 0.95rem;
  }
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-orange);
  border-radius: 9999px;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-active:hover {
  color: var(--color-orange);
  background: rgba(249, 115, 22, 0.10);
  border-color: rgba(234, 88, 12, 0.35);
}

.nav-link-active:hover::after {
  width: 65%;
}

/* Interactive Smartphone Mockup Chassis */
.mockup-phone-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 560px;
  border-radius: 46px;
  background: #0b0f17;
  border: 6px solid #1e293b;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 25px 60px -15px rgba(15, 23, 42, 0.35),
    0 12px 28px -8px rgba(234, 88, 12, 0.15);
  overflow: hidden;
  user-select: none;
}

@keyframes phoneGentleFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.animate-phone-float {
  animation: phoneGentleFloat 6s ease-in-out infinite;
}

/* Floating animation for Owner Cutout */
@keyframes floatOwner {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(0.4deg);
  }
}

.animate-float-owner {
  animation: floatOwner 5s ease-in-out infinite;
}

/* Pulsating Play Button for Reel Cards */
@keyframes pulsePlay {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
    transform: translate(-50%, -50%) scale(1.06);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

.animate-play-pulse {
  animation: pulsePlay 2.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Subtle Shimmer for Trust Badges */
@keyframes softShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.badge-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: softShimmer 4s infinite;
}

/* Smooth Horizontal Snap Scroll for Reels */
.reels-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.reels-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.reels-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.reels-scroll-container::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

.reels-scroll-container>* {
  scroll-snap-align: start;
}

/* 9:16 Aspect Ratio Helper */
.aspect-9-16 {
  aspect-ratio: 9 / 16;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-badge-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-badge-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

/* Custom Modal Animation */
.modal-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

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

.modal-active .modal-content-enter {
  transform: scale(1);
}

/* Mobile Safe Bottom Padding to prevent Action Bar overlap */
.pb-mobile-nav {
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  .pb-mobile-nav {
    padding-bottom: 0;
  }
}

/* Interactive brand buttons */
.brand-selector-btn.active {
  border-color: #10B981;
  background-color: #ECFDF5;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.issue-selector-btn.active {
  border-color: #10B981;
  background-color: #ECFDF5;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Toast Notification */
#toastNotification {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Smooth Running Announcement Ticker / Marquee (Right-to-Left)
   ========================================================================== */
@keyframes tickerRunLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }

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

.glass-footer {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBF5 40%, #FEF3C7 100%);
  border-top: 1px solid rgba(249, 115, 22, 0.2);
}

.top-ticker-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #EA580C 0%, #D97706 50%, #059669 100%);
  color: #FFFFFF;
}

.top-ticker-wrapper::before,
.top-ticker-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 10;
  pointer-events: none;
}

.top-ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #EA580C 15%, transparent);
}

.top-ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #059669 15%, transparent);
}

.top-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerRunLeft 30s linear infinite;
}

.top-ticker-track:hover,
.top-ticker-track:active,
.top-ticker-track:focus-within {
  animation-play-state: paused;
}

@media (max-width: 640px) {
  .top-ticker-track {
    animation-duration: 25s;
  }
}