/* =========================================
   1. TECH DESIGN SYSTEM VARIABLES
   ========================================= */
:root {
    --primary: #174388;       
    --secondary: #d5242b;     
    --primary-glow: rgba(23, 67, 136, 0.2);
    --secondary-glow: rgba(213, 36, 43, 0.35);
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-dark-tech: #060b13;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #cbd5e1;
    --tech-border: 1px solid rgba(23, 67, 136, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(6, 11, 19, 0.88);
    --glass-border: rgba(23, 67, 136, 0.22);
    --radius: 0px; /* الحفاظ على التصميم الحاد والمميز للهوية التقنية */
    --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    border-radius: var(--radius) !important; 
}

body { 
    font-family: 'Tajawal', sans-serif; 
    color: var(--text-main); 
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(rgba(23, 67, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 67, 136, 0.02) 1px, transparent 1px);
    background-size: 35px 35px; 
    line-height: 1.65; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* إخفاء الماوس الافتراضي عند وجود ماوس حقيقي */
@media (hover: hover) and (pointer: fine) { 
    html, a, button, input, textarea, select, .faq-question, .dropdown-trigger, .profile-trigger, .chat-btn, .chat-close { 
        cursor: none !important; 
    } 
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Cairo', sans-serif; 
    color: var(--primary); 
    text-transform: uppercase; 
    letter-spacing: 0.8px; 
    font-weight: 700;
}
p { color: var(--text-muted); }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
ul { list-style: none; }
.text-red { color: var(--secondary) !important; } 
.text-white { color: #fff !important; }

/* =========================================
   2. BRAND LOGO
   ========================================= */
.brand-logo { 
    max-height: 46px; 
    width: auto; 
    object-fit: contain; 
    display: block; 
    transition: var(--transition);
}
.brand-logo:hover {
    filter: brightness(1.05);
}

/* =========================================
   3. CUSTOM LINUX TECH CURSOR & PROGRESS BAR
   ========================================= */
#tech-cursor { 
    position: fixed; 
    top: 0;
    left: 0;
    width: 14px; 
    height: 20px; 
    background-color: var(--secondary); 
    pointer-events: none; 
    z-index: 9999; 
    /* رسم سهم ماوس لينكس حاد واحترافي */
    clip-path: polygon(0% 0%, 100% 70%, 48% 70%, 35% 100%, 0% 0%);
    transform-origin: top left;
    transition: background-color 0.2s, transform 0.1s ease-out; 
    box-shadow: 0 0 5px var(--secondary-glow); 
}
#tech-cursor-follower { 
    position: fixed; 
    top: 0;
    left: 0;
    width: 26px; 
    height: 26px; 
    border: 1px solid var(--primary); 
    pointer-events: none; 
    z-index: 9998; 
    /* إزاحة خفيفة ليحيط بطرف سهم الماوس بشكل جمالي */
    transform: translate(-3px, -3px);
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.08s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* تأثير الماوس عند التمرير على العناصر التفاعلية */
body.hover-interactive #tech-cursor {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}
body.hover-interactive #tech-cursor-follower {
    border-color: var(--secondary);
    width: 20px;
    height: 20px;
    transform: translate(-10px, -10px) rotate(45deg); /* يتحول إلى معين متناسق ومتحرك */
}

#progress-bar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 3px; 
    background: linear-gradient(90deg, var(--primary), var(--secondary)); 
    width: 0%; 
    z-index: 10001; 
    transition: width 0.1s; 
    box-shadow: 0 1px 8px var(--secondary-glow); 
}
.animated-lines-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    pointer-events: none; 
    overflow: hidden; 
    opacity: 0.35; 
}
.data-stream { 
    position: absolute; 
    width: 1px; 
    background: linear-gradient(to bottom, transparent, var(--primary), transparent); 
    animation: streamFall linear infinite; 
}
@keyframes streamFall { 
    0% { transform: translateY(-100%); opacity: 0; } 
    40% { opacity: 0.7; box-shadow: 0 0 3px var(--primary); } 
    100% { transform: translateY(100vh); opacity: 0; } 
}

