/* ===== VARIABLES & RESET ===== */
:root {
  /* ===== BRAND COLORS - MAJED LOGISTIC (BLUE) ===== */
  --primary: #1e3a8a;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --secondary: #059669;
  
  /* ===== TEXT COLORS ===== */
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-light: #666666;
  --gray: #666666;
  
  /* ===== BACKGROUNDS ===== */
  --white: #ffffff;
  --light: #f0f9ff;
  --dark: #1e293b;
  
  /* ===== TYPOGRAPHY ===== */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  
  /* ===== LAYOUT ===== */
  --container: 1200px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
  --transition: all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  direction: ltr;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

[dir="rtl"] body {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

/* ===== UTILITIES ===== */
.container { 
  width: 100%; 
  max-width: var(--container); 
  margin: 0 auto; 
  padding: 0 20px; 
}
.text-center { text-align: center; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--white); }
.text-white { color: var(--white); }
.section { padding: 80px 0; }
.section-header { margin-bottom: 50px; }

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

[dir="rtl"] .section-title::after { left: auto; right: 0; }

.section-desc { color: var(--gray); max-width: 700px; margin: 0 auto; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 50px; width: auto; }
.logo-text { font-weight: 800; font-size: 1.3rem; color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 25px; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 5px 25px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lang-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.lang-btn:hover { background: var(--accent-hover); }

.mobile-toggle {
  display: none; /* Hidden on desktop by default */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* ===== HERO ===== */
/* ===== HERO ===== */
.hero {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(30, 64, 175, 0.4) 100%),  /* ← Reduced from 0.5 to 0.4 */
    url('../images/hero-bg.webp') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 100px;
  text-align: center;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-overlay {
position: absolute;
inset: 0;
background: rgba(30, 58, 138, 0.2);  /* ← Change opacity from 0.3 to 0.2 */
}

.hero-content { 
  position: relative; 
  max-width: 800px; 
  margin: 0 auto; 
  padding: 0 20px; 
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: 35px;
  line-height: 1.5;
  color: var(--white);
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
/* ===== DOWNLOAD BUTTON ===== */
.btn-download {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-download:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-download i {
  font-size: 1.1rem;
}

/* Mobile: Stack buttons vertically */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-download {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

.btn-block { width: 100%; justify-content: center; }

.trust-badges {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
/* PDF Download Button Pulse Animation */
@keyframes pulse-download {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
  }
}

.btn-download {
  animation: pulse-download 2s infinite;
}

/* Stop animation on hover */
.btn-download:hover {
  animation: none;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.badge i { font-size: 1.5rem; color: var(--accent); }
.badge span { font-weight: 600; }

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  color: var(--white);
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item { padding: 20px; }
.stat-item i { font-size: 2.5rem; margin-bottom: 15px; color: var(--accent); }

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label { font-size: 1rem; opacity: 0.95; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p { margin-bottom: 20px; font-size: 1.05rem; }

.about-highlights { list-style: none; margin: 25px 0; }

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  font-weight: 500;
}

.about-highlights i { color: var(--secondary); font-size: 1.2rem; margin-top: 4px; }

.vision-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-top: 25px;
  font-weight: 500;
  color: var(--primary);
}

.vision-box i { font-size: 1.3rem; }

/* ===== ABOUT IMAGE ===== */
.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image .image-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

.about-image .image-placeholder i { 
  font-size: 4rem; 
  margin-bottom: 15px; 
  opacity: 0.9; 
}
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.about-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  border-top-color: var(--accent);
}

.service-card.highlight {
  border-top-color: var(--accent);
  background: linear-gradient(to bottom right, #fff, #f0f9ff);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--primary-light);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-icon i {
  display: none; /* Hide icons when using images */
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p { color: var(--gray); font-size: 0.95rem; }

/* ===== FLEET ===== */
.fleet-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  color: var(--white);
}

.stat-box { text-align: center; padding: 20px; }
.stat-box i { font-size: 2.5rem; margin-bottom: 15px; color: var(--accent); }
.stat-box .stat-number { display: block; font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; }
.stat-box .stat-label { font-size: 0.95rem; opacity: 0.9; }

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.fleet-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.fleet-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.25);
}

.fleet-image {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.fleet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.fleet-card:hover .fleet-image img {
  transform: scale(1.1);
}

.fleet-image i {
  font-size: 4rem;
  opacity: 0.9;
}

/* Fallback icon styling */
.fleet-image:not(:has(img)) i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.fleet-info { padding: 25px; }
.fleet-info h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--primary); }
.fleet-info p { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }
.fleet-features { list-style: none; padding: 0; margin: 0; }
.fleet-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 8px 0;
}
.fleet-features i { color: var(--secondary); font-size: 0.85rem; }

.fleet-card:hover .fleet-image img {
  transform: scale(1.1); /* Zoom effect */
}

.fleet-card:hover {
  transform: translateY(-10px); /* Card lift effect */
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.25);
}

/* ===== SERVICE AREAS MAP ===== */
.service-areas { padding: 80px 0; }
.map-container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}
.interactive-map { height: 450px; width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  background: var(--light);
  justify-content: center;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.map-btn {
  padding: 8px 20px;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.9rem;
}
.map-btn:hover,
.map-btn.active { background: var(--primary); color: var(--white); }

.coverage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  color: var(--white);
  margin-top: 40px;
}

