
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.lang-ar {
  direction: rtl;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* RTL adjustments for hero container grid layout */
body.lang-ar .hero-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  direction: rtl;
}

/* RTL adjustments for hero visual elements */
body.lang-ar .hero-visual {
  right: auto !important;
  left: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ff0000;
  outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ff0000;
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
}

.skip-to-main:focus {
  top: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #000000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.logo a:hover {
  color: #ff0000;
  opacity: 0.9;
}

.logo a.lang-en {
  font-family: "Bebas Neue", cursive;
  font-size: 1.8rem;
  letter-spacing: 1px;
  font-weight: 400;
}

.logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 0%, #ff0000, #b91c1c 45%, #ffffff 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: #000000;
  opacity: 0.9;
}

.nav-links a:hover {
  color: #ff0000;
  opacity: 1;
}

.nav-links a.active {
  color: #ff0000;
  position: relative;
  opacity: 1 !important;
}

.nav-links a.active:after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff0000;
  border-radius: 2px;
}

/* Always show language toggle */
.lang-toggle {
  display: inline-flex !important;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  overflow: hidden;
  font-size: 0.8rem;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: #000000;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  display: inline-block !important;
}

.lang-toggle button.active {
  background: rgba(148,163,184,0.22);
}

main {
  padding-bottom: 4rem;
  position: relative;
  z-index: 30;
}

/* Hero Background Images */
.hero-animated {
  position: relative;
  overflow: hidden;
}

.hero-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
  opacity: 1;
}

/* Mobile-specific styling */
/* Mobile-specific styling when JS adds mobile-device class */
body.mobile-device .badge, 
body.mobile-device .hero-title, 
body.mobile-device .hero-subtitle, 
body.mobile-device .hero-actions, 
body.mobile-device .hero-meta, 
body.mobile-device .hero-visual {
  transition: none !important;
  -webkit-transition: none !important;
  opacity: 1 !important;
  transform: none !important;
  -webkit-transform: none !important;
}

/* Mobile-specific adjustments for Arabic version */
@media (max-width: 768px) {
  body.lang-ar .hero-text-blur {
    padding: 1.5rem !important;
    margin: 1rem !important;
  }
  
  body.lang-ar .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
  }
  
  body.lang-ar .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  
  body.lang-ar .badge {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.6rem !important;
  }
  
  body.lang-ar .hero-actions {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  
  body.lang-ar .btn-primary,
  body.lang-ar .btn-outline {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Adjust blur container for Arabic text on mobile */
  body.lang-ar .hero-text-blur {
    text-align: right !important;
    right: auto !important;
    left: 1rem !important;
  }
  
  /* Ensure proper positioning of blur container in RTL */
  body.lang-ar .hero-content {
    padding: 1rem 0 !important;
  }
}

/* Reduce animation intensity on mobile */
body.mobile-device .floating-card {
  animation: none !important;
}

body.mobile-device .floating-card-1, 
body.mobile-device .floating-card-2, 
body.mobile-device .floating-card-3 {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Ensure floating cards animate on non-mobile devices */
.hero-visual .floating-card {
  animation: none !important;
}

/* Simplify stats animation on mobile */
body.mobile-device .stat-number {
  transition: none !important;
}

@media (max-width: 768px) {
  .static-background {
    height: 100vh;
  }
  
  /* Ensure content is readable on mobile */
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-visual {
    display: block;
    position: relative;
    width: 100%;
    margin-top: 2rem;
  }
  
  .hero-text-blur {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .floating-card-container {
    position: relative !important;
    margin: 10px auto !important;
    width: 220px !important;
    height: 140px !important;
  }
  
  .floating-card-container.floating-card-1,
  .floating-card-container.floating-card-2,
  .floating-card-container.floating-card-3 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 10px auto !important;
  }
  
  .floating-card {
    position: relative !important;
  }
  
  /* Mobile navigation improvements */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    display: none;
    width: 100%;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}



/* Enhanced Hero Section */
.hero-animated {
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  z-index: 20;
}

.hero-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 16, 0.7);
  z-index: 1;
}



