:root {
    --purple: #4B0082; 
    --purple-dark: #3a0066; 
    --teal: #00FFA3; 
    --coral: #F06A4B;
    
    --font-hero: Impact, 'Arial Black', sans-serif; 
    --font-body: 'Inter', sans-serif; 
    --font-ar: 'Cairo', sans-serif;
}
body.rtl, html[dir="rtl"] { 
    --font-hero: var(--font-ar);
    --font-body: var(--font-ar);
    direction: rtl; text-align: right; 
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: var(--font-body); background: #fff; color: #111; overflow-x: hidden; }
.container { width: 92%; max-width: 1250px; margin: 0 auto; }

/* HEADER */
.site-header { background: var(--purple); padding: 25px 0; position: relative; z-index: 999;}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 20px;}
.header-logo-wrap { flex-shrink: 0; }
.brand-logo svg, .brand-logo img { max-height: 40px; display: block; }
.header-nav-wrap { flex: 1; display: flex; justify-content: center; } 
.header-right-wrap { flex-shrink: 0; display: flex; align-items: center;}
.header-actions { display: flex; gap: 12px; }

.mobile-menu-header { display: none; }
.main-navigation ul { display: flex; gap: 30px; list-style: none; }
.main-navigation a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding-bottom: 5px; transition: color 0.3s;}
.main-navigation a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--teal); transition: width 0.3s ease;}
.main-navigation a:hover { color: var(--teal); }
.main-navigation a:hover::after { width: 100%; }

.btn { padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: 0.3s;}
.btn-teal { background: var(--teal); color: #000; }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,255,163,0.4); }
.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--teal); border-color: var(--teal); }

