/* =============================
   🌟 Line Ex Logistics - Modern Style
   الإصدار النهائي المصحح (لأحجام الموبايل)
   ============================= */

:root {
  /* الألوان الجديدة: أسود وبرتقالي */
  --primary-color: #1a1a1a;
  --secondary-color: #333333;
  --accent-color: #fe560b;
  --light-gray: #f8f9fa;
  --text-color: #222222;
  --white-color: #fff;
}

/* =============================
   1. General & Typography
   ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Cairo', sans-serif;
  color: var(--text-color);
  background: var(--white-color);
  scroll-behavior: smooth;
  direction: rtl;
  /* الافتراضي هو العربية */
}

h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 20px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; } /* حجم افتراضي لـ h4 */

/* تنسيق العنوان الفرعي */
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #777;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 70px 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* =============================
   2. Top Bar
   ============================= */
.top-bar {
  background-color: var(--primary-color);
  color: #eee;
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar a {
  color: #eee;
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--white-color);
}

.top-bar .social-icons a {
  margin: 0 8px;
  font-size: 1rem;
}

/* =============================
   3. Navbar (Modern Transparent)
   ============================= */
.navbar-custom {
  background: transparent;
  transition: all 0.4s ease;
  top: 44px;
  /* مساحة للـ Top Bar */
}

.navbar-custom.navbar-scrolled {
  background: #fff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  top: 0;
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.navbar-custom.navbar-scrolled .nav-link,
.navbar-custom.navbar-scrolled .navbar-brand {
  color: var(--primary-color) !important;
  text-shadow: none;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--accent-color) !important;
}

.lang-switch-bootstrap {
  font-weight: 700;
  border: 1px solid var(--white-color);
  color: var(--white-color) !important;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.navbar-custom.navbar-scrolled .lang-switch-bootstrap {
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color);
}

.lang-switch-bootstrap:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color) !important;
}

.navbar-btn {
  padding: 8px 12px;
  font-size: 0.9rem;
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
}

.navbar-btn:hover {
  background: #fe560b;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom.navbar-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-controls-container {
  display: flex;
  align-items: center;
}

/* =============================
   4. Hero Section
   ============================= */
.hero {
  background: linear-gradient(rgba(26, 26, 26, 0.75), rgba(26, 26, 26, 0.85)), url('https://images.unsplash.com/photo-1614713568367-c65ab06cb592?fit=crop&w=1920&q=80') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 160px 20px 100px;
  animation: fadeInHero 1.5s ease-in-out;
}

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

.hero .hero-subtitle {
  font-size: 2.8rem; /* حجم كبير لاسم الشركة */
  font-weight: 700;
  color: #fff; /* لون أبيض */
  margin-bottom: 15px;
}

.hero h4 {
  font-size: 2.2rem; /* حجم أصغر للوصف */
  font-weight: 600;
  color: var(--accent-color); /* لون برتقالي مميز */
  margin-bottom: 20px;
  text-shadow: none; /* إزالة الظل لجعله أوضح */
}

.hero p {
  font-size: 1.2rem;
  color: #eee;
  margin-bottom: 35px;
}

.hero .btn-primary {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(252, 163, 17, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0); }
}

/* =============================
   5. Services & Ports (Cards)
   ============================= */
.services {
  background: var(--light-gray);
}

