/* style.css - التنسيقات الفاخرة المدمجة وعالية التباين لمجموعة التميمي */

/* استيراد الخطوط المتميزة من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #B89750;          /* لون ذهبي معدني غني وقوي */
    --primary-light: #FDD79A;    /* اللون الذهبي الفاتح */
    --primary-dark: #8F7235;     /* ذهبي عميق جداً للنصوص */
    --dark: #050B14;             /* كحلي ملكي داكن جداً لأعلى تباين وقوة */
    --slate: #2D3748;            /* رمادي داكن غني للنصوص ليكون مقروءاً بوضوح ممتاز */
    --light-bg: #FDFCF7;         /* خلفية كريمية ملكية فاتحة ومشرقة تعكس الفخامة */
    --white: #FFFFFF;            /* الأبيض النقي */
    --gray-100: #F7FAFC;
    --gray-200: #E2E8F0;
    --gold-gradient: linear-gradient(135deg, #B89750 0%, #D8BE7A 50%, #FDD79A 100%);
    --card-shadow: 0 10px 25px -8px rgba(184, 151, 80, 0.15);
    --hover-shadow: 0 18px 40px -10px rgba(184, 151, 80, 0.3);
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* التنسيق العام والتهيئة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--slate);
    line-height: 1.6;
    text-align: right;
}

/* تنسيق الخطوط للعناوين */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* --- الهيدر والقائمة العلوية (Navigation) --- */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid rgba(184, 151, 80, 0.22);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(184, 151, 80, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px; /* تصغير الهيدر قليلاً لتقليل المساحة الرأسية */
}

.header-logo {
    max-height: 48px; /* حجم أصغر للوجو */
    width: auto;
    display: block;
    transition: var(--transition);
}

header.scrolled .header-logo {
    max-height: 42px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav a {
    font-weight: 700;
    font-size: 14px;
    color: var(--slate);
    position: relative;
    padding: 6px 0;
}

nav a:hover, nav a.active {
    color: var(--primary-dark);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2.5px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.header-cta {
    background: var(--gold-gradient);
    color: var(--white);
    padding: 9px 22px; /* تصغير الزر العلوى */
    border-radius: 50px;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 5px 15px rgba(184, 151, 80, 0.25);
}

.header-cta:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(184, 151, 80, 0.35);
}

.mobile-menu-toggle {
    display: none;
    font-size: 22px;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
}

/* --- واجهة الترحيب الفخمة المدمجة وسلايد شو الصور بالخلفية --- */
.hero {
    position: relative;
    padding: 125px 0 60px; /* تصغير الارتفاع بشكل كبير */
    background-color: var(--light-bg);
    overflow: hidden;
    border-bottom: 1px solid rgba(184, 151, 80, 0.15);
}

/* سلايد شو الصور المتبدلة ببطء وتأثير تقريب لطيف */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 18s infinite ease-in-out;
}

/* توزيع الأنيميشن على الـ 3 صور بالتتابع */
.hero-slide:nth-child(1) {
    animation-delay: 0s;
}
.hero-slide:nth-child(2) {
    animation-delay: 6s;
}
.hero-slide:nth-child(3) {
    animation-delay: 12s;
}

@keyframes heroFade {
    0% {
        opacity: 0;
        transform: scale(1.0);
    }
    8% {
        opacity: 0.11; /* شفافية خفيفة لتبقي النصوص مقروءة وواضحة جداً */
    }
    33% {
        opacity: 0.11;
        transform: scale(1.03); /* تأثير زووم بطيء وناعم */
    }
    41% {
        opacity: 0;
        transform: scale(1.03);
    }
    100% {
        opacity: 0;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    background-color: rgba(184, 151, 80, 0.12);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    border: 1.5px solid rgba(184, 151, 80, 0.3);
}

.hero-title {
    font-size: 40px; /* تصغير حجم الخط */
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--dark);
}

.hero-title span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 15.5px; /* تصغير بسيط لحجم خط الفقرة */
    color: var(--slate);
    margin-bottom: 24px; /* مسافة أصغر */
    max-width: 620px;
    font-weight: 500;
    line-height: 1.65;
}

.hero-btns {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px; /* تقليص الأزرار */
    border-radius: 50px;
    font-weight: 700;
    font-size: 14.5px;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(184, 151, 80, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(184, 151, 80, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark);
    border: 2px solid var(--primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.01);
}

.btn-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease-out;
}

