/* ==========================================================================
   AL-FAROUQ TRADING & SUPPLIES - MAIN STYLESHEET
   شركة الفاروق للتجارة والتوريدات - التصميم الأساسي ونظام الهوية البصرية
   ========================================================================== */

:root {
  /* Al-Farouq Official Brand Colors */
  --color-primary: #203763;        /* الأزرق الكحلي الصناعي الرسمي */
  --color-primary-dark: #122240;   /* كحلي عميق داكن للترويسة والخلفيات */
  --color-primary-darker: #0c1626; /* أغمق درجة كحلي للقواعد والأقسام المظلمة */
  --color-primary-light: #2c4a85;  /* كحلي أفتح للدرجات الوسطى */
  --color-primary-surface: #e9effa;/* سطح ناعم فاتح ذو مسحة كحلية */

  --color-accent: #fab019;         /* الأصفر / الذهبي الصناعي المعتمد */
  --color-accent-hover: #e59f10;   /* تدرج التمرير للذهبي */
  --color-accent-light: #fef4dc;   /* خلفيات الشارات الذهبية */
  --color-accent-glow: rgba(250, 176, 25, 0.25);

  --color-secondary: #007bff;      /* أزرق التقنية والروابط */
  --color-whatsapp: #25d366;       /* لون واتساب الرسمي للتواصل الفوري */
  --color-whatsapp-dark: #1ea952;

  --color-dark: #0f172a;           /* رمادي غامق للنصوص الرئيسية */
  --color-muted: #334155;          /* نصوص ثانوية وتوضيحية */
  --color-border: #e2e8f0;         /* حدود فاصلة ناعمة */
  --color-border-dark: #2a3b5c;    /* حدود في الأقسام الداكنة */
  --color-bg-light: #f8fafc;       /* خلفية الأقسام الفاتحة */
  --color-bg-white: #ffffff;
  --color-card-bg: #ffffff;
  --color-card-shadow: 0 10px 30px -10px rgba(18, 34, 64, 0.08);
  --color-card-shadow-hover: 0 20px 40px -10px rgba(18, 34, 64, 0.16);

  /* Typography */
  --font-family-arabic: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sizing & Transitions */
  --header-height: 56px;
  --header-height-mobile: 52px;
  --border-radius-sm: 6px;
  --border-radius: 10px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1280px;
  --container-padding: 24px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip !important;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-family-arabic);
  direction: rtl;
  text-align: right;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f8fafc 60%, #edf2f7 100%);
  color: var(--color-dark);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip !important;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links & Images */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

.section-darker {
  background-color: var(--color-primary-darker);
  color: #ffffff;
}

.section-light {
  background-color: #ffffff;
}

.section-muted {
  background-color: var(--color-bg-light);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
  position: relative;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
  background-color: rgba(250, 176, 25, 0.12);
  padding: 6px 18px;
  border-radius: var(--border-radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(250, 176, 25, 0.25);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
}

.section-dark .section-title,
.section-darker .section-title {
  color: #ffffff;
}

.section-title .accent-dot {
  color: var(--color-accent);
  font-size: 2.8rem;
  line-height: 0;
  display: inline-block;
  vertical-align: middle;
}

.section-desc {
  font-size: 1.1rem;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.8;
}

.section-dark .section-desc,
.section-darker .section-desc {
  color: #f8fafc;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary-darker);
  box-shadow: 0 4px 15px var(--color-accent-glow);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 176, 25, 0.4);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 55, 99, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: var(--border-radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.15rem;
  border-radius: var(--border-radius);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--border-radius-full);
}

.badge-gold {
  background-color: #fef3c7;
  color: #78350f;
  border: 1.5px solid #d97706;
  font-weight: 800;
}

.badge-primary {
  background-color: var(--color-primary-surface);
  color: var(--color-primary);
}

.badge-success {
  background-color: #e6f9f0;
  color: #0d8a4f;
}

/* Micro & Continuous Ambient Animations */
@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatContinuous1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(12px, -18px) rotate(4deg); }
  66% { transform: translate(-10px, -8px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes floatContinuous2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-15px, -12px) rotate(-5deg); }
  66% { transform: translate(8px, -20px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes rotateSlowContinuous {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ambientGlowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.12); }
}