/* =========================================
   4. UTILITIES & LAYOUT
   ========================================= */
.container { max-width: 1220px; margin: 0 auto; padding: 0 4%; position: relative; z-index: 2; }
.section { padding: 90px 0; }
.glass-section { 
    background: var(--glass-bg); 
    border-top: var(--tech-border); 
    border-bottom: var(--tech-border); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
}
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mt-4 { margin-top: 1.5rem; } 
.mt-5 { margin-top: 2.5rem; } 
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; } 
.text-left { text-align: left; } 
.w-full { width: 100%; }
.hidden { display: none !important; }

.section-header { margin-bottom: 55px; text-align: center; }
.section-header h2 { 
    font-size: clamp(1.6rem, 3.5vw, 2.2rem); 
    font-weight: 900; 
    margin-bottom: 12px; 
    text-shadow: 1px 1px 0px rgba(23,67,136,0.05); 
}
.header-line { 
    width: 60px; 
    height: 3px; 
    background: var(--secondary); 
    margin: 0 auto; 
    position: relative; 
}
.header-line::after { 
    content: ''; 
    position: absolute; 
    right: -12px; 
    top: 0; 
    width: 8px; 
    height: 3px; 
    background: var(--primary); 
}

/* BUTTONS */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    padding: 13px 26px; 
    font-family: 'Cairo', sans-serif; 
    font-weight: 700; 
    border: none; 
    transition: var(--transition); 
    letter-spacing: 0.5px; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
}
.btn-tech { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 4px 4px 0 var(--primary-glow); 
    position: relative; 
    overflow: hidden; 
    border: 1px solid var(--primary); 
}
.btn-tech::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); 
    transition: 0.6s; 
}
.btn-tech:hover::before { left: 100%; }
.btn-tech:hover { 
    background: #0f2c61; 
    border-color: #0f2c61;
    transform: translate(-1px, -1px); 
    box-shadow: 6px 6px 0 var(--primary-glow); 
    color: #fff; 
}
.btn-outline-tech { 
    background: transparent; 
    border: 1px solid var(--primary); 
    color: var(--primary); 
    box-shadow: 3px 3px 0 var(--primary-glow); 
}
.btn-outline-tech:hover { 
    background: var(--primary); 
    color: #fff; 
    transform: translate(-1px, -1px); 
    box-shadow: 5px 5px 0 var(--primary-glow); 
}
.btn-danger { 
    background: transparent; 
    border: 1px solid var(--secondary); 
    color: var(--secondary); 
    box-shadow: 3px 3px 0 var(--secondary-glow); 
}
.btn-danger:hover { 
    background: var(--secondary); 
    color: #fff; 
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--secondary-glow);
}

/* CARDS */
.tech-card { 
    background: var(--bg-surface); 
    padding: 35px 25px; 
    border: 1px solid var(--border-color); 
    border-left: 3px solid var(--primary); 
    transition: var(--transition); 
    position: relative; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    background: transparent;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transition: var(--transition);
}
.tech-card:hover { 
    transform: translateY(-4px); 
    border-left-color: var(--secondary); 
    border-color: rgba(23, 67, 136, 0.15);
    box-shadow: 0 12px 24px rgba(23,67,136,0.08); 
}
.tech-card:hover::before {
    border-color: var(--secondary);
    width: 10px;
    height: 10px;
}
.icon-box { 
    width: 55px; 
    height: 55px; 
    background: rgba(23, 67, 136, 0.03); 
    border: 1px solid rgba(23, 67, 136, 0.15); 
    color: var(--primary); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.6rem; 
    margin-bottom: 22px; 
    transition: var(--transition); 
}
.tech-card:hover .icon-box { 
    background: var(--primary); 
    color: #fff; 
    transform: rotate(8deg); 
    box-shadow: 0 4px 12px var(--primary-glow); 
}
.tech-card h3 { 
    font-size: 1.2rem; 
    margin-bottom: 12px; 
}

