/* BASE STYLES */
:root {
  --primary-color: #D94217;
  --secondary-color: #2c2c2c;
  --dark-color: #1e1e1e;
  --light-color: #fff;
  --text-color: #222;
  --text-light: #aaa;
  --gray-color: #ccc;
  --section-padding: 80px 20px; /* تم تصليح الفاصلة المنقوطة هنا */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body { 
  margin: 0; 
  font-family: 'Segoe UI', Arial, sans-serif; 
  background: #fff; 
  color: var(--text-color);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: var(--section-padding);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--light-color);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 36px;
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-label {
  display: inline-block;
  font-size: 44px;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff; /* تم تحويلها لخلفية بيضاء بدلاً من transparent لضمان وضوح اللوجو */
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* إشراقة خفيفة تفصل الهيدر */
}

.logo img { 
  height: 50px; /* تم تصليح الحجم من 40vh الكارثية إلى حجم طبيعي بالبكسل */
  width: auto; 
}

nav ul { 
  list-style: none; 
  display: flex; 
  gap: 25px; 
  align-items: center; 
  margin: 0; 
  padding: 0; 
}

nav a { 
  text-decoration: none; 
  color: var(--text-color); 
  font-size: 15px; 
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover { 
  color: var(--primary-color); 
}

.auth-buttons { 
  display: flex; 
  gap: 10px; 
}

.dropdown { 
  position: relative; 
  display: inline-block; 
}

.dropdown-icon { 
  cursor: pointer; 
  font-size: 14px; 
  color: var(--text-color); 
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-icon {
  color: var(--primary-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--light-color);
  min-width: 160px;
  top: 100%;
  left: 0;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  z-index: 10;
  border-radius: 8px;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.dropdown-content a:hover { 
  background-color: #f5f5f5; 
  color: var(--primary-color); 
  padding-left: 20px;
}

.dropdown:hover .dropdown-content { 
  display: block; 
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.3s ease;
  background: none;
  border: none;
}

.menu-toggle:hover {
  color: var(--primary-color);
}

/* HERO SECTION - التصميم الجديد المحكم */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('main.logistis2.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center; /* توسيط أفقي للكلام */
  align-items: center;     /* توسيط عمودي للكلام */
  text-align: center;
  overflow: hidden;
  position: relative;
  padding: 0;
  margin: 0;
}

/* حاوية النص وتأثير الحركة الجاهز للـ JS */
.hero-text-container {
  opacity: 0;
  transform: translateY(60px); /* بتبدأ ساقطة وتصعد بسلاسة */
  transition: transform 1.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.3s ease;
  padding: 0 20px;
  width: 100%;
  z-index: 2;
}

/* كلاس التفعيل الخاص بالـ JavaScript */
.hero-text-container.slide-up {
  opacity: 1;
  transform: translateY(0);
}

/* تنسيق العنوان الكبير والظل (Sado) باللون الأساسي */
.main-title {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  /* تأثير الظل والتوهج باللون البرتقالي الأساسي */
  text-shadow: 0 0 15px rgba(217, 66, 23, 0.6), 0 0 30px rgba(217, 66, 23, 0.4);
}

/* تمييز وتوهج كلمة BGL */
.highlight {
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(217, 66, 23, 0.9), 0 0 40px rgba(217, 66, 23, 0.6);
}

/* الجملة الأصغر تحت العنوان */
.sub-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 22px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(217, 66, 23, 0.5);
}
/* SERVICES SECTION */
.services {
  background: var(--secondary-color);
  color: var(--light-color);
  text-align: center;
  padding: 100px 20px; /* تم حذف الـ margin-top السالب واعتماد padding نظيف */
}

.services .section-title {
  color: var(--light-color);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #3a3a3a;
  border-radius: 12px;
  padding: 40px 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-icon {
  background: var(--primary-color);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--light-color);
}

.service-card p {
  font-size: 15px;
  color: var(--gray-color);
}

/* WHY CHOOSE US SECTION */
.why-choose-us {
  background: #f9f9f9;
}

.why-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.why-text {
  flex: 1;
  min-width: 300px;
}

.why-text h2 {
  font-size: 36px;
  color: var(--text-color);
}

.why-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.why-text ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.why-text ul li {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

.why-text ul li i {
  color: var(--primary-color);
  margin-right: 10px;
  margin-top: 3px;
}

.why-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
  position: relative;
}

.why-image img {
  border-radius: 12px;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
}

/* CTA SECTION */
.cta {
  background: var(--primary-color);
  color: var(--light-color);
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta .btn-outline {
  color: var(--light-color);
  border-color: var(--light-color);
}

.cta .btn-outline:hover {
  background: var(--light-color);
  color: var(--primary-color);
}

/* FOOTER */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 80px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-logo p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--light-color);
  background-color: #333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer h3 {
  color: var(--light-color);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 15px;
}

.footer ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 15px;
}

.footer-contact ul li i {
  color: var(--primary-color);
  margin-top: 3px;
}

.footer-bottom {
  background-color: #111;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: var(--primary-color);
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: var(--light-color);
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 999;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
  }

  nav ul li:hover {
    background: #f9f9f9;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
    width: 100%;
    background: #f5f5f5;
  }

  .dropdown:hover .dropdown-content,
  .dropdown-content.show {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .auth-buttons {
    display: none;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .why-content {
    flex-direction: column;
    text-align: center;
  }

  .why-text ul li {
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }

  .footer ul li a:hover {
    padding-left: 0;
  }
} /* تم قفل وترتيب الـ Media Query الأولى بالكامل وبشكل صحيح هنا */

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .footer-container {
    gap: 30px;
  }
  
  .legal-links {
    flex-direction: column;
    gap: 10px;
  }
}