:root { 
    --bg-deep: #030812; 
    --bg-light: #f8f9fc; 
    --primary: #00f0ff; 
    --primary-dark: #00a0aa; 
    --secondary: #bd00ff; 
    --text-white: #ffffff; 
    --text-dark: #1a1a1a; 
    --text-gray: #a0a0a0; 
    --text-gray-dark: #555555; 
    --glass-border: rgba(255, 255, 255, 0.08); 
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    --whatsapp-green: #25d366; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
}

/* === RTL/LTR Handling & Global === */
body { 
    font-family: 'Cairo', sans-serif; 
    background-color: var(--bg-deep); 
    color: var(--text-white); 
    overflow-x: hidden; 
    line-height: 1.7; 
    transition: 0.3s; 
}

body.en { font-family: 'Outfit', sans-serif; direction: ltr; text-align: left; }
body.ar { direction: rtl; text-align: right; }

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 25px; 
    position: relative; 
    z-index: 2; 
    width: 100%; 
}

/* === Header === */
header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    background: rgba(3, 8, 18, 0.9); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
    padding: 12px 0; 
    transition: all 0.4s ease; 
}
header::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 1px; 
    background: linear-gradient(90deg, transparent, var(--primary), transparent); 
    opacity: 0.6; 
    box-shadow: 0 0 10px var(--primary); 
}

.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 15px; 
}

.brand-container { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
    flex-shrink: 1; 
    min-width: 0; 
}

.brand-container img {
    border-radius: 8px;
    flex-shrink: 0; 
}

/* === BRAND NAME RESPONSIVE FIX === */
.brand-name { 
    font-size: clamp(0.75rem, 2.5vw, 1.3rem); 
    font-weight: 800; 
    color: white; 
    text-shadow: 0 0 20px rgba(0,0,0,0.5); 
    transition: 0.3s; 
    line-height: 1.2;
    white-space: nowrap; 
}

.brand-container:hover .brand-name { color: var(--primary); }

nav ul { display: flex; gap: 15px; list-style: none; }

nav a { 
    color: #ddd; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    font-size: 1rem; 
    position: relative; 
    padding: 8px 16px; 
    border-radius: 20px; 
    cursor: pointer; 
    display: block; 
}
nav a:hover, .active-link { 
    color: white; 
    background: rgba(0, 240, 255, 0.1); 
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2); 
    transform: translateY(-2px); 
}
.active-link { color: var(--primary) !important; }

.header-controls { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-shrink: 0; 
}

.lang-btn { 
    background: rgba(255,255,255,0.08); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: white; 
    padding: 6px 14px; 
    border-radius: 50px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-family: inherit; 
    font-size: 0.9rem; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-block;
    white-space: nowrap;
}
.lang-btn:hover { 
    border-color: var(--primary); 
    background: rgba(0, 240, 255, 0.1); 
    color: var(--primary); 
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2); 
}

.mobile-menu-btn { 
    display: none; 
    color: white; 
    font-size: 1.6rem; 
    cursor: pointer; 
    transition: 0.3s; 
}
.mobile-menu-btn:hover { color: var(--primary); transform: rotate(90deg); }

/* === NEW: Mobile Sticky Bottom Bar === */
.mobile-bottom-bar {
    display: none; /* مخفي افتراضياً (للكمبيوتر) */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 8, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    z-index: 9999;
    padding: 10px 15px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* آيفون X وما بعده */
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}

.sticky-wa {
    background: #25d366;
    color: white;
}

.sticky-start {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: white;
}

/* === Whatsapp & Footer === */
.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 60px; 
    height: 60px; 
    background-color: var(--whatsapp-green); 
    color: white; 
    border-radius: 50%; 
    text-align: center; 
    font-size: 32px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
    z-index: 9999; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: all 0.3s ease; 
}
.whatsapp-float:hover { 
    transform: scale(1.1) rotate(10deg); 
    background-color: #20b857; 
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); 
}
body.en .whatsapp-float { right: auto; left: 30px; }

