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

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

/* ==========================================================================
   ENTERPRISE DESIGN SYSTEM - TOKEN SPECIFICATION (WCAG 2.2 AA COMPLIANT)
   ========================================================================= */

:root {
  /* --- BRAND PRIMARY COLORS (Navy) --- */
  --color-primary-base: #192A50;
  --color-primary-hover: #13203c;
  --color-primary-pressed: #0d162a;
  --color-primary-disabled: #9fa8bc;
  --color-primary-light: #e8ebf0;
  --color-primary-dark: #0b1223;
  --color-primary-tint: #c5cbd8;
  --color-primary-shade: #111d37;

  /* --- BRAND SECONDARY/SUCCESS COLORS (Green) --- */
  --color-secondary-base: #4FB057;
  --color-secondary-hover: #3d9444;
  --color-secondary-pressed: #2c7532;
  --color-secondary-disabled: #a5d6a7;
  --color-secondary-light: #e8f5e9;
  --color-secondary-dark: #1b5e20;
  --color-secondary-tint: #c8e6c9;
  --color-secondary-shade: #2e7d32;

  /* --- BRAND ACCENT/DANGER COLORS (Red) --- */
  --color-accent-base: #E03F3F;
  --color-accent-hover: #b72f2f;
  --color-accent-pressed: #8d2020;
  --color-accent-disabled: #ef9a9a;
  --color-accent-light: #ffebee;
  --color-accent-dark: #7f0000;
  --color-accent-tint: #ffcdd2;
  --color-accent-shade: #c62828;

  /* --- SEMANTIC COLOR ASSIGNMENTS --- */
  --color-primary: var(--color-primary-base);
  --color-secondary: var(--color-secondary-base);
  --color-accent: var(--color-accent-base);
  --color-success: var(--color-secondary-base);
  --color-success-hover: var(--color-secondary-hover);
  --color-success-pressed: var(--color-secondary-pressed);
  --color-danger: var(--color-accent-base);
  --color-danger-hover: var(--color-accent-hover);
  --color-danger-pressed: var(--color-accent-pressed);
  
  --color-warning: #f59e0b;
  --color-warning-hover: #d97706;
  --color-warning-light: #fef3c7;
  --color-info: #0ea5e9;
  --color-info-hover: #0284c7;
  --color-info-light: #e0f2fe;

  /* --- LIGHT MODE SPECIFIC TOKENS --- */
  --color-background: #f8fafc;        /* Soft White */
  --color-surface: #ffffff;           /* Pure White */
  --color-surface-alt: #f1f5f9;       /* Light Gray */
  --color-border: rgba(25, 42, 80, 0.08);   /* Very Light Gray/Navy border */
  --color-border-strong: rgba(25, 42, 80, 0.15);
  --color-text-primary: #192A50;      /* Dark Navy */
  --color-text-secondary: #334155;    /* Slate-700 */
  --color-text-muted: #64748b;        /* Slate-500 */
  --color-shadow: rgba(25, 42, 80, 0.06);
  --color-overlay: rgba(25, 42, 80, 0.40);

  /* --- SPACING SYSTEM (Token-Driven) --- */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-80: 80px;
  --spacing-96: 96px;

  /* --- BORDER RADIUS SYSTEM --- */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-24: 24px;
  --radius-32: 32px;
  --radius-full: 9999px;

  /* --- SHADOW SYSTEM --- */
  --shadow-xs: 0 1px 2px var(--color-shadow);
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 10px 30px var(--color-shadow);
  --shadow-lg: 0 20px 40px var(--color-shadow);
  --shadow-xl: 0 25px 50px -12px var(--color-shadow);
  --shadow-glass: 0 8px 32px 0 rgba(25, 42, 80, 0.08);
  --shadow-floating: 0 30px 60px rgba(25, 42, 80, 0.12);

  /* --- TYPOGRAPHY SCALE --- */
  --font-tajawal: 'Tajawal', sans-serif;
  --font-size-display: 3rem;
  --font-size-h1: 2.25rem;
  --font-size-h2: 1.75rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --font-size-h5: 1rem;
  --font-size-body: 0.95rem;
  --font-size-caption: 0.85rem;
  --font-size-small: 0.75rem;
  --font-size-button: 0.875rem;

  --line-height-display: 1.15;
  --line-height-heading: 1.25;
  --line-height-body: 1.6;

  --letter-spacing-display: -0.02em;
  --letter-spacing-heading: -0.01em;
  --letter-spacing-body: 0;

  --max-width-paragraph: 65ch;

  /* --- ANIMATION SYSTEM --- */
  --transition-duration-fast: 0.15s;
  --transition-duration-normal: 0.3s;
  --transition-duration-slow: 0.5s;
  --transition-easing-default: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-easing-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- BACKWARD COMPATIBILITY VARIABLES MAP --- */
  --primary-color: var(--color-primary-base);
  --secondary-color: var(--color-secondary-base);
  --accent-color: var(--color-accent-base);
  --bg-pure: var(--color-background);
  --bg-section: var(--color-surface-alt);
  --bg-card: var(--color-surface);
  --text-main: var(--color-text-primary);
  --text-muted: var(--color-text-secondary);
  --border-light: var(--color-border);
  --border-navy-subtle: var(--color-border-strong);
  --border-dark-comp: var(--color-border-strong);
  --header-bg: rgba(255, 255, 255, 0.92);
  --radius-sm: var(--radius-8);
  --radius-md: var(--radius-16);
  --radius-lg: var(--radius-24);
}

