/* -------------------------------------------------------------------------- */
/* PANDAJEX CleanTech Manufacturing - Design System & Custom Styles          */
/* Design based on Sparkle Fresh Commercial & Home Supplies Stitch System   */
/* -------------------------------------------------------------------------- */

:root {
  /* Color Palette Tokens */
  --color-surface: #faf8ff;
  --color-surface-dim: #d2d9f4;
  --color-surface-bright: #faf8ff;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f2f3ff;
  --color-surface-container: #eaedff;
  --color-surface-container-high: #e2e7ff;
  --color-surface-container-highest: #dae2fd;
  
  --color-on-surface: #131b2e;
  --color-on-surface-variant: #3d494c;
  --color-outline: #6d797d;
  --color-outline-variant: #bcc9cd;

  --color-primary: #00687a;
  --color-on-primary: #ffffff;
  --color-primary-container: #06b6d4;
  --color-on-primary-container: #00424f;
  --color-primary-fixed: #acedff;

  --color-secondary: #006a61;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #86f2e4;
  --color-on-secondary-container: #006f66;

  --color-tertiary: #735c00;
  --color-tertiary-container: #facc15;
  --color-on-tertiary-container: #493a00;

  --color-whatsapp: #22c55e;
  --color-whatsapp-hover: #16a34a;

  /* Typography */
  --font-display: 'Outfit', 'Cairo', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Cairo', sans-serif;

  /* Shadows & Depth */
  --shadow-level-1: 0 4px 20px -2px rgba(6, 182, 212, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-level-2: 0 12px 28px -4px rgba(6, 182, 212, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-level-3: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
}

/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  text-align: right;
}

[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-surface-container-low);
}
::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-container);
}

/* Typography Utility Classes */
.font-display {
  font-family: var(--font-display);
}

.text-display {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.text-headline-xl {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.text-headline-lg {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
}

.text-headline-md {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
}

.text-headline-sm {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Glassmorphism & Frosted Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Suds & Bubble Background Highlights */
.bubble-backdrop-1 {
  position: absolute;
  top: -100px;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.bubble-backdrop-2 {
  position: absolute;
  bottom: -50px;
  left: -5%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 242, 228, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* Interactive Floating Badges & Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

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

.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-level-2);
}

/* Custom Swatches */
.swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: inline-block;
}

/* Modal Overlay */
.modal-overlay {
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Active Nav Links */
.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--color-primary);
}

/* Print/Specification Clean Layout */
@media print {
  header, footer, .whatsapp-floating-btn {
    display: none !important;
  }
  main {
    padding-top: 0 !important;
  }
}