.hero-container {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  padding: 2rem 0;
  color: #ffffff;
}

.hero-text-blur {
  background: rgba(5, 8, 16, 0.75);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  margin: auto;
  max-width: 600px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 0.75rem;
  margin-bottom: 0.9rem;
  color: #ffffff;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.badge.animate, .badge {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #e6c200;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.hero-title.animate, .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #e2e8f0;
  max-width: 36rem;
  margin-bottom: 1.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.2s;
}

.hero-subtitle.animate, .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.4s;
}

.hero-actions.animate, .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 1rem;
  color: #e2e8f0;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.6s;
}

.hero-meta.animate, .hero-meta {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Visual Elements */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateX(0);
  transition: all 1s ease 0.8s;
}

.hero-visual.animate, .hero-visual {
  opacity: 1;
  transform: translateX(0);
}

.floating-card-container {
  position: absolute;
  width: 220px;
  height: 140px;
  margin: 10px;
}

.floating-card-container.floating-card-1 {
  top: 15% !important;
  right: 10% !important;
}

.floating-card-container.floating-card-2 {
  top: 45% !important;
  right: 10% !important;
}

.floating-card-container.floating-card-3 {
  bottom: 15% !important;
  right: 10% !important;
}

/* RTL adjustments for floating cards in Arabic version - proper mirroring */
body.lang-ar .floating-card-container.floating-card-1 {
  right: auto !important;
  left: 2% !important;
}

body.lang-ar .floating-card-container.floating-card-2 {
  right: auto !important;
  left: 8% !important;
}

body.lang-ar .floating-card-container.floating-card-3 {
  right: auto !important;
  left: 2% !important;
}

/* Additional comprehensive RTL rules - removed to allow individual card positioning */
/* body.lang-ar .floating-card-container {
  right: auto !important;
  left: 10% !important;
} */

/* Additional RTL adjustments with higher specificity */
body.lang-ar .hero-visual .floating-card-container.floating-card-1 {
  right: auto !important;
  left: 2% !important;
}

body.lang-ar .hero-visual .floating-card-container.floating-card-2 {
  right: auto !important;
  left: 8% !important;
}

body.lang-ar .hero-visual .floating-card-container.floating-card-3 {
  right: auto !important;
  left: 2% !important;
}

.floating-card {
  position: absolute !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 0, 0, 0.3) !important;
  border-radius: 16px !important;
  padding: 1.2rem !important;
  width: 220px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  animation: none !important;
  opacity: 1 !important;
  z-index: 40 !important;
  will-change: transform !important;
}

.floating-card-link {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.floating-card-link:hover .floating-card {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 0, 0, 0.6);
}

.floating-card-1 {
  top: 15% !important;
  left: 5% !important;
  animation-delay: 0s;
}

.floating-card-2 {
  top: 45% !important;
  right: 5% !important;
  animation-delay: 1s;
}

.floating-card-3 {
  bottom: 15% !important;
  left: 5% !important;
  animation-delay: 2s;
}

/* RTL adjustments for floating cards in Arabic version - inner cards */
body.lang-ar .floating-card-1 {
  right: auto !important;
  left: 2% !important;
}

body.lang-ar .floating-card-2 {
  left: 8% !important;
  right: auto !important;
}

body.lang-ar .floating-card-3 {
  right: auto !important;
  left: 2% !important;
}

/* Specific rule for Oilfield Services card in Arabic - ensure positioned on left */
body.lang-ar .floating-card-container.floating-card-2 .floating-card {
  left: 8% !important;
  right: auto !important;
  text-align: right !important; /* For content alignment */
  transform: translateX(0) !important; /* Ensure no transform interference */
}

/* More specific RTL rule for floating card 2 to ensure proper positioning */
body.lang-ar .floating-card-container.floating-card-2 {
  right: auto !important;
  left: 8% !important;
}