/* --- DARK MODE SPECIFIC TOKENS OVERRIDE --- */
[data-theme="dark"], html[data-theme="dark"] {
  --color-background: #0b132b;        /* Deep Navy */
  --color-surface: #1b2f54;           /* Slightly Lighter Navy */
  --color-surface-alt: #111e38;       /* Deep Navy Nested Section */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.15);
  --color-text-primary: #f8fafc;      /* Soft White */
  --color-text-secondary: #cbd5e1;    /* Light Gray-blue */
  --color-text-muted: #94a3b8;        /* Slate-400 */
  --color-shadow: rgba(0, 0, 0, 0.25);
  --color-overlay: rgba(0, 0, 0, 0.75);

  --header-bg: rgba(17, 30, 56, 0.92);
  --primary-color: #ffffff;           /* For white headings in dark mode */
  --text-main: var(--color-text-primary);
  --text-muted: var(--color-text-secondary);
  --bg-pure: var(--color-background);
  --bg-section: var(--color-surface-alt);
  --bg-card: var(--color-surface);
  --border-light: var(--color-border);
  --border-navy-subtle: var(--color-border-strong);
  --border-dark-comp: var(--color-border-strong);
}

/* ==========================================================================
   ENTERPRISE DESIGN SYSTEM - COMPONENT & SYSTEM SPECIFICATIONS
   ========================================================================== */

/* --- TYPOGRAPHY UTILITIES --- */
.text-display {
  font-size: var(--font-size-display);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
  font-weight: 800;
}
.text-h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
  font-weight: 700;
}
.text-h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-heading);
  font-weight: 700;
}
.text-h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-heading);
  font-weight: 600;
}
.text-h4 {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-heading);
  font-weight: 600;
}
.text-h5 {
  font-size: var(--font-size-h5);
  line-height: var(--line-height-heading);
  font-weight: 600;
}
.text-body {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
}
.text-caption {
  font-size: var(--font-size-caption);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
}
.text-small {
  font-size: var(--font-size-small);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
}