footer { 
    background: #02040a; 
    border-top: 1px solid var(--glass-border); 
    padding: 50px 0 30px; 
    text-align: center; 
    position: relative; 
    z-index: 2; 
    padding-bottom: 30px; 
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 25px; }

.social-links { display: flex; gap: 20px; }

/* === تنسيق أيقونات السوشيال ميديا (الفوتر) === */
.social-icon { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    position: relative;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.social-icon i { 
    font-size: 1.4rem; 
    color: #ffffff; 
    transition: 0.3s;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
}

.social-icon:hover { 
    transform: translateY(-5px) scale(1.1); 
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), 0 0 35px rgba(189, 0, 255, 0.4);
}

.social-icon:hover i {
    transform: scale(1.1);
}

.copyright { 
    color: var(--text-gray-dark); 
    font-size: 0.9rem; 
    margin-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 20px; 
    width: 100%; 
}
/* === Hero === */
.hero { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding-top: 80px; 
    overflow: hidden; 
    background: #030812; 
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.hero-content { 
    position: relative; 
    z-index: 2; 
    animation: fadeUp 1s ease-out; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 0 15px;
}

.main-logo-img { 
    max-width: 1000px; 
    width: 90%; 
    height: auto; 
    margin-bottom: 25px; 
    filter: drop-shadow(0 0 50px rgba(0, 240, 255, 0.15)); 
    transition: transform 0.3s; 
    animation: logoPulse 5s ease-in-out infinite; 
}
.main-logo-img:hover { transform: scale(1.02); }

.hero-desc-text { 
    color: #e0e0e0; 
    font-size: 1.3rem; 
    max-width: 800px; 
    margin: 0 auto 40px; 
    line-height: 1.8; 
    padding: 0 10px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    font-weight: 600; 
}

.cta-main { 
    padding: 16px 60px; 
    border-radius: 50px; 
    font-size: 1.2rem; 
    font-weight: 900; 
    text-decoration: none; 
    background: linear-gradient(90deg, var(--secondary), var(--primary)); 
    color: white; 
    border: none; 
    cursor: pointer; 
    box-shadow: 0 0 25px rgba(189, 0, 255, 0.4); 
    transition: 0.3s; 
    display: inline-block; 
}
.cta-main:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(189, 0, 255, 0.6); }

/* === Sections Global === */
.light-sec { 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    padding: 100px 0; 
    position: relative; 
}
.light-sec::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100px; 
    background: linear-gradient(to bottom, var(--bg-deep), transparent); 
    opacity: 0.05; 
    pointer-events: none; 
}

.page-spacer { padding-top: 100px; }

/* ... existing code ... */
/* === Mission & Vision Cards (Tabs System - Dark Neon Style) === */

/* 1. إصلاح شارة الإبداع (Creativity Badge) */
.about-visual-container { 
    position: relative; 
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 25px; 
    z-index: 1;
}