/* Additional specific rule for floating card 1 to maintain proper positioning */
body.lang-ar .floating-card-container.floating-card-1 {
  right: auto !important;
  left: 2% !important;
}

/* Additional specific rule for floating card 3 to maintain proper positioning */
body.lang-ar .floating-card-container.floating-card-3 {
  right: auto !important;
  left: 2% !important;
}

/* Ensure all floating cards have right-aligned text in Arabic */
body.lang-ar .floating-card {
  text-align: right !important;
}

/* Ensure phone numbers maintain LTR direction in RTL layout */
body.lang-ar [class*="phone"],
body.lang-ar [class*="tel"],
body.lang-ar .contact-detail div:not(:has(strong)) {
  direction: ltr !important;
  text-align: left !important;
}

/* Specific rule for phone number containers */
body.lang-ar .contact-detail div {
  direction: rtl;
}

/* Ensure phone numbers maintain LTR direction in RTL layout */
body.lang-ar .contact-detail div:last-child {
  direction: ltr !important;
  text-align: left !important;
}

/* Specific rule for phone number elements */
body.lang-ar .phone-number,
body.lang-ar [href^="tel:"] {
  direction: ltr !important;
  text-align: left !important;
}

/* Additional RTL positioning overrides to ensure correct card positions */
body.lang-ar .floating-card-1 {
  left: 2% !important;
  right: auto !important;
}

body.lang-ar .floating-card-2 {
  right: auto !important;
  left: 8% !important;
}

body.lang-ar .floating-card-3 {
  left: 2% !important;
  right: auto !important;
}

/* Extra specific overrides to ensure RTL positioning takes effect */
body.lang-ar .hero-visual .floating-card-1,
body.lang-ar .floating-card-1 {
  left: 2% !important;
  right: auto !important;
}

body.lang-ar .hero-visual .floating-card-2,
body.lang-ar .floating-card-2 {
  left: 8% !important;
  right: auto !important;
}

body.lang-ar .hero-visual .floating-card-3,
body.lang-ar .floating-card-3 {
  left: 2% !important;
  right: auto !important;
}

/* Maximum specificity overrides */
body.lang-ar .floating-card-container.floating-card-1 .floating-card,
body.lang-ar .floating-card-1 {
  left: 2% !important;
  right: auto !important;
  transform: translateX(0) !important;
}

body.lang-ar .floating-card-container.floating-card-2 .floating-card,
body.lang-ar .floating-card-2 {
  left: 8% !important;
  right: auto !important;
  transform: translateX(0) !important;
}

body.lang-ar .floating-card-container.floating-card-3 .floating-card,
body.lang-ar .floating-card-3 {
  left: 2% !important;
  right: auto !important;
  transform: translateX(0) !important;
}

/* Extra overrides accounting for hero-visual positioning */
body.lang-ar .hero-visual .floating-card-container.floating-card-1,
body.lang-ar .floating-card-container.floating-card-1 {
  left: 2% !important;
  right: auto !important;
}

body.lang-ar .hero-visual .floating-card-container.floating-card-2,
body.lang-ar .floating-card-container.floating-card-2 {
  left: 8% !important;
  right: auto !important;
}

body.lang-ar .hero-visual .floating-card-container.floating-card-3,
body.lang-ar .floating-card-container.floating-card-3 {
  left: 2% !important;
  right: auto !important;
}

.floating-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #e6c200;
}

.floating-card p {
  font-size: 0.9rem;
  color: #334155;
  margin: 0;
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translateY(-30px) translateX(15px) rotate(5deg);
  }
  50% {
    transform: translateY(-50px) translateX(-15px) rotate(-5deg);
  }
  75% {
    transform: translateY(-30px) translateX(15px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 1;
  }
}