.hamburger-btn { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.hamburger-btn span { width: 32px; height: 3px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* HERO SECTION */
/* display:flow-root يمنع الـ margin السالب للفيديو من الهروب خارج السكشن (سبب مشكلة الموبايل) */
.hero-section { background: var(--purple); padding: 70px 0 0 0; color: #fff; position: relative; z-index: 20; display: flow-root;}
.hero-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 70px;}

.hero-left { display: flex; flex-direction: column; }
.hero-line-1, .text-agency { font-family: var(--font-hero); font-weight: normal; font-size: 90px; line-height: 0.95; letter-spacing: 1px; }
.text-white { color: #fff; } .text-teal { color: var(--teal); }

.hero-line-2 { display: flex; align-items: flex-start; gap: 15px; margin-top: 10px; }
.est-box { display: flex; flex-direction: column; margin-top: 5px;}
.est-txt { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: -2px;}
.est-year { font-family: var(--font-hero); font-size: 28px; font-weight: normal; color: #fff; line-height: 1;}

.hero-right { max-width: 440px; padding-left: 40px; border-left: 1px solid rgba(255,255,255,0.2); display: flex; flex-direction: column; justify-content: center;}
.hero-desc { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 40px;} 

.hero-stats { display: flex; gap: 35px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-hero); font-size: 42px; font-weight: normal; line-height: 1; letter-spacing: 1px; color: #fff;} 
.stat-num .plus { color: var(--teal); }
.stat-lbl { font-family: var(--font-body); font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.7); margin-top: 5px; line-height: 1.4;}


/* =========================================
   PERFECT OVERLAP FIX (No Overflow Bugs)
========================================= */
.hero-media-wrap { 
    width: 100%;
    /* هذا هو الطول الدقيق للصورة الذي نتج عن 140% */
    height: 450px; 
    /* سحب القسم الأبيض للأعلى ليتداخل مع الصورة بمقدار دقيق جداً */
    position: relative; 
    z-index: 21; 
}

.media-desktop, .media-mobile { 
    width: 100%; 
    /* 100% ليأخذ المساحة كاملة (672px) بدون أن يخرج عن الإطار، لكي يظل الـ border-radius يعمل */
    height: 130%; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    background: #f0f0f0;
}

.media-desktop img, .media-desktop video, .media-mobile img, .media-mobile video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}
.media-mobile { display: none; }


/* =========================================
   SERVICES
========================================= */
.services-section { 
    /* الرقم الذي كتبته أنت لضبط المسافة السفلية بعد التداخل */
    padding-top: 215px; 
    padding-bottom: 100px; 
    background: #fff; 
    position: relative; 
    z-index: 10; 
} 

.services-text-wrapper { position: relative; z-index: 30; } 
.section-subtitle { font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.teal-txt { color: var(--teal); }

.section-title-box { display: flex; align-items: center; gap: 20px; margin-bottom: 15px;}
.section-title { font-family: var(--font-hero); font-size: 65px; font-weight: normal; line-height: 1; text-transform: uppercase; margin: 0; }
.text-black { color: #000; } .text-white { color: #fff; }
.title-line { height: 1.5px; width: 120px; flex-grow: 0; } .black-line { background: #000; } .white-line { background: #fff; }

.section-paragraph { font-family: var(--font-body); max-width: 600px; color: #444; font-size: 15px; margin: 0 0 40px; line-height: 1.6; font-weight: 500;}

.service-card { display: flex; border-radius: 20px; overflow: hidden; min-height: 480px; }
.srv-content { flex: 1; padding: 70px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.srv-content h3 { font-family: var(--font-hero); font-size: 55px; font-weight: normal; line-height: 1; margin-bottom: 25px; letter-spacing: 1px;}
.srv-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.srv-tags span { border: 1px solid rgba(255,255,255,0.4); padding: 6px 18px; border-radius: 50px; font-size: 13px; font-family: var(--font-body); font-weight: 600;}
.srv-content p { font-family: var(--font-body); font-size: 15px; font-weight: 500; margin-bottom: 30px; line-height: 1.6; opacity: 0.9; }
.srv-btn { border: 1px solid #fff; border-radius: 50px; padding: 12px 26px; color: #fff; text-decoration: none; width: max-content; font-size: 14px; font-family: var(--font-body); font-weight: 600; transition: 0.3s; }
.srv-btn:hover { background: #fff; color: #000; }
.srv-img { flex: 1; } .srv-img img { width: 100%; height: 100%; object-fit: cover; }

/* CLIENTS, PROJECTS, CTA, FOOTER */
.clients-section { background: var(--purple); padding: 100px 0; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px 20px; margin-top: 60px; align-items: center; justify-items: center; }
.logo-wrap { -webkit-tap-highlight-color: transparent; background: transparent; }
.logo-wrap img { max-width: 140px; max-height: 50px; filter: brightness(0) invert(1); object-fit: contain; opacity: 0.9; transition: 0.4s ease; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; }
/* الهوفر يشتغل فقط على الأجهزة اللي فيها ماوس (يمنع اللون الأسود عند اللمس في الموبايل) */
@media (hover: hover) and (pointer: fine) {
    .logo-wrap img:hover { opacity: 1; transform: scale(1.15); filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.4)); }
}

.projects-section { padding: 100px 0; }
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; }
.view-all-link { font-family: var(--font-body); display: flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 600; text-decoration: none; font-size: 18px; margin-bottom: 10px; transition: 0.3s;}
.view-all-link:hover { color: var(--coral); transform: translateX(5px); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.project-card { border: 1px solid #eee; background: #fff; border-radius: 16px; padding: 16px; transition: 0.3s; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--teal);}
.feat-card { grid-column: 1 / -1; }
.p-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.p-title { display: flex; align-items: center; gap: 6px; }
.p-year { font-family: var(--font-hero); font-weight: normal; color: #888;}
.project-card img { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; display: block;}
.feat-card img { height: 550px; }

.cta-section { background: var(--purple); padding: 100px 0; color: #fff; }
.cta-flex { display: flex; justify-content: space-between; align-items: center; }
.cta-title { font-family: var(--font-hero); font-size: 68px; font-weight: normal; line-height: 1.05; letter-spacing: 1px; margin: 0;}
.cta-link { font-family: var(--font-hero); font-size: 42px; font-weight: normal; color: #fff; text-decoration: none; border-bottom: 4px solid var(--teal); padding-bottom: 5px; transition: color 0.3s; line-height: 1;}
.cta-link:hover { color: var(--teal); }

.site-footer { --footer-bg: #fff; --footer-text: #111; --footer-accent: var(--purple); --footer-hover: var(--teal); padding: 80px 0 30px; background: var(--footer-bg); color: var(--footer-text); font-family: var(--font-body);}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 2.5fr; gap: 30px; border-bottom: 1px solid color-mix(in srgb, var(--footer-text) 18%, transparent); padding-bottom: 60px; }
.f-col-logo { display: flex; align-items: flex-start; }
.footer-logo-img { width: 100%; max-width: 200px; height: auto; display: block; }
.f-col h4 { font-size: 18px; margin-bottom: 20px; font-weight: 700; color: var(--footer-text);}
.f-col p, .f-col a, .footer-links a { color: color-mix(in srgb, var(--footer-text) 78%, transparent); text-decoration: none; font-size: 15px; margin-bottom: 14px; display: inline-block; transition: 0.3s; line-height: 1.5; font-weight: 500;}
.f-col a:hover, .footer-links a:hover { color: var(--footer-hover); transform: translateX(5px); }
.footer-links { list-style: none; }
.f-col-right { display: flex; flex-direction: column; align-items: flex-start;}
.socials { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; }
.socials a { font-weight: 600; font-size: 15px; color: var(--footer-text); text-decoration: none; display: flex; align-items: center; gap: 4px;}
.socials a:hover { color: var(--footer-hover); transform: translateY(-3px); }
.soc-arr { width: 18px; height: 18px; margin-top: 2px; color: var(--footer-accent); }

.news-form { display: flex; width: 100%; max-width: 450px; align-items: stretch;}
.news-form input { flex: 1; border: 2px solid var(--footer-accent); border-right: none; border-radius: 50px 0 0 50px; padding: 14px 25px; font-size: 14px; outline: none; background: transparent; color: var(--footer-text); font-family: var(--font-body);}
.news-form button { font-family: var(--font-body); background: var(--footer-accent); color: var(--footer-bg); border: 2px solid var(--footer-accent); border-radius: 0 50px 50px 0; padding: 14px 30px; font-weight: 600; font-size: 15px; cursor: pointer; transition: 0.3s;}
.news-form button:hover { background: var(--teal); color: #000; border-color: var(--teal); }
.news-form input::placeholder { color: color-mix(in srgb, var(--footer-text) 55%, transparent); }

.footer-bottom { display: flex; justify-content: space-between; padding-top: 30px; font-size: 14px; color: color-mix(in srgb, var(--footer-text) 75%, transparent); font-weight: 500;}
.legal-links a { color: color-mix(in srgb, var(--footer-text) 75%, transparent); text-decoration: none; transition: 0.3s; font-weight: 600; }
.legal-links a:hover { color: var(--footer-hover); }

/* =========================================
   ABOUT US PAGE (page-about.php)
========================================= */
* { -webkit-tap-highlight-color: transparent; }

.about-hero { background: #fff; padding: 90px 0 0; text-align: center; overflow: hidden; }
.about-hero-title { font-family: var(--font-hero); font-size: 110px; font-weight: normal; line-height: 1; text-transform: uppercase; color: var(--purple); margin: 0 0 60px; letter-spacing: 1px; }
.about-collage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: center; width: 100%; padding-bottom: 90px; }
.about-collage .col-img { border-radius: 4px; overflow: hidden; }
.about-collage .col-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-collage .col-img:nth-child(odd) { height: 460px; }
.about-collage .col-img:nth-child(even) { height: 320px; }
.about-collage .col-img:nth-child(1) { margin-left: -8%; }
.about-collage .col-img:nth-child(4) { margin-right: -8%; }

.mission-section { background: var(--purple); color: #fff; padding: 100px 0; }
.mission-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.mission-title { font-family: var(--font-hero); font-size: 48px; font-weight: normal; line-height: 1.15; letter-spacing: 3px; text-transform: uppercase; color: #fff; margin: 10px 0 30px; }
.mission-text { font-family: var(--font-body); font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.9); white-space: pre-line; }
.mission-img { border-radius: 4px; overflow: hidden; height: 480px; }
.mission-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.facts-section { background: #fff; padding: 100px 0; text-align: center; }
.facts-title { font-family: var(--font-hero); font-size: 60px; font-weight: normal; letter-spacing: 6px; text-transform: uppercase; color: var(--purple); margin: 0 0 60px; }
.facts-box { background: var(--coral); border-radius: 16px; padding: 60px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { border: 1px solid rgba(255,255,255,0.7); padding: 30px 20px; color: #fff; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.fact-over { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.fact-num { font-family: var(--font-body); font-size: 42px; font-weight: 500; line-height: 1; letter-spacing: 2px; }
.fact-lbl { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: 0.95; }

.why-section { background: var(--purple); color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.why-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.why-dots { width: 260px; height: 50px; background-image: radial-gradient(var(--coral) 1.6px, transparent 1.6px); background-size: 14px 14px; opacity: 0.9; flex-shrink: 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-img-wrap { position: relative; padding: 0 0 30px 30px; }
.why-img-frame { position: absolute; inset: 20px -20px 0 0; border: 1.5px solid var(--coral); border-radius: 18px; pointer-events: none; }
.why-img { position: relative; border-radius: 16px; overflow: hidden; height: 400px; z-index: 2; margin-left: -30px; }
.why-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(100%); }
.why-list { display: flex; flex-direction: column; gap: 25px; }
.why-item { background: #fff; color: var(--purple); border-radius: 10px; padding: 22px 30px; display: flex; align-items: center; gap: 25px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.why-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--purple); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.why-icon img { width: 32px; height: 32px; object-fit: contain; filter: brightness(0) invert(1); }
.why-icon svg { width: 32px; height: 32px; stroke: #fff; }
.why-item h4 { font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0; }

.values-section { background: #fff; padding: 100px 0 120px; text-align: center; }
.values-title { font-family: var(--font-hero); font-size: 60px; font-weight: normal; letter-spacing: 6px; text-transform: uppercase; color: var(--purple); margin: 0 0 90px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.value-card { position: relative; background: #fff; border-radius: 6px; box-shadow: 0 15px 45px rgba(75,0,130,0.10); padding: 70px 35px 45px; }
.value-icon { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; border-radius: 50%; background: #00c2a8; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0,194,168,0.35); }
.value-icon img { width: 36px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); }
.value-icon svg { width: 36px; height: 36px; stroke: #fff; }
.value-card h3 { font-family: var(--font-body); font-size: 24px; font-weight: 700; color: var(--purple); margin: 0 0 22px; }
.value-card p { font-family: var(--font-body); font-size: 14px; line-height: 1.8; color: #555; margin: 0; white-space: pre-line; }

.marquee-section { background: var(--purple); position: relative; padding: 110px 0; overflow: hidden; min-height: 460px; display: flex; align-items: center; }
.marquee-person { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 100%; width: auto; z-index: 2; pointer-events: none; }
.marquee-person img { height: 100%; width: auto; display: block; object-fit: contain; }
.marquee-track { width: 100%; display: flex; flex-direction: column; gap: 10px; position: relative; }
.marquee-row { display: flex; width: max-content; animation: yy-marquee 40s linear infinite; position: relative; z-index: 1; }
/* السطر الأول ورا الصورة، السطر الثاني قدامها (زي التصميم) */
.marquee-row.rev { z-index: 3; }
.marquee-row.rev { animation-direction: reverse; }
.marquee-row span { font-family: var(--font-body); font-size: 62px; font-weight: 800; color: #fff; white-space: nowrap; padding-right: 30px; line-height: 1.2; }
@keyframes yy-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== About CTA — Glow effect (مطابق لتصميم الـ SVG) =====
   الطبقات من تحت لفوق:
   1) خلفية بيضاء (--cta-bg)
   2) .cta-glow-blob : قطع ناقص بنفسجي (--cta-glow) بـ blur كبير — ده الهالة
   3) .cta-glow-halo : قطع ناقص أبيض بـ blur فوق البنفسجي عشان يخفف المنتصف ويطلع اللون على الحواف
   4) ::before        : طبقة Noise بـ mix-blend-mode: color-burn و opacity 0.25
   5) المحتوى فوق الكل (z-index: 1)
*/
.cta-section.cta-light {
    --cta-bg: #ffffff; --cta-glow: #8C2BBD; --cta-text: #510B75;
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--cta-bg); color: var(--cta-text);
}
.cta-section.cta-light .cta-flex { position: relative; z-index: 1; }
.cta-glow-blob, .cta-glow-halo { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; will-change: filter; }
.cta-glow-blob { width: 40%; min-width: 460px; aspect-ratio: 2.05 / 1; left: 46%; top: 64%; transform: translate(-50%, -50%); background: var(--cta-glow); filter: blur(130px); opacity: 0.9; }
.cta-glow-halo { width: 46%; min-width: 540px; aspect-ratio: 2.05 / 1; left: 50%; top: 46%; transform: translate(-50%, -50%); background: var(--cta-bg); filter: blur(130px); opacity: 0.85; }
.cta-section.cta-light.has-noise::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.25; mix-blend-mode: color-burn;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}
.cta-section.cta-light .cta-title { color: var(--cta-text); }
.cta-section.cta-light .cta-link { color: var(--cta-text); border-bottom-color: var(--cta-text); }
.cta-section.cta-light .cta-link:hover { color: var(--cta-glow); border-bottom-color: var(--cta-glow); }

@media (max-width: 1080px) {
    .about-hero { padding-top: 60px; }
    .about-hero-title { font-size: 64px; margin-bottom: 40px; }
    .about-collage { grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 60px; }
    .about-collage .col-img:nth-child(odd), .about-collage .col-img:nth-child(even) { height: 240px; }
    .about-collage .col-img:nth-child(1), .about-collage .col-img:nth-child(4) { margin: 0; }
    .mission-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .mission-title { font-size: 34px; letter-spacing: 2px; }
    .mission-img { height: 320px; }
    .facts-title, .values-title { font-size: 40px; letter-spacing: 3px; }
    .facts-box { grid-template-columns: repeat(2, 1fr); padding: 30px 20px; }
    .fact-num { font-size: 34px; }
    .why-head { flex-direction: column; align-items: flex-start; gap: 20px; }
    .why-dots { width: 160px; }
    .why-img { height: 300px; }
    .values-grid { grid-template-columns: 1fr; gap: 70px; }
    .marquee-section { padding: 70px 0; min-height: 320px; }
    .marquee-row span { font-size: 36px; }
    .cta-section.cta-light .cta-title { text-align: left; }
}
@media (max-width: 500px) {
    .about-hero-title { font-size: 48px; }
    .facts-box { grid-template-columns: 1fr; }
    .why-item { padding: 18px 20px; gap: 16px; }
    .why-icon { width: 50px; height: 50px; }
}

/* RTL Adjustments */
body.rtl .about-collage .col-img:nth-child(1) { margin-left: 0; margin-right: -8%; }
body.rtl .about-collage .col-img:nth-child(4) { margin-right: 0; margin-left: -8%; }
body.rtl .why-img-wrap { padding: 0 30px 30px 0; }
body.rtl .why-img { margin-left: 0; margin-right: -30px; }
body.rtl .why-img-frame { inset: 20px 0 0 -20px; }
body.rtl .marquee-row span { padding-right: 0; padding-left: 30px; }
body.rtl .hero-right { border-left: none; border-right: 1px solid rgba(255,255,255,0.2); padding-left: 0; padding-right: 40px; }
body.rtl .view-arr { transform: rotate(180deg); }
body.rtl .view-all-link:hover { transform: translateX(-5px); }
body.rtl .f-col a:hover, body.rtl .footer-links a:hover { transform: translateX(-5px); }
body.rtl .main-navigation a::after { left: auto; right: 0; }
body.rtl .news-form input { border-right: 2px solid var(--footer-accent); border-left: none; border-radius: 0 50px 50px 0; }
body.rtl .news-form button { border-radius: 50px 0 0 50px; }

/* =========================================
   MOBILE MENU & RESPONSIVE FIXES
========================================= */
@media (max-width: 1080px) {
    .header-nav-wrap { display: flex; }
    .hamburger-btn { display: flex; }
    .header-actions { display: none; }
    
    .main-navigation { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--purple-dark); display: flex; flex-direction: column; transition: right 0.4s ease-in-out; z-index: 10000; padding: 30px; }
    body.rtl .main-navigation { right: auto; left: -100%; transition: left 0.4s ease-in-out; }
    .main-navigation.nav-active { right: 0; }
    body.rtl .main-navigation.nav-active { left: 0; }
    
    .mobile-menu-header { display: flex; justify-content: center; align-items: center; width: 100%; position: relative; margin-bottom: 60px; }
    .mobile-logo svg, .mobile-logo img { max-height: 40px; display: block; }
    .close-menu-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 40px; font-weight: 300; cursor: pointer; line-height: 1; }
    body.rtl .close-menu-btn { right: auto; left: 0; }
    
    .main-navigation ul { flex-direction: column; text-align: center; gap: 30px; margin: auto 0; }
    .main-navigation a { font-size: 22px; font-weight: 600; }

    .media-desktop { display: none; }
    .media-mobile { display: block; height: 100%;}

    .hero-grid, .cta-flex, .projects-grid, .service-card, .footer-grid { flex-direction: column; grid-template-columns: 1fr; }
    .hero-line-1, .text-agency { font-size: 50px; }
    
    .hero-right { max-width: 100%; border-left: none; padding-left: 0; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 30px;}
    body.rtl .hero-right { border-right: none; padding-right: 0; border-top: 1px solid rgba(255,255,255,0.2); }
    .hero-stats { gap: 20px; }
    
    /* =========================================
       MOBILE OVERLAP (نفس فكرة الديسكتوب)
       الفيديو ياخد ارتفاعه من نسبة العرض (4/3)
       ونسحبه لتحت بمقدار 28vw ليتداخل مع القسم الأبيض
    ========================================= */
    .hero-media-wrap { height: auto; margin-bottom: -28vw; }
    .media-mobile { display: block; height: auto; aspect-ratio: 4 / 3; }
    .services-section { padding-top: calc(28vw + 70px); }
    
    .section-title { font-size: 45px; }

    /* الخدمات في الموبايل: الصورة الأول ثم الكارد */
    .service-card { flex-direction: column-reverse; min-height: 0; }
    .srv-img { flex: none; width: 100%; height: 260px; }
    .srv-content { padding: 40px 30px; }
    .srv-content h3 { font-size: 40px; } 
    
    .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .cta-title { font-size: 42px; margin-bottom: 25px; text-align: center;}
    
    .footer-logo-img { max-width: 180px; margin-bottom: 20px;}
    .f-col-right { align-items: flex-start; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
}
@media (max-width: 500px) {
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-line-1, .text-agency { font-size: 42px; }
    .news-form { flex-direction: column; border-radius: 12px; border: none; }
    .news-form input { border: 2px solid var(--footer-accent); border-radius: 12px; margin-bottom: 10px; }
    .news-form button { border-radius: 12px; }
    
    .srv-img { height: 220px; }
    .srv-content h3 { font-size: 32px; }
}