.exp-badge { 
    position: absolute; 
    bottom: 30px; 
    right: -20px; 
    z-index: 3; 
    background: rgba(8, 18, 38, 0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white; 
    padding: 12px 25px; 
    border-radius: 50px; 
    font-weight: 800; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    font-size: 0.95rem; 
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.exp-badge i { 
    font-size: 1.2rem; 
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

body.en .exp-badge { right: auto; left: -20px; flex-direction: row-reverse; }


/* 2. تصميم التبويبات (Dark Navy & Gradient Border) */
.about-tabs-wrapper {
    background-color: #081226 !important;
    color: #ffffff !important; 
    background: linear-gradient(#081226, #081226) padding-box,
                linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    border: 2px solid transparent; 
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); 
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    z-index: 2;
}

@media (min-width: 768px) {
    .about-tabs-wrapper {
        flex-direction: row; 
        min-height: 400px;
    }
}

/* === القسم الأول: قائمة العناوين (Tabs Nav) === */
.about-tabs-nav {
    background-color: #081226 !important; 
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

@media (min-width: 768px) {
    .about-tabs-nav {
        width: 35%;
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    body.ar .about-tabs-nav {
        border-right: none;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
}

.tab-btn {
    background: transparent;
    border: none;
    text-align: inherit;
    padding: 20px 25px; /* زيادة الحشوة لتكبير الزر */
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.3rem; /* تكبير الخط بشكل ملحوظ */
    font-weight: 800; /* خط أعرض */
    color: #ffffff !important; 
    opacity: 0.8; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    border: 1px solid transparent;
}

.tab-btn i {
    font-size: 1.5rem; /* تكبير الأيقونة لتتناسب مع الخط */
    width: 35px;
    text-align: center;
    transition: 0.3s;
}

/* أيقونات القائمة: استعادة المكس الأزرق والزهري */
.tab-btn i { 
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.2));
}

/* حالة الزر النشط */
.tab-btn.active {
    background-color: transparent !important; 
    color: #ffffff !important;
    opacity: 1;
    border: 1px solid transparent;
}

/* الخط الجانبي للزر النشط */
.tab-btn.active { 
    border-left: 5px solid; /* تعريض الخط قليلاً */
    border-image-source: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-image-slice: 1;
}
.tab-btn.active {
    border-left: none;
    box-shadow: inset 5px 0 0 0 var(--primary); 
    background-image: linear-gradient(to bottom, var(--primary), var(--secondary));
    background-size: 5px 100%;
    background-repeat: no-repeat;
    background-position: left top;
}

body.ar .tab-btn.active { 
    background-position: right top;
}

.tab-btn:hover {
    color: #ffffff !important;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1); 
}


/* === القسم الثاني: المحتوى (Content) === */
.about-tabs-content {
    flex: 1;
    padding: 50px; /* مساحة أكبر للمحتوى */
    position: relative;
    background-color: #081226 !important; 
    color: #ffffff !important; 
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
    padding-left: 30px; 
    position: relative;
}
body.ar .tab-pane { padding-left: 0; padding-right: 30px; }

.tab-pane.active { display: block; }

/* === الخط الداخلي المضيء === */
.tab-pane::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 5px; /* تعريض الخط */
    border-radius: 4px;
    left: 0;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}
body.ar .tab-pane::before { left: auto; right: 0; }

#why-kayyan h3, #vision h3, #mission h3 { 
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* تنسيق العناوين والنصوص */
.tab-pane h3 {
    font-size: 2.4rem; /* تكبير عنوان المحتوى */
    margin-bottom: 30px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff !important; 
}

.tab-pane p {
    font-size: 1.2rem; /* تكبير نص الشرح ليكون مقروءاً بوضوح */
    line-height: 1.9;
    color: #ffffff !important; 
    margin-bottom: 0;
    font-weight: 500;
}

/* أيقونة الخلفية الجمالية */
.tab-bg-icon {
    position: absolute;
    bottom: -20px;
    font-size: 14rem;
    opacity: 0.03; 
    pointer-events: none;
    z-index: 0;
    color: white;
    transition: 0.3s;
}
body.ar .tab-bg-icon { left: -30px; transform: rotate(15deg); }
body.en .tab-bg-icon { right: -30px; transform: rotate(-15deg); }


/* تعديلات عامة لقسم من نحن لضمان ظهور الشارة */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr;
    gap: 50px; 
    align-items: flex-start;
}
@media (min-width: 900px) {
    .about-grid { 
        grid-template-columns: 0.8fr 1.2fr; 
        gap: 60px;
    }
}
/* === القسم الأول: قائمة العناوين === */
.about-tabs-nav {
    background: #f8f9fc;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .about-tabs-nav {
        width: 35%; /* يأخذ ثلث المساحة تقريباً */
        border-bottom: none;
        /* تحديد الجهة بناءً على اللغة */
        border-right: 1px solid rgba(0,0,0,0.05); 
    }
    body.ar .about-tabs-nav {
        border-right: none;
        border-left: 1px solid rgba(0,0,0,0.05);
    }
}

.tab-btn {
    background: transparent;
    border: none;
    text-align: inherit; /* لوراثة اتجاه النص (يمين/يسار) */
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-gray-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.tab-btn i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    transition: 0.3s;
}

/* حالة الزر النشط */
.tab-btn.active {
    background: #ffffff;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tab-btn.active i {
    color: var(--primary);
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.5);
}