@keyframes testFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Buttons with enhanced animations */
.btn-primary {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff0000, #b91c1c);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.65);
  background: transparent;
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  border-color: #ff0000;
  color: #ff0000;
  background: rgba(255, 0, 0, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

/* Sections */
.section {
  padding: 4rem 0;
  position: relative;
  z-index: 25;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.section-header.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #e6c200;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.2s;
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e6c200;
  margin-bottom: 0.5rem;
}

.section-text {
  font-size: 1rem;
  color: #000000;
  max-width: 36rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.4s;
}

.section-text.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Section */
.stats-section {
  background: radial-gradient(circle at 20% 0%, rgba(255,0,0,0.12), transparent 60%);
  padding: 3rem 0;
  position: relative;
  z-index: 25;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148,163,184,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff0000;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.stat-label {
  font-size: 0.9rem;
  color: #000000;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.15), rgba(255,255,255,0.98));
  padding: 2rem 1.5rem;
  transition: all 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.service-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(255,0,0,0.6);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #e6c200;
}

.service-description {
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.service-link {
  color: #ff0000;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: #ff6666;
  text-decoration: underline;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
  background: radial-gradient(circle at 80% 100%, rgba(255,0,0,0.12), transparent 40%);
  position: relative;
  z-index: 25;
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 1.0);
  border: 1px solid rgba(148,163,184,0.6);
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.testimonial-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #000000;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  text-align: center;
}

.author-name {
  font-weight: 600;
  color: #ff0000;
  margin-bottom: 0.3rem;
}

.author-title {
  font-size: 0.9rem;
  color: #000000;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  position: relative;
  z-index: 25;
}

.cta-box {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255,0,0,0.25), rgba(255,255,255,1.0));
  border: 1px solid rgba(255,0,0,0.7);
  border-radius: 24px;
  padding: 3rem 2rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.cta-box.animate {
  opacity: 1;
  transform: translateY(0);
}

.cta-title {
  font-size: 2rem;
  color: #e6c200;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.1rem;
  color: #000000;
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Story Images Grid */
.story-images-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.story-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.8fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-form {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.45);
  padding: 1.8rem 1.5rem;
  background: rgba(255,255,255,0.96);
}

.form-row {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.form-row > div {
  flex: 1;
}

label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

input, select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(255,255,255,0.9);
  color: #000000;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-side {
  font-size: 0.85rem;
  color: #000000;
}

.contact-item {
  margin-bottom: 0.7rem;
}

.footer {
  border-top: 1px solid rgba(148,163,184,0.35);
  margin-top: 3rem;
  padding: 1rem 0 1.3rem;
  font-size: 0.8rem;
  color: #000000;
}

.footer a {
  color: #ff0000;
}

/* Language-specific visibility */
body:not(.lang-ar) .lang-ar {
  display: none !important;
}

body.lang-ar .lang-en {
  display: none !important;
}

/* Always show navigation and language toggle */
.nav-links,
.nav-links .lang-toggle,
.nav-links .lang-toggle button,
.mobile-menu-toggle {
  display: flex !important;
}

.nav-links .lang-toggle {
  display: inline-flex !important;
}

.nav-links .lang-toggle button {
  display: inline-block !important;
}

.mobile-menu-toggle {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.7rem;
  }
}

/* ========================================
   NEW PAGE STYLES
   ======================================== */

/* Page Hero */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,0.25);
}