@keyframes shimmerContinuous {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@keyframes radarRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.3); opacity: 0; }
}

@keyframes subtleFloatPhysics {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes subtleFloatReverse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@keyframes liveStatusGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
}

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

.animate-float-1 {
  animation: floatContinuous1 9s ease-in-out infinite;
}

.animate-float-2 {
  animation: floatContinuous2 11s ease-in-out infinite;
}

.animate-rotate-slow {
  animation: rotateSlowContinuous 25s linear infinite;
}

.animate-pulse {
  animation: pulseSubtle 2.5s infinite;
}

.animate-glow {
  animation: ambientGlowPulse 5s ease-in-out infinite;
}

/* Ambient Floating Background Elements */
.ambient-bg-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.ambient-particle {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}

.ambient-gear {
  border: 2px dashed rgba(250, 176, 25, 0.35);
  border-radius: 50%;
  animation: rotateSlowContinuous 35s linear infinite;
}

.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  animation: ambientGlowPulse 6s ease-in-out infinite;
}

/* Continuous Infinite Marquee Strip */
.standards-marquee {
  background: linear-gradient(90deg, #122240 0%, #203763 50%, #122240 100%);
  color: #ffffff;
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(250, 176, 25, 0.25);
  border-bottom: 1px solid rgba(250, 176, 25, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.marquee-track {
  display: flex;
  width: max-content;
  direction: ltr;
  will-change: transform;
  animation: marqueeRTL 28s linear infinite !important;
}

/* Never pause marquee on hover for 100% infinite loop */

.marquee-item {
  display: inline-flex;
  align-items: center;
  direction: rtl;
  gap: 12px;
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  color: #e2e8f0;
}

.marquee-item .item-dot {
  color: var(--color-accent);
  font-size: 1.3rem;
  line-height: 0;
}

.marquee-item strong {
  color: var(--color-accent);
}

/* Continuous Shimmer on Primary CTA */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(30deg);
  animation: shimmerContinuous 4s infinite;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Continuous Live Industrial Ticker Tape Animation (Al-Tawkil Style)
   Fixed Heading Badge + Smooth Slow Continuous Track (RTL)
   -------------------------------------------------------------------------- */
.industrial-ticker-wrap {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #0b1526 0%, #152744 50%, #0b1526 100%);
  border: 1.5px solid rgba(250, 176, 25, 0.45);
  border-radius: 12px;
  color: #f8fafc;
  overflow: hidden !important;
  contain: paint !important;
  height: 48px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(18, 34, 64, 0.22);
  max-width: var(--max-width);
  width: calc(100% - 32px);
  margin: 18px auto;
}

.ticker-heading {
  background: linear-gradient(135deg, #fab019 0%, #e09605 100%);
  color: #122240;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 4px 0 14px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.ticker-heading svg {
  fill: #122240;
  flex-shrink: 0;
}

.ticker-viewport {
  flex: 1;
  min-width: 0 !important;
  overflow: hidden !important;
  contain: strict !important;
  white-space: nowrap;
  position: relative;
  height: 100%;
  mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  animation: tickerScrollRTL 75s linear infinite;
  padding-right: 20px;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
}

.ticker-sep {
  color: #fab019;
  font-weight: bold;
}

@keyframes tickerScrollRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

@media (max-width: 768px) {
  .industrial-ticker-wrap {
    height: 44px;
    width: calc(100% - 20px);
    margin: 12px auto;
    border-radius: 10px;
  }
  .ticker-heading {
    display: none;
  }
  .ticker-item {
    font-size: 0.85rem;
  }
}

/* Live Operational Radar Beacon */
.live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.live-beacon-dark {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.radar-dot {
  position: relative;
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.radar-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: radarRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.animate-float-subtle {
  animation: subtleFloatPhysics 5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: subtleFloatReverse 6s ease-in-out infinite;
}

/* WhatsApp Perpetual Pulse Wave */
.fab-whatsapp::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: radarRing 2.4s infinite ease-out;
  pointer-events: none;
}
/* --------------------------------------------------------------------------
   Site-Wide Continuous Ambient Background Animation Engine
   (Perpetual subtle motion moving behind words and images)
   -------------------------------------------------------------------------- */
.site-ambient-canvas {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: transparent;
  contain: strict;
}

#site-living-ambient-canvas {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  pointer-events: none;
  z-index: 0;
  contain: strict;
}

/* Ensure all page content stacks cleanly above the ambient canvas */
header, main, section, footer, .top-bar, .industrial-ticker-wrap {
  position: relative;
  z-index: 1;
}

/* Translucent and transparent sections allowing ambient animation to show through vividly behind words & images */
.section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.section-light {
  background-color: rgba(248, 250, 252, 0.62) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.exec-reception-hero,
.hero-section,
.stats-bar,
.why-us-section,
.services-section,
.projects-section,
.quote-section,
.product-page-main,
.about-page-main,
.why-us-page-main,
.services-page-main,
.careers-page-main,
.contact-page-main {
  background-color: transparent !important;
  background: transparent !important;
}

.card, .product-card, .specs-block, .service-card, .why-card, .exec-card-frame, .stat-card {
  background-color: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

/* Layer 1: Drifting Engineering Blueprint Grid */
.ambient-blueprint-grid {
  position: absolute;
  inset: -100px;
  width: calc(100% + 200px);
  height: calc(100% + 200px);
  background-image: 
    radial-gradient(rgba(18, 34, 64, 0.12) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(18, 34, 64, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 34, 64, 0.045) 1px, transparent 1px);
  background-size: 28px 28px, 84px 84px, 84px 84px;
  will-change: transform;
  animation: ambientGridDrift 40s linear infinite;
  opacity: 0.95;
}

@keyframes ambientGridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-84px, -84px, 0);
  }
}

/* Layer 2: Perpetual Glowing Ambient Orbs */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.ambient-orb-gold {
  top: 5%;
  right: 5%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(250, 176, 25, 0.22) 0%, rgba(250, 176, 25, 0.06) 50%, transparent 70%);
  filter: blur(50px);
  animation: ambientOrbFloat1 18s ease-in-out infinite alternate;
}

.ambient-orb-navy {
  bottom: 10%;
  left: 5%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(18, 34, 64, 0.18) 0%, rgba(26, 51, 92, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  animation: ambientOrbFloat2 24s ease-in-out infinite alternate;
}

.ambient-orb-cyan {
  top: 40%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, rgba(14, 165, 233, 0.04) 50%, transparent 70%);
  filter: blur(45px);
  animation: ambientOrbFloat3 20s ease-in-out infinite alternate;
}

@keyframes ambientOrbFloat1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-60px, 80px, 0) scale(1.15);
  }
  100% {
    transform: translate3d(40px, -50px, 0) scale(0.92);
  }
}