/* --- BUTTON SYSTEM --- */
.btn-ds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tajawal);
  font-size: var(--font-size-button);
  font-weight: 700;
  padding: var(--spacing-12) var(--spacing-24);
  border-radius: var(--radius-8);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-duration-normal) var(--transition-easing-smooth);
  text-decoration: none;
  gap: var(--spacing-8);
  outline: none;
}
.btn-ds-primary {
  background-color: var(--color-secondary-base);
  color: #ffffff;
}
.btn-ds-primary:hover:not(:disabled) {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ds-primary:active:not(:disabled) {
  background-color: var(--color-secondary-pressed);
  transform: translateY(0);
}
.btn-ds-secondary {
  background-color: var(--color-primary-base);
  color: #ffffff;
}
.btn-ds-secondary:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ds-secondary:active:not(:disabled) {
  background-color: var(--color-primary-pressed);
  transform: translateY(0);
}
.btn-ds-outline {
  background-color: transparent;
  border-color: var(--color-secondary-base);
  color: var(--color-secondary-base);
}
.btn-ds-outline:hover:not(:disabled) {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
}
[data-theme="dark"] .btn-ds-outline:hover:not(:disabled) {
  background-color: rgba(79, 176, 87, 0.1);
}
.btn-ds-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
}
.btn-ds-ghost:hover:not(:disabled) {
  background-color: var(--color-surface-alt);
  color: var(--color-text-primary);
}
.btn-ds-danger {
  background-color: var(--color-accent-base);
  color: #ffffff;
}
.btn-ds-danger:hover:not(:disabled) {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ds-danger:active:not(:disabled) {
  background-color: var(--color-accent-pressed);
  transform: translateY(0);
}
.btn-ds-success {
  background-color: var(--color-secondary-base);
  color: #ffffff;
}
.btn-ds-success:hover:not(:disabled) {
  background-color: var(--color-secondary-hover);
}
.btn-ds-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}
.btn-ds-floating {
  position: fixed;
  bottom: var(--spacing-32);
  right: var(--spacing-32);
  box-shadow: var(--shadow-floating);
  z-index: 999;
}
.btn-ds-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-ds-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}
.btn-ds:disabled {
  background-color: var(--color-surface-alt) !important;
  color: var(--color-text-muted) !important;
  border-color: var(--color-border) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* --- FORM SYSTEM --- */
.form-group-ds {
  margin-bottom: var(--spacing-20);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}
.form-label-ds {
  font-size: var(--font-size-caption);
  font-weight: 700;
  color: var(--color-text-primary);
}
.form-control-ds {
  font-family: var(--font-tajawal);
  font-size: var(--font-size-body);
  padding: var(--spacing-12) var(--spacing-16);
  border-radius: var(--radius-8);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  transition: all var(--transition-duration-fast) var(--transition-easing-default);
  outline: none;
  width: 100%;
}
.form-control-ds:focus {
  border-color: var(--color-secondary-base);
  box-shadow: 0 0 0 3px rgba(79, 176, 87, 0.15);
}
.form-control-ds:disabled {
  background-color: var(--color-surface-alt);
  color: var(--color-text-muted);
  cursor: not-allowed;
}
.form-control-ds.error {
  border-color: var(--color-accent-base);
}
.form-control-ds.error:focus {
  box-shadow: 0 0 0 3px rgba(224, 63, 63, 0.15);
}
.form-control-ds.success {
  border-color: var(--color-secondary-base);
}

/* --- CARD SYSTEM --- */
.card-ds {
  background-color: var(--color-surface);
  border-radius: var(--radius-16);
  border: 1px solid var(--color-border);
  padding: var(--spacing-24);
  transition: all var(--transition-duration-normal) var(--transition-easing-smooth);
}
.card-ds-elevated {
  box-shadow: var(--shadow-md);
}
.card-ds-interactive {
  cursor: pointer;
}
.card-ds-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary-base);
}
.card-ds-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glass);
}
[data-theme="dark"] .card-ds-glass {
  background: rgba(27, 47, 84, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- ACCESSIBILITY STANDARDS (WCAG 2.2) --- */
*:focus-visible {
  outline: 3px solid var(--color-secondary-base) !important;
  outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Base Reset & Typography --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.3s ease, box-shadow 0.3s ease;
}

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

body {
  background-color: var(--bg-pure);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}
[dir="ltr"] {
  text-align: left;
}

/* --- Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-color);
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
  color: #ffffff;
}

/* Card titles in Dark Mode */
[data-theme="dark"] .sector-card h3,
[data-theme="dark"] .why-card h4,
[data-theme="dark"] .about-feature-box h4,
[data-theme="dark"] .service-text h4,
[data-theme="dark"] .product-info-box h3,
[data-theme="dark"] .timeline-card h3,
[data-theme="dark"] .timeline-card h4,
[data-theme="dark"] .info-details h4,
[data-theme="dark"] .partner-name,
[data-theme="dark"] .modal-title {
  color: #ffffff !important;
}

/* Green on Hover for Card Titles */
[data-theme="dark"] .sector-card:hover h3,
[data-theme="dark"] .why-card:hover h4,
[data-theme="dark"] .about-feature-box:hover h4,
[data-theme="dark"] .service-card:hover h4,
[data-theme="dark"] .product-card:hover h3 {
  color: var(--secondary-color) !important;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; position: relative; padding-bottom: 12px; }
h3 { font-size: 1.5rem; }
p { color: var(--text-muted); font-size: 1.05rem; }

/* Section Title style */
.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}
[dir="rtl"] .section-title h2::after {
  left: 50%;
}

/* --- 2026 Unified Border Philosophy --- */
.border-premium-light {
  border: 1px solid var(--border-light);
}

.border-premium-green {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: var(--secondary-color);
  color: #ffffff;
}

.border-premium-dark {
  border: 1px solid var(--border-dark-comp);
  background-color: var(--primary-color);
  color: #ffffff;
}

/* --- Layout Structure --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}
.section-light {
  background-color: var(--bg-section);
}

/* --- Corporate Header (Sticky/Scroll-aware Header) --- */
.floating-header-wrapper {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  padding: 12px 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border-navy-subtle);
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}
.floating-header {
  pointer-events: auto;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Scroll adaptation: sticky floating position when scrolled */
.floating-header-wrapper.scrolled-attached {
  position: fixed;
  top: 0;
  box-shadow: 0 10px 30px rgba(12, 35, 64, 0.08);
  border-bottom-color: var(--border-color);
  background-color: rgba(255, 255, 255, 0.95);
}
[data-theme="dark"] .floating-header-wrapper.scrolled-attached {
  background-color: rgba(6, 11, 19, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.floating-header-wrapper.scrolled-attached .floating-header {
  max-width: 1280px;
  padding: 0 24px;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.desktop-navigation {
  display: block;
}
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
[data-theme="dark"] .nav-link {
  color: #ffffff;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background-color: var(--secondary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-action {
  background: none;
  border: 1px solid var(--border-navy-subtle);
  color: var(--primary-color);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .btn-action {
  color: #ffffff;
}
#hdr-phone-btn {
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}
#hdr-whatsapp-btn {
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}
[data-theme="dark"] #hdr-phone-btn {
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}
[data-theme="dark"] #hdr-whatsapp-btn {
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}
.btn-action:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  border-color: var(--secondary-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(12, 35, 64, 0.1);
}
.btn-lang {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 12px;
  gap: 6px;
}

/* Hamburger Trigger */
.btn-hamburger {
  display: none;
}

/* --- PAGE VIEW TRANSITIONS --- */
.page-view {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.page-view.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Section (Carousel/Slider) --- */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1920 / 800;
  height: auto;
  min-height: auto;
  max-height: 800px;
  overflow: hidden;
  padding: 0 !important;
  background: #000; /* dark background for smooth transition */
}

/* Slider container filling parent */
.hero-slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide item */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1000ms ease-in-out, visibility 1000ms ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide Background Image */
.hero-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Dark Glassmorphism Gradient Overlay */
/* Starts dark/dense from right, fading smoothly as it goes left, ending before the middle */
.dark-glassmorphism-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, 
    rgba(6, 11, 19, 0.95) 0%, 
    rgba(6, 11, 19, 0.8) 25%, 
    rgba(6, 11, 19, 0.4) 40%, 
    rgba(6, 11, 19, 0) 55%);
  pointer-events: none;
  z-index: 3;
}