/* ===== PROJECTS ===== */
.projects { background: var(--white); }
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
}
.filter-btn:hover,
.filter-btn.active { background: var(--primary); color: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.25);
}

.project-image {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}

.project-info { padding: 25px; }
.project-category {
  display: inline-block;
  padding: 5px 15px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.project-info h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-primary); }
.project-info p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }
.project-card.hidden { display: none; }
/* ===== PROJECTS IMAGES ===== */
.project-image {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-image i {
  font-size: 4rem;
  opacity: 0.9;
}

/* Fallback icon styling */
.project-image:not(:has(img)) i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.project-card:hover .project-image img {
  transform: scale(1.1); /* Zoom effect */
}

.project-card:hover {
  transform: translateY(-10px); /* Card lift effect */
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.25);
}

/* ===== VALUES ===== */
.values-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}
.values-list li {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.values-list li:hover { transform: translateY(-5px); }
.values-list i { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }
.values-list strong { display: block; font-size: 1.2rem; margin-bottom: 8px; color: var(--primary); }
.values-list span { color: var(--gray); font-size: 0.95rem; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.testimonial-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.25);
}
.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--primary-light);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.5;
}
[dir="rtl"] .testimonial-card::before { left: auto; right: 20px; }
.testimonial-rating { margin-bottom: 20px; }
.testimonial-rating i { color: #fbbf24; font-size: 1.1rem; margin-right: 3px; }
[dir="rtl"] .testimonial-rating i { margin-right: 0; margin-left: 3px; }
.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}
.author-info h4 { font-size: 1.1rem; color: var(--primary); margin-bottom: 3px; }
.author-info p { font-size: 0.9rem; color: var(--gray); }