@keyframes ambientOrbFloat2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(80px, -70px, 0) scale(1.18);
  }
  100% {
    transform: translate3d(-50px, 60px, 0) scale(0.95);
  }
}

@keyframes ambientOrbFloat3 {
  0% {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  50% {
    transform: translate3d(-50px, -60px, 0) scale(1.2);
  }
  100% {
    transform: translate3d(70px, 50px, 0) scale(1);
  }
}

/* Layer 3: Floating Mechanical Fastener Shapes (Clearly visible industrial silhouettes) */
.ambient-fastener-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.32;
  will-change: transform;
}

.ambient-fastener-1 {
  top: 15%;
  left: 8%;
  width: 120px;
  height: 120px;
  animation: ambientFastenerDrift1 26s ease-in-out infinite alternate;
}

.ambient-fastener-2 {
  top: 60%;
  right: 6%;
  width: 140px;
  height: 140px;
  animation: ambientFastenerDrift2 32s ease-in-out infinite alternate;
}

.ambient-fastener-3 {
  bottom: 18%;
  left: 42%;
  width: 100px;
  height: 100px;
  animation: ambientFastenerDrift3 22s ease-in-out infinite alternate;
}

@keyframes ambientFastenerDrift1 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(45px, -55px, 0) rotate(180deg); }
  100% { transform: translate3d(-35px, 45px, 0) rotate(360deg); }
}

@keyframes ambientFastenerDrift2 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-65px, 65px, 0) rotate(-180deg); }
  100% { transform: translate3d(45px, -45px, 0) rotate(-360deg); }
}