/* HORIZONTAL CARDS */
.tech-card-horizontal { 
    display: flex; 
    gap: 20px; 
    align-items: flex-start; 
    padding: 25px; 
    background: var(--bg-surface); 
    border: 1px solid var(--border-color); 
    border-bottom: 3px solid var(--primary); 
    transition: var(--transition); 
}
.tech-card-horizontal:hover { 
    border-bottom-color: var(--secondary); 
    border-color: rgba(23, 67, 136, 0.15);
    box-shadow: 0 10px 20px rgba(23,67,136,0.08); 
    transform: scale(1.01); 
}
.core-img-box { 
    width: 75px; 
    height: 75px; 
    background: rgba(23, 67, 136, 0.03); 
    border: 1px solid rgba(23, 67, 136, 0.15); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: var(--transition); 
    flex-shrink: 0; 
    overflow: hidden; 
}
.core-img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: var(--transition); 
}
.tech-card-horizontal:hover .core-img-box { 
    border-color: var(--secondary); 
    transform: rotate(3deg); 
}
.tech-card-horizontal:hover .core-img-box img { 
    transform: scale(1.08); 
}

.glass-panel { 
    background: var(--glass-dark); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid var(--glass-border); 
}

/* =========================================
   5. HEADER & NAV
   ========================================= */
.tech-header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    background: var(--glass-bg); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(23, 67, 136, 0.1); 
    transition: var(--transition); 
}
.tech-header.scrolled { 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    padding: 0; 
    background: rgba(255, 255, 255, 0.92); 
}
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 75px; 
}

.desktop-nav .nav-links { display: flex; gap: 24px; }
.desktop-nav a { 
    font-family: 'Cairo', sans-serif; 
    font-weight: 700; 
    color: var(--text-main); 
    font-size: 0.88rem; 
    text-transform: uppercase; 
    position: relative; 
    padding: 5px 0; 
}
.desktop-nav a::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: -2px; 
    width: 0; 
    height: 2px; 
    background: var(--secondary); 
    transition: var(--transition); 
}
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 15px; }

.profile-trigger { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 6px 14px; 
    border: 1px solid var(--border-color); 
    font-weight: bold; 
    color: var(--primary); 
    transition: var(--transition); 
}
.profile-trigger:hover { 
    background: var(--bg-main); 
    border-color: var(--primary); 
}
.avatar-glow { 
    background: rgba(23,67,136,0.08); 
    width: 26px; 
    height: 26px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid rgba(23, 67, 136, 0.3); 
}
.user-profile { position: relative; }
.tech-dropdown { 
    position: absolute; 
    top: calc(100% + 12px); 
    right: 0; 
    background: #fff; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
    width: 170px; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(8px); 
    transition: var(--transition); 
    z-index: 100; 
}
.user-profile.active .tech-dropdown { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
    border-top: 2px solid var(--secondary); 
}
.tech-dropdown li a { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 14px; 
    color: var(--text-main); 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    font-weight: 600; 
    font-family: 'Cairo', sans-serif; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
}
.tech-dropdown li a:hover { 
    background: var(--bg-main); 
    color: var(--primary); 
    padding-left: 18px; 
    border-left: 3px solid var(--primary); 
}