.services-grid,
.ports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card,
.port-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.service-card:hover,
.port-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon,
.port-icon {
  font-size: 55px;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon,
.port-card:hover .port-icon {
  transform: scale(1.1);
  color: var(--accent-color);
}

.port-icon {
  color: var(--secondary-color);
}

/* =============================
   6. About Section
   ============================= */
.about {
  background: #fff;
}

.about .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-content,
.about-image {
  flex: 1 1 45%;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-content ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.about-content li {
  position: relative;
  padding-right: 30px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.about-content li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 4px;
  color: var(--accent-color);
}

/* =============================
   7. CTA (Call to Action)
   ============================= */
.cta {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  color: #fff;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.2rem;
  color: #eee;
  margin-bottom: 30px;
}

.cta .btn-light {
  font-weight: 700;
  padding: 12px 28px;
}

.cta .btn-light:hover {
  background: #fff;
  color: var(--primary-color);
  transform: scale(1.05);
}

/* =============================
   8. Footer
   ============================= */
footer {
  background: var(--primary-color);
  color: #ccc;
  text-align: center;
  padding: 40px 0;
}

footer .social-icons {
  margin-bottom: 20px;
}

footer .social-icons a {
  color: #fff;
  margin: 0 12px;
  font-size: 1.3rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

footer p {
  font-size: 0.9rem;
  color: #aaa;
}

/* =============================
   9. Scroll To Top Button
   ============================= */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#scrollTopBtn:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* =============================
   10. LTR Styles (English)
   ============================= */
body:lang(en) {
  direction: ltr;
  text-align: left;
}

body:lang(en) .top-bar a {
  margin-right: 0;
  margin-left: 20px;
}

body:lang(en) .top-bar .social-icons a {
  margin: 0 8px;
}

body:lang(en) .service-card,
body:lang(en) .port-card {
  text-align: center;
}

body:lang(en) .about-content li {
  padding-right: 0;
  padding-left: 30px;
}

body:lang(en) .about-content li::before {
  right: auto;
  left: 0;
}

/* =============================
   11. Responsive (Mobile)
   ============================= */
@media (max-width: 991.98px) {
  .top-bar {
    display: none;
  }

  .navbar-custom {
    top: 0;
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  }

  .navbar-custom .nav-link,
  .navbar-custom .navbar-brand {
    color: var(--primary-color) !important;
    text-shadow: none;
  }

  .navbar-custom .nav-link:hover,
  .navbar-custom .nav-link.active {
    color: var(--accent-color) !important;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .navbar-collapse {
    background: #fff;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
  }

  .navbar-controls-container {
    flex-direction: column;
    width: 100%;
    align-items: stretch !important;
  }

  .lang-switch-bootstrap {
    margin: 10px 0 5px 0 !important;
    text-align: center;
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
  }

  .navbar-btn {
    width: 100%;
    margin: 5px 0 10px 0;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  /* === تم تصغير الخطوط هنا === */
  .hero .hero-subtitle {
    font-size: 2rem; /* تصغير حجم اسم الشركة */
  }

  .hero h4 {
    font-size: 1.5rem; /* تصغير حجم الوصف */
  }
  /* === نهاية التعديل === */

  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .about .container {
    flex-direction: column;
    text-align: center;
  }

  body:lang(en) .about-content li,
  body:lang(ar) .about-content li {
    text-align: right;
  }

  body:lang(en) .about-content li {
    text-align: left;
  }

  .services-grid,
  .ports-grid {
    grid-template-columns: 1fr;
    /* كرت واحد في كل سطر */
  }
  
  /* === تم تصغير الخطوط أكثر للموبايل الصغير === */
  .hero .hero-subtitle {
    font-size: 1.8rem; /* تصغير إضافي */
    line-height: 1.4;
  }

  .hero h4 {
    font-size: 1.3rem; /* تصغير إضافي */
    line-height: 1.4;
  }
  /* === نهاية التعديل === */
}
/* =============================
   12. Static Contact Buttons (Right Aligned)
   ============================= */
.static-contact-buttons {
  position: fixed;
  right: 25px;
  bottom: 85px; 
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.static-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.static-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
  background-color: #25D366;
}

.call-btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .static-contact-buttons {
    right: 20px;
    bottom: 80px; 
    gap: 12px;
  }
  .static-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  
  #scrollTopBtn {
    right: 20px;
    bottom: 20px;
  }
}

/* تم حذف القوس الإضافي المكرر من هنا */
/* =============================
   13. قسم اتصل بنا (الجديد)
   ============================= */
.contact-section {
    background: var(--light-gray);
    /* استخدام نفس خلفية قسم الخدمات */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.contact-info {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.contact-info h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* خط برتقالي تحت العنوان */
.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* الافتراضي عربي */
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: start;
    font-size: 1.05rem;
    margin-bottom: 22px;
    line-height: 1.7;
}

.contact-info li i {
    font-size: 1.4rem;
    color: var(--accent-color);
    width: 25px;
    /* عرض ثابت لترتيب الأيقونات */
    margin-left: 15px;
    /* هامش لليمين (عربي) */
    margin-top: 4px;
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =============================
   14. تعديلات قسم اتصل بنا (إنجليزي ومتجاوب)
   ============================= */

/* تعديل للغة الإنجليزية */
body:lang(en) .contact-info h3::after {
    right: auto;
    left: 0;
}

body:lang(en) .contact-info li i {
    margin-left: 0;
    margin-right: 15px;
}

/* تعديل للموبايل */
@media (max-width: 991.98px) {
    .contact-grid {
        grid-template-columns: 1fr;
        /* عمود واحد في الموبايل */
        gap: 30px;
    }

    .contact-map iframe {
        height: 300px;
        /* تقليل ارتفاع الخريطة */
    }
}