.breadcrumb {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a {
  color: #e6c200;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.page-title {
  font-size: 3.2rem;
  line-height: 1.2;
  color: #e6c200;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  max-width: 42rem;
  line-height: 1.5;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Equipment Page */
.equipment-card {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.45);
  background: radial-gradient(circle at 0 0, rgba(148,163,184,0.12), rgba(255,255,255,0.96));
  padding: 1.5rem;
}

.equipment-image {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(148,163,184,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.equipment-image img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #0f172a;
}

.equipment-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff0000;
  border: 1px solid rgba(255,0,0,0.5);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.equipment-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.equipment-card p {
  font-size: 0.9rem;
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.equipment-specs {
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.spec-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.spec-item:last-child {
  margin-bottom: 0;
}

.spec-item strong {
  color: #000000;
  min-width: 80px;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.process-step {
  text-align: center;
  padding: 1.2rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.8);
}

.process-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff0000;
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.8rem;
  color: #000000;
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  padding: 2rem 0;
}

.cta-box {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255,0,0,0.15), rgba(255,255,255,0.98));
  border: 1px solid rgba(255,0,0,0.5);
  border-radius: 18px;
  padding: 2rem 1.5rem;
}

.cta-box h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.cta-box p {
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 1.2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Services Page */
.partner-section {
  background: radial-gradient(circle at 20% 0%, rgba(255,0,0,0.08), transparent 60%);
  padding: 2rem 0;
}

.partner-box {
  border-radius: 18px;
  border: 1px solid rgba(255,0,0,0.45);
  padding: 1.8rem 1.5rem;
  background: rgba(255,255,255,0.96);
}

.partner-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e6c200;
  border: 1px solid rgba(255,215,0,0.5);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.partner-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.partner-box p {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.partner-box h2 {
  color: #e6c200;
}

.partner-stats {
  display: flex;
  justify-content: space-around;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ff0000;
  line-height: 1;
  transition: all 0.3s ease;
}

.stat-label {
  font-size: 0.8rem;
  color: #000000;
  margin-top: 0.3rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .services-list {
    grid-template-columns: 1fr;
  }
}

.service-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.4);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.9));
  padding: 1.6rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: rgba(148,163,184, 0.6);
}

@media (max-width: 768px) {
  .service-item {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .image-placeholder {
    display: none;
  }
}

.service-icon {
  font-size: 2rem;
  text-align: center;
}

.service-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #e60000;
  font-weight: 600;
}

.service-content p {
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(230, 194, 0, 0.15);
  border: 1px solid rgba(230, 194, 0, 0.4);
  color: #333333;
  font-weight: 500;
}

.coverage-box {
  text-align: center;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.9);
}

.coverage-box h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.coverage-box p {
  font-size: 0.92rem;
  color: #000000;
  margin-bottom: 1.2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.coverage-regions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.region {
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(255,0,0,0.1);
  border: 1px solid rgba(255,0,0,0.3);
  font-size: 0.85rem;
}

/* Procurement Page */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.value-card {
  text-align: center;
  padding: 1.3rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.9);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.85rem;
  color: #000000;
  line-height: 1.5;
}

.procurement-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.category-card {
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.9);
  padding: 1.2rem 1.1rem;
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: #e6c200;
}

.category-card ul {
  list-style: none;
  font-size: 0.82rem;
  color: #000000;
  line-height: 1.7;
}

.category-card li {
  padding-left: 1rem;
  position: relative;
}

.category-card li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #34d399;
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 50rem;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.2rem;
}

.timeline-marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0000, #b91c1c);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.timeline-content p {
  font-size: 0.88rem;
  color: #000000;
  line-height: 1.6;
}

.why-choose {
  text-align: center;
}

.why-choose h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.reason-item {
  text-align: left;
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.9);
}

.reason-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #ff0000;
}

.reason-item p {
  font-size: 0.85rem;
  color: #000000;
  line-height: 1.6;
}

/* About Page */
.story-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: start;
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
}

.story-content h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.story-content p {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.mvv-card {
  text-align: center;
  padding: 1.5rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.4);
  background: radial-gradient(circle at 50% 0%, rgba(255,0,0,0.1), rgba(255,255,255,0.95));
}

.mvv-icon {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
}

.mvv-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.mvv-card p {
  font-size: 0.9rem;
  color: #000000;
  line-height: 1.7;
  text-align: left;
}

.mvv-card ul {
  list-style: none;
  text-align: left;
  font-size: 0.88rem;
  color: #000000;
  line-height: 1.8;
}

.mvv-card li {
  margin-bottom: 0.4rem;
}

.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.diff-card {
  padding: 1.3rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.9);
}

.diff-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.diff-card p {
  font-size: 0.88rem;
  color: #000000;
  line-height: 1.65;
}

.leader-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.leader-image {
  position: sticky;
  top: 100px;
}