.hamburger { display: none; flex-direction: column; gap: 5px; z-index: 1005; cursor: pointer; }
.hamburger span { width: 26px; height: 3px; background: var(--primary); transition: var(--transition); display: block; }
.mobile-nav { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 300px; 
    max-width: 100vw; 
    height: 100vh; 
    background: rgba(255,255,255,0.98); 
    border-left: 1px solid rgba(23, 67, 136, 0.15); 
    z-index: 999; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition); 
    padding: 30px 20px; 
    box-shadow: -8px 0 24px rgba(0,0,0,0.05); 
}
.mobile-nav.active { right: 0; }
.mobile-links { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.mobile-links a:not(.btn) { 
    font-family: 'Cairo', sans-serif; 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--primary); 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 8px; 
    display: block; 
    text-transform: uppercase; 
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 75px; position: relative; }
.hero::before { 
    content: ''; 
    position: absolute; 
    right: 0; 
    top: 0; 
    width: 45%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(23,67,136,0.03)); 
    z-index: 0; 
    pointer-events: none; 
}
.hero-container { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    background: var(--bg-surface); 
    padding: 40px; 
    border: 1px solid var(--border-color); 
    box-shadow: 8px 8px 0 rgba(23,67,136,0.03); 
    transform-style: preserve-3d; 
}
.hero-content { flex: 1.2; transform: translateZ(20px); }
.tech-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 5px 12px; 
    background: rgba(213, 36, 43, 0.08); 
    color: var(--secondary); 
    font-weight: bold; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: 15px; 
    border: 1px solid rgba(213, 36, 43, 0.2); 
    box-shadow: 2px 2px 0 rgba(213, 36, 43, 0.1); 
}
.hero-content .title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.15; margin-bottom: 15px; font-weight: 900; }
.hero-content .title .highlight { 
    color: transparent; 
    -webkit-text-stroke: 1.5px var(--primary); 
    position: relative; 
}
.hero-content .title .highlight::before { 
    content: attr(data-text); 
    position: absolute; 
    left: 0; 
    top: 0; 
    color: var(--primary); 
    width: 0; 
    overflow: hidden; 
    animation: fillText 3.5s linear forwards; 
}
@keyframes fillText { 100% { width: 100%; } }
.hero-content .description { font-size: 1rem; margin-bottom: 25px; max-width: 480px; font-weight: 500; }

/* Video Frame (Updated for Vertical Video) */
.hero-video-box { 
    flex: 0.8; 
    transform: translateZ(40px); 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}
.video-frame { 
    position: relative; 
    padding: 10px; 
    border: 1px solid var(--primary); 
    background: var(--bg-main); 
    width: 100%; 
    max-width: 290px; 
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(23,67,136,0.12);
}
.video-frame video { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 9/16; 
    object-fit: cover; 
    display: block; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); 
    filter: contrast(1.05); 
}
.frame-corners { position: absolute; top: -4px; left: -4px; width: calc(100% + 8px); height: calc(100% + 8px); pointer-events: none; }
.frame-corners::before, .frame-corners::after { 
    content: ''; 
    position: absolute; 
    width: 30px; 
    height: 30px; 
    border: 3px solid var(--secondary); 
}
.frame-corners::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.frame-corners::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* =========================================
   7. SYSTEMS (DARK TECH SECTION)
   ========================================= */
.dark-tech-section { 
    background-color: var(--bg-dark-tech); 
    color: #fff; 
    position: relative; 
    border-top: 1px solid rgba(23, 67, 136, 0.15); 
    border-bottom: 1px solid rgba(23, 67, 136, 0.15); 
}
.dark-tech-section::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: radial-gradient(circle at center, rgba(23,67,136,0.15) 0%, transparent 75%); 
    pointer-events: none; 
}
.glow-line { background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.system-card { 
    padding: 35px; 
    text-align: center; 
    border-top: 3px solid var(--primary); 
    transition: var(--transition); 
    transform-style: preserve-3d; 
    background: rgba(6, 11, 19, 0.6); 
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.system-card:hover { 
    border-top-color: var(--secondary); 
    box-shadow: 0 12px 35px rgba(23,67,136,0.25); 
    transform: translateY(-2px);
}
.sys-icon { 
    font-size: 3rem; 
    color: #fff; 
    margin-bottom: 18px; 
    text-shadow: 0 0 15px var(--primary); 
    transform: translateZ(15px); 
    display: inline-block; 
}
.system-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 12px; transform: translateZ(8px); }
.system-card p { color: #94a3b8; margin-bottom: 22px; transform: translateZ(4px); font-size: 0.95rem; }
.sys-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--primary); 
    font-weight: bold; 
    padding: 8px 18px; 
    border: 1px solid var(--primary); 
    transform: translateZ(10px); 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    transition: var(--transition);
}
.system-card:hover .sys-link { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 0 12px var(--primary-glow); 
}