/* Slide Content centering & layout */
.hero-slide-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 40px;
}

.hero-slide-content {
  max-width: 800px;
  color: #ffffff; /* white text for contrast on dark overlay */
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right !important;
}

/* Align text to far right of container for both languages */
[dir="rtl"] .hero-slide-content {
  text-align: right !important;
}
[dir="ltr"] .hero-slide-content {
  text-align: right !important;
}

.hero-slide-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 800ms ease;
  transition-delay: 200ms;
}

.hero-slide-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 800ms ease;
  transition-delay: 400ms;
}

.hero-slide-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 800ms ease;
  transition-delay: 600ms;
  direction: rtl !important;
  justify-content: flex-start !important;
}

/* Align buttons to right for both language directions */
[dir="rtl"] .hero-slide-buttons {
  justify-content: flex-start !important;
  direction: rtl !important;
}
[dir="ltr"] .hero-slide-buttons {
  justify-content: flex-start !important;
  direction: rtl !important;
}

/* Animation on active slide content */
.hero-slide.active .hero-slide-title,
.hero-slide.active .hero-slide-subtitle,
.hero-slide.active .hero-slide-buttons {
  transform: translateY(0);
  opacity: 1;
}

/* Button styles in slides */
.hero-btn-main {
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(14, 168, 126, 0.4);
  transition: all 0.3s ease;
}
.hero-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 168, 126, 0.6);
}