/* ===== WHY CHOOSE ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.feature {
  text-align: center;
  padding: 30px 25px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature:hover { transform: translateY(-5px); }
.feature i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--primary); }
.feature p { color: var(--gray); }

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 25px; }
.contact-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.contact-item i { 
  font-size: 1.4rem; 
  color: var(--accent); 
  min-width: 24px; 
  margin-top: 4px; 
}
.contact-item strong { 
  display: block; 
  margin-bottom: 5px; 
  color: var(--primary); 
}
.contact-item a { 
  color: var(--primary); 
  text-decoration: none; 
}
.contact-item a:hover { 
  color: var(--accent); 
}
.map-container {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-form {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { 
  display: block; 
  margin-bottom: 8px; 
  font-weight: 500; 
  color: var(--text-primary); 
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-note { 
  font-size: 0.9rem; 
  color: var(--gray); 
  text-align: center; 
  margin-top: 15px; 
}

/* ===== RTL CONTACT SECTION (ARABIC) ===== */
[dir="rtl"] .contact-wrapper {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .contact-item i {
  margin-left: 15px;
  margin-right: 0;
}

[dir="rtl"] .contact-item strong {
  text-align: right;
}

[dir="rtl"] .contact-item p {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .form-group label {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .form-group input::placeholder,
[dir="rtl"] .form-group textarea::placeholder {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .form-note {
  text-align: center;
  direction: rtl;
}

[dir="rtl"] .contact-form {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .contact-info {
  direction: rtl;
  text-align: right;
}

/* RTL Phone Numbers (Keep LTR for numbers) */
[dir="rtl"] .contact-item a[href^="tel:"] {
  direction: ltr;
  display: inline-block;
}

/* RTL Map Container */
[dir="rtl"] .map-container {
  direction: ltr; /* Keep map LTR */
}
/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding-top: 60px;
  width: 100%;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand strong { display: block; font-size: 1.4rem; color: var(--white); margin-bottom: 12px; }
.footer-brand p { margin-bottom: 20px; opacity: 0.9; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: var(--white); font-size: 1.3rem; transition: var(--transition); }
.social-links a:hover { color: var(--accent); transform: translateY(-3px); }
.footer-links h4,
.footer-contact h4 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin: 10px 0; }
.footer-links a { color: #ccc; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 5px; }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; }
.footer-contact i { color: var(--accent); margin-top: 4px; }
.footer-contact a { color: #ccc; text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding: 25px 20px; font-size: 0.95rem; opacity: 0.85; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.services-grid .service-card,
.values-list li,
.fleet-card,
.stat-item,
.feature,
.project-card,
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.services-grid .service-card.visible,
.values-list li.visible,
.fleet-card.visible,
.stat-item.visible,
.feature.visible,
.project-card.visible,
.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FLOATING BUTTONS ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-5px); }

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }

/* ===== SCROLL PROGRESS & LOADER ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease;
}
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--primary-light);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE - DESKTOP FIRST ===== */
/* Desktop (Default) - No media query needed */

/* Tablet - 992px and below */
@media (max-width: 992px) {
  .about-grid,
  .contact-wrapper,
  .footer-inner { 
    grid-template-columns: 1fr; 
  }
  .hero-title { font-size: 2.5rem; }
  .hero { min-height: 500px; }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  
  .main-nav .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .main-nav.active .nav-list { max-height: 500px; }
  
  .nav-list a { 
    padding: 12px 0; 
    border-bottom: 1px solid #eee; 
    width: 100%; 
  }
  
  .hero-title { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.9rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.2rem; }
  
  .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
  .whatsapp-float { bottom: 20px; left: 20px; width: 55px; height: 55px; }
  .interactive-map { height: 350px; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .section-title { font-size: 1.7rem; }
  .btn { padding: 12px 24px; font-size: 0.95rem; }
  .stats-grid { grid-template-columns: 1fr; }

}
/* ===== MOBILE RESPONSIVE FIXES ===== */

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix all containers */
.container {
  width: 100%;
  max-width: 100%;
  padding: 0 15px;
}

/* Fix hero section on mobile */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 0 60px;
    width: 100%;
    max-width: 100vw;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    margin: 5px auto;
    display: block;
  }
  
  .trust-badges {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }
  
  .badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  /* Hide or fix hero visual on mobile */
  .hero-visual {
    display: none; /* Hide the box icon on mobile */
  }
  
  /* Fix all sections */
  .section {
    padding: 60px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Fix grid layouts */
  .services-grid,
  .projects-grid,
  .fleet-grid,
  .testimonials-grid,
  .features-grid,
  .values-list,
  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
  }
  
  /* Fix stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  /* Fix navigation */
  .main-nav .nav-list {
    width: 100%;
  }
  
  /* Fix header */
  .header-inner {
    padding: 10px 15px;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Fix footer */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 60px 0 40px;
  }
}

/* Prevent elements from overflowing */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Fix any element causing overflow */
* {
  box-sizing: border-box;
}
/* ===== MOBILE RESPONSIVE FIXES ===== */

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix all containers */
.container {
  width: 100%;
  max-width: 100%;
  padding: 0 15px;
}

/* Fix hero section on mobile */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 0 60px;
    width: 100%;
    max-width: 100vw;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    margin: 5px auto;
    display: block;
  }
  
  .trust-badges {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }
  
  .badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  /* Hide or fix hero visual on mobile */
  .hero-visual {
    display: none; /* Hide the box icon on mobile */
  }
  
  /* Fix all sections */
  .section {
    padding: 60px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Fix grid layouts */
  .services-grid,
  .projects-grid,
  .fleet-grid,
  .testimonials-grid,
  .features-grid,
  .values-list,
  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
  }
  
  /* Fix stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  /* Fix navigation */
  .main-nav .nav-list {
    width: 100%;
  }
  
  /* Fix header */
  .header-inner {
    padding: 10px 15px;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Fix footer */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 60px 0 40px;
  }
}