/* =========================================
   8. TESTIMONIALS & FAQ & CONTACT
   ========================================= */
.testimonial-card { 
    background: var(--bg-surface); 
    padding: 35px; 
    text-align: center; 
    border: 1px solid var(--border-color); 
    border-bottom: 3px solid var(--primary); 
    margin: 15px 10px; 
    box-shadow: 4px 4px 0 rgba(23,67,136,0.02); 
}
.quote-mark { font-size: 2.2rem; color: rgba(23,67,136,0.07); margin-bottom: 15px; }
.testimonial-card h4 { color: var(--primary); margin: 12px 0 4px; }
.swiper-pagination-bullet { 
    width: 10px !important; 
    height: 10px !important; 
    background: var(--border-color) !important; 
    border-radius: 0 !important; 
    opacity: 1 !important; 
    transition: var(--transition); 
}
.swiper-pagination-bullet-active { 
    background: var(--primary) !important; 
    transform: scale(1.2); 
    border: 1px solid var(--secondary); 
}

/* FAQ */
.faq-item { 
    border: 1px solid var(--border-color); 
    margin-bottom: 12px; 
    background: var(--bg-surface); 
    border-left: 3px solid var(--primary); 
    transition: var(--transition); 
}
.faq-item:hover { border-left-color: var(--secondary); }
.faq-question { 
    padding: 16px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: bold; 
    color: var(--text-main); 
    font-family: 'Cairo', sans-serif; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
}
.faq-question i { color: var(--primary); transition: transform 0.3s; }
.faq-answer { 
    padding: 0 20px; 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.35s ease; 
    background: var(--bg-main); 
    color: var(--text-muted); 
    font-size: 0.92rem;
}
.faq-item.active .faq-question i { transform: rotate(45deg); color: var(--secondary); }
.faq-item.active .faq-answer { 
    padding: 16px 20px; 
    max-height: 250px; 
    border-top: 1px solid var(--border-color); 
}

.info-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 500; font-size: 1rem; }
.info-item i { color: var(--secondary); font-size: 1.1rem; width: 22px; text-align: center; }

/* INPUT GROUPS */
.input-group { position: relative; margin-bottom: 15px; }
.input-group i { position: absolute; top: 15px; left: 16px; color: var(--primary); opacity: 0.5; transition: var(--transition); }
.input-group input, .input-group textarea { 
    width: 100%; 
    padding: 12px 15px 12px 42px; 
    border: 1px solid var(--border-color); 
    background: var(--bg-main); 
    color: var(--text-main); 
    font-family: inherit; 
    transition: var(--transition); 
    font-size: 0.95rem; 
}
.input-group input:focus, .input-group textarea:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: #fff; 
    box-shadow: inset 3px 0 0 var(--secondary); 
}
.input-group input:focus + i, .input-group textarea:focus + i { opacity: 0.9; color: var(--secondary); }

/* =========================================
   9. FOOTER
   ========================================= */
.tech-footer { 
    background: var(--bg-surface); 
    border-top: 3px solid var(--primary); 
    padding: 70px 0 20px; 
    position: relative; 
}
.footer-logo p { font-weight: 500; font-size: 0.95rem; }
.social-links a { 
    display: inline-flex; 
    width: 36px; 
    height: 36px; 
    background: var(--bg-main); 
    border: 1px solid var(--border-color); 
    justify-content: center; 
    align-items: center; 
    color: var(--primary); 
    margin-right: 8px; 
    transition: var(--transition); 
}
.social-links a:hover { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
    transform: translateY(-2px) rotate(4deg); 
    box-shadow: 3px 3px 0 var(--primary-glow); 
}