.hero-btn-sub {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.hero-btn-sub:hover {
  background: #ffffff;
  color: var(--primary-color) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Slider Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.slider-dot.active {
  background: var(--secondary-color);
  width: 32px;
  border-radius: 10px;
}

/* Slider Arrows - Hidden */
.slider-arrow {
  display: none !important;
}

.prev-arrow {
  left: 40px;
}

.next-arrow {
  right: 40px;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
  .hero-slider-wrapper {
    height: 70vh;
    min-height: 550px;
    aspect-ratio: auto;
  }
  .hero-slide-title {
    font-size: 2.5rem;
  }
  .hero-slide-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero-slider-wrapper {
    height: 80vh; /* taller on mobile for beautiful portrait presentation */
    min-height: 500px;
    aspect-ratio: auto;
  }
  .hero-slide {
    align-items: flex-end !important;
    padding-bottom: 30px;
  }
  .hero-slide-content-wrapper {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
  }
  .dark-glassmorphism-overlay {
    background: linear-gradient(to top, 
      rgba(6, 11, 19, 0.98) 0%, 
      rgba(6, 11, 19, 0.7) 15%, 
      rgba(6, 11, 19, 0) 33.33%) !important;
  }
  .hero-slide-content {
    padding: 0 20px;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
  }
  .hero-slide-title {
    font-size: 1.4rem !important;
    margin-bottom: 8px !important;
    text-align: right !important;
  }
  .hero-slide-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
    text-align: right !important;
  }
  .hero-slide-buttons {
    flex-direction: row !important;
    width: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    direction: rtl !important;
  }
  .hero-slide-buttons .btn-primary {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
    width: auto !important;
    white-space: nowrap !important;
    text-align: center;
  }
  .prev-arrow, .next-arrow {
    display: none; /* Hide arrows on mobile for clean touch gestures */
  }
  .hero-slider-dots {
    bottom: 12px;
  }
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  height: 480px;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-overlay-tint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(12,35,64,0.3) 0%, rgba(14,168,126,0.1) 100%);
  pointer-events: none;
}