.leader-bio h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.leader-title {
  font-size: 0.9rem;
  color: #000000;
  margin-bottom: 1rem;
}

.leader-bio p {
  font-size: 0.93rem;
  color: #000000;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.vision-section {
  background: radial-gradient(circle at 50% 0%, rgba(255,0,0,0.1), transparent 70%);
  padding: 2.5rem 0;
}

.vision-box {
  text-align: center;
  max-width: 55rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(148,163,184,0.4);
}

.vision-box h2 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.vision-box > p {
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.vision-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.vision-item {
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,0,0,0.4);
  background: rgba(255,255,255,0.9);
}

.vision-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #e6c200;
}

.vision-item p {
  font-size: 0.85rem;
  color: #000000;
  line-height: 1.6;
}

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: start;
}

.contact-form-wrapper h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #e6c200;
}

.contact-form-wrapper > p {
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 1.5rem;
}

.contact-form small {
  display: block;
  font-size: 0.75rem;
  color: #000000;
  margin-top: 0.3rem;
}

.contact-info-sidebar {
  position: sticky;
  top: 100px;
}

.info-section {
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,0.25);
}

.info-section:last-child {
  border-bottom: none;
}

.info-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.office-card {
  margin-bottom: 1.2rem;
  padding: 1.2rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.office-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.office-card p {
  font-size: 0.85rem;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  padding: 0.6rem 0;
}

.detail-icon {
  font-size: 1.3rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  color: #000000;
  margin-bottom: 0.2rem;
}

.contact-detail a {
  color: #ff0000;
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.quick-links {
  list-style: none;
  font-size: 0.9rem;
  padding: 0;
}

.quick-links li {
  margin-bottom: 0.7rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(148,163,184,0.15);
  transition: background-color 0.3s ease;
}

.quick-links li:last-child {
  border-bottom: none;
}

.quick-links li:hover {
  background-color: rgba(255,255,255,0.2);
  border-radius: 6px;
  padding-left: 0.5rem;
}

.quick-links a {
  color: #000000;
  text-decoration: none;
}

.quick-links a:hover {
  color: #ff0000;
}

.audience-section {
  text-align: center;
}

.audience-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.audience-card {
  text-align: left;
  padding: 1.3rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.9);
}

.audience-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: #e6c200;
}

.audience-card p {
  font-size: 0.88rem;
  color: #000000;
  line-height: 1.65;
}

.map-section {
  padding: 2rem 0;
}

.map-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.9);
}

#map {
  width: 100%;
  height: 450px;
}

.map-info {
  padding: 1rem 1.5rem;
  background: rgba(15,23,42,0.95);
  border-top: 1px solid rgba(148,163,184,0.25);
}

.map-info p {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin: 0;
}

.map-info strong {
  color: #34d399;
}

.map-placeholder {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.9);
  padding: 3rem 2rem;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-placeholder p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 1rem;
}

