/* General Styles - التنسيقات العامة */
:root {
    --primary-dark-color: #1E2B38; /* أزرق داكن جداً / رمادي فحمي لـ إسناد */
    --accent-orange-color: #E67E22; /* برتقالي حيوي كـ لون تمييز */
    --text-color: #333;
    --light-text-color: #666;
    --background-light: #F8F8F8; /* خلفية فاتحة جداً */
    --background-dark: #ECECEC; /* خلفية رمادية فاتحة */
    --white: #fff;
    --header-height: 80px; /* ارتفاع ثابت للهيدر */
}

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

body {
    font-family: 'Cairo', sans-serif; /* الخط العربي الأساسي */
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    direction: rtl; /* اتجاه النص من اليمين لليسار */
    text-align: right; /* محاذاة النص لليمين */
    overflow-x: hidden; /* لمنع ظهور شريط التمرير الأفقي */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography - الخطوط والعناوين */
h1, h2, h3, h4 {
    color: var(--primary-dark-color);
    margin-bottom: 15px;
    font-weight: 700; /* سمك الخط للعناوين */
}

h1 {
    font-size: 2.8em;
    font-family: 'Cairo', sans-serif;
}

h2 {
    font-size: 3.5em;
    font-family: 'Cairo', sans-serif;
}

h3 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
}
h3::after { /* خط برتقالي تحت العناوين الرئيسية */
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-orange-color);
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    font-size: 1.1em;
    font-family: 'Cairo', sans-serif;
}

.section-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--light-text-color);
}

/* Buttons - الأزرار */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease; /* انتقال سلس لكل الخصائص */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* ظل خفيف */
    font-family: 'Cairo', sans-serif;
}

.btn.primary-btn {
    background-color: var(--accent-orange-color);
    color: var(--white);
    border: 2px solid var(--accent-orange-color);
}

.btn.primary-btn:hover {
    background-color: transparent;
    color: var(--accent-orange-color);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn.secondary-btn {
    background-color: transparent;
    color: var(--primary-dark-color);
    border: 2px solid var(--primary-dark-color);
}

.btn.secondary-btn:hover {
    background-color: var(--primary-dark-color);
    color: var(--white);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn.large-btn {
    padding: 18px 45px;
    font-size: 1.3em;
}

/* Download Button Specific Styles */
.btn.download-btn-small { /* زر أصغر لصفحات المنتجات */
    background-color: #FFD700; /* لون أصفر ذهبي */
    color: var(--primary-dark-color);
    border: 2px solid #FFD700;
    font-size: 0.9em;
    padding: 8px 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-flex; /* لجعل الأيقونة والنص متجاورين */
    align-items: center;
    gap: 8px; /* مسافة بين الأيقونة والنص */
    margin-top: 15px; /* مسافة من فوق البطاقة */
}

.btn.download-btn-small:hover {
    background-color: var(--primary-dark-color);
    color: #FFD700;
    border-color: var(--primary-dark-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.btn.download-btn-small i {
    font-size: 1em;
}


/* Header - شريط التنقل العلوي (تحسينات) */
.main-header {
    background-color: var(--white);
    padding: 18px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15); /* ظل أوضح */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-orange-color); /* خط برتقالي سفلي */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height); /* للحفاظ على ارتفاع ثابت */
}

.main-header .logo h1 {
    margin: 0;
    color: var(--primary-dark-color);
    font-size: 2.6em; /* حجم أكبر قليلاً */
    letter-spacing: 1.5px; /* تباعد الحروف */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1); /* ظل خفيف للشعار */
}
.main-header .logo a {
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex; /* يجعل العناصر أفقية دائمًا */
    align-items: center;
}

.main-nav ul li {
    margin-left: 35px; /* زيادة التباعد بين العناصر */
    position: relative; /* للقائمة المنسدلة */
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding: 5px 0;
    font-size: 1.1em; /* حجم خط أكبر قليلاً */
}

.main-nav ul li a::after { /* خط سفلي عند التحويم */
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--accent-orange-color);
    bottom: -5px;
    right: 0;
    transition: width 0.3s ease-out;
}