.footer-links h4, .footer-divisions h4, .footer-language h4 { 
    font-size: 1rem; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    color: var(--primary); 
    letter-spacing: 0.5px; 
}
.footer-links ul li, .footer-divisions ul li { margin-bottom: 8px; }
.footer-links ul li a, .footer-divisions ul li a { 
    color: var(--text-muted); 
    font-weight: 500; 
    display: inline-block; 
    font-size: 0.9rem;
    transition: var(--transition); 
}
.footer-links ul li a:hover, .footer-divisions ul li a:hover { 
    color: var(--secondary); 
    transform: translateX(4px); 
}

.custom-dropdown { position: relative; }
.dropdown-trigger { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 14px; 
    border: 1px solid var(--border-color); 
    background: var(--bg-main); 
    font-weight: bold; 
    color: var(--primary); 
    transition: var(--transition); 
    font-size: 0.9rem;
}
.dropdown-trigger:hover { border-color: var(--primary); }
.footer-language .tech-dropdown { 
    top: auto; 
    bottom: calc(100% + 12px); 
    transform: translateY(8px); 
    width: 100%;
}
.custom-dropdown.active .tech-dropdown { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
    border-top: none; 
    border-bottom: 2px solid var(--secondary); 
}
.footer-bottom { 
    border-top: 1px solid var(--border-color); 
    margin-top: 40px; 
    padding-top: 18px; 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    font-weight: 600; 
}

/* =========================================
   10. CHAT WIDGET
   ========================================= */