/* Precision HUD Overlays */
.hud-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}
[dir="rtl"] .hud-tag {
  left: auto;
  right: 24px;
}
.hud-stats-bubble {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background-color: var(--bg-card);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}
[dir="rtl"] .hud-stats-bubble {
  right: auto;
  left: 30px;
}
.hud-stats-bubble .num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.hud-stats-bubble .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- CONTINUOUS TICKER SECTION --- */
.ticker-section {
  background-color: var(--primary-color);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ticker-wrapper {
  width: 100%;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 50px;
  width: max-content;
  animation: tickerSlide 35s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.ticker-item i {
  color: var(--secondary-color);
  width: 20px;
  height: 20px;
}

@keyframes tickerSlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-33.3333%, 0, 0); }
}

/* --- Stats Bar Section --- */
.stats-container-wrapper {
  margin-top: 15px;
  position: relative;
  z-index: 30;
}
.stats-bar {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-card {
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Business Sectors Grid --- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.sector-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-navy-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.sector-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
}
.sector-image-frame {
  width: 100%;
  max-width: 800px;
  max-height: 600px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}
.sector-img-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sector-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
}
[dir="rtl"] .sector-icon {
  right: auto;
  left: 12px;
}
.sector-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.sector-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.sector-view-trigger {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sector-view-trigger:hover .arrow-ico {
  transform: translateX(4px);
}
[dir="rtl"] .sector-view-trigger:hover .arrow-ico {
  transform: translateX(-4px);
}

/* --- Why Choose Us Grid --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-navy-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
}
.why-icon-box {
  background-color: rgba(14, 168, 126, 0.1);
  color: var(--secondary-color);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.why-card h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.9rem;
}

/* --- About Preview Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.preview-tag {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.about-narrative {
  font-size: 1.1rem;
  line-height: 1.7;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-feature-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.about-feature-box h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* --- Strategic Services Step Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.service-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(14, 168, 126, 0.25);
  line-height: 1;
  margin-bottom: 16px;
}
.service-text h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.service-text p {
  font-size: 0.9rem;
}

/* --- Strategic Partners Section --- */
.partner-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
.partner-details {
  width: 100%;
}
.partner-name {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
[data-theme="dark"] .partner-name {
  color: #ffffff;
}
.partner-country {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* --- Products Page Components --- */
.page-banner {
  padding: 100px 0;
  text-align: center;
  color: #ffffff;
  margin-top: 84px; /* clearance of fixed header */
}
.page-banner-title {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 12px;
}
.page-banner-sub {
  font-size: 1.2rem;
  opacity: 0.85;
}

/* Search bar design */
.section-search-filter {
  padding: 40px 0 20px 0;
  background-color: var(--bg-section);
}
.search-filter-bar {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
}
[dir="rtl"] .search-icon {
  left: auto;
  right: 16px;
}
#catalogue-search-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  font-size: 1.05rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-pure);
  color: var(--text-main);
  outline: none;
}
[dir="rtl"] #catalogue-search-input {
  padding: 16px 48px 16px 16px;
}
#catalogue-search-input:focus {
  border-color: var(--secondary-color);
}

.filter-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge-filter {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.badge-filter:hover, .badge-filter.active {
  background-color: var(--secondary-color);
  color: #ffffff;
  border-color: var(--secondary-color);
}

/* Products grid structure */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border-navy-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
}
.product-badge-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  z-index: 10;
}
[dir="rtl"] .product-badge-overlay {
  left: auto;
  right: 16px;
}
.product-image-box {
  height: 240px;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-info-box h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.product-info-box p {
  font-size: 0.9rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* --- ABOUT PAGE SPECIFIC --- */
.image-frame-luxury {
  width: 100%;
  max-width: 800px;
  max-height: 600px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.image-frame-luxury img,
.sector-image-frame img,
.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.luxury-about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Milestones Timelines */
.timeline-tree {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.timeline-tree::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-light);
  transform: translateX(-50%);
}
.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  position: relative;
}
.timeline-year-bubble {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}
.timeline-card {
  width: 44%;
  background-color: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.timeline-row.reverse {
  flex-direction: row-reverse;
}

/* --- SERVICES ALTERNATING ROWS --- */
.services-alternating-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.services-deep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.services-deep-row.reverse {
  direction: rtl;
}
.services-deep-row.reverse .services-deep-text {
  direction: ltr;
}
[dir="rtl"] .services-deep-row.reverse .services-deep-text {
  direction: rtl;
}
.step-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.services-deep-text h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.services-deep-text p {
  font-size: 1.05rem;
}

.profile-download-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.download-info h3 {
  font-size: 1.65rem;
  margin-bottom: 10px;
}
.download-info p {
  font-size: 0.95rem;
}
.download-action {
  display: flex;
  gap: 16px;
}

/* --- CONTACT MAPS & SATELLITES --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-item {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.info-icon {
  background-color: rgba(14, 168, 126, 0.1);
  color: var(--secondary-color);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.info-details p, .info-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}

.map-canvas {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 450px;
}
.map-canvas iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --- PRODUCT DETAILS SPECS MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 11, 19, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(6, 11, 19, 0.05);
  border: none;
  color: var(--text-main);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
[dir="rtl"] .modal-close {
  right: auto;
  left: 16px;
}
.modal-close:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-image-col {
  height: 450px;
  overflow: hidden;
}
.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-content-col {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.modal-title {
  font-size: 2rem;
  margin-bottom: 16px;
}
.modal-desc {
  font-size: 1rem;
  margin-bottom: 24px;
}
.modal-spec-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.spec-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}
.spec-item .label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.spec-item .value {
  font-size: 0.9rem;
  font-weight: 700;
}
.modal-actions {
  display: flex;
  gap: 12px;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background-color: var(--bg-pure);
}
.cta-card {
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.cta-card p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 40px auto;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* --- BUTTON DESIGN SYSTEM --- */
.btn-primary {
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid var(--border-navy-subtle);
}
.solid-green {
  background-color: var(--secondary-color);
  color: #ffffff;
}
.solid-green:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  opacity: 0.95;
  border-color: var(--primary-color);
}
.outline-navy {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
[data-theme="dark"] .outline-navy {
  color: #ffffff;
  border-color: #ffffff;
}
.outline-navy:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}
[data-theme="dark"] .outline-navy:hover {
  background-color: #ffffff;
  color: var(--primary-color);
}

/* Helper Color tags */
.text-green { color: var(--secondary-color) !important; }
.text-white { color: #ffffff !important; }
.text-white-muted { color: rgba(255, 255, 255, 0.75) !important; }

/* --- Footer --- */
.footer {
  background-color: #060b13;
  color: #ffffff;
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 24px;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-top: 16px;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--secondary-color);
}
.footer-contact p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-icon {
  color: var(--secondary-color);
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* --- MOBILE DRAWER SLIDER (LEFT) --- */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 11, 19, 0.5);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -320px;
  width: 300px;
  background-color: var(--bg-card);
  z-index: 1600;
  box-shadow: var(--shadow-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: left 0.3s ease-out;
}
.mobile-drawer.active {
  left: 0;
}
[dir="rtl"] .mobile-drawer {
  left: auto;
  right: -320px;
  transition: right 0.3s ease-out;
}
[dir="rtl"] .mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.15rem;
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
[data-theme="dark"] .mobile-nav-link {
  color: #ffffff;
}
.mobile-nav-link.active {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.mobile-contact-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- RESPONSIVE MEDIA BREAKPOINTS --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image-frame {
    height: 480px;
    aspect-ratio: 3/4;
    max-width: 360px;
    margin: 0 auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-deep-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .map-canvas {
    min-height: 350px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .timeline-tree::before {
    left: 20px;
  }
  .timeline-row {
    flex-direction: row !important;
    justify-content: flex-start;
    padding-left: 50px;
  }
  .timeline-year-bubble {
    left: 20px;
    transform: translateX(-50%);
  }
  .timeline-card {
    width: 100%;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-image-col {
    height: 200px;
  }
  .modal-content-col {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .desktop-navigation {
    display: none;
  }
  .btn-hamburger {
    display: inline-flex;
  }
  #hdr-phone-btn, #hdr-whatsapp-btn {
    display: none;
  }
  
  .profile-download-card {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Admin Login Button in Footer */
.footer-admin-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background-color: rgba(14, 168, 126, 0.1);
  border: 1px solid rgba(14, 168, 126, 0.3);
  color: #0ea87e !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}
.footer-admin-btn:hover {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 4px 12px rgba(14, 168, 126, 0.2);
  transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 95px; /* Shift up in LTR to make room for Back to Top */
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}
.floating-whatsapp-btn:hover {
  transform: scale(1.15) !important;
  background-color: #20ba5a;
}
[dir="rtl"] .floating-whatsapp-btn {
  right: auto;
  left: 30px;
  bottom: 30px; /* On RTL, it goes to the left bottom, so it can sit at 30px directly */
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(12, 35, 64, 0.25);
  z-index: 9998;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  opacity: 0;
  pointer-events: none;
  border: 1.5px solid var(--border-navy-subtle);
  transform: translateY(20px);
}
.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px) scale(1.05);
}
[dir="rtl"] .back-to-top-btn {
  right: 30px;
  left: auto;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(1);
  }
}

/* Strategic Partners Smooth Marquee Slider */
.partners-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 30px 0;
  display: flex;
  justify-content: flex-start !important;
  direction: ltr !important; /* Force LTR for flawless infinite carousel calculations in RTL */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.partners-slider-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  direction: ltr !important; /* Force LTR for flawless infinite carousel calculations in RTL */
  animation: partnersSlide 25s linear infinite;
  margin-left: 0 !important;
  margin-right: auto !important;
}
.partners-slider-track:hover {
  animation-play-state: paused;
}
.partners-slider-track .partner-card {
  flex-shrink: 0;
  width: 260px;
  margin: 0 !important;
}
[dir="rtl"] .partner-card {
  direction: rtl !important;
  text-align: right;
}
@keyframes partnersSlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Precise RTL Header Alignment Override */
[dir="rtl"] .floating-header {
  flex-direction: row; /* Flex naturally flows right-to-left placing logo-container first on the right */
}
[dir="rtl"] .nav-menu {
  flex-direction: row;
}
[dir="rtl"] .header-actions {
  flex-direction: row;
}

/* Float Animations for Hero HUD Tags */
@keyframes float-hud {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

#hud-approved {
  animation: float-hud 4s ease-in-out infinite;
}

#hud-bubble {
  animation: float-hud 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Featured Products Slider styles */
.products-slider-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 30px 0;
  display: flex;
  justify-content: flex-start !important;
  direction: ltr !important; /* Force LTR for flawless infinite carousel calculations in RTL */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.products-slider-track {
  display: flex;
  align-items: stretch;
  gap: 30px;
  width: max-content;
  direction: ltr !important; /* Force LTR for flawless infinite carousel calculations in RTL */
  animation: productsSlide 30s linear infinite;
  margin-left: 0 !important;
  margin-right: auto !important;
}
.products-slider-track:hover {
  animation-play-state: paused;
}
.products-slider-track .featured-product-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-navy-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
  box-shadow: var(--shadow-sm);
  margin: 0 !important;
}
[dir="rtl"] .featured-product-card {
  direction: rtl !important;
  text-align: right;
}
.products-slider-track .featured-product-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}
.featured-product-img-box {
  height: 180px;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.05);
}
.featured-product-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: 10px;
}
.featured-product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.featured-product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.featured-product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.3;
}
.featured-product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes productsSlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Spinner Icon and keyframes */
.spinner-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  vertical-align: text-bottom;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