.main-nav ul li a:hover {
    color: var(--accent-orange-color);
    transform: translateY(-2px);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Dropdown Menu - القائمة المنسدلة للمنتجات */
.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    display: flex;
    align-items: center;
}
.dropdown .dropbtn i {
    margin-right: 8px; /* مسافة بين النص والسهم */
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none; /* مخفية افتراضياً */
    position: absolute;
    background-color: var(--white);
    min-width: 200px; /* عرض أكبر قليلاً */
    box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.2); /* ظل أقوى */
    z-index: 1;
    border-radius: 8px; /* حواف أكثر دائرية */
    right: 0; /* محاذاة لليمين بسبب dir:rtl */
    top: calc(100% + 10px); /* تظهر أسفل الزر مع مسافة */
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* تبدأ من الأسفل قليلاً */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border-top: 3px solid var(--accent-orange-color); /* خط برتقالي علوي */
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px; /* تباعد أكبر للروابط */
    text-decoration: none;
    display: block;
    text-align: right;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease, padding-right 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--background-light);
    color: var(--accent-orange-color);
    padding-right: 25px; /* تحريك بسيط عند التحويم */
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content { /* تظهر عند التحويم أو النقر على الهواتف */
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown:hover .dropbtn i,
.dropdown.active .dropbtn i {
    transform: rotate(180deg); /* تدوير السهم عند الفتح */
}

/* Mobile Menu Toggle - زر القائمة للهواتف (تم إزالته بالكامل) */
.menu-toggle {
    display: none !important; /* إخفاء زر الهامبرغر تماماً */
}


/* Hero Section - القسم الرئيسي مع الصور المتحركة */
.hero-section {
    position: relative;
    width: 100%;
    height: 700px; /* ارتفاع ثابت للقسم */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* انتقال سلس بين الصور */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide .overlay { /* طبقة شفافة فوق الصورة */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* تعتيم الصورة */
}

.hero-content {
    position: relative; /* لجعل المحتوى فوق الطبقة الشفافة */
    z-index: 2;
    max-width: 900px;
    padding: 0 25px;
}

.hero-content h2 {
    color: var(--white);
    font-size: 4.5em; /* تكبير العنوان */
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4); /* ظل أقوى للنص */
}

.hero-content p {
    font-size: 1.5em; /* تكبير النص */
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-cta .btn {
    margin: 0 15px;
    font-size: 1.1em;
}

.slider-nav { /* نقاط التنقل بين الصور */
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-nav .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-nav .dot.active,
.slider-nav .dot:hover {
    background-color: var(--accent-orange-color);
    transform: scale(1.2);
}


/* About Us Section - عن الشركة */
.about-section {
    padding: 90px 0;
    background-color: var(--background-light);
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap; /* للسماح بالعناصر بالانتقال لأسفل في الشاشات الصغيرة */
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: right;
}
.about-text p {
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--light-text-color);
    margin-bottom: 25px;
}
.about-text .btn {
    margin-top: 15px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}
.about-image img:hover {
    transform: scale(1.02);
}

/* Statistics Section - قسم الإحصائيات */
.statistics-section {
    padding: 80px 0;
    background-color: var(--primary-dark-color);
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.08); /* خلفية شفافة للبطاقة */
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-item .icon {
    font-size: 3.5em;
    color: var(--accent-orange-color);
    margin-bottom: 15px;
}

.stat-item .number {
    font-family: 'Poppins', sans-serif; /* خط Poppins للأرقام */
    font-size: 3.2em;
    font-weight: 600;
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1em;
    color: #ccc;
    margin: 0;
}


/* Page Title Section (for products.html and projects.html) */
.page-title-section {
    background-color: var(--primary-dark-color);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}
.page-title-section h2 {
    color: var(--accent-orange-color);
    font-size: 3.5em;
    margin-bottom: 15px;
}
.page-title-section p {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto;
    color: #eee;
}

/* Category Filter Tabs (for products.html & projects.html) */
.category-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* للسماح بالتبديل إلى صفوف متعددة على الشاشات الصغيرة */
    gap: 15px;
    margin-bottom: 50px;
    padding: 10px;
    background-color: var(--background-dark);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-tab {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--background-dark);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* لمنع الأزرار من الانكماش */
}

.filter-tab:hover {
    background-color: var(--background-light);
    color: var(--accent-orange-color);
    border-color: var(--accent-orange-color);
}

.filter-tab.active {
    background-color: var(--accent-orange-color);
    color: var(--white);
    border-color: var(--accent-orange-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* Products Grid Section (for products.html) */
.products-grid-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

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

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--background-dark);
    display: flex; /* لتحسين التخطيط الداخلي للبطاقة */
    flex-direction: column; /* لجعل المحتوى عموديًا */
    justify-content: space-between; /* لدفع الزر للأسفل */
}
.product-card .product-link { /* لجعل كل محتوى البطاقة قابل للنقر ما عدا الزر */
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1; /* للسماح له بالتمدد وملء المساحة المتاحة */
}

.product-card.hidden { /* لإخفاء البطاقة بتأثير */
    opacity: 0;
    transform: scale(0.95);
    height: 0; /* لعدم أخذ مساحة */
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease-out;
}

.product-card.show {
    opacity: 1;
    transform: scale(1);
    height: auto;
    padding: unset;
    margin: unset;
    transition: all 0.3s ease-in;
}


.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: right;
    flex-grow: 1; /* لملء المساحة المتاحة قبل الزر */
}