/* Prevent elements from overflowing */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Fix any element causing overflow */
* {
  box-sizing: border-box;
}
/* ===== CONTACT SECTION MOBILE FIX ===== */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    gap: 30px;
    width: 100%;
    max-width: 100%;
  }
  
  .contact-info,
  .contact-form {
    width: 100%;
    max-width: 100%;
  }
  
  .contact-item {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .contact-form {
    padding: 25px 20px;
  }
  
  .map-container {
    height: 250px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .contact-wrapper {
    padding: 0 10px;
  }
  
  .btn-block {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 768px) {
  .header-inner {
    padding: 10px 15px;
    flex-wrap: nowrap; /* Prevent wrapping */
  }
  
  .logo {
    flex-shrink: 0; /* Don't shrink logo */
    max-width: 120px; /* Reduce logo size on mobile */
  }
  
  .logo img {
    height: 40px; /* Smaller logo on mobile */
    width: auto;
  }
  
  .logo-text {
    font-size: 1rem; /* Smaller text on mobile */
    display: none; /* Hide text on mobile, show only logo */
  }
  
  .main-nav {
    margin-left: auto; /* Push to right */
  }
  
  .lang-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .mobile-toggle {
    margin-left: 10px;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .logo {
    max-width: 100px;
  }
  
  .logo img {
    height: 35px;
  }
  
  .lang-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

/* Hide "Home" text if it's appearing */
.nav-list a[href="index.php"],
.nav-list a[href="/"] {
  display: none; /* Hide Home link on mobile if needed */
}

/* Ensure header stays on one line */
.header-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
/* Quick Mobile Header Fix */
@media (max-width: 768px) {
  /* Hide logo text on mobile, show only image */
  .logo-text {
    display: none !important;
  }
  
  /* Make logo smaller */
  .logo img {
    height: 40px !important;
    width: auto !important;
  }
  
  /* Reduce button size */
  .lang-btn {
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
  }
  
  /* Ensure header doesn't wrap */
  .header-inner {
    flex-wrap: nowrap !important;
  }
  
  /* Hide nav items on mobile (show only in menu) */
  .nav-list {
    display: none;
  }
  
  /* Show hamburger menu */
  .mobile-toggle {
    display: block !important;
  }
}
/* Hide any stray "Home" text */
body > .home,
.home-link,
.breadcrumb a[href="index.php"] {
  display: none !important;
}
/* ===== MOBILE MENU FIX ===== */
@media (max-width: 768px) {
  /* Show hamburger button */
  .mobile-toggle {
    display: block !important;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
  }
  
  /* Mobile navigation */
  .main-nav .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 999;
  }
  
  /* Show menu when active */
  .main-nav.active .nav-list {
    max-height: 500px;
    opacity: 1;
  }
  
  /* Nav links on mobile */
  .nav-list a {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    display: block;
    text-align: center;
    font-size: 1.1rem;
  }
  
  /* Hide language button in mobile menu */
  .nav-list .lang-btn {
    display: none;
  }
  
  /* Logo on mobile */
  .logo img {
    height: 40px;
    width: auto;
  }
  
  .logo-text {
    display: none; /* Hide text on mobile */
  }
  
  /* Language button */
  .lang-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-right: 10px;
  }
}
  .section-title {

/* ===== RTL OVERRIDES ===== */
[dir="rtl"] {
  .nav-list { flex-direction: row-reverse; }
  .hero-title, .hero-subtitle, .section-title { text-align: center; }
  .about-highlights li { flex-direction: row-reverse; }
  .contact-item { flex-direction: row-reverse; text-align: right; }
  .values-list li, .feature, .fleet-card, .testimonial-card { text-align: center; }
  .form-group label { text-align: right; }
  .footer-inner { text-align: right; }
  .social-links { justify-content: flex-end; }
  .footer-links a:hover { padding-left: 0; padding-right: 5px; }
  .fleet-features li { flex-direction: row-reverse; }
}