/* === القسم الثاني: التفاصيل === */
.about-tabs-content {
    flex: 1;
    padding: 40px;
    position: relative;
    background: #ffffff;
}

.tab-pane {
    display: none; /* إخفاء المحتوى افتراضياً */
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block; /* إظهار المحتوى النشط */
}

.tab-pane h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.tab-pane p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray-dark);
    margin-bottom: 0;
}

/* أيقونة خلفية جمالية باهتة */
.tab-bg-icon {
    position: absolute;
    bottom: -20px;
    font-size: 10rem;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    color: var(--text-dark);
    transition: 0.3s;
}
body.ar .tab-bg-icon { left: -20px; transform: rotate(15deg); }
body.en .tab-bg-icon { right: -20px; transform: rotate(-15deg); }

/* تعديلات الجريد لإخفاء الصورة القديمة إذا أردتِ الاعتماد فقط على البطاقة، 
   لكن الكود الحالي يبقي الصورة الكبيرة بجانب البطاقة كما هو معتاد في قسم من نحن */
.about-content {
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vm-card { 
    background: #ffffff;
    border-radius: 12px; /* تخفيف الانحناء */
    padding: 20px;
    position: relative;
    border: 1px solid #e1e4e8; /* حدود رمادية ثابتة وواضحة */
    display: flex;
    align-items: flex-start;
    gap: 18px;
    /* تمت إزالة Transition و Transform لإلغاء التفاعل */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); /* ظل ثابت خفيف جداً */
}

/* لا يوجد تأثيرات Hover */

/* الأيقونة: دائرية وبسيطة وثابتة */
.vm-icon-box {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(0,0,0,0.03);
}

/* تلوين ثابت للأيقونات */
.vm-mission .vm-icon-box { 
    color: var(--primary-dark); 
    background: rgba(0, 240, 255, 0.08); 
}
.vm-vision .vm-icon-box { 
    color: var(--secondary); 
    background: rgba(189, 0, 255, 0.08); 
}

/* حاوية النصوص */
.vm-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2px; /* محاذاة بصرية دقيقة مع الأيقونة */
}

.vm-card h3 { 
    color: var(--text-dark);
    font-size: 1.1rem; /* حجم خط موحد ومتناسق */
    margin-bottom: 6px; 
    font-weight: 700; 
}

.vm-card p { 
    font-size: 0.95rem; /* حجم خط مريح للقراءة */
    color: #555555; /* رمادي داكن للقراءة الواضحة */
    margin-bottom: 0; 
    line-height: 1.6; 
}

/* تعديل الجريد الأساسي */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr;
    gap: 40px; 
    align-items: flex-start;
}

@media (min-width: 900px) {
    .about-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 60px;
        align-items: center; 
    }
}

.about-visual-container { 
    height: auto;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.about-img-fit {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.vm-card { 
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05); /* حدود ناعمة جداً */
    display: flex;
    align-items: flex-start; /* الأيقونة والنص بجانب بعض */
    gap: 20px;
}

/* تأثير عند المرور بالماوس */
.vm-card:hover { 
    transform: translateX(5px); /* حركة بسيطة للجانب */
    background: #f8f9fc;
    border-color: rgba(0, 240, 255, 0.2);
}
body.ar .vm-card:hover { transform: translateX(-5px); }

/* الأيقونة: دائرية وبسيطة */
.vm-icon-box {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--text-dark);
    transition: 0.3s;
}

/* تلوين الأيقونة حسب النوع */
.vm-mission .vm-icon-box { color: var(--primary); background: rgba(0, 240, 255, 0.05); }
.vm-vision .vm-icon-box { color: var(--secondary); background: rgba(189, 0, 255, 0.05); }