.visual-backdrop {
    width: 300px; /* تصغير الخلفية الحركية */
    height: 300px;
    background: linear-gradient(135deg, rgba(184, 151, 80, 0.15) 0%, rgba(253, 215, 154, 0.06) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: absolute;
    z-index: 1;
    animation: morphing 15s infinite alternate ease-in-out;
}

.visual-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(184, 151, 80, 0.25);
    box-shadow: var(--card-shadow);
    border-radius: 22px;
    padding: 24px; /* تصغير الفراغ الداخلي للبطاقة بالهيرو */
    width: 100%;
    max-width: 295px;
    z-index: 2;
    text-align: center;
    border-top: 4px solid var(--primary);
}

.visual-logo-img {
    max-width: 140px;
    height: auto;
    margin: 0 auto 12px;
    display: block;
}

.visual-card h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.visual-card p {
    font-size: 12px;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.vision-badge-embed {
    border-top: 1px solid var(--gray-200);
    padding-top: 12px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vision-badge-embed img {
    height: 42px; /* تصغير شعار الرؤية */
    width: auto;
    opacity: 0.95;
    transition: var(--transition);
}

.vision-badge-embed img:hover {
    transform: scale(1.05);
}

.vision-badge-embed span {
    font-size: 11px;
    color: var(--slate);
    font-weight: 700;
}

/* --- الإحصائيات (Stats Section) --- */
.stats {
    padding: 20px 0; /* تقليص الحشوة لجمع العناصر بشكل مضغوط */
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--white);
    border-radius: 20px;
    padding: 24px; /* تقليص الفراغات الداخلية */
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(184, 151, 80, 0.18);
}

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

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 2.2px;
    background-color: var(--gray-200);
}

.stat-icon {
    font-size: 24px; /* أيقونات أنعم وأصغر */
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px; /* حجم أرقام ملموم */
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 13.5px;
    color: var(--slate);
    font-weight: 700;
}

/* --- قسم التأسيس والرسالة (About Section) --- */
.about {
    padding: 50px 0; /* تقليص الحشو من 100px إلى 50px لتقليل التمرير */
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 35px; /* تقليص الهامش السفلي */
}

.section-badge {
    color: var(--primary-dark);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 30px; /* حجم عناوين متوازن */
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 10px;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3.5px;
    background: var(--gold-gradient);
    border-radius: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.history-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 24px; /* تقليص الفراغات الداخلية */
    border: 2px solid rgba(184, 151, 80, 0.22);
    box-shadow: var(--card-shadow);
}

.history-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
}

.about-founder-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2.5px solid var(--primary);
    box-shadow: var(--hover-shadow);
    transition: var(--transition);
    max-width: 88%; /* تصغير الصورة قليلاً لتكون بمنتهى التناسق مع العمود المجاور */
    margin: 0 auto; /* يضمن التوسيط الفني المريح للعين */
}

.about-founder-visual:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(184, 151, 80, 0.25);
}

.about-founder-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.vision-mission-row {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.vm-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 20px; /* تصغير الفراغ من 32px إلى 20px */
    border: 1.5px solid rgba(184, 151, 80, 0.15);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4px;
    background: var(--gold-gradient);
}

.vm-card:hover {
    transform: translateX(-4px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary);
}

.vm-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vm-card h3 i {
    color: var(--primary);
}

.vm-card p {
    font-size: 13.5px;
    color: var(--slate);
    font-weight: 500;
}

/* --- الفلترة الذكية والشركات التابعة (Sectors & Companies) --- */
.sectors-companies {
    padding: 50px 0; /* تقليص من 100px لضمان عدم الحاجة للتمرير بكثرة */
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* فجوة أضيق بين الأزرار */
    margin-bottom: 30px; /* مسافة أصغر */
}