.chat-widget { position: fixed; bottom: 25px; right: 25px; z-index: 1000; }
.chat-btn { 
    width: 55px; 
    height: 55px; 
    background: var(--primary); 
    color: #fff; 
    border: 1px solid var(--primary); 
    font-size: 1.4rem; 
    box-shadow: 0 4px 15px var(--primary-glow); 
    transition: var(--transition); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.chat-btn:hover { 
    background: var(--secondary); 
    border-color: var(--secondary); 
    transform: scale(1.05); 
    box-shadow: 0 4px 20px var(--secondary-glow); 
}
.chat-container { 
    position: absolute; 
    bottom: 70px; 
    right: 0; 
    width: 330px; 
    max-width: calc(100vw - 30px); 
    background: #fff; 
    border: 1px solid var(--primary); 
    box-shadow: 8px 8px 0 rgba(23,67,136,0.08); 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(15px); 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
}
.chat-container.active { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-header { 
    background: var(--primary); 
    color: #fff; 
    padding: 12px 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid var(--secondary); 
}
.chat-header h3 { color: #fff; font-size: 1rem; margin: 0; letter-spacing: 0.5px; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.4rem; transition: var(--transition); }
.chat-close:hover { color: var(--secondary); transform: rotate(90deg); }
.chat-body { padding: 12px; height: 280px; overflow-y: auto; background: var(--bg-main); display: flex; flex-direction: column; gap: 8px; }
.message { padding: 8px 12px; max-width: 82%; font-size: 0.9rem; border: 1px solid; }
.message.incoming { background: #fff; border-color: var(--border-color); align-self: flex-start; border-left: 3px solid var(--secondary); }
.message.outgoing { background: var(--primary); color: #fff; border-color: var(--primary); align-self: flex-end; border-right: 3px solid var(--secondary); }
.chat-footer { padding: 8px; display: flex; border-top: 1px solid var(--border-color); background: #fff; gap: 6px; }
.chat-footer input { flex: 1; border: 1px solid var(--border-color); padding: 10px; outline: none; font-family: inherit; font-size: 0.9rem; }
.chat-footer input:focus { border-color: var(--primary); }
.chat-footer button { background: var(--primary); color: #fff; border: 1px solid var(--primary); padding: 0 16px; transition: var(--transition); }
.chat-footer button:hover { background: var(--secondary); border-color: var(--secondary); }

/* =========================================
   11. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; padding: 25px; text-align: center; }
    .hero-content, .hero-video-box { transform: none; }
    .video-frame { padding: 8px; max-width: 250px; }
}
@media (max-width: 768px) {
    .desktop-nav, #desktop-login-btn, #desktop-user-profile { display: none; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .footer-wrapper { grid-template-columns: 1fr; text-align: center; }
    .footer-links ul li a:hover, .footer-divisions ul li a:hover { transform: translateY(-1px); }
    .chat-widget { bottom: 15px; right: 15px; }
    .chat-container { right: 0; bottom: 65px; }
    .hero { padding-top: 90px; } 
    .section { padding: 50px 0; }
}

/* =========================================
   12. RTL (ARABIC) SUPPORT OVERRIDES
   ========================================= */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .text-left { text-align: right !important; }

/* Utilities */
[dir="rtl"] .header-line::after { right: auto; left: -12px; }
[dir="rtl"] .btn-tech::before { left: auto; right: -100%; }
[dir="rtl"] .btn-tech:hover::before { right: 100%; left: auto; }
[dir="rtl"] .desktop-nav a::after { left: auto; right: 0; }

/* Dropdowns & Menus */
[dir="rtl"] .tech-dropdown { right: auto; left: 0; }
[dir="rtl"] .tech-dropdown li a { padding-left: 14px; padding-right: 14px; border-left: none; border-right: 0 solid transparent; }
[dir="rtl"] .tech-dropdown li a:hover { padding-left: 14px; padding-right: 18px; border-left: none; border-right: 3px solid var(--primary); }
[dir="rtl"] .mobile-nav { right: auto; left: -100%; border-left: none; border-right: 1px solid rgba(23, 67, 136, 0.15); }
[dir="rtl"] .mobile-nav.active { left: 0; right: auto; }

/* Cards */
[dir="rtl"] .tech-card { border-left: none; border-right: 3px solid var(--primary); }
[dir="rtl"] .tech-card::before { left: 0; right: auto; border-right: none; border-left: 1px solid var(--border-color); }
[dir="rtl"] .tech-card:hover { border-right-color: var(--secondary); border-left-color: transparent; }
[dir="rtl"] .tech-card:hover::before { border-color: var(--secondary); }

[dir="rtl"] .faq-item { border-left: none; border-right: 3px solid var(--primary); }
[dir="rtl"] .faq-item:hover { border-right-color: var(--secondary); border-left-color: transparent; }

/* Hero */
[dir="rtl"] .hero::before { right: auto; left: 0; background: linear-gradient(-90deg, transparent, rgba(23,67,136,0.03)); }
[dir="rtl"] .hero-content .title .highlight::before { left: auto; right: 0; }

/* Inputs */
[dir="rtl"] .input-group i { left: auto; right: 16px; }
[dir="rtl"] .input-group input, [dir="rtl"] .input-group textarea { padding: 12px 42px 12px 15px; }
[dir="rtl"] .input-group input:focus, [dir="rtl"] .input-group textarea:focus { box-shadow: inset -3px 0 0 var(--secondary); }

/* Footer & Chat */
[dir="rtl"] .social-links a { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .footer-links ul li a:hover, [dir="rtl"] .footer-divisions ul li a:hover { transform: translateX(-4px); }
[dir="rtl"] .chat-widget { right: auto; left: 25px; }
[dir="rtl"] .chat-container { right: auto; left: 0; }
[dir="rtl"] .message.incoming { border-left: none; border-right: 3px solid var(--secondary); }
[dir="rtl"] .message.outgoing { border-right: none; border-left: 3px solid var(--secondary); }
@media (max-width: 768px) {
    [dir="rtl"] .chat-widget { left: 15px; right: auto; }
}
