/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* Brand Colors */
  --primary: #E6302E;
  /* RedEx Red */
  --primary-hover: #CC2925;
  --primary-light: rgba(230, 48, 46, 0.1);
  --secondary: #1A1A1A;
  /* Dark Black/Gray */
  --text-main: #1A1A1A;
  --text-muted: rgba(26, 26, 26, 0.7);
  --bg-light: #FFFFFF;
  --bg-soft: #F8F9FA;
  --border-color: #E1E4E8;

  /* Gradients */
  --gradient-footer: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  --gradient-btn: linear-gradient(135deg, #E6302E 0%, #FF4D4D 100%);

  /* Typography */
  --font-main: 'Poppins', sans-serif;

  /* Spacing */
  --container-width: 1280px;
  --header-height: 90px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 25px 50px -12px rgba(230, 48, 46, 0.25);

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease;
}

/* Robust Scroll Lock */
html.no-scroll,
html.no-scroll body {
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
  touch-action: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 2.75rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--secondary), #4a4a4a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 4rem;
  letter-spacing: 0.01em;
}

/* =========================================
   3. GLOBAL ANIMATIONS
   ========================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* =========================================
   IMPROVED SOLUTION CARDS
   ========================================= */
/* Solution Cards (Horizontal Layout) */
.solution-card {
  display: flex !important;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem !important;
  background: white;
  border-left: 5px solid var(--primary);
  border-top: none !important;
  border-radius: var(--radius-md);
  text-align: left !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.solution-card i {
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem !important;
  margin-bottom: 0 !important;
  transition: all 0.5s ease;
}

.solution-card:hover i {
  background: var(--primary);
  color: white;
  transform: rotateY(360deg);
}

.solution-text {
  flex: 1;
}

.solution-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--secondary);
}

.solution-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =========================================
   DETAILED FOOTER STYLES
   ========================================= */