/* Image Placeholders */
.image-placeholder {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.loaded {
  opacity: 1;
}

/* Footer Updates */
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive Updates */
@media (max-width: 1024px) {
  .grid-2,
  .service-item,
  .story-section,
  .leader-profile,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .value-grid,
  .process-grid,
  .coverage-regions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .procurement-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .leader-image {
    position: static;
  }
  
  .contact-info-sidebar {
    position: static;
  }
  
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  /* Mobile Menu */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px;
  }
  
  body.lang-ar .mobile-menu-toggle {
    right: auto;
    left: 20px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
  }
  
  body.lang-ar .nav-links {
    right: auto;
    left: -100%;
    transition: left 0.3s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  body.lang-ar .nav-links.active {
    left: 0;
    right: auto;
  }
  
  .nav-links a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148,163,184,0.2);
    font-size: 1.1rem;
    color: #000000;
    display: block !important;
    opacity: 1 !important;
  }
  
  .nav-links a:hover {
    color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
  }
  
  .lang-toggle {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
    display: flex !important;
    border: 1px solid rgba(148,163,184,0.5);
  }
  
  .lang-toggle button {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: #000000;
    display: inline-block !important;
  }
  
  /* Container adjustments */
  .container {
    padding: 0 1rem;
  }
  
  /* Hero adjustments */
  .hero {
    padding: 2rem 0 1.5rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  /* Section adjustments */
  .section {
    padding: 2rem 0 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-title {
    font-size: 1.9rem;
  }
  
  .page-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.7rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-animated {
    min-height: auto;
    padding: 2rem 0;
  }
  
  /* Specific equipment page adjustments */
  .page-hero {
    padding: 2rem 0 1.5rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  .mvv-grid,
  .differentiators-grid,
  .reasons-grid,
  .vision-items,
  .audience-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .value-grid,
  .process-grid,
  .coverage-regions,
  .procurement-categories {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .partner-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  /* Service items stack vertically */
  .service-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
    text-align: left;
  }
  
  /* Forms */
  .form-row {
    flex-direction: column;
    gap: 0.7rem;
  }
  
  /* Buttons full width on mobile */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary,
  .btn-outline {
    width: 100%;
    padding: 0.8rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }
  
  /* Stats grid */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Equipment cards */
  .equipment-card {
    padding: 1.2rem;
  }
  
  /* Process cards */
  .process-step {
    padding: 1rem 0.8rem;
  }
  
  /* Compact spacing */
  .card {
    padding: 1rem 0.9rem;
  }
  
  .mvv-card,
  .diff-card,
  .value-card {
    padding: 1.2rem 1rem;
  }
  
  /* Map responsive */
  #map {
    height: 350px;
  }
  
  .map-info {
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle,
  .page-subtitle {
    font-size: 1rem;
  }
  
  .logo-mark {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  
  .navbar {
    padding: 0.7rem 0;
  }
}

/* Mobile navigation RTL adjustments */
@media (max-width: 768px) {
  body.lang-ar .mobile-menu-toggle {
    margin-left: auto;
    margin-right: 0;
  }
  
  body.lang-ar .nav-links {
    right: auto;
    left: -100%;
    text-align: right;
  }
  
  body.lang-ar .nav-links.active {
    left: 0;
    right: auto;
  }
}

/* Additional mobile RTL adjustments for index page */
@media (max-width: 768px) {
  body.lang-ar .hero-container {
    grid-template-columns: 1fr !important;
    text-align: right;
  }
  
  body.lang-ar .hero-visual {
    display: none !important;
  }
  
  body.lang-ar .hero-text-blur {
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  /* Adjust text alignment for Arabic content */
  body.lang-ar .hero-content > * {
    text-align: right !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-outline,
  .nav-links a,
  .card,
  button {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Larger touch targets */
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .btn-primary,
  .btn-outline {
    min-height: 48px;
  }
  
  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  header,
  .mobile-menu-toggle,
  .lang-toggle,
  .cta-section,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    max-width: 100%;
  }
}

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

/* Form Submission Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: #0f172a;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.45);
  max-width: 500px;
  margin: 100px auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #f4f5f7;
}

.modal-message {
  font-size: 1rem;
  color: #cbd5f5;
  margin: 1rem 0;
  line-height: 1.6;
}

.modal-success {
  color: #34d399;
}

.modal-error {
  color: #f87171;
}

.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.modal-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(148,163,184,0.65);
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
}

.modal-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary.modal-btn {
  background: linear-gradient(135deg, #ff0000, #b91c1c);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-primary.modal-btn:hover {
  background: linear-gradient(135deg, #ff3333, #d92c2c);
}

.btn-secondary.modal-btn {
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.65);
  color: #e6c200;
}

.btn-secondary.modal-btn:hover {
  background: rgba(230, 194, 0, 0.1);
  border-color: #e6c200;
  color: #e6c200;
}

/* Performance: GPU acceleration for animations */
.mobile-menu-toggle span,
.nav-links,
.btn-primary,
.btn-outline {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