.vm-card:hover .vm-mission .vm-icon-box { background: var(--primary); color: white; }
.vm-card:hover .vm-vision .vm-icon-box { background: var(--secondary); color: white; }

/* حاوية النصوص داخل البطاقة */
.vm-text-content {
    flex: 1;
}

.vm-card h3 { 
    color: var(--text-dark);
    font-size: 1.2rem; 
    margin-bottom: 8px; 
    font-weight: 800; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-card p { 
    font-size: 0.95rem; 
    color: var(--text-gray-dark);
    margin-bottom: 0; 
    line-height: 1.6; 
}

/* خط جانبي جمالي يربط العنوان بالبطاقات */
.about-content {
    position: relative;
}

@media (min-width: 900px) {
    .about-content::before {
        content: '';
        position: absolute;
        top: 60px;
        bottom: 20px;
        left: -30px; /* للغة الإنجليزية */
        width: 1px;
        background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
        opacity: 0.3;
    }
    body.ar .about-content::before {
        left: auto; 
        right: -30px; /* للغة العربية */
    }
}

/* تعديل الجريد الأساسي ليكون متناسقاً */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; /* توسيط عمودي للصورة والنص */
}

/* جعل الصورة تأخذ كامل الارتفاع المتاح بشكل متناسق */
.about-visual-container { 
    height: 100%;
    min-height: 500px;
    box-shadow: none; /* إزالة الظل القديم ليكون أنظف */
}
.about-img-fit {
    border-radius: 20px;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.03); /* ظل صلب خفيف */
}

@media(min-width: 550px) {
    .vision-mission-grid { 
        grid-template-columns: 1fr 1fr; /* بجانب بعض للشاشات الأكبر */
    }
}

.vm-card { 
    background: #ffffff; /* خلفية بيضاء لدمجها مع الصفحة */
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    padding: 25px 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* ظل خفيف جداً */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

/* إضافة لمسة لونية جانبية لتمييز كل بطاقة */
.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    transition: 0.3s;
}

/* تحديد مكان الخط الجانبي حسب اللغة */
body.en .vm-card::before { left: 0; }
body.ar .vm-card::before { right: 0; }

/* ألوان الخط الجانبي */
.vision-mission-grid .vm-card:nth-child(1)::before { background: var(--primary); }
.vision-mission-grid .vm-card:nth-child(2)::before { background: var(--secondary); }

/* تأثير الهوفر: البطاقة تبرز قليلاً والحدود تتلون */
.vm-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: rgba(0, 240, 255, 0.2);
}

.vision-mission-grid .vm-card:nth-child(2):hover {
    border-color: rgba(189, 0, 255, 0.2);
}

/* أيقونة مدمجة وبسيطة */
.vm-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    transition: 0.3s;
    color: var(--text-dark);
}

.vm-card:hover .vm-icon-box {
    color: white;
}

/* تلوين خلفية الأيقونة عند الهوفر */
.vision-mission-grid .vm-card:nth-child(1):hover .vm-icon-box { background: var(--primary); box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3); }
.vision-mission-grid .vm-card:nth-child(2):hover .vm-icon-box { background: var(--secondary); box-shadow: 0 5px 15px rgba(189, 0, 255, 0.3); }

/* العناوين والنصوص بوضوح تام */
.vm-card h3 { 
    color: var(--text-dark); /* أسود/رمادي غامق */
    font-size: 1.15rem; 
    margin-bottom: 10px; 
    font-weight: 800; 
}

.vm-card p { 
    font-size: 0.9rem; 
    color: var(--text-gray-dark); /* رمادي متوسط للقراءة المريحة */
    margin-bottom: 0; 
    line-height: 1.6; 
    font-weight: 500;
}

/* تنسيق النصوص حسب اللغة */
body.ar .vm-card { text-align: right; padding-right: 20px; }
body.en .vm-card { text-align: left; padding-left: 20px; }

