:root {
    --primary-color: #d1498b;
    --secondary-color: #f09564;
    --gradient-color: linear-gradient(135deg, #d1498b 0%, #f09564 100%);
    --gradient-transparent: linear-gradient(135deg, rgba(209, 73, 139, 0.85) 0%, rgba(240, 149, 100, 0.85) 100%);
    --text-dark: #333333;
    --light-bg: #f9f9f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #ffffff; color: var(--text-dark); line-height: 1.6; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

.navbar { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 5%; 
    /* تطبيق التدرج اللوني المطابق للصورة على الهيدر */
    background: linear-gradient(to right, #d1498b, #f09564); 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; 
}

.brand-logo { max-height: 60px; width: auto; border-radius: 8px; }
.logo h1 { display: none; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }

/* تحويل نصوص الروابط للون الأبيض لتناسب الخلفية الملونة */
.nav-links a, .lang-switcher a { text-decoration: none; color: #ffffff; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover, .lang-switcher a:hover { color: rgba(255, 255, 255, 0.7); }
.lang-switcher { display: flex; align-items: center; gap: 15px; }

/* تحديث زر الرئيسية ليكون بإطار أبيض */
.lang-switcher .home-btn { 
    border: 1.5px solid #ffffff; 
    color: #ffffff !important; 
    padding: 6px 18px; 
    border-radius: 30px; 
    font-weight: bold;
    transition: 0.3s;
}

.lang-switcher .home-btn:hover { 
    background: #ffffff; 
    color: var(--primary-color) !important; 
}

/* تنسيق الدائرة البيضاء الخارجية لأزرار التواصل الاجتماعي */
.social-icons {
    display: flex;
    gap: 35px; 
    align-items: center;
    margin-top: 10px;
}

.social-icons a {
    transition: transform 0.3s, filter 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 75px !important; /* إجبار الدائرة على هذا العرض */
    height: 75px !important; /* إجبار الدائرة على هذا الطول */
    background-color: #ffffff; 
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* استهداف الأيقونة (الرمز) نفسه لتكبيره بشكل مباشر */
.social-icons a i {
    font-size: 45px !important; /* إجبار الرمز على الحجم الكبير */
}

/* الألوان الأصلية لكل أيقونة */
.social-icons .icon-linkedin { color: #0A66C2 !important; }
.social-icons .icon-facebook { color: #1877F2 !important; }
.social-icons .icon-x { color: #000000 !important; }

/* تدرج انستجرام الأصلي */
.social-icons .icon-instagram i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-icons a:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.main-hero { 
    height: 80vh; width: 100%;
    background-color: #2b2b2b; 
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('../images/hero-bg.jpg'); 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center;
}

.hero-content { color: #ffffff; max-width: 800px; padding: 20px; margin: 0 auto; width: 100%; }
.hero-content h2 { font-size: 50px; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 20px; margin-bottom: 30px; opacity: 0.9; }

.btn-gradient { 
    background: var(--gradient-color); color: #fff; padding: 15px 35px; 
    text-decoration: none; font-weight: bold; border-radius: 30px; display: inline-block; 
    transition: transform 0.3s, box-shadow 0.3s; border: none;
}
.btn-gradient:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(209, 73, 139, 0.3); color: #fff; }

.business-sectors { padding: 80px 0; background-color: var(--light-bg); }
.section-title { text-align: center; font-size: 36px; color: var(--text-dark); margin-bottom: 50px; position: relative; }
.section-title::after { 
    content: ''; display: block; width: 60px; height: 3px; 
    background: var(--gradient-color); margin: 15px auto 0; 
}

.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.sector-box { 
    position: relative; height: 400px; border-radius: 12px; overflow: hidden; 
    background-color: #ccc; background-size: cover; background-position: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s;
}
.sector-box:hover { transform: translateY(-10px); }

.sector-overlay { 
    position: absolute; bottom: 0; left: 0; right: 0; height: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); 
    display: flex; flex-direction: column; justify-content: flex-end; 
    padding: 30px; color: #fff; transition: background 0.4s;
}
.sector-box:hover .sector-overlay { background: var(--gradient-transparent); }

.sector-overlay h3 { font-size: 28px; margin-bottom: 10px; }
.sector-desc { font-size: 15px; margin-bottom: 20px; opacity: 0; max-height: 0; overflow: hidden; transition: all 0.4s; }
.sector-box:hover .sector-desc { opacity: 1; max-height: 100px; }

.btn-outline { 
    border: 2px solid #fff; color: #fff; padding: 10px 20px; 
    text-decoration: none; font-weight: bold; border-radius: 30px; align-self: flex-start; transition: 0.3s;
}
.btn-outline:hover { background: #fff; color: var(--primary-color); }

.about-snippet { padding: 80px 0; background: #fff; text-align: center; }
.about-text { max-width: 800px; margin: 0 auto; font-size: 18px; line-height: 1.8; color: #555; }
footer { background-color: #1a1a1a; color: #fff; text-align: center; padding: 30px 20px; }

/* 7. القوائم المنسدلة (المنتجات واتصل بنا) */
.contact-menu, .product-menu { 
    position: relative; 
    display: inline-block; 
}

.contact-dropdown, .product-dropdown {
    display: none; 
    position: absolute; 
    background-color: #ffffff;
    min-width: 260px; 
    box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
    z-index: 1001; 
    border-radius: 8px; 
    overflow: hidden;
    top: 100%; 
    border-top: 3px solid var(--primary-color);
}

.contact-menu:hover .contact-dropdown, .product-menu:hover .product-dropdown { 
    display: flex; 
    flex-direction: column; 
    animation: fadeIn 0.3s ease; 
}

.contact-dropdown a, .product-dropdown a {
    color: var(--text-dark) !important; 
    padding: 15px 20px !important;
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    font-size: 15px; 
    font-family: sans-serif; 
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s, padding 0.3s; 
    width: 100%; 
    box-sizing: border-box;
}

/* تنسيق خاص بقائمة اتصل بنا (لترك مسافة بين الأيقونة والنص) */
.contact-dropdown a {
    gap: 15px;
}

/* تنسيق خاص بقائمة المنتجات (لجعل السهم في الجهة المعاكسة للنص) */
.product-dropdown a {
    justify-content: space-between;
    font-weight: 600;
}

.contact-dropdown a:last-child, .product-dropdown a:last-child { 
    border-bottom: none; 
}

.contact-dropdown a:hover, .product-dropdown a:hover { 
    background-color: var(--light-bg); 
    color: var(--primary-color) !important; 
}

/* ضبط الاتجاه لفتح القائمة لليمين أو اليسار حسب اللغة */
html[dir="rtl"] .contact-dropdown, html[dir="rtl"] .product-dropdown { right: 0; left: auto; }
html[dir="ltr"] .contact-dropdown, html[dir="ltr"] .product-dropdown { left: 0; right: auto; }

/* حركات التمرير (إزاحة خفيفة) حسب اتجاه اللغة */
html[dir="rtl"] .contact-dropdown a:hover, html[dir="rtl"] .product-dropdown a:hover { padding-right: 25px !important; }
html[dir="ltr"] .contact-dropdown a:hover, html[dir="ltr"] .product-dropdown a:hover { padding-left: 25px !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}