@keyframes ambientFastenerDrift3 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9); }
  50% { transform: translate3d(55px, 45px, 0) rotate(120deg) scale(1.15); }
  100% { transform: translate3d(-45px, -55px, 0) rotate(240deg) scale(1); }
}

/* Continuous Page-Wide Industrial Micro-Animations */
@keyframes subtleGearRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes subtleCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulseGoldGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(250, 176, 25, 0.25); }
  50% { box-shadow: 0 0 22px rgba(250, 176, 25, 0.55); }
}

/* Translucent Section Backdrops allowing Engineering CAD Blueprint Animation to glide through */
.section-light,
.section-muted,
.about-page-main,
.why-us-page-main,
.services-page-main,
.careers-page-main,
.contact-page-main,
.gallery-page-main,
.product-page-main {
  background-color: transparent !important;
  background: transparent !important;
}

.section {
  background-color: rgba(255, 255, 255, 0.60) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.section-dark {
  background-color: rgba(18, 34, 64, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
}

.section-darker {
  background-color: rgba(13, 24, 41, 0.97) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
}

/* ==========================================================================
   Scroll-Driven Reveal Animation (Fade & Slide Up on Scroll)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger transition delay helpers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* /* Universal High-Contrast Readability Enhancements (WCAG AAA Standards) */
p {
  color: #1e293b;
  line-height: 1.75;
}

/* Light Sections and Cards */
.section-light,
.section-white,
.section-muted,
.card,
.product-card,
.stat-card,
.why-card,
.service-card,
.specs-block,
.contact-card,
.career-card,
.project-card {
  color: #1e293b;
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4,
.section-white h1, .section-white h2, .section-white h3, .section-white h4,
.section-muted h1, .section-muted h2, .section-muted h3, .section-muted h4,
.card h1, .card h2, .card h3, .card h4,
.product-card h3,
.why-card h3,
.service-card h3,
.contact-card h3 {
  color: #0f172a !important;
}

.section-light p:not(.excel-rfq-card *):not(.excel-rfq-header *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *),
.section-white p:not(.excel-rfq-card *):not(.excel-rfq-header *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *),
.section-muted p:not(.excel-rfq-card *):not(.excel-rfq-header *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *),
.card p:not(.excel-rfq-card *):not(.excel-rfq-header *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *),
.why-card p,
.service-card p,
.product-card p,
.specs-block p {
  color: #1e293b !important;
}

.stat-card p,
.stat-details p {
  color: #334155 !important;
  font-weight: 700 !important;
}

.stat-card h3,
.stat-card .stat-number,
.stat-details h3,
.stat-details .stat-number {
  color: #0f172a !important;
  font-weight: 900 !important;
}

.stat-card .counter-plus,
.stat-details .counter-plus {
  color: #d97706 !important;
  font-weight: 900 !important;
}

/* Light context descriptions & subtitles */
.section-light span[data-i18n*="desc"]:not(.excel-rfq-card *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *),
.section-white span[data-i18n*="desc"]:not(.excel-rfq-card *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *),
.section-muted span[data-i18n*="desc"]:not(.excel-rfq-card *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *),
.section-light p[data-i18n*="desc"]:not(.excel-rfq-card *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *),
.section-white p[data-i18n*="desc"]:not(.excel-rfq-card *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *),
.section-muted p[data-i18n*="desc"]:not(.excel-rfq-card *):not(.brochure-download-card *):not(.storefront-quick-info *):not([style*="background: #122240"] *):not([style*="background:#122240"] *) {
  color: #334155 !important;
}

/* Paragraph Subtitles below Section Titles (Clean, readable text) */
p.section-subtitle,
.section-desc {
  display: block !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
  max-width: 780px !important;
  margin: 0 auto 28px auto !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.section-light p.section-subtitle,
.section-white p.section-subtitle,
.section p.section-subtitle,
p.section-subtitle {
  color: #334155 !important;
}

/* Badge Tags (Above Section Titles) */
.section-tag,
span.section-subtitle,
div.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #b45309 !important;
  background-color: rgba(250, 176, 25, 0.15) !important;
  border: 1px solid rgba(250, 176, 25, 0.35) !important;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

/* Specifications Table */
.specs-table th {
  color: #0f172a !important;
  font-weight: 800 !important;
  background: #f1f5f9 !important;
}
.specs-table td {
  color: #1e293b !important;
}
.meta-tag-label {
  color: #0f172a !important;
  font-weight: 800 !important;
}
.meta-tag-val {
  color: #1e293b !important;
  font-weight: 700 !important;
}

/* Dark Sections and Cards (Guaranteed Crisp Pure White / Amber Contrast) */
.section-dark,
.section-darker,
.brochure-download-card,
.storefront-quick-info,
.excel-rfq-card,
.product-order-box,
.calc-card,
.main-footer,
.top-bar,
.mobile-drawer,
div[style*="background: #122240"],
div[style*="background:#122240"],
div[style*="background: rgb(18, 34, 64)"] {
  color: #ffffff;
}

/* Headings in Dark Contexts */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.section-darker h1, .section-darker h2, .section-darker h3, .section-darker h4,
.brochure-download-card h4,
.brochure-info h4,
.excel-rfq-header h3,
.calc-card h3,
.main-footer h4,
.footer-col h4,
.hero-slide-title,
.hero-slide-title h1,
.hero-slide-title h2 {
  color: #ffffff !important;
}

/* Headings with Gold Span Highlights */
.section-dark h1 span, .section-dark h2 span, .section-dark h3 span,
.section-darker h1 span, .section-darker h2 span, .section-darker h3 span,
.excel-rfq-header h3 span,
.hero-slide-title span,
.calc-header h3 span {
  color: #fab019 !important;
}

/* Paragraphs & Text in Dark Contexts */
.section-dark p,
.section-darker p,
.section-dark p.section-subtitle,
.section-darker p.section-subtitle,
.section-dark .section-desc,
.section-darker .section-desc,
.brochure-download-card p,
.brochure-info p,
.brochure-download-card span,
.brochure-info span,
.storefront-quick-info span,
.storefront-quick-info p,
div[style*="background: #122240"] span,
div[style*="background: #122240"] p,
div[style*="background:#122240"] span,
div[style*="background:#122240"] p,
.excel-rfq-card p,
.excel-rfq-header p,
.excel-dropzone-title,
.excel-field label,
.excel-actions-hint span,
.excel-template-text strong,
.product-order-box p,
.product-order-box span:not(.badge),
.calc-card p,
.calc-card h3,
.hero-slide-desc,
.hero-slide-desc p {
  color: #f8fafc !important;
}

/* Secondary Subtitles in Dark Contexts */
.excel-dropzone-subtitle,
.excel-template-text span,
.excel-file-details strong,
.product-order-box label,
.calc-card label,
.main-footer p,
.footer-brand p,
.footer-contact-items span,
.footer-contact-items a,
.footer-links a,
.top-bar,
.top-bar span,
.top-bar a {
  color: #cbd5e1 !important;
}

.footer-links a:hover,
.top-bar a:hover {
  color: #fab019 !important;
}

/* Accent Labels and Badges in Dark Contexts */
.storefront-quick-info strong,
div[style*="background: #122240"] strong,
div[style*="background:#122240"] strong,
.section-dark .section-tag,
.section-darker .section-tag,
.section-dark span.section-subtitle,
.section-darker span.section-subtitle,
.section-dark div.section-subtitle {
  color: #fab019 !important;
  background-color: rgba(250, 176, 25, 0.2) !important;
  border: 1px solid rgba(250, 176, 25, 0.45) !important;
}

/* Ensure data-i18n translations inside any dark element stay crisp light */
.section-dark *[data-i18n*="desc"],
.section-darker *[data-i18n*="desc"],
.section-dark *[data-i18n*="scope"],
.excel-rfq-card *[data-i18n*="desc"],
.brochure-download-card *[data-i18n*="desc"],
.storefront-quick-info *[data-i18n*="desc"],
div[style*="background: #122240"] *[data-i18n*="desc"],
div[style*="background:#122240"] *[data-i18n*="desc"],
.product-order-box *[data-i18n*="desc"],
.main-footer *[data-i18n*="desc"],
.hero-slider-section *[data-i18n*="desc"] {
  color: #f1f5f9 !important;
}