.product-info h4 {
    font-size: 1.5em;
    color: var(--primary-dark-color);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-bottom: 15px;
}
.product-info p strong {
    color: var(--primary-dark-color);
}

/* Product Detail Section (for product-detail.html) */
.product-detail-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.product-detail-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* للسماح بالعناصر بالانتقال لأسفل */
    align-items: flex-start; /* محاذاة العناصر للأعلى */
}

.product-detail-image {
    flex: 1;
    min-width: 350px;
    max-width: 50%; /* لمنع الصورة من أن تكون كبيرة جدًا */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info {
    flex: 1;
    min-width: 400px;
}

.product-detail-info h2 {
    font-size: 2.8em;
    color: var(--primary-dark-color);
    margin-bottom: 20px;
}
.product-detail-info p {
    font-size: 1.1em;
    color: var(--light-text-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

.product-features, .product-specs {
    background-color: var(--white);
    border: 1px solid var(--background-dark);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.product-features h4, .product-specs h4 {
    color: var(--accent-orange-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--background-dark);
    padding-bottom: 10px;
}

.product-features ul {
    list-style: none;
}
.product-features ul li {
    font-size: 1.05em;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.product-features ul li i {
    color: var(--accent-orange-color);
    font-size: 1.2em;
    margin-top: 3px;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}
.product-specs table td {
    padding: 12px 0;
    border-bottom: 1px dashed var(--background-dark);
    font-size: 1.05em;
    color: var(--light-text-color);
}
.product-specs table td strong {
    color: var(--primary-dark-color);
}
.product-specs table tr:last-child td {
    border-bottom: none;
}

.download-datasheet-btn {
    width: auto;
    padding: 15px 35px;
    font-size: 1.1em;
    margin-top: 20px;
}

/* Related Products Section */
.related-products {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid var(--background-dark);
}
.related-products h3 {
    text-align: center;
    margin-bottom: 40px;
}
/* Grid for related products will use .products-grid */


/* Projects Grid Section (NEW - for projects.html) */
.projects-grid-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* حجم أكبر للبطاقات */
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--background-dark);
    display: flex;
    flex-direction: column;
    height: 100%; /* لضمان تساوي ارتفاع البطاقات في الصف */
}

.project-card.hidden { /* لإخفاء البطاقة بتأثير */
    opacity: 0;
    transform: scale(0.95);
    height: 0; /* لعدم أخذ مساحة */
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease-out;
}

.project-card.show {
    opacity: 1;
    transform: scale(1);
    height: auto;
    padding: unset;
    margin: unset;
    transition: all 0.3s ease-in;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 280px; /* ارتفاع أكبر للصور */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
    text-align: right;
    flex-grow: 1; /* لملء المساحة المتاحة */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-info h4 {
    font-size: 1.6em; /* حجم أكبر للعنوان */
    color: var(--primary-dark-color);
    margin-bottom: 10px;
}

.project-info p {
    font-size: 1em;
    color: var(--light-text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-details-list {
    list-style: none;
    margin-bottom: 20px;
    padding-right: 0; /* التأكد من عدم وجود مسافة بادئة */
}

.project-details-list li {
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-details-list li i {
    color: var(--accent-orange-color);
    font-size: 1.1em;
}

.project-card .btn {
    margin-top: auto; /* يدفع الزر للأسفل */
    align-self: flex-start; /* يحاذي الزر لليمين في وضع RTL */
}


/* Footer - تذييل الصفحة */
.main-footer {
    background-color: #1a1a1a;
    color: #bbb;
    padding: 50px 0 20px; /* زيادة التباعد العلوي */
    font-size: 0.9em;
}

.main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    text-align: right;
}

.footer-col h4 {
    color: var(--accent-orange-color);
    font-size: 1.4em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after { /* خط برتقالي تحت عناوين الفوتر */
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-orange-color);
    bottom: 0;
    right: 0;
    border-radius: 2px;
}

.footer-col p, .footer-col ul li {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 1em;
}
.footer-col p i {
    margin-left: 10px;
    color: var(--accent-orange-color);
}

.footer-col ul {
    list-style: none;
}
.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}
.footer-col ul li a:hover {
    color: var(--accent-orange-color);
    transform: translateX(-5px); /* حركة بسيطة عند التحويم */
}

.footer-col.google-map iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.85em;
}

/* WhatsApp Floating Button - زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* يظهر على اليسار في اتجاه RTL */
    background-color: #25D366; /* لون واتساب الأخضر */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 2.5em;
    line-height: 60px; /* لتركيز الأيقونة عمودياً */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001; /* فوق كل شيء */
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #1DA851; /* لون أغمق عند التحويم */
}


/* Responsive adjustments - تعديلات للتجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
    /* لا توجد قائمة جانبية، القائمة الرئيسية تظل أفقية */
    .main-nav ul {
        margin-left: 15px; /* تقليل margin-left إذا كانت العناصر كثيرة */
    }
    .main-nav ul li {
        margin-left: 25px;
    }
    .main-header .logo h1 {
        font-size: 2.2em;
    }
    .main-nav ul li a {
        font-size: 0.95em;
    }
    .dropdown-content {
        min-width: 180px; /* تقليل عرض القائمة المنسدلة قليلاً */
    }
    .hero-section {
        height: 550px;
    }
    .hero-content h2 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .about-content {
        flex-direction: column; /* جعل النص والصورة فوق بعض */
    }
    .about-text, .about-image {
        min-width: unset; /* إزالة الحد الأدنى للعرض */
        width: 100%;
    }
    .about-image img {
        max-width: 80%; /* تصغير الصورة قليلاً */
    }
    .category-filter-tabs {
        gap: 10px; /* تقليل المسافة بين أزرار الفلترة */
        padding: 8px;
    }
    .filter-tab {
        padding: 10px 20px;
        font-size: 1em;
    }
    .product-detail-content {
        flex-direction: column;
        align-items: center;
    }
    .product-detail-image, .product-detail-info {
        max-width: 100%;
        min-width: unset;
        width: 95%; /* لتكون بعرض شبه كامل */
    }
    .download-datasheet-btn {
        width: 100%; /* جعل زر التحميل يأخذ عرض كامل */
    }
    .products-grid, .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* تقليل حجم البطاقات قليلاً */
    }
    .product-card img, .project-card img {
        height: 200px;
    }
    .product-info h4, .project-info h4 {
        font-size: 1.3em;
    }
    .product-info p, .project-info p {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.8em;
    }
    h3 {
        font-size: 2em;
    }
    .section-description {
        font-size: 1.1em;
    }
    .hero-section {
        height: 450px;
    }
    .hero-content h2 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .hero-cta .btn {
        display: block;
        margin: 15px auto;
    }
    .page-title-section h2 {
        font-size: 2.8em;
    }
    .page-title-section p {
        font-size: 1.1em;
    }
    .stats-grid {
        grid-template-columns: 1fr; /* عمود واحد للإحصائيات */
    }
    .stat-item .number {
        font-size: 2.5em;
    }
    .stat-item .icon {
        font-size: 2.5em;
    }
    .footer-col {
        text-align: center; /* محاذاة الفوتر للوسط */
    }
    .footer-col h4::after {
        right: 50%; /* تحريك الخط البرتقالي للوسط */
        transform: translateX(50%);
    }
    .footer-col ul li a {
        padding: 3px 0;
    }
    .footer-col ul li a:hover {
        transform: none; /* إلغاء حركة الـ translateX */
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 2em;
        line-height: 50px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .main-header .logo h1 {
        font-size: 2em;
    }
    .main-nav ul li {
        margin-left: 10px; /* تقليل المسافة بين عناصر القائمة */
    }
    .main-nav ul li a {
        font-size: 0.85em;
    }
    .hero-section {
        height: 350px;
    }
    .hero-content h2 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .category-filter-tabs {
        flex-direction: column; /* جعل الأزرار عمودية */
        gap: 8px;
    }
    .filter-tab {
        width: 100%; /* جعل الأزرار تأخذ عرض 100% */
    }
    .stat-item .number {
        font-size: 2.5em;
    }
    .stat-item .icon {
        font-size: 2.5em;
    }
}