.vision-mission-grid { 
    display: flex;
    flex-direction: column; /* موبايل: تحت بعض */
    gap: 20px; 
    margin-top: 50px; 
    perspective: 1000px; /* تمهيد لبعض العمق */
}

@media(min-width: 768px) {
    .vision-mission-grid { 
        flex-direction: row; /* كمبيوتر: بجانب بعض */
        height: 380px; /* ارتفاع ثابت للسماح بالتوسع */
        align-items: stretch;
    }
}

.vm-card { 
    position: relative;
    background: #030812; /* لون داكن جداً */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* حركة ناعمة جداً */
    flex: 1; /* الوضع الافتراضي: التساوي */
    display: flex;
    flex-direction: column;
    justify-content: center;
    isolation: isolate; /* لضمان ترتيب الطبقات */
}

/* تأثير التوسع عند الهوفر (فقط للكمبيوتر) */
@media(min-width: 768px) {
    .vm-card:hover {
        flex: 1.8; /* توسيع البطاقة النشطة */
        background: #080f1e; /* تفتيح الخلفية قليلاً */
        box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        border-color: rgba(255,255,255,0.2);
    }
    
    /* جعل البطاقة غير النشطة تبهت قليلاً للتركيز على النشطة */
    .vision-mission-grid:hover .vm-card:not(:hover) {
        opacity: 0.6;
        filter: grayscale(0.5);
    }
}

/* === تفاصيل التصميم الداخلي === */

/* الخط الملون العلوي */
.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
    transition: 0.5s;
}

.vm-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 20px var(--primary);
    height: 6px;
}

/* العلامة المائية (أيقونة ضخمة في الخلفية) */
.vm-card::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 12rem; /* ضخمة جداً */
    opacity: 0.04;
    color: white;
    transition: 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

/* تعيين أيقونة مختلفة لكل بطاقة بناءً على الترتيب */
/* البطاقة الأولى (الرسالة) - أيقونة Bullseye */
.vision-mission-grid .vm-card:nth-child(1)::after {
    content: '\f140'; 
}
/* البطاقة الثانية (الرؤية) - أيقونة Eye */
.vision-mission-grid .vm-card:nth-child(2)::after {
    content: '\f06e'; 
    right: auto; left: -20px; /* تغيير مكان الأيقونة للتنويع */
}
/* عكس الأماكن في العربية */
body.ar .vision-mission-grid .vm-card:nth-child(1)::after { left: -20px; right: auto; }
body.ar .vision-mission-grid .vm-card:nth-child(2)::after { right: -20px; left: auto; }

.vm-card:hover::after {
    transform: scale(1.1) rotate(10deg); /* حركة بسيطة للأيقونة الخلفية */
    opacity: 0.08;
}

/* صندوق الأيقونة الأساسي */
.vm-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.05);
}

.vm-card:hover .vm-icon-box {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-5px);
    border-color: transparent;
}

/* تخصيص لون الخلفية للأيقونة عند الهوفر حسب النوع */
.vision-mission-grid .vm-card:nth-child(2):hover .vm-icon-box {
    background: var(--secondary);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.4);
}