.company-info {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.info-item i {
  color: var(--primary);
  margin-top: 4px;
  /* Align with text top */
  width: 16px;
  text-align: center;
}

.cert-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.cert-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.cert-badge i {
  color: var(--primary);
}

.footer-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section h4 i {
  color: var(--primary);
}


@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 48, 46, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(230, 48, 46, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(230, 48, 46, 0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  background: linear-gradient(135deg, #E6302E 0%, #CC2925 100%);
  color: white;
  padding: 8rem 2rem 6rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* =========================================
   4. COMPONENTS
   ========================================= */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 10px 20px rgba(230, 48, 46, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(230, 48, 46, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white !important;
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.logo img {
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo:hover img {
  filter: drop-shadow(0 4px 12px rgba(230, 48, 46, 0.3));
  transform: scale(1.05);
}

/* Hero Truck Image Professional Effects */
.hero-truck-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15)) saturate(1.1);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-truck-image:hover {
  filter: drop-shadow(0 30px 60px rgba(230, 48, 46, 0.25)) saturate(1.2);
  transform: scale(1.02) translateY(-5px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 100%;
  list-style: none;
}

.nav-links li a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--secondary);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* Hide mobile language dropdown on desktop */
.mobile-lang-dropdown {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-mobile-cta {
  display: none;
}

.table-actions-flex {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

/* Cards */
.card-premium {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-premium:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

/* 3D Transform Utilities */
.perspective-container {
  perspective: 1000px;
}

.transform-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

/* Footer */
footer {
  background: var(--gradient-footer);
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* =========================================
   RTL & ARABIC SUPPORT
   ========================================= */
html[lang="ar"] body {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Poppins', sans-serif;
  /* Professional Bold Arabic Font */
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .btn,
html[lang="ar"] .nav-links a {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  /* Ensure boldness */
}

/* RTL Helper Classes */
html[lang="ar"] .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

html[lang="ar"] .me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Specific Component Fixes for RTL */
html[lang="ar"] .hero-content {
  text-align: right !important;
  padding-right: 0 !important;
  padding-left: 2rem !important;
}

/* html[lang="ar"] selectors cleaned up */

html[lang="ar"] .btn i {
  margin-right: 0 !important;
  margin-left: 8px !important;
}

html[lang="ar"] .step-item::after {
  left: -50%;
  /* Adjust connector lines for steps */
}

html[lang="ar"] .timeline-item::after {
  right: -11px;
  /* Adjust timeline dots */
  left: auto;
}

html[lang="ar"] .timeline-content {
  text-align: right;
}

/* Language Switcher RTL */
html[lang="ar"] .lang-dropdown .fa-chevron-down {
  margin-left: 0;
  margin-right: 5px;
}

/* =========================================
   5. LAYOUT & SECTIONS
   ========================================= */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 5rem 0;
  box-sizing: border-box;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e6302e' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--secondary) 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Filter Toggle (Coverage) */
.toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.view-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.view-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(230, 48, 46, 0.05);
}

.view-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(230, 48, 46, 0.2);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: #f9f9f9;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-main);
  appearance: none;
  /* Normalize for custom styling */
}

.form-control:hover {
  background: white;
  border-color: #b0b0b0;
}

.form-control:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(230, 48, 46, 0.1);
  outline: none;
}

/* Custom Select Dropdown Arrow */
select.form-control {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1em;
  padding-right: 3rem;
}

/* --- Unified Custom Select Component --- */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  color: var(--secondary);
  user-select: none;
}

.select-trigger:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.custom-select.active .select-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 48, 46, 0.1);
}

.select-trigger i {
  font-size: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
}

.custom-select.active .select-trigger i {
  transform: rotate(180deg);
  color: var(--primary);
}

.select-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  z-index: 1000;
  box-shadow: var(--shadow-md);
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.custom-select.active .select-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.search-container {
  position: sticky;
  top: 0;
  background: white;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  z-index: 1;
}

.search-container input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
}

.search-container input:focus {
  border-color: var(--primary-light);
}

.options-list {
  padding: 5px 0;
}

.option-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-item:hover {
  background: #fdf2f2;
  color: var(--primary);
}

.option-item.selected {
  background: #fff5f5;
  color: var(--primary);
  font-weight: 600;
}

.option-item.selected::after {
  content: '✓';
  font-size: 0.8rem;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Search Input inside dropdown */
.dropdown-search-input {
  position: relative;
}

.dropdown-search-input input {
  padding-right: 3.5rem;
  /* Space for icon */
}

.dropdown-search-input i {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* RTL Support for Searchable Dropdown */
html[lang="ar"] .dropdown-search-input i {
  right: auto;
  left: 1.2rem;
}

html[lang="ar"] .dropdown-search-input input {
  padding-right: 20px;
  padding-left: 3.5rem;
  text-align: right;
}

html[lang="ar"] .search-results div {
  text-align: right;
}

/* Custom Checkbox/Radio Styling */
.custom-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  user-select: none;
}

.custom-option:hover {
  border-color: var(--primary);
  background: #fff5f5;
}

.custom-option input[type="checkbox"],
.custom-option input[type="radio"] {
  accent-color: var(--primary);
  width: 1.2em;
  height: 1.2em;
}

.custom-option.checked {
  background: #fff5f5;
  border-color: var(--primary);
  color: var(--primary);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #b91c1c 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Breaking out of potential container constraints manually handled in HTML now */
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1.1rem;
  position: relative;
}

.cta-section .btn {
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* File Upload Zone */
.file-drop-zone {
  border: 2px dashed var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: var(--primary);
  background: #fff5f5;
}

.file-drop-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Modern Solutions Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

#solutions .section-title,
#solutions .section-subtitle {
  color: white !important;
}

#solutions .section-title {
  background: white;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Stats Section (Redesigned) --- */
.stats-section {
  background: #f8fafc;
  padding: 6rem 0;
  margin: 4rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translateY(30px);
}

.stat-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(230, 48, 46, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  background: rgba(230, 48, 46, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.stat-item .counter {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-bg) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Stats Counter Section */
.stats-counter {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 5rem 0;
  margin: 3rem 0;
}

/* =========================================
   TRACKER ENHANCEMENTS
   ========================================= */

/* Progress Bar */
.track-progress-container {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.track-progress-bar {
  height: 100%;
  background: var(--gradient-btn);
  width: 0%;
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.track-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* =========================================
   PROFESSIONAL FOOTER SECTION
   ========================================= */
footer#contact {
  background: linear-gradient(to bottom, #2d3748 0%, #1a202c 100%);
  color: #e5e7eb;
  width: 100%;
  margin: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  padding: 5rem 0 0 0;
  position: relative;
  overflow: hidden;
}

footer#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.3), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem 4rem;
}

.footer-section h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.footer-section h4 i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Company Info Section Specific */
.company-info {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
  border-left: 2px solid transparent;
  padding-left: 0;
  transition: all 0.3s ease;
}

.info-item:hover {
  border-left-color: var(--primary);
  padding-left: 0.5rem;
}

.info-item i {
  color: var(--primary);
  margin-top: 3px;
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.info-item p {
  margin: 0;
  line-height: 1.6;
  color: #9ca3af;
  font-size: 0.95rem;
}

.info-item strong {
  color: #d1d5db;
  font-weight: 600;
}

/* Links Section */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.9rem;
}

.footer-section ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  position: relative;
  padding-left: 0;
}

.footer-section ul li a::before {
  content: '›';
  position: absolute;
  left: -15px;
  color: var(--primary);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffffff;
  padding-left: 15px;
}

.footer-section ul li a:hover::before {
  opacity: 1;
  left: 0;
}

/* Social Icons Styling */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(220, 53, 69, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-icon i {
  color: #9ca3af;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.social-icon:hover {
  border-color: var(--primary);
  background: rgba(220, 53, 69, 0.1);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2);
}

.social-icon:hover::before {
  opacity: 0.1;
}

.social-icon:hover i {
  color: #ffffff;
  transform: scale(1.1);
}

/* Certification Badges */
.cert-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 3rem;
  margin: 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-badge {
  background: transparent;
  border: 1.5px solid rgba(220, 53, 69, 0.3);
  color: #d1d5db;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.cert-badge i {
  color: var(--primary);
  font-size: 1.1rem;
}

.cert-badge:hover {
  background: rgba(220, 53, 69, 0.08);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(220, 53, 69, 0.15);
  color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 2rem 3rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  footer#contact {
    padding: 3rem 0 0 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 2rem 3rem;
  }

  .cert-badges {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
  }

  .cert-badge {
    width: 100%;
    justify-content: center;
  }
}

/* FAQ Section */
.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-answer {
  padding: 0 1.2rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
  /* Can be toggled with JS or just shown static for now */
}

.faq-item.active .faq-answer {
  display: block;
}


/* =========================================
   LANGUAGE SWITCHER & RTL
   ========================================= */

.lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--secondary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: white;
  min-width: 140px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
  border: 1px solid var(--border-color);
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown.active .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: var(--secondary);
}

.lang-option:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

/* RTL Override */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Poppins', sans-serif !important;
}

[dir="rtl"] .lang-dropdown {
  margin-left: 0;
  margin-right: 1.5rem;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .nav-links li a::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .form-control {
  text-align: right;
}

[dir="rtl"] select.form-control {
  background-position: left 1.2rem center;
  padding-right: 20px;
  padding-left: 3rem;
}

/* Fix icons margin in RTL */
[dir="rtl"] .fa-solid:not(.btn i) {
  margin-right: 0 !important;
  margin-left: 8px !important;
}

.btn:disabled {
  opacity: 0.8 !important;
}

.btn i.fa-spin {
  font-size: 1.1em;
  margin: 0 !important;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  touch-action: none;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--primary-light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
  position: relative;
}

.loading-text {
  font-weight: 600;
  color: var(--secondary);
  font-family: var(--font-main);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}