.filter-btn {
    background-color: var(--white);
    color: var(--dark);
    border: 1.5px solid rgba(184, 151, 80, 0.15);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.filter-btn i {
    color: var(--primary);
    font-size: 15px;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: var(--light-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(184, 151, 80, 0.12);
}

.filter-btn.active {
    background: var(--gold-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(184, 151, 80, 0.3);
}

.filter-btn.active i {
    color: var(--white);
}

/* شبكة عرض الشركات المقاومة للتمرير المفرط */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px; /* فجوات أضيق لدمج الكروت سوياً */
}

/* كرت الشركة الملموم والموفر للمساحة */
.company-card {
    background-color: var(--white);
    border-radius: 20px;
    border: 1.5px solid rgba(184, 151, 80, 0.14);
    padding: 18px; /* تصغير الفراغ الداخلي بشكل كبير */
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* تصغير ارتفاع معاينة الصور داخل الكرت لتوفير مساحة طولية مذهلة للجوال */
.card-image-preview {
    width: 100%;
    height: 115px; /* تصغير الارتفاع من 160px إلى 115px */
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.card-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.company-card:hover .card-image-preview img {
    transform: scale(1.06);
}

.company-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary);
}

.company-card:hover::after {
    opacity: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.company-logo-placeholder {
    width: 42px; /* تصغير اللوجو الافتراضي */
    height: 42px;
    background: linear-gradient(135deg, rgba(184, 151, 80, 0.1) 0%, rgba(253, 215, 154, 0.2) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
}

.company-logo-img-wrapper {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.company-logo-img {
    height: 100%;
    max-height: 42px;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

.company-badge {
    background-color: rgba(184, 151, 80, 0.1);
    color: var(--primary-dark);
    font-size: 10.5px;
    font-weight: 800;
    padding: 3.5px 9px;
    border-radius: 50px;
    border: 1px solid rgba(184, 151, 80, 0.15);
}

.company-name {
    font-size: 17px; /* تصغير خط العناوين للشركات */
    margin-bottom: 3px;
    color: var(--dark);
}

.company-en {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.company-desc {
    font-size: 13px; /* تصغير الفقرة لجعل الكرت ملموماً جداً */
    color: var(--slate);
    margin-bottom: 16px;
    flex-grow: 1;
    font-weight: 500;
    line-height: 1.5;
}

.company-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}

.company-link i {
    font-size: 10px;
    transition: var(--transition);
}

.company-card:hover .company-link i {
    transform: translateX(-3px);
}

/* --- ركائز قوتنا ولماذا التميمي (Why Choose Us) --- */
.strengths {
    padding: 50px 0;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.strength-card {
    text-align: center;
    padding: 24px 20px; /* تصغير الفراغات من 45px إلى 24px */
    background: var(--light-bg);
    border-radius: 20px;
    border: 2px solid rgba(184, 151, 80, 0.15);
    transition: var(--transition);
}

.strength-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary);
}

.strength-icon {
    width: 55px; /* تصغير الأيقونة */
    height: 55px;
    background: var(--gold-gradient);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    box-shadow: 0 6px 15px rgba(184, 151, 80, 0.25);
}

.strength-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.strength-card p {
    font-size: 13.5px;
    color: var(--slate);
    font-weight: 500;
    line-height: 1.55;
}

/* --- نموذج التواصل التفاعلي والملون بقوة (Contact Section) --- */
.contact {
    padding: 50px 0;
    background: radial-gradient(circle at bottom left, rgba(253, 215, 154, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* توازن أفضل وتصغير للفورم */
    gap: 32px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px -15px rgba(184, 151, 80, 0.18);
    border: 2px solid rgba(184, 151, 80, 0.22);
}

.contact-info {
    background: linear-gradient(135deg, var(--dark) 0%, #111D2E 100%);
    color: var(--white);
    padding: 35px; /* تصغير الفراغ من 60px إلى 35px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info h2 {
    color: var(--white);
    font-size: 26px;
    margin-bottom: 10px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14.5px;
    margin-bottom: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px; /* تضييق المساحات */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon {
    width: 42px; /* تصغير الأيقونات */
    height: 42px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-text h4 {
    color: var(--white);
    font-size: 14.5px;
}

.contact-text p {
    margin-bottom: 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.social-btn {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* فورم التواصل الأنيق والموفر للمساحة بكثير */
.contact-form-wrapper {
    padding: 30px; /* تصغير الفراغ ليكون ملموماً وموفراً للمساحة الطولية للجوال */
    background-color: #FAF9F5;
}

.contact-form-wrapper h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px; /* تضييق الهوامش السفلية لحقول الفورم */
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 10px 14px; /* تصغير البادينج لحقول الإدخال */
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(184, 151, 80, 0.1);
}

textarea.form-control {
    resize: none;
    min-height: 80px; /* تقليص حجم مربع النص لتقليل مساحة الشاشة */
}

/* --- الفوتر (Footer) --- */
footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 45px 0 20px; /* تقليص الحشو بالفوتر */
    border-top: 2px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
    margin-bottom: 30px;
}

.footer-logo {
    display: block;
    max-width: 130px !important;
    max-height: 42px !important;
    object-fit: contain;
    margin-bottom: 16px;
    filter: brightness(0) invert(1) !important; /* يجعل الشعار باللون الأبيض الفضي الناصع ليظهر بوضوح تام على الخلفية الداكنة */
}

.footer-about h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-about p {
    font-size: 13.5px;
    max-width: 400px;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--white);
    font-size: 15.5px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 2.5px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px; /* تضييق فجوة روابط الفوتر */
}

.footer-links a {
    font-size: 13.5px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* --- تأثيرات الحركة (Animations) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* --- التجاوب مع شاشات الجوال والأجهزة اللوحية (Responsive) --- */
@media (max-width: 1024px) {
    /* شريط فلترة القطاعات منساب وعريض للتمرير الأفقي السلس بالجوال والتابلت */
    .filter-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding: 10px 16px 14px 16px !important; /* زيادة الحشو السفلي لترك مساحة كافية لشريط التمرير */
        margin-left: -15px !important;
        margin-right: -15px !important;
        gap: 8px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* شريط التمرير المخصص اللطيف باللون الذهبي ليعرف المستخدم بوجود سحب جانبي */
    .filter-tabs::-webkit-scrollbar {
        height: 5px !important; /* شريط نحيف جداً وراقي */
        display: block !important;
    }

    .filter-tabs::-webkit-scrollbar-track {
        background: rgba(184, 151, 80, 0.05) !important; /* خلفية المسار باهتة وناعمة */
        border-radius: 10px !important;
        margin: 0 15px !important; /* تباعد هوامش شريط المسار */
    }

    .filter-tabs::-webkit-scrollbar-thumb {
        background: rgba(184, 151, 80, 0.3) !important; /* لون المقبض ذهبي شفاف لطيف يتناسب مع ألوان الهوية */
        border-radius: 10px !important;
    }

    .filter-tabs::-webkit-scrollbar-thumb:hover {
        background: rgba(184, 151, 80, 0.6) !important;
    }

    .filter-btn {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
        padding: 8px 16px !important;
        font-size: 12.5px !important;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .about-founder-visual {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .vision-mission-row {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    /* منع أي تدفق أفقي تماماً */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }



    /* إخفاء مؤشر التمرير بالهيرو على الجوال لتفادي أي تداخل أو تغطية للعناصر */
    .hero-scroll-indicator {
        display: none !important;
    }
    
    header .container {
        justify-content: space-between;
        height: 65px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70vw;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        padding: 90px 30px 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        width: 100%;
    }
    
    nav a {
        font-size: 16px;
        display: block;
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--gray-200);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 11, 20, 0.6);
        z-index: 999;
    }

    .hero {
        padding: 95px 10px 35px; /* ارتفاع مضغوط جداً وتوسيع الهوامش الجانبية بالجوال */
    }

    .hero-title {
        font-size: 24px; /* تصغير حجم الخط لعدم التكدس */
        line-height: 1.4;
        padding: 0 10px; /* زيادة الفراغ الجانبي */
    }

    .hero-text {
        font-size: 13.5px;
        margin-bottom: 20px;
        padding: 0 15px; /* زيادة الفراغ الجانبي للفقرة لتتنفس */
        line-height: 1.6;
    }

    .hero-btns {
        flex-direction: column; /* تراص الأزرار عمودياً لمنع كسر عرض الشاشة والتداخل */
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%; /* جعل الأزرار بعرض متساوٍ ومرتب */
        justify-content: center;
    }

    .companies-grid, .strengths-grid {
        grid-template-columns: 1fr;
        gap: 14px; /* فجوات مدمجة بالجوال */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .stat-item::after {
        display: none !important;
    }
    
    .contact-info, .contact-form-wrapper {
        padding: 20px; /* بادينج ضيق جداً في الجوال لتقليل مسافة التمرير */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* --- Hero Scroll Indicator --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    animation: indicatorDropDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.scroll-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}

.scroll-line-wrapper {
    height: 40px;
    width: 2px;
    background-color: rgba(184, 151, 80, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--gold-gradient);
    animation: scrollLineDrop 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes indicatorDropDown {
    0% {
        opacity: 0;
        transform: translate(50%, -40px);
    }
    100% {
        opacity: 1;
        transform: translate(50%, 0);
    }
}

@keyframes scrollLineDrop {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

/* --- Premium Scroll Reveal System Styles --- */
.reveal {
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Slide Up */
.reveal-up {
    transform: translateY(80px);
}

/* Slide Down */
.reveal-down {
    transform: translateY(-80px);
}

/* Slide Left (Starts from Left, slides to Right) */
.reveal-left {
    transform: translateX(-120px);
}

/* Slide Right (Starts from Right, slides to Left) */
.reveal-right {
    transform: translateX(120px);
}

/* Scale Up */
.reveal-scale {
    transform: scale(0.9);
}

/* Active State (Triggered by IntersectionObserver in JS) */
.reveal.reveal-active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Helper Delays if needed manually */
.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }
.reveal-delay-500 { transition-delay: 500ms; }