.vm-card:hover .vm-icon-box i { color: #000 !important; /* أيقونة سوداء على خلفية مضيئة */ }

.vm-mission i { color: var(--primary); }
.vm-vision i { color: var(--secondary); }

/* العنوان */
.vm-card h3 { 
    color: white; 
    font-size: 2rem; /* تكبير الخط بشكل ملحوظ */
    margin-bottom: 15px; 
    font-weight: 900; 
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* الشرح والتفاصيل */
.vm-card p { 
    font-size: 1.1rem; 
    color: #cbd5e1; /* رمادي مائل للأزرق فاتح */
    margin-bottom: 0; 
    line-height: 1.8; 
    font-weight: 400;
    max-width: 90%;
    opacity: 0.8;
    transition: 0.3s;
}

.vm-card:hover p {
    opacity: 1;
    color: white;
}

/* محاذاة */
body.ar .vm-card { text-align: right; }
body.en .vm-card { text-align: left; }

/* ... existing code ... */

/* === Services Grid === */
.services-sec { padding: 100px 0; background: var(--bg-deep); position: relative; }
.sec-head { text-align: center; margin-bottom: 60px; }
.sec-head h2 { font-size: 2.6rem; color: white; position: relative; display: inline-block; }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
}

.srv-card { 
    background: rgba(255,255,255,0.02); 
    padding: 40px 30px; 
    border-radius: 20px; 
    border: 1px solid var(--glass-border); 
    transition: 0.4s; 
    cursor: pointer; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
}
.srv-card:hover { 
    background: rgba(255,255,255,0.05); 
    transform: translateY(-10px); 
    border-color: var(--primary); 
}
.srv-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; transition: 0.3s; }
.srv-card:hover .srv-icon { transform: scale(1.1); color: white; }
.srv-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: white; }
.srv-card p { color: var(--text-gray); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.srv-link { color: var(--secondary); font-weight: bold; margin-top: auto; font-size: 0.95rem; }

/* === Contact & Forms === */
.contact-sec { padding: 100px 0; background: var(--bg-light); position: relative; color: var(--text-dark); border-top: 1px solid rgba(0,0,0,0.05); }
.contact-sec .sec-head h2 { color: var(--text-dark); } 
.form-wrap { max-width: 750px; margin: 0 auto; background: #ffffff; padding: 50px; border-radius: 25px; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--card-shadow); }

.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

input, textarea, select { 
    width: 100%; 
    padding: 16px 20px; 
    background: #f0f2f5; 
    border: 1px solid #e1e4e8; 
    color: #333; 
    border-radius: 12px; 
    font-family: inherit; 
    transition: 0.3s; 
    font-size: 1rem; 
    appearance: none; 
}
textarea { resize: vertical; margin-bottom: 20px; }
select { 
    cursor: pointer; 
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); 
    background-repeat: no-repeat; 
    background-position: left 15px center; 
    background-size: 12px auto; 
}
body.en select { background-position: right 15px center; }
input:focus, textarea:focus, select:focus { 
    border-color: var(--primary-dark); 
    outline: none; 
    background-color: #ffffff; 
    box-shadow: 0 0 0 4px rgba(0, 160, 170, 0.1); 
}

/* === Modal === */
.modal { 
    position: fixed; top:0; left:0; 
    width:100%; height:100%; 
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(10px); 
    z-index:2000; 
    padding: 20px; 
    display:none; 
    opacity: 0; 
    transition: opacity 0.3s; 
    align-items: center; 
    justify-content: center; 
}
.modal.active { display:flex; opacity: 1; }

.modal-inner { 
    width: 100%; 
    max-width: 900px; 
    background: #ffffff; 
    border-radius: 25px; 
    overflow: hidden; 
    box-shadow: 0 40px 80px rgba(0,0,0,0.5); 
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    position: relative; 
    max-height: 90vh; 
    display: flex; 
    flex-direction: row; 
}

.modal-header-img { 
    width: 40%; 
    height: auto; 
    min-height: 100%; 
    object-fit: cover; 
    background: #1a0b2e; 
    animation: logoPulse 5s ease-in-out infinite; 
}

@keyframes logoPulse { 
    0% { transform: scale(1); filter: brightness(1); } 
    50% { transform: scale(1.05); filter: brightness(1.1); } 
    100% { transform: scale(1); filter: brightness(1); } 
}

.modal-content-body { 
    width: 60%; 
    padding: 40px 30px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    text-align: right; 
}
body.en .modal-content-body { text-align: left; }

.close-modal-btn { 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    background: #f0f2f5; 
    width: 40px; height: 40px; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    border: none; cursor: pointer; 
    color: #333; font-size: 1.2rem; 
    transition: 0.3s; 
    z-index: 20; 
}
body.en .close-modal-btn { left: auto; right: 20px; }
.close-modal-btn:hover { background: #e4e6eb; transform: rotate(90deg); color: #000; }

.modal-title { font-size: 2rem; color: var(--text-dark); margin-bottom: 15px; font-weight: 900; line-height: 1.2; }
.modal-desc { color: var(--text-gray-dark); font-size: 1.05rem; line-height: 1.7; margin-bottom: 25px; }

.feature-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: auto; }
.feat { background: transparent; padding: 0; display: flex; align-items: center; gap: 12px; color: var(--text-dark); font-weight: 700; font-size: 1rem; }
.feat i { color: var(--primary-dark); background: rgba(0, 160, 170, 0.1); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

.modal-footer { display: flex; gap: 15px; margin-top: 30px; border-top: 1px solid #f0f2f5; padding-top: 20px; }
.btn-modal-action { flex: 1; padding: 15px; border-radius: 12px; font-weight: 700; text-align: center; border: none; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.btn-primary-modal { background: linear-gradient(90deg, var(--secondary), var(--primary-dark)); color: white; box-shadow: 0 10px 20px rgba(189, 0, 255, 0.2); }
.btn-primary-modal:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(189, 0, 255, 0.3); }
.btn-secondary-modal { background: transparent; color: var(--text-gray-dark); border: 1px solid #e1e4e8; }
.btn-secondary-modal:hover { background: #f5f5f5; color: var(--text-dark); border-color: #ccc; }

/* === Responsive Rules === */
@media (max-width: 900px) { 
    .about-grid { grid-template-columns: 1fr; gap: 50px; } 
    .about-visual-container { order: -1; height: 350px; } 
    .light-sec h2 { font-size: 2.2rem; }
    .hero-desc-text { font-size: 1.1rem; }
}

@media (max-width: 768px) { 
    .container { padding: 0 20px; }
    .mobile-menu-btn { display: block; }
    
    .nav-flex nav { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: rgba(3, 8, 18, 0.98); 
        padding: 30px; 
        border-bottom: 1px solid var(--glass-border); 
        flex-direction: column; 
        text-align: center; 
        backdrop-filter: blur(20px); 
    }
    .nav-flex nav.active { display: block; animation: slideDown 0.3s ease; }
    .nav-flex nav ul { flex-direction: column; gap: 20px; } 
    .nav-flex nav a { font-size: 1.1rem; width: 100%; display: block; }
    
    .hero h1 { font-size: 2rem; } 
    .input-row { grid-template-columns: 1fr; } 
    .form-wrap { padding: 30px 20px; }
    .main-logo-img { max-width: 100%; width: 95%; margin-bottom: 30px; } 
    .exp-badge { padding: 10px 15px; font-size: 0.85rem; right: -10px; }
    
    /* Modal Mobile */
    .modal-inner { flex-direction: column; height: auto; max-height: 90vh; overflow-y: auto; } 
    .modal-content-body { width: 100%; padding: 25px 20px; } 
    .close-modal-btn { top: 15px; left: 15px; background: rgba(0,0,0,0.5); color: white; } 
    body.en .close-modal-btn { right: 15px; left: auto; }
    
    .modal-header-img { width: 100%; height: 180px; min-height: auto; object-fit: contain; background-color: #f8f9fc; } 
    .modal-title { font-size: 1.6rem; }

    .whatsapp-float { display: none; }
    .mobile-bottom-bar { display: flex; }
    footer { padding-bottom: 90px; }
}

@media (max-width: 550px) {
    .brand-name { font-size: 0.85rem !important; white-space: nowrap; }
    .brand-container img { width: 32px !important; height: 32px !important; }
    .lang-btn {
        font-size: 0 !important;
        padding: 8px !important;
        width: 35px;
        height: 35px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    .lang-btn::before {
        content: '\f0ac'; 
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.1rem;
        color: white;
    }
    .lang-btn:hover::before { color: var(--primary); }
}

/* Animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* === SECURITY: HONEYPOT FIELD === */
.trap-field { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }