:root {
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #1D4ED8;
    --secondary: #10B981;
    --secondary-hover: #059669;

    /* DEFAULT: Dark Mode */
    --bg-main: #080F1E;
    --bg-card: rgba(15, 23, 42, 0.65);
    --text-main: #F0F6FF;
    --text-muted: #94A3B8;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Almarai', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='light'] {
    --primary: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-dark: #1E3A8A;

    --bg-main: #F0F4FF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-main: #111827;
    --text-muted: #4B5563;

    --glass-border: rgba(29, 78, 216, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(29, 78, 216, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-en);
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--font-ar); direction: rtl; }

/* نص عربي داخل صفحات إنجليزية */
html[lang='en'] [dir='rtl'],
html[lang='en'] .svc-sub-card-lang {
    font-family: var(--font-ar);
}

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Header — خط سفلي أبيض ثابت؛ بعد تمرير بسيط يتحول لتدرج (مثل العنوان الملوّن) */
header {
    position: fixed;
    top: 0; width: 100%; z-index: 1200;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    background: rgba(8, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 1;
    transition: background 0.35s ease, opacity 0.35s ease;
}

header.scrolled::after {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

header.scrolled {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 4px 24px rgba(0, 0, 0, 0.28);
}

[data-theme='light'] header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 4px 20px rgba(29, 78, 216, 0.07);
}

[data-theme='light'] header::after {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.95;
}

[data-theme='light'] header.scrolled::after {
    background: rgba(29, 78, 216, 0.35);
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

[data-theme='light'] header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 8px 28px rgba(29, 78, 216, 0.11);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; gap: 1rem; flex-wrap: nowrap; }

.logo-text {
    display: flex; align-items: center; gap: 0.75rem; text-decoration: none;
    font-weight: 800; font-size: 1.2rem; color: var(--text-main);
}
.logo-text img { height: 40px; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-muted); font-weight: 600;
    font-size: 0.95rem; transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-light); }
.nav-links a.nav-current {
    color: var(--primary-light);
    font-weight: 800;
}
.nav-links .nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; padding: 0.6rem 1.2rem; border-radius: 999px;
}
.nav-links .nav-cta:hover {
    color: #daffc4;
}

/* Theme + language: one horizontal row, aligned */
.controls {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.theme-toggle, .lang-toggle {
    background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
    color: var(--text-main); min-width: 42px; height: 42px; padding: 0 0.65rem;
    border-radius: 12px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover, .lang-toggle:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-light);
}

/* زر القائمة الجانبية — يظهر فقط على الموبايل (يُفعَّل ضمن @media أدناه) */
.mrtech-nav-open {
    display: none;
}

.lang-toggle {
    text-decoration: none;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

a.theme-toggle {
    text-decoration: none;
}

[data-theme='light'] .theme-toggle,
[data-theme='light'] .lang-toggle {
    background: rgba(29, 78, 216, 0.06);
}

/* Service icons on home: Font Awesome when asset images are missing */
.services-featured-badge-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}
.services-featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* gap: 0.75rem; */
    width: 100%;
    width: -moz-available;
    width: -webkit-fill-available;
    max-width: 100%;
    margin: 0 0 0.8rem;
    box-sizing: border-box;
    padding: 0.34rem 1.05rem;
    min-height: 0;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(129, 140, 248, 0.38);
    color: var(--primary-light);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.25) inset,
        0 4px 18px rgba(59, 130, 246, 0.08);
    position: relative;
}
[data-theme='dark'] .services-featured-badge {
    background: linear-gradient(135deg, rgb(59 130 246 / 10%), rgba(99, 102, 241, 0.08));
    border: 1px solid rgb(43 53 77);
}
.services-featured-badge::before,
.services-featured-badge::after {
    content: '';
    flex: 0 0 auto;
    width: clamp(1.5rem, 8vw, 3.25rem);
    height: 1px;
    border-radius: 1px;
    opacity: 0.75;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), rgba(129, 140, 248, 0.35), transparent);
}
html[dir='rtl'] .services-featured-badge::before,
html[dir='rtl'] .services-featured-badge::after {
    background: linear-gradient(270deg, transparent, rgba(56, 189, 248, 0.55), rgba(129, 140, 248, 0.35), transparent);
}
[data-theme='light'] .services-featured-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 255, 0.88));
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 4px 16px rgba(29, 78, 216, 0.08);
}
[data-theme='light'] .services-featured-badge::before,
[data-theme='light'] .services-featured-badge::after {
    opacity: 0.9;
}
/* شارة الرئيسية: سطر واحد على الموبايل */
@media (max-width: 640px) {
    #bind-services-badge.services-featured-badge {
        font-size: clamp(0.54rem, 2.65vw, 0.72rem);
        letter-spacing: 0.055em;
        padding: 0.26rem 0.58rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    #bind-services-badge.services-featured-badge::before,
    #bind-services-badge.services-featured-badge::after {
        width: clamp(0.65rem, 3.5vw, 1.35rem);
    }
}
.services-grid.services-grid--feat-cols-2 {
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .services-grid.services-grid--feat-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.services-grid.services-grid--feat-cols-3 {
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .services-grid.services-grid--feat-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .services-grid.services-grid--feat-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.service-icon-slot--ring {
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.35),
        0 12px 40px rgba(2, 6, 23, 0.35);
}
[data-theme='light'] .service-icon-slot--ring {
    box-shadow:
        0 0 0 2px rgba(37, 99, 235, 0.35),
        0 10px 28px rgba(15, 23, 42, 0.08);
}
.service-icon-slot--glow {
    box-shadow:
        0 0 36px rgba(59, 130, 246, 0.45),
        inset 0 0 20px rgba(99, 102, 241, 0.12);
}
.service-icon-slot {
    width: 80px; height: 80px; margin-bottom: 1.5rem;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.15));
    color: var(--primary-light);
    border: 1px solid var(--glass-border);
}

.service-icon-slot img.service-icon-slot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 0.9rem;
}

.service-card .service-icon {
    width: 80px; height: 80px; margin-bottom: 1.5rem; object-fit: contain;
}

.service-card .service-icon.is-hidden { display: none; }

.logo-text img.logo-img { height: 40px; object-fit: contain; }
.logo-text .logo-fallback {
    display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
    background: transparent; border-radius: 10px; border: 0;
}
.logo-text .logo-fallback.is-visible { display: inline-flex; }
.logo-text .logo-fallback-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Portfolio detail modal */
.port-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(8, 15, 30, 0.82);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.port-modal-overlay.is-open { opacity: 1; visibility: visible; }

.port-modal {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 920px; width: 100%; max-height: 92vh;
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--glass-shadow);
}

.port-modal-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--glass-border);
}
.port-modal-header h2 { font-size: 1.35rem; margin: 0; line-height: 1.3; }
.port-modal-close {
    background: transparent; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; padding: 0.25rem; line-height: 1;
    border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.port-modal-close:hover { color: var(--text-main); background: rgba(255,255,255,0.06); }

.port-modal-body { overflow-y: auto; padding: 1.25rem 1.5rem 1.5rem; }

.port-modal-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem; margin-bottom: 1.25rem;
}
.port-modal-gallery img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.port-modal-videos { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.port-modal-videos .vid-wrap {
    position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--glass-border); background: #000;
}
.port-modal-videos iframe,
.port-modal-videos video {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.port-modal-desc { color: var(--text-muted); line-height: 1.75; white-space: pre-wrap; margin-bottom: 1.25rem; }
.port-modal-rich {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    text-align: start;
}
.port-modal-rich.work-detail-rich ul,
.port-modal-rich.work-detail-rich p,
.port-modal-rich.work-detail-rich h3,
.port-modal-rich.work-detail-rich h4 {
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}
.port-modal-desc,
.port-modal-rich.work-detail-rich p,
.port-modal-rich.work-detail-rich li,
.work-detail-rich-p,
.work-detail-rich-list li,
.work-detail-rich--html li,
.work-detail-rich--html p {
    text-align: justify;
    text-align-last: start;
    overflow-wrap: break-word;
}
html[lang='ar'] .port-modal-desc,
html[lang='ar'] .port-modal-rich.work-detail-rich p,
html[lang='ar'] .port-modal-rich.work-detail-rich li,
html[lang='ar'] .work-detail-rich-p,
html[lang='ar'] .work-detail-rich-list li,
html[lang='ar'] .work-detail-rich--html li,
html[lang='ar'] .work-detail-rich--html p {
    text-justify: inter-word;
    hyphens: manual;
    -webkit-hyphens: manual;
}
html[lang='en'] .port-modal-desc,
html[lang='en'] .port-modal-rich.work-detail-rich p,
html[lang='en'] .port-modal-rich.work-detail-rich li,
html[lang='en'] .work-detail-rich-p,
html[lang='en'] .work-detail-rich-list li,
html[lang='en'] .work-detail-rich--html li,
html[lang='en'] .work-detail-rich--html p {
    hyphens: auto;
    -webkit-hyphens: auto;
}

.port-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.port-modal-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.port-cover-fallback {
    width: 100%; height: 100%; display: none; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--primary-light);
    background: linear-gradient(180deg, #eef4fb 0%, #e8eef8 100%);
}
.port-cover-fallback.is-visible { display: flex; }
.port-img-wrap img.is-hidden { display: none !important; }

/* Hero */
.hero {
    min-height: 100vh;
    display: block;
    padding-top: 80px;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 55% at 15% 85%, rgba(56, 189, 248, 0.1), transparent 50%),
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(59, 130, 246, 0.16), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(16, 185, 129, 0.12), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.08), transparent 45%);
    pointer-events: none;
}
.hero-visual-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}
.hero-tech-parallax {
    position: absolute;
    inset: 0;
    will-change: transform;
    transition: transform 0.35s ease-out;
}
.hero-tech-canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}
.hero-grid-pulse {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: heroGridDrift 28s linear infinite;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 15%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 15%, transparent 70%);
}
@keyframes heroGridDrift {
    0% { transform: translate(0, 0) rotate(0.5deg); }
    100% { transform: translate(-24px, -24px) rotate(0.5deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-grid-pulse {
        animation: none;
    }
}
.hero-brand-watermark {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: min(42vw, 320px);
    height: min(42vw, 320px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.07;
    filter: blur(0.5px);
}
.hero-watermark-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.35));
}
.hero-watermark-logo--dim {
    opacity: 0.04;
}
[data-theme='light'] .hero-brand-watermark {
    opacity: 0.06;
}
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: calc(100vh - 80px - 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}
@media (min-width: 900px) {
    .hero-inner {
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }
    html[lang='en'] .hero-inner {
        flex-direction: row;
    }
}
.hero-land-visual {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: min(72vw, 280px);
    max-width: 100%;
    pointer-events: auto;
    margin-top: -2.15rem;
}
@media (min-width: 900px) {
    .hero-land-visual {
        width: min(34vw, 320px);
        margin-top: -3.35rem;
    }
}
.hero-land-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.45));
    border: 1px solid rgba(99, 102, 241, 0.28);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.35);
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
[data-theme='light'] .hero-land-logo-wrap {
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.1), rgba(255, 255, 255, 0.65));
    border-color: rgba(29, 78, 216, 0.22);
    box-shadow: 0 16px 40px rgba(29, 78, 216, 0.12);
}
.hero-land-logo-wrap:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 24px 56px rgba(59, 130, 246, 0.25),
        0 0 48px rgba(16, 185, 129, 0.18);
}
.hero-land-logo {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
    transition: filter 0.35s ease, transform 0.35s ease;
}
.hero-land-logo-wrap:hover .hero-land-logo {
    filter: drop-shadow(0 0 14px rgba(96, 165, 250, 0.85)) drop-shadow(0 0 32px rgba(16, 185, 129, 0.4));
}
[data-theme='light'] .hero-land-logo {
    filter: saturate(1.06) brightness(1.01);
}
[data-theme='light'] .hero-land-logo-wrap:hover .hero-land-logo {
    filter:
        saturate(1.08)
        brightness(1.02)
        drop-shadow(0 0 16px rgba(29, 78, 216, 0.45));
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 1;
    min-width: 0;
    text-align: center;
}
@media (min-width: 900px) {
    html[dir="rtl"] .hero-content {
        text-align: right;
    }
    html[dir="ltr"] .hero-content {
        text-align: left;
    }
}
.hero-badge-tech {
    display: inline-block;
    font-family: 'Chakra Petch', 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(0.72rem, 1.1vw, 0.88rem);
    letter-spacing: 0.42em;
    text-transform: uppercase;
    margin-bottom: 1.35rem;
    line-height: 1.4;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(96, 165, 250, 0.25);
}
[data-theme='light'] .hero-badge-tech {
    border-bottom-color: rgba(29, 78, 216, 0.2);
}
.hero-cta-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
@media (min-width: 900px) {
    /* عربي: الأزرار على يمين المحتوى (بداية السطر في RTL) */
    html[dir='rtl'] .hero-cta-row {
        justify-content: flex-start;
    }
    html[dir='ltr'] .hero-cta-row {
        justify-content: flex-start;
    }
}

.btn-consult-green {
    background: linear-gradient(135deg, #047857 0%, #059669 40%, #10b981 75%, #34d399 100%);
    color: #ecfdf5 !important;
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.22);
    font-weight: 700;
}
.btn-consult-green:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.3);
}
[data-theme='light'] .btn-consult-green {
    background: linear-gradient(135deg, #065f46 0%, #059669 45%, #10b981 100%);
    color: #fff !important;
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 6px 22px rgba(5, 150, 105, 0.22);
}

.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; }
.hero p { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 650px; margin-inline: auto; }
@media (min-width: 900px) {
    .hero p {
        margin-inline: 0;
    }
}
/* EN الرئيسية: فقرة أوسع حتى يبقى السطر الأول والثاني متناسقين مع النص الحالي */
html[lang='en'] .hero p#bind-hero-lead {
    max-width: min(780px, 96vw);
}
html[lang='en'] .hero .hero-content {
    max-width: min(980px, 100%);
}
html[lang='en'] .hero h1.hero-title-en {
    line-height: 1.05;
    margin-bottom: 1rem;
    font-weight: 400;
}
html[lang='en'] .hero h1.hero-title-en .hero-title-en-line1 {
    display: block;
    white-space: nowrap;
    line-height: 1.08;
    margin: 0;
    padding: 0;
    font-weight: 400;
}
html[lang='en'] .hero h1.hero-title-en .hero-title-en-line2 {
    display: block;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    margin-top: 0.06em;
    font-weight: 800;
}
.hero h1 #bind-hero-gradient {
    line-height: 1.5;
}

/* Home bands — نفس إيقاع قسم الخدمات */
.home-band-section {
    padding: 4.5rem 0 1rem;
    margin-top: 0.25rem;
}
.home-band-section--portfolio {
    padding-top: 2.5rem;
    margin-top: 0;
}
.home-instagram-section {
    padding: 3.25rem 0 1.25rem;
    margin-top: 0.25rem;
}
.home-instagram-head {
    text-align: center;
    margin-bottom: 3.5rem;
}
.home-instagram-title {
    font-size: clamp(2rem, 4.2vw, 2.85rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    color: var(--text-main);
}
.home-instagram-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 40rem;
    margin: 0 auto;
}
.home-instagram-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.home-instagram-card-stack {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    width: 100%;
    border-radius: 19px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme='light'] .home-instagram-card-stack {
    background: rgba(248, 250, 252, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
[data-theme='dark'] .home-instagram-card-stack {
    background: #000000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.home-instagram-card-banner {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-shrink: 0;
    padding: 0.78rem 1rem;
    font-weight: 800;
    font-size: 0.94rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
[data-theme='dark'] .home-instagram-card-banner {
    color: #fafafa;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-theme='dark'] .home-instagram-card-banner--ig {
    color: #fafafa;
    background: linear-gradient(105deg, rgba(245, 133, 41, 0.14) 0%, rgba(221, 42, 123, 0.1) 45%, rgba(81, 91, 212, 0.1) 100%);
}
[data-theme='dark'] .home-instagram-card-banner--fb {
    color: #fafafa;
    background: linear-gradient(180deg, rgba(8, 102, 255, 0.16) 0%, rgba(5, 88, 230, 0.08) 100%);
}
[data-theme='dark'] .home-instagram-card-banner--fb i {
    color: #4da3ff;
}
.home-instagram-card-banner i {
    font-size: 1.35rem;
    line-height: 1;
}
.home-instagram-card-banner--ig {
    color: var(--text-main);
    background: linear-gradient(105deg, rgba(245, 133, 41, 0.2) 0%, rgba(221, 42, 123, 0.16) 45%, rgba(81, 91, 212, 0.14) 100%);
}
.home-instagram-card-banner--ig i {
    background: linear-gradient(125deg, #f58529, #dd2a7b, #515bd4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
[data-theme='light'] .home-instagram-card-banner--ig {
    background: linear-gradient(105deg, rgba(245, 133, 41, 0.12) 0%, rgba(221, 42, 123, 0.1) 50%, rgba(81, 91, 212, 0.08) 100%);
}
.home-instagram-card-banner--fb {
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(8, 102, 255, 0.18) 0%, rgba(5, 88, 230, 0.1) 100%);
}
.home-instagram-card-banner--fb i {
    color: #0866ff;
}
[data-theme='light'] .home-instagram-card-banner--fb {
    background: linear-gradient(180deg, rgba(8, 102, 255, 0.12) 0%, rgba(5, 88, 230, 0.06) 100%);
}
.home-instagram-card-body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}
.home-instagram-embed .home-instagram-card-body .instagram-media {
    flex: 1 1 auto;
    min-height: 0;
}
.home-instagram-card-footer {
    position: relative;
    z-index: 8;
    flex-shrink: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    isolation: isolate;
}
.home-instagram-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
    gap: 1.25rem 1.5rem;
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
}
.home-instagram-row > .home-instagram-embed {
    max-width: none;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.home-instagram-embed {
    width: 100%;
    max-width: 560px;
    border-radius: 22px;
    overflow: visible;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.35));
    box-sizing: border-box;
    padding: 3px;
    transform: none;
    transform-style: flat;
    transition: box-shadow 0.45s ease;
    box-shadow:
        0 4px 0 rgba(15, 23, 42, 0.45),
        0 28px 56px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* بدون تحريك الموضع عند hover حتى لا يتحرك هدف النقر تحت المؤشر */
.home-instagram-embed:hover {
    transform: none;
    box-shadow:
        0 6px 0 rgba(15, 23, 42, 0.35),
        0 36px 72px rgba(59, 130, 246, 0.18),
        0 0 0 1px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
[data-theme='dark'] .home-instagram-embed {
    background: linear-gradient(155deg, #1c1c1e 0%, #0a0a0a 45%, #000000 100%);
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.9),
        0 22px 44px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme='dark'] .home-instagram-embed:hover {
    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.82),
        0 28px 52px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
[data-theme='light'] .home-instagram-embed {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.88));
    box-shadow:
        0 4px 0 rgba(148, 163, 184, 0.25),
        0 24px 48px rgba(29, 78, 216, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-theme='light'] .home-instagram-embed:hover {
    box-shadow:
        0 6px 0 rgba(148, 163, 184, 0.2),
        0 32px 64px rgba(29, 78, 216, 0.16),
        0 0 0 1px rgba(56, 189, 248, 0.28),
        inset 0 1px 0 #fff;
}
/* إنستغرام فقط: بدون زوايا سفلية حتى يلتقي المحتوى الأبيض مع الزر بلا فراغات */
.home-instagram-embed:not(.home-facebook-embed) iframe {
    border-radius: 0 !important;
    display: block;
    margin: 0 auto !important;
    max-width: 100% !important;
}
/* داخل إنستغرام: المظهر الداكن يُطبَّق عبر data-theme على الصفحة وليس عبر فلتر على الإطار */
.home-instagram-embed .instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
[data-theme='dark'] .home-instagram-embed .instagram-media {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.65);
}
[data-theme='dark'] .home-instagram-card-body {
    color-scheme: dark;
}
/* دعم إضافي: إن بقي محتوى الإطار فاتحاً رغم ?theme=dark */
[data-theme='dark'] .home-instagram-embed:not(.home-facebook-embed) .instagram-media iframe {
    color-scheme: dark;
}
.home-facebook-embed-panel {
    border-radius: 0;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(22, 32, 58, 0.75), rgba(15, 23, 42, 0.88));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
[data-theme='light'] .home-facebook-embed-panel {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
}
[data-theme='dark'] .home-facebook-embed-panel {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.home-facebook-embed-frame-slot {
    position: relative;
    flex: 1 1 auto;
    min-height: 180px;
    width: 100%;
    overflow: hidden;
}
.home-instagram-embed .home-facebook-embed-frame {
    position: absolute;
    left: 50%;
    top: 0;
    display: block;
    width: 500px !important;
    max-width: 500px !important;
    height: 520px;
    border: 0;
    border-radius: 0 0 18px 18px !important;
    background: #fff;
    margin: 0 !important;
    transform-origin: top center;
}
@media (prefers-reduced-motion: reduce) {
    .home-instagram-embed {
        transform: none;
        transition: none;
    }
    .home-instagram-embed:hover {
        transform: none;
    }
}
.home-instagram-card-footer .home-social-open-btn {
    position: relative;
    z-index: 2;
    border-radius: 0;
    min-height: 2.95rem;
    padding: 0.82rem 1rem;
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    cursor: pointer;
}
[data-theme='light'] .home-instagram-card-footer .home-social-open-btn {
    border-top-color: rgba(15, 23, 42, 0.08);
}
[data-theme='dark'] .home-instagram-card-footer .home-social-open-btn {
    border-top-color: rgba(255, 255, 255, 0.12);
}
.home-instagram-card-footer .home-social-open-btn--ig {
    box-shadow: none;
}
.home-instagram-card-footer .home-social-open-btn--fb {
    box-shadow: none;
}
.home-instagram-card-footer .home-social-open-btn:hover,
.home-instagram-card-footer .home-social-open-btn--ig:hover,
.home-instagram-card-footer .home-social-open-btn--fb:hover {
    transform: none !important;
    filter: brightness(1.06);
}
.home-social-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3.05rem;
    padding: 0.88rem 1.2rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.25;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        filter 0.22s ease;
}
.home-social-open-btn i {
    font-size: 1.35rem;
    line-height: 1;
}
/* ألوان إنستغرام الرسمية (تدرج تقريبي) */
.home-social-open-btn--ig {
    color: #fff;
    background: linear-gradient(
        125deg,
        #f58529 0%,
        #dd2a7b 35%,
        #8134af 65%,
        #515bd4 100%
    );
    box-shadow:
        0 4px 0 rgba(120, 35, 95, 0.42),
        0 16px 36px rgba(221, 42, 123, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.home-social-open-btn--ig:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow:
        0 5px 0 rgba(120, 35, 95, 0.32),
        0 22px 44px rgba(221, 42, 123, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
/* أزرق فيسبوك / ميتا */
.home-social-open-btn--fb {
    color: #fff;
    background: linear-gradient(180deg, #0866ff 0%, #0866ff 45%, #0558e6 100%);
    box-shadow:
        0 4px 0 rgba(5, 65, 180, 0.48),
        0 18px 38px rgba(8, 102, 255, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.home-social-open-btn--fb:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow:
        0 5px 0 rgba(5, 65, 180, 0.38),
        0 24px 48px rgba(8, 102, 255, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
[data-theme='light'] .home-social-open-btn--ig {
    box-shadow:
        0 4px 0 rgba(180, 60, 120, 0.22),
        0 14px 32px rgba(221, 42, 123, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
[data-theme='light'] .home-social-open-btn--fb {
    box-shadow:
        0 4px 0 rgba(8, 102, 255, 0.2),
        0 14px 32px rgba(8, 102, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
/* أزرار فتح إنستغرام/فيسبوك: ألوان أوضح على خلفية البطاقة الداكنة دون تغيير اللايت مود */
[data-theme='dark'] .home-instagram-card-footer .home-social-open-btn--ig {
    color: #fafafa;
    background: linear-gradient(
        125deg,
        #d97728 0%,
        #c42d74 34%,
        #722f96 64%,
        #4349b8 100%
    );
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
[data-theme='dark'] .home-instagram-card-footer .home-social-open-btn--ig:hover {
    filter: brightness(1.09);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.5),
        0 12px 32px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
[data-theme='dark'] .home-instagram-card-footer .home-social-open-btn--fb {
    color: #eef4ff;
    background: linear-gradient(180deg, #0b5bd6 0%, #0648b8 48%, #053a96 100%);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.52),
        0 10px 30px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
[data-theme='dark'] .home-instagram-card-footer .home-social-open-btn--fb:hover {
    filter: brightness(1.08);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.48),
        0 12px 34px rgba(8, 102, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
@media (max-width: 640px) {
    .home-instagram-row {
        grid-template-columns: 1fr;
    }
    /* عمود واحد: إطار الفيسبوك كان أقصر من إنستغرام لأن الـ slot لا يتمدد مع الـ iframe المطلق؛ نقرّب الارتفاع */
    .home-facebook-embed .home-facebook-embed-panel {
        min-height: 520px;
    }
    .home-facebook-embed .home-facebook-embed-frame-slot {
        min-height: 520px;
    }
}
/* BETTER TOGETHER — بين خطّين بعرض الشاشة؛ النص أوضح من سماكة الخط */
.site-better-together-strip {
    width: 100%;
    text-align: center;
    padding: 0 0 1.15rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}
.site-better-together-strip:focus {
    outline: none;
}
.site-better-together-strip:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.65);
    outline-offset: 3px;
}
/* تدرج بعرض الشاشة: الـ inner لا يستخدم overflow:hidden حتى لا يُقصّ الـ ::before لعرض .container */
.site-better-together-strip-inner::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.65s ease;
    pointer-events: none;
    background:
        linear-gradient(
            105deg,
            rgba(56, 189, 248, 0.22) 0%,
            rgba(99, 102, 241, 0.14) 35%,
            rgba(20, 184, 166, 0.2) 70%,
            rgba(14, 165, 233, 0.18) 100%
        );
    background-size: 240% 240%;
    animation: siteBetterTogetherSea 26s ease-in-out infinite;
}
.site-better-together-strip:hover .site-better-together-strip-inner::before,
.site-better-together-strip:focus-visible .site-better-together-strip-inner::before {
    opacity: 1;
}
[data-theme='light'] .site-better-together-strip-inner::before {
    background:
        linear-gradient(
            105deg,
            rgba(59, 130, 246, 0.12) 0%,
            rgba(99, 102, 241, 0.08) 38%,
            rgba(45, 212, 191, 0.12) 72%,
            rgba(14, 165, 233, 0.1) 100%
        );
    background-size: 240% 240%;
}
.site-better-together-strip-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0 0.6rem;
    position: relative;
    z-index: 1;
    overflow: visible;
    max-width: 100%;
}
.site-better-together-line {
    height: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    border: none;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.site-better-together-grad {
    margin: 0;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: clamp(0.78rem, 2.35vw, 1.02rem);
    letter-spacing: 0.46em;
    word-spacing: 0.52em;
    text-transform: uppercase;
    line-height: 1.45;
    display: inline-block;
    max-width: 100%;
    padding: 0.2em 0.2em 0.15em;
    box-sizing: border-box;
    background: linear-gradient(90deg, #38bdf8, #a5b4fc, #14b8a6, #e0f2fe, #6366f1, #38bdf8);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: siteBetterTogetherShift 48s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
.site-better-together-grad--thanks {
    /* نفس مقاس BETTER TOGETHER مع تباعد كلمات مخصص */
    font-size: clamp(0.78rem, 2.35vw, 1.02rem);
    letter-spacing: 0.36em;
    word-spacing: 0.3em;
    line-height: 1.45;
    padding: 0.2em 0.2em 0.15em;
    text-transform: uppercase;
    animation: siteBetterTogetherShift 48s ease-in-out infinite;
}
.site-better-together-thanks-inner {
    display: inline-block;
    max-width: 100%;
    font-weight: 800;
    letter-spacing: inherit;
    word-spacing: inherit;
}
@media (max-width: 640px) {
    .site-better-together-grad {
        font-size: clamp(0.86rem, 3.6vw, 1.14rem);
        letter-spacing: 0.52em;
        word-spacing: 0.58em;
        padding: 0.25em 0.15em 0.2em;
    }
    .site-better-together-grad--thanks {
        font-size: clamp(0.86rem, 3.6vw, 1.14rem);
        letter-spacing: 0.1em;
        word-spacing: 0.3em;
        padding: 0.25em 0.15em 0.2em;
    }
    .site-better-together-strip-inner {
        padding: 0.75rem 0 0.7rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-better-together-grad {
        animation: none;
        background-position: 0% 50%;
    }
    .site-better-together-strip-inner::before {
        animation: none;
        background-position: 50% 50%;
    }
    .about-section-heading:hover,
    .about-vision-title:hover,
    .about-block-title,
    .about-goals-vision-list li:hover strong {
        animation: none;
        background-position: 0% 50%;
    }
}
@keyframes siteBetterTogetherShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
@keyframes siteBetterTogetherSea {
    0%,
    100% {
        background-position: 0% 40%;
    }
    50% {
        background-position: 100% 60%;
    }
}
.site-better-together-strip--home {
    margin: 0;
    padding: 0;
}
.home-band-head {
    text-align: center;
    margin-bottom: 2.75rem;
}
.home-band-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    color: var(--text-main);
}
.home-band-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto;
}
.home-preview-dual {
    padding: 1rem 0 4rem;
    margin-top: 0.5rem;
}
.home-preview-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: stretch;
}
@media (min-width: 960px) {
    .home-preview-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 2.75rem;
    }
}
.home-about-card {
    display: flex;
    gap: 1.35rem;
    align-items: flex-start;
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.home-about-card-body {
    min-width: 0;
    flex: 1;
}
html[lang='ar'] .home-about-card-body {
    direction: rtl;
    text-align: right;
}
html[lang='en'] .home-about-card-body {
    direction: ltr;
    text-align: left;
}
.home-about-card-body .home-band-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}
html[lang='ar'] .home-about-card-body .home-band-title {
    text-align: right;
}
html[lang='en'] .home-about-card-body .home-band-title {
    text-align: left;
}
.home-about-card-lead {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.98rem;
    margin-bottom: 1rem;
    text-align: justify;
    text-align-last: start;
    hyphens: auto;
}
html[lang='ar'] .home-about-card-lead {
    hyphens: manual;
}
.home-about-minis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}
@media (max-width: 520px) {
    .home-about-minis {
        grid-template-columns: 1fr;
    }
    .home-about-card .home-about-minis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.home-about-mini {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.08));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease;
    animation: homeAboutMiniIn 0.7s ease backwards;
}
.home-about-mini:nth-child(1) { animation-delay: 0.05s; }
.home-about-mini:nth-child(2) { animation-delay: 0.15s; }
.home-about-mini:nth-child(3) { animation-delay: 0.25s; }
.home-about-mini:hover {
    transform: translateY(-8px) scale(1.03) rotate(-0.5deg);
    box-shadow: 0 20px 48px rgba(99, 102, 241, 0.28), 0 0 0 1px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.45);
}
.home-about-mini-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0;
    line-height: 1;
}
.home-about-mini-ico-i {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.35));
}

.home-about-mini-ico-img {
    width: 1.7rem;
    height: 1.7rem;
    object-fit: contain;
    display: block;
}
.home-about-mini-title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.45;
    max-width: 12rem;
    color: var(--text);
}
.home-about-mini-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0;
}
@keyframes homeAboutMiniIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.home-about-card-body .btn {
    margin-top: 0.25rem;
}
.home-portfolio-preview-block {
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.home-band-head--tight {
    text-align: center;
    margin-bottom: 1.35rem;
}
@media (min-width: 640px) {
    .home-band-head--tight {
        text-align: start;
    }
}
.home-portfolio-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (max-width: 519px) {
    .home-portfolio-preview-grid {
        justify-items: center;
    }
    .home-port-preview-card {
        width: 100%;
        max-width: min(100%, 360px);
    }
}
@media (min-width: 520px) {
    .home-portfolio-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.home-port-preview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
[data-theme='light'] .home-port-preview-card {
    background: rgba(255, 255, 255, 0.55);
}
.home-port-preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}
.home-port-preview-img {
    aspect-ratio: 4 / 3;
    background: rgba(59, 130, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.home-port-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-port-preview-img--empty {
    color: var(--text-muted);
    font-size: 1.75rem;
}
.home-port-preview-body {
    padding: 0.75rem 0.85rem 0.95rem;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.5rem;
}
.home-port-preview-title {
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-port-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}
.home-port-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}
.home-port-preview-pill--sub {
    background: rgba(16, 185, 129, 0.13);
}
.home-port-preview-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-port-preview-go {
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-light);
}
.home-portfolio-more-wrap,
.home-about-more-wrap {
    margin-top: 1.25rem;
    text-align: center;
}
@media (min-width: 640px) {
    .home-portfolio-more-wrap,
    .home-about-more-wrap {
        text-align: start;
    }
}
.home-showcase-section {
    position: relative;
    margin-top: 5rem;
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    background:
        radial-gradient(circle at top right, rgba(71, 197, 157, 0.12), transparent 34%),
        radial-gradient(circle at left 20%, rgba(29, 127, 191, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 255, 0.95));
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
[data-theme='dark'] .home-showcase-section {
    background:
        radial-gradient(circle at top right, rgba(71, 197, 157, 0.16), transparent 34%),
        radial-gradient(circle at left 20%, rgba(29, 127, 191, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(12, 18, 32, 0.94));
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 54px rgba(2, 6, 23, 0.34);
}
.home-showcase-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.home-showcase-head .home-band-title {
    margin-bottom: 0.45rem;
}
.home-showcase-sub {
    max-width: 46rem;
    margin: 0;
}
.home-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}
.home-showcase-card {
    --showcase-accent: #1d7fbf;
    --showcase-accent-2: #47c59d;
    --showcase-surface: #f4fbff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0.9rem;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, color-mix(in srgb, var(--showcase-surface) 84%, white 16%), rgba(255, 255, 255, 0.98));
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 18%, transparent);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
[data-theme='dark'] .home-showcase-card {
    background: linear-gradient(180deg, rgba(14, 23, 38, 0.95), rgba(10, 14, 25, 0.96));
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.28);
}
.home-showcase-card:hover {
    transform: translateY(-7px);
    border-color: color-mix(in srgb, var(--showcase-accent) 42%, transparent);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}
.home-showcase-card-glow {
    position: absolute;
    inset: -12% auto auto -10%;
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: radial-gradient(circle, color-mix(in srgb, var(--showcase-accent) 26%, transparent), transparent 72%);
    pointer-events: none;
}
.home-showcase-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--showcase-accent) 18%, transparent), color-mix(in srgb, var(--showcase-accent-2) 22%, transparent)),
        rgba(255, 255, 255, 0.7);
}
.home-showcase-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-showcase-card-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 18px;
    color: white;
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
    box-shadow: 0 16px 36px color-mix(in srgb, var(--showcase-accent) 26%, transparent);
}
.home-showcase-card-body {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 0.15rem 0.15rem;
}
.home-showcase-badge {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    color: var(--text-main);
    font-size: 0.74rem;
    font-weight: 800;
}
.home-showcase-title {
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 900;
}
.home-showcase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}
.home-showcase-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--showcase-accent) 12%, transparent);
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 700;
}
.home-showcase-pill--sub {
    background: color-mix(in srgb, var(--showcase-accent-2) 14%, transparent);
}
.home-showcase-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-showcase-cta {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--showcase-accent);
}
@media (max-width: 760px) {
    .home-showcase-section {
        padding: 1.4rem 1.1rem;
    }
    .home-showcase-head {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .home-showcase-sub {
        max-width: none;
    }
    .home-showcase-more {
        align-self: center;
    }
}
[data-mrtech-page='home'] .bind-services-section,
[data-mrtech-page='home'] .home-showcase-section,
[data-mrtech-page='home'] .home-instagram-section {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}
.services-grid--spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin: 0 auto 2rem;
    gap: 2rem;
}
.home-spotlight-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.25rem 2rem 2.5rem;
    min-height: 0;
}
.home-spotlight-card .service-icon-slot {
    margin-inline: auto;
}
.home-spotlight-card h3 {
    margin-top: 0.25rem;
}
.home-spotlight-card p {
    max-width: 520px;
    margin-inline: auto;
}
.home-spotlight-cta {
    margin-top: 0.5rem;
}
.footer-blurb {
    margin-top: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
    font-weight: 400;
    max-width: 26rem;
    white-space: pre-line;
}
/* فقرة الوصف العربية في الفوتر: محاذاة الأطراف */
html[lang='ar'] #bind-footer-blurb {
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
}
html[lang='en'] #bind-footer-blurb {
    direction: ltr;
    text-align: justify;
    text-align-last: start;
}

/* About (Arabic home) */
.about-section {
    padding: 4.5rem 0 2rem;
    margin-top: 1rem;
}
.about-section-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.about-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.about-section-text {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-muted);
}

/* About CTA strip — يوجّه لصفحة عنّا المنفصلة */
.about-cta-strip {
    padding: 3rem 0 2.5rem;
    margin-top: 0.5rem;
}
.about-cta-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    box-shadow: var(--glass-shadow);
}
.about-cta-strip-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}
.about-cta-strip-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 560px;
}
.about-cta-strip-btn i {
    font-size: 0.85em;
    opacity: 0.9;
}
[data-theme='light'] .about-cta-strip-inner {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(29, 78, 216, 0.14);
}

/* Standalone about page */
.about-page-main {
    padding-top: 100px;
    padding-bottom: 3rem;
    min-height: 60vh;
}
.about-page-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
}
.about-page-kicker {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.about-page-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}
.about-page-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}
.about-page-hero--split .about-page-lead {
    margin: 0;
    max-width: 36rem;
}
.about-page-hero--split .about-page-title {
    margin-bottom: 0.65rem;
}
.about-hero-split-inner {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(56px, 88px) minmax(200px, 1.25fr);
    gap: 0.75rem 5.5rem;
    align-items: center;
    direction: ltr;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 0;
}
.about-hero-col--right {
    direction: rtl;
    text-align: right;
}
html[lang='en'] .about-hero-col--right {
    direction: ltr;
    text-align: left;
}
html[lang='en'] .about-hero-split-inner {
    gap: 0.75rem 3.5rem;
}
@media (min-width: 721px) {
    .about-hero-col--right {
        width: auto;
        max-width: 560px;
        justify-self: end;
        margin-inline-start: auto;
        box-sizing: border-box;
        padding-inline-end: 0.5rem;
    }
    html[lang='en'] .about-hero-col--right {
        justify-self: start;
        margin-inline-start: 0;
        margin-inline-end: auto;
        padding-inline-end: 0;
        padding-inline-start: 0.5rem;
    }
}
.about-hero-col--left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
}
/* الإنجليزية (سطح مكتب/تابلت): العنوان يساراً والشعار يميناً (الشبكة direction: ltr) */
@media (min-width: 721px) {
    html[lang='en'] .about-hero-split-inner .about-hero-col--right {
        order: 1;
    }
    html[lang='en'] .about-hero-split-inner .about-hero-spark {
        order: 2;
    }
    html[lang='en'] .about-hero-split-inner .about-hero-col--left {
        order: 3;
    }
}
.about-hero-kicker-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
}
.about-hero-kicker-row i {
    font-size: 1rem;
    opacity: 0.95;
}
.about-hero-logo-box {
    display: flex;
    justify-content: center;
}
.about-hero-visual--rounded {
    border-radius: 22px;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}
.about-hero-visual--rounded .about-hero-orbit {
    border-radius: 24px;
}
.about-hero-visual--rounded .about-hero-glow {
    border-radius: 22px;
}
.about-hero-logo-mark--rounded {
    border-radius: 20px;
    width: 112px;
    height: 112px;
}
.about-hero-spark {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.about-spark-line {
    position: absolute;
    width: 4px;
    height: 70%;
    max-height: 140px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(129, 140, 248, 0.15) 20%,
        rgba(56, 189, 248, 0.55) 50%,
        rgba(129, 140, 248, 0.15) 80%,
        transparent 100%
    );
    opacity: 0.55;
    animation: about-spark-line-pulse 4.5s ease-in-out infinite;
}
.about-spark-glow {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #38bdf8 0%, rgba(99, 102, 241, 0.4) 55%, transparent 70%);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.65), 0 0 48px rgba(99, 102, 241, 0.35);
    animation: about-spark-blink 5s ease-in-out infinite;
}
@keyframes about-spark-line-pulse {
    0%,
    100% {
        opacity: 0.35;
        transform: scaleY(0.92);
    }
    50% {
        opacity: 0.85;
        transform: scaleY(1);
    }
}
@keyframes about-spark-blink {
    0%,
    45% {
        opacity: 0.15;
        transform: scale(0.65);
    }
    50%,
    58% {
        opacity: 1;
        transform: scale(1.15);
    }
    65%,
    100% {
        opacity: 0.12;
        transform: scale(0.6);
    }
}
@media (max-width: 720px) {
    .about-hero-split-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .about-hero-split-inner .about-hero-col--right {
        text-align: center;
    }
    .about-page-hero--split .about-page-title,
    .about-page-hero--split .about-page-lead {
        text-align: center;
        margin-inline: auto;
    }
    html[lang='ar'] .about-page-hero--split .about-page-lead {
        font-size: 0.98rem;
        line-height: 1.65;
    }
    .about-hero-spark {
        min-height: 48px;
        transform: rotate(90deg);
    }
    .about-spark-line {
        width: 70%;
        height: 4px;
        max-height: none;
    }
    /* موبايل: عمود الشعار أولاً ثم الفاصل ثم العنوان (لجميع اللغات) */
    .about-hero-split-inner .about-hero-col--left {
        order: 1;
    }
    .about-hero-split-inner .about-hero-spark {
        order: 2;
    }
    .about-hero-split-inner .about-hero-col--right {
        order: 3;
    }
}
.about-page-hero--showcase {
    position: relative;
    padding-bottom: 3rem;
    overflow: hidden;
}
@media (min-width: 721px) {
    html[lang='en'] .about-page-hero--showcase {
        transform: translateX(52px);
    }
}
.about-hero-visual {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.25rem;
}
.about-hero-orbit {
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    border: 1px dashed rgba(129, 140, 248, 0.35);
    animation: about-orbit-spin 28s linear infinite;
}
.about-hero-glow {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 68%);
    filter: blur(12px);
    animation: about-glow-pulse 5s ease-in-out infinite;
}
.about-hero-logo-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 12px 36px rgba(59, 130, 246, 0.45));
    animation: about-logo-float 6s ease-in-out infinite;
}
@keyframes about-orbit-spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes about-glow-pulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}
@keyframes about-logo-float {
    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-6px);
    }
}
.about-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* عناصر فرعية داخل كتلة كشف واحدة: تجنّب opacity مضاعفة (أب شفاف يخفي الأبناء) */
.about-reveal.is-visible .about-reveal {
    opacity: 1;
    transform: translateY(0);
}
.about-story-wrap {
    padding: 0.5rem 0 1.5rem;
}
.about-story-card {
    position: relative;
    padding: 2rem 1.75rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0.65));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.about-story-card-accent {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: auto;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-light), var(--secondary));
    opacity: 0.85;
}
.about-section-heading {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--text-main);
    line-height: 1.45;
    padding-block: 0.2em 0.06em;
    overflow: visible;
    transition:
        color 0.3s ease,
        background 0.3s ease,
        -webkit-text-fill-color 0.3s ease;
}
.about-section-heading:hover {
    background: linear-gradient(90deg, #38bdf8, #a5b4fc, #14b8a6, #e0f2fe, #6366f1, #38bdf8);
    background-size: 320% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: siteBetterTogetherShift 20s ease-in-out infinite;
    /* يمنع قصّ الحركات والمدّ فوق الحرف مع background-clip: text */
    line-height: 1.45;
    padding-block: 0.22em 0.08em;
}
.about-story-body {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
}
html[lang='ar'] .about-story-body {
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
    hyphens: manual;
}
html[lang='en'] .about-story-body {
    text-align: justify;
    text-align-last: start;
}
.about-block-title {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 1.75rem;
    line-height: 1.45;
    padding: 0.22em 0.35rem 0.1em;
    overflow: visible;
    background: linear-gradient(90deg, #38bdf8, #a5b4fc, #14b8a6, #e0f2fe, #6366f1, #38bdf8);
    background-size: 320% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: siteBetterTogetherShift 28s ease-in-out infinite;
}
.about-why-section {
    padding: 2rem 0 2.5rem;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05) 40%, transparent);
}
.about-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.about-feature-tile {
    padding: 1.5rem 1.35rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.about-feature-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.18);
}
.about-feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #e0f2fe;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(16, 185, 129, 0.35));
    border: 1px solid rgba(129, 140, 248, 0.35);
}
[data-theme='light'] .about-feature-icon {
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(16, 185, 129, 0.18));
    border-color: rgba(37, 99, 235, 0.35);
}
.about-feature-tile p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
}
.about-goals-section {
    padding: 2rem 0 2.5rem;
}
.about-goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}
.about-goal-card {
    padding: 1.35rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.4);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.about-goal-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
}
.about-goal-card--wide {
    grid-column: 1 / -1;
}
@media (min-width: 900px) {
    .about-goal-card--wide {
        grid-column: span 2;
    }
}
.about-goal-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
}
.about-goal-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.about-vision-section {
    padding: 2rem 0 2.5rem;
}
.about-vision-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    background: linear-gradient(165deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.92));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    overflow: visible;
}
@media (min-width: 640px) {
    .about-vision-card {
        flex-direction: row;
        text-align: start;
        align-items: center;
        padding: 2rem 2.25rem;
    }
}
.about-vision-logo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.35));
}
.about-vision-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.45;
    padding-block: 0.2em 0.06em;
    overflow: visible;
    color: var(--text-main);
    transition:
        color 0.3s ease,
        background 0.3s ease,
        -webkit-text-fill-color 0.3s ease;
}
.about-vision-title:hover {
    background: linear-gradient(90deg, #38bdf8, #a5b4fc, #14b8a6, #e0f2fe, #6366f1, #38bdf8);
    background-size: 320% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: siteBetterTogetherShift 20s ease-in-out infinite;
    line-height: 1.45;
    padding-block: 0.22em 0.08em;
}
.about-vision-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted);
}
html[lang='ar'] .about-vision-text {
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
    hyphens: manual;
}
html[lang='en'] .about-vision-text {
    text-align: justify;
    text-align-last: start;
}
.about-goals-vision-card {
    align-items: flex-start;
}
.about-goals-vision-body {
    flex: 1;
    min-width: 0;
    overflow: visible;
}
.about-goals-vision-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.about-goals-vision-list strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    transition:
        color 0.4s ease,
        background 0.4s ease,
        -webkit-text-fill-color 0.4s ease;
}
.about-goals-vision-list li {
    margin: 0;
    border-bottom: 1px solid rgba(129, 140, 248, 0.15);
    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease,
        background 0.35s ease;
    border-radius: 14px;
    padding: 0.65rem 0.85rem 0.85rem;
    margin-inline: -0.35rem;
}
.about-goals-vision-list li:hover {
    border-color: transparent;
    box-shadow: 0 10px 36px rgba(99, 102, 241, 0.18);
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.06);
}
.about-goals-vision-list li:hover strong {
    background: linear-gradient(90deg, #38bdf8, #a5b4fc, #14b8a6, #e0f2fe, #6366f1, #38bdf8);
    background-size: 320% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: siteBetterTogetherShift 18s ease-in-out infinite;
    line-height: 1.45;
    padding-block: 0.18em 0.05em;
    overflow: visible;
}
.about-goals-vision-list li:last-child {
    border-bottom: none;
}
.about-goals-vision-list p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-muted);
}
html[lang='ar'] .about-goals-vision-list p {
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
    hyphens: manual;
}
html[lang='en'] .about-goals-vision-list p {
    text-align: justify;
    text-align-last: start;
}
@media (max-width: 720px) {
    html[lang='ar'] .about-goals-vision-list strong {
        text-align: right;
    }
    html[lang='en'] .about-goals-vision-list strong {
        text-align: left;
    }
}
@media (min-width: 640px) {
    .about-goals-vision-card {
        flex-direction: row;
        text-align: start;
        align-items: flex-start;
    }
}
@media (max-width: 639px) {
    .about-goals-vision-card {
        align-items: center;
        text-align: center;
    }
    .about-goals-vision-card .about-vision-logo {
        margin-inline: auto;
    }
    .about-goals-vision-body {
        width: 100%;
    }
}
[data-theme='light'] .about-story-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.9));
}
[data-theme='light'] .about-goal-card {
    background: rgba(255, 255, 255, 0.85);
}
[data-theme='light'] .about-vision-card {
    background: linear-gradient(165deg, #f8fafc, #eef2ff);
    border-color: rgb(104, 171, 246);
}
.about-points-section {
    padding: 1rem 0 2.5rem;
}
.about-points-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    counter-reset: about-points;
}
@media (min-width: 640px) {
    .about-points-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem 1.35rem;
    }
}
@media (min-width: 1100px) {
    .about-points-grid {
        gap: 1.35rem 1.5rem;
    }
}
.about-point-card {
    position: relative;
    padding: 1.45rem 1.35rem 1.45rem 1.35rem;
    padding-inline-start: 1.5rem;
    border-radius: 22px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: linear-gradient(155deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88));
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    gap: 1.05rem;
    align-items: flex-start;
    overflow: hidden;
    counter-increment: about-points;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.4s ease;
}
.about-point-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--primary-light), var(--secondary));
    opacity: 0.9;
}
.about-point-card::after {
    content: counter(about-points, decimal-leading-zero);
    position: absolute;
    top: 0.55rem;
    inset-inline-end: 0.65rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-main);
    opacity: 0.06;
    pointer-events: none;
}
.about-point-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow:
        0 14px 40px rgba(59, 130, 246, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme='light'] .about-point-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 255, 0.92));
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow:
        0 4px 20px rgba(29, 78, 216, 0.06),
        inset 0 1px 0 #fff;
}
[data-theme='light'] .about-point-card:hover {
    box-shadow:
        0 14px 36px rgba(29, 78, 216, 0.1),
        0 0 0 1px rgba(56, 189, 248, 0.2),
        inset 0 1px 0 #fff;
}
[data-theme='light'] .about-point-card::after {
    opacity: 0.08;
}
@media (prefers-reduced-motion: reduce) {
    .about-point-card {
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .about-point-card:hover {
        transform: none;
    }
}
.about-check-ring {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    box-shadow:
        0 6px 20px rgba(59, 130, 246, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 1;
}
.about-point-text {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
    text-align: justify;
    text-align-last: start;
    hyphens: auto;
    -webkit-hyphens: auto;
}
html[dir='rtl'] .about-point-text {
    direction: rtl;
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
}
html[dir='ltr'] .about-point-text {
    direction: ltr;
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
}
.about-social-section {
    padding: 2.5rem 0 3rem;
    margin-top: 0.5rem;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.04) 40%, transparent);
}
[data-theme='light'] .about-social-section {
    background: linear-gradient(180deg, transparent, rgba(29, 78, 216, 0.06) 45%, transparent);
}
.about-social-heading {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}
.about-social-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}
.about-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
}
.about-social-section .about-social-grid--wide {
    max-width: none;
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.about-social-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (max-width: 1100px) {
    .about-social-section .about-social-grid--wide {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}
.about-social-grid--wide .about-social-icon {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
}
@keyframes about-social-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.about-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 1.35rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    animation: about-social-float 5.5s ease-in-out infinite;
    will-change: transform;
}
.about-social-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.18);
    transform: translateY(-4px) scale(1.02);
    animation-play-state: paused;
    background: linear-gradient(165deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.78));
}
[data-theme='light'] .about-social-card:hover {
    background: linear-gradient(165deg, #ffffff 0%, rgba(224, 231, 255, 0.65) 100%);
}
.about-social-card--delay-0 { animation-delay: 0s; }
.about-social-card--delay-1 { animation-delay: 0.4s; }
.about-social-card--delay-2 { animation-delay: 0.8s; }
.about-social-card--delay-3 { animation-delay: 1.2s; }
.about-social-card--delay-4 { animation-delay: 1.6s; }
.about-social-card--delay-5 { animation-delay: 2s; }
.about-social-card--delay-6 { animation-delay: 2.35s; }
.about-social-card--delay-7 { animation-delay: 2.7s; }
.about-social-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.25), rgba(16, 185, 129, 0.18));
    color: var(--primary-light);
}
.about-social-icon--ig { color: #e4405f; background: linear-gradient(145deg, rgba(228, 64, 95, 0.2), rgba(253, 29, 29, 0.12)); }
.about-social-icon--yt { color: #ff0000; background: linear-gradient(145deg, rgba(255, 0, 0, 0.18), rgba(180, 0, 0, 0.1)); }
.about-social-icon--fb { color: #1877f2; background: linear-gradient(145deg, rgba(24, 119, 242, 0.2), rgba(8, 102, 255, 0.1)); }
.about-social-icon--tt,
.about-social-icon--tt2 { color: var(--text-main); background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(99, 102, 241, 0.15)); }
.about-social-icon--be { color: #1769ff; background: linear-gradient(145deg, rgba(23, 105, 255, 0.2), rgba(0, 122, 255, 0.12)); }
.about-social-icon--li { color: #0a66c2; background: linear-gradient(145deg, rgba(10, 102, 194, 0.22), rgba(0, 160, 220, 0.1)); }
.about-social-icon--mail { color: var(--primary-light); background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.12)); }
[data-theme='light'] .about-social-icon--tt,
[data-theme='light'] .about-social-icon--tt2 {
    color: #111827;
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.1), rgba(16, 185, 129, 0.08));
}
.about-social-label {
    font-weight: 800;
    font-size: 0.95rem;
}
.about-social-url {
    font-size: 0.72rem;
    color: var(--text-muted);
    word-break: break-all;
    line-height: 1.35;
    max-width: 100%;
}
.about-back-section {
    text-align: center;
    padding: 2rem 0 1rem;
}
.about-back-btn i {
    font-size: 0.9em;
}
.about-page-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.9rem 1.8rem; border-radius: 999px; font-weight: 700;
    text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 20px rgba(59,130,246,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(59,130,246,0.4); }
.btn-secondary { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); transform: translateY(-3px); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 4rem; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 24px;
    padding: 2.5rem; transition: all 0.4s;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.service-icon { width: 80px; height: 80px; margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-muted); line-height: 1.6; }

/* صفحة خدمة — بطاقات فرعية (بدون وصف؛ التفاصيل في صفحة الفرع) */
.subservices-grid .service-sub-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    padding: 1.5rem 1.65rem;
    text-align: start;
}
.subservices-grid .service-sub-card-ico {
    flex-shrink: 0;
    width: 4.75rem;
    height: 4.75rem;
    min-width: 4.75rem;
    min-height: 4.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.38rem, 3.6vw, 1.68rem);
    color: #e2e8f0;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #134e4a 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.33), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.22);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.subservices-grid .service-sub-card-ico img.service-sub-card-ico-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 0.85rem;
}
.subservices-grid .service-sub-card:hover .service-sub-card-ico {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(129, 140, 248, 0.35);
}
.subservices-grid .service-sub-card-body {
    flex: 1;
    min-width: 12rem;
}
.subservices-grid .service-sub-card-title {
    font-size: 1.12rem;
    margin: 0 0 0.65rem;
    font-weight: 800;
    line-height: 1.3;
}
.subservices-grid .service-sub-card-lang {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.35;
    unicode-bidi: isolate;
}
.subservices-grid .service-sub-card-cta {
    width: 100%;
    flex-basis: 100%;
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.92rem;
}

.service-hero-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    margin: 0 0 0.5rem;
    line-height: 1.15;
}
.service-hero-sub {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.4;
    text-align: center;
    unicode-bidi: isolate;
}
.service-hero-lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
}

/* بطاقات الخدمات المميزة في الرئيسية: وسط، رابط، عنوان بتدرج عند الـ hover */
section.container.bind-services-section {
    max-width: 1260px;
}
.services-grid--home-featured {
    justify-items: stretch;
    margin-inline: 0;
    width: 100%;
    max-width: none;
}
a.service-card.service-card--featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
}
a.service-card.service-card--featured-link .service-icon-slot {
    margin-inline: auto;
}
a.service-card.service-card--featured-link h3 {
    text-align: center;
}
a.service-card.service-card--featured-link:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.42);
    box-shadow: 0 18px 44px rgba(59, 130, 246, 0.14);
}
.service-card--featured-link h3 {
    transition: background 0.35s ease, -webkit-text-fill-color 0.35s ease, color 0.35s ease;
}
.service-card--featured-link {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.62)),
        var(--bg-card);
    box-shadow:
        0 16px 40px rgba(2, 6, 23, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.service-card--featured-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 42%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.1), transparent 36%);
    opacity: 0.85;
    pointer-events: none;
}
.service-card--featured-link > * {
    position: relative;
    z-index: 1;
}
.service-card--featured-link h3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    margin-bottom: 1.15rem;
    font-size: clamp(1.28rem, 2vw, 1.58rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
html[lang='en'] .service-card--featured-link h3 {
    text-wrap: balance;
}
.service-card--featured-link h3::before {
    content: '';
    width: 0.88rem;
    height: 0.88rem;
    border-radius: 999px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.12),
        0 6px 14px rgba(59, 130, 246, 0.24);
}
.service-card--featured-link h3::after {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid rgba(255, 255, 255, 0.94);
    border-bottom: 2px solid rgba(255, 255, 255, 0.94);
    transform: translateX(-1.55rem) translateY(-0.02rem) rotate(45deg);
    margin-inline-end: -1.2rem;
    flex: 0 0 auto;
    pointer-events: none;
}
html[lang='en'] .service-card--featured-link h3::after {
    display: none;
}
[data-theme='light'] .service-card--featured-link h3::before {
    box-shadow:
        0 0 0 4px rgba(29, 78, 216, 0.08),
        0 6px 14px rgba(29, 78, 216, 0.16);
}
.service-card-featured-copy {
    margin-top: 0.35rem;
    padding-top: 0.15rem;
}
.service-card-featured-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.82rem;
    text-align: start;
}
.service-card-featured-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.72rem 0.82rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.72;
    font-weight: 700;
    backdrop-filter: blur(10px);
}
.service-card-featured-point-ico {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e0f2fe;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(16, 185, 129, 0.18));
    border: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow:
        0 10px 20px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}
.service-card-featured-point-ico i {
    font-size: 0.88rem;
}
.service-card-featured-point-txt {
    flex: 1;
    min-width: 0;
    display: block;
    text-align: start;
    text-wrap: pretty;
    line-height: 1.85;
    word-spacing: normal;
    letter-spacing: normal;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: none;
}
html[lang='en'] .service-card-featured-point-txt {
    font-size: 0.93rem;
    line-height: 1.68;
    text-wrap: pretty;
}
html[lang='en'] .service-card-featured-points li {
    gap: 0.62rem;
    padding: 0.68rem 0.72rem;
}
html[lang='en'] .service-card-featured-point-ico {
    width: 1.82rem;
    height: 1.82rem;
    min-width: 1.82rem;
}
html[lang='en'] .service-card-featured-point-ico i {
    font-size: 0.8rem;
}
[data-theme='light'] .service-card--featured-link {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.92)),
        var(--bg-card);
    box-shadow:
        0 14px 32px rgba(29, 78, 216, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
[data-theme='light'] .service-card-featured-points li {
    background: rgba(29, 78, 216, 0.03);
    border-color: rgba(29, 78, 216, 0.08);
}
[data-theme='light'] .service-card-featured-point-ico {
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(16, 185, 129, 0.1));
    border-color: rgba(59, 130, 246, 0.14);
    box-shadow:
        0 8px 18px rgba(29, 78, 216, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.service-card--featured-link:hover h3 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
@media (max-width: 640px) {
    .service-card--featured-link h3 {
        gap: 0.6rem;
        font-size: 1.18rem;
    }
    .service-card-featured-points li {
        padding: 0.68rem 0.72rem;
        gap: 0.68rem;
        font-size: 0.92rem;
    }
    .service-card-featured-point-ico {
        width: 1.8rem;
        height: 1.8rem;
        min-width: 1.8rem;
    }
}

/* Portfolio Page Specifics */
.port-card {
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 20px;
    overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column;
}
.port-card.port-card--clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
a.port-card.port-card--clickable:hover {
    color: inherit;
}
.port-card.port-card--clickable:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}
.port-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.port-img-wrap {
    width: 100%;
    height: 282px;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    padding: 0;
    background: transparent;
}
.port-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s; border-radius: 15px; }
.port-img-wrap .port-cover-img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center center;
    border-radius: 15px;
    box-shadow: none;
}
.port-img-wrap.port-img-wrap--fullbleed .port-cover-img,
.port-img-wrap .port-cover-img.port-cover-img--fullbleed {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 15px;
    box-shadow: none;
}
.port-img-wrap .port-cover-img.port-cover-img--wide {
    object-fit: cover;
    box-shadow: none;
    filter: saturate(1.02) contrast(1.01);
}
.port-card:hover .port-img-wrap img { transform: scale(1.05); }

.port-body { padding: 1.5rem; flex: 1; }
.port-tag { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.75rem; }
.tag-web { background: rgba(59,130,246,0.15); color: #60a5fa; }
.tag-brand { background: rgba(16,185,129,0.15); color: #34d399; }
.tag-motion { background: rgba(239,68,68,0.15); color: #f87171; }

.port-link { color: var(--primary-light); text-decoration: none; font-weight: 700; font-size: 0.9rem;  display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }

.portfolio-major-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 96px;
}
.port-subnav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 1rem;
    margin-bottom: 2.25rem;
}
.port-subnav-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    text-align: start;
    font: inherit;
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        transform 0.22s ease,
        box-shadow 0.28s ease,
        background 0.25s ease;
}
.port-subnav-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 3px;
    width: auto;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, var(--secondary), var(--primary-light), var(--primary));
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: center bottom;
    transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.port-subnav-card > * {
    position: relative;
    z-index: 1;
}
.port-subnav-card:hover {
    border-color: rgba(129, 140, 248, 0.42);
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.06);
    box-shadow:
        0 0 0 1px rgba(129, 140, 248, 0.12),
        0 10px 28px rgba(15, 23, 42, 0.12);
}
.port-subnav-card:hover::before {
    opacity: 0.85;
    transform: scaleX(1);
}
.port-subnav-card--all {
    border-color: rgba(59, 130, 246, 0.2);
}
.port-subnav-card.is-active {
    border-color: rgba(129, 140, 248, 0.45);
    background: rgba(99, 102, 241, 0.1);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 8px 26px rgba(79, 70, 229, 0.12);
}
.port-subnav-card.is-active::before {
    opacity: 1;
    transform: scaleX(1);
}
[data-theme='light'] .port-subnav-card:hover {
    background: rgba(99, 102, 241, 0.05);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.14),
        0 8px 22px rgba(99, 102, 241, 0.08);
}
[data-theme='light'] .port-subnav-card.is-active {
    background: rgba(99, 102, 241, 0.08);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.22),
        0 6px 20px rgba(99, 102, 241, 0.07);
}
.port-filter-active-head {
    margin: 0 0 1.25rem;
}
.port-filter-active-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}
.port-filter-panes .port-pane:not(.is-active) {
    display: none;
}
.port-subnav-card-ico {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.14);
    color: var(--primary-light);
    flex-shrink: 0;
    font-size: 1.05rem;
}
.port-subnav-card-txt {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.35;
}
.portfolio-sub-group {
    margin-bottom: 2.75rem;
    scroll-margin-top: 100px;
}
.portfolio-sub-group-title {
    font-size: 1.1rem;
    margin: 0 0 1.1rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Footer — بدون border-top مكرر؛ أول خط في شريط BETTER TOGETHER يكفي */
footer {
    padding: 2.25rem 0 2rem;
    border-top: none;
    margin-top: 5rem;
}
footer > .site-better-together-strip + .container {
    padding-top: 2.25rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; }
.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1.05rem;
    width: 100%;
    box-sizing: border-box;
}
#bind-footer-legal.footer-bottom {
    display: block;
    margin-inline: auto;
    text-align: center;
    max-width: 100%;
}

.footer-social-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-social-link:hover {
    color: var(--primary-light);
}
.footer-social-ico {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    font-size: 0.95rem;
}
[data-theme='light'] .footer-social-ico {
    background: rgba(29, 78, 216, 0.06);
    border-color: rgba(29, 78, 216, 0.18);
}
.footer-soc--ig { color: #e4405f; }
.footer-soc--fb { color: #1877f2; }
.footer-soc--tt { color: var(--text-main); }
.footer-soc--yt { color: #ff0000; }
.footer-soc--be { color: #1769ff; }
.footer-soc--li { color: #0a66c2; }

.footer-contact-stack {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: var(--text-muted);
}
.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
}
/* نص الرقم مثل البريد؛ أرقام بعرض طبيعي (ليس ضيقاً كـ tabular/Almarai على الأرقام اللاتينية) */
.footer-contact-row--phone .footer-phone-disp {
    font-family: var(--font-en), system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: normal;
    word-spacing: normal;
    color: var(--text-muted);
    line-height: 1.45;
    font-stretch: normal;
    font-variant-numeric: proportional-nums;
    font-feature-settings: normal;
}
.footer-contact-tel {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-muted);
    cursor: pointer;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}
.footer-contact-tel:hover,
.footer-contact-tel:focus {
    color: var(--primary-light);
    background: transparent;
    box-shadow: none;
    outline: none;
}
.footer-contact-tel:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}
.about-footer-phone {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.about-footer-phone:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}
.footer-quick-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.45;
}
.footer-quick-link:hover {
    color: var(--primary-light);
}
.footer-quick-ico {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    font-size: 0.95rem;
    color: var(--secondary);
}
[data-theme='light'] .footer-quick-ico {
    background: rgba(29, 78, 216, 0.06);
    border-color: rgba(29, 78, 216, 0.18);
    color: #1d4ed8;
}
.footer-contact-ico {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--primary-light);
    font-size: 0.9rem;
}
[data-theme='light'] .footer-contact-ico {
    background: rgba(29, 78, 216, 0.06);
    border-color: rgba(29, 78, 216, 0.18);
    color: #1d4ed8;
}
.footer-contact-action[href*='wa.me'] .footer-contact-ico {
    color: #25d366;
}
.footer-contact-action[href*='t.me'] .footer-contact-ico,
.footer-contact-action[href*='telegram.me'] .footer-contact-ico {
    color: #229ed9;
}
[data-theme='light'] .footer-contact-action[href*='wa.me'] .footer-contact-ico {
    color: #159946;
    text-shadow: 0 0 0.01px #159946;
}
[data-theme='light'] .footer-contact-action[href*='t.me'] .footer-contact-ico,
[data-theme='light'] .footer-contact-action[href*='telegram.me'] .footer-contact-ico {
    color: #0284c7;
}
.footer-contact-action {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-contact-action:hover {
    color: var(--primary-light);
}
.footer-contact-action .footer-contact-ico {
    color: inherit;
}

/* LTR snippets inside RTL pages (brand, email, phone, @handles) */
.ltr-embed {
    direction: ltr;
    unicode-bidi: isolate-override;
    text-align: start;
}

.services-grid--glass .service-card {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0.75));
    backdrop-filter: blur(12px);
    border-color: rgba(99, 102, 241, 0.25);
}
.services-grid--compact {
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.services-grid--compact .service-card {
    padding: 1.75rem;
}
.services-grid--compact .service-icon-slot,
.services-grid--compact .service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

.port-card--clickable .port-img-wrap.port-cover-clickable {
    cursor: pointer;
    border-radius: 0;
}

.port-modal-gallery img.port-modal-thumb-zoom {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.port-modal-gallery img.port-modal-thumb-zoom:hover {
    transform: scale(1.02);
}

body.port-zoom-open {
    overflow: hidden;
}
.port-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.port-zoom-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.port-zoom-overlay img {
    position: relative;
    z-index: 1;
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    cursor: zoom-out;
    image-rendering: auto;
    -webkit-user-select: none;
    user-select: none;
}
.work-lightbox {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
}
.work-lightbox .work-lightbox-stage-wrap {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    height: min(calc(100vh - 108px), 860px);
    padding-top: 1.25rem;
    box-sizing: border-box;
}
.work-lightbox-img-outer {
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}
.work-lightbox-zoom-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    cursor: zoom-in;
    transform-origin: center center;
    transition: transform 0.15s ease-out;
}
.port-zoom-overlay.work-lightbox .work-lightbox-zoom-img {
    cursor: pointer;
}
.port-zoom-overlay.work-lightbox.is-open .work-lightbox-zoom-img {
    cursor: pointer;
}
.work-lightbox-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding-bottom: 0.1rem;
}
.work-lightbox-bar-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.work-lightbox-bar-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}
.work-lightbox-zoombtn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.work-lightbox-zoombtn:hover {
    background: rgba(59, 130, 246, 0.35);
    border-color: rgba(147, 197, 253, 0.45);
}
.work-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.work-lightbox-nav:hover {
    background: rgba(59, 130, 246, 0.35);
    border-color: rgba(147, 197, 253, 0.45);
}
.work-lightbox-prev {
    inset-inline-start: 0.5rem;
}
.work-lightbox-next {
    inset-inline-end: 0.5rem;
}
.work-lightbox-counter {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
}
.port-zoom-close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.25rem;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

/* Services catalog page */
.services-catalog-page {
    padding-top: 120px;
    padding-bottom: 4rem;
}
.services-catalog-hero {
    text-align: center;
    margin-bottom: 3.5rem;
}
.services-catalog-hero h1 {
    font-size: clamp(2.35rem, 5.5vw, 3.55rem);
    margin-bottom: 0.75rem;
}
.services-catalog-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}
.svc-major-block {
    margin-bottom: 3.5rem;
    scroll-margin-top: 104px;
    padding: 1.35rem 1.25rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(
        165deg,
        rgba(15, 23, 42, 0.94) 0%,
        rgba(30, 27, 75, 0.52) 42%,
        rgba(15, 23, 42, 0.9) 100%
    );
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme='light'] .svc-major-block {
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 48%, #f1f5f9 100%);
    border-color: rgb(104, 171, 246);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
[data-theme='light'] .svc-major-head {
    border-bottom: 1px solid rgb(60 141 223 / 64%);
}
[data-theme='light'] .svc-major-head-rule {
    border-top: 1px solid rgb(60 141 223 / 64%);
}
.svc-major-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}
.svc-major-titles {
    flex: 1;
    min-width: 0;
    text-align: start;
}
.svc-major-title-primary {
    font-size: clamp(1.55rem, 3.8vw, 2.2rem);
    margin: 0 0 0.35rem;
    line-height: 1.25;
    font-weight: 800;
}
.svc-major-title-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: min(100%, 42rem);
    width: fit-content;
    margin: 0 auto;
    padding: 0.5rem 1rem 0.55rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.25;
    text-align: center;
    unicode-bidi: isolate;
}
[data-theme='light'] .svc-major-title-secondary {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(99, 102, 241, 0.22);
    color: #1e1b4b;
}
html[dir='rtl'] .svc-major-titles {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
html[dir='rtl'] .svc-major-title-primary {
    text-align: right;
}
html[dir='rtl'] .svc-major-title-secondary {
    text-align: center;
}
html[dir='rtl'] .svc-sub-card-lang {
    text-align: right;
}
.svc-major-block--center-head .svc-major-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.15rem;
}
.svc-major-block--center-head .svc-major-titles {
    text-align: center;
    width: 100%;
}
.svc-major-block--center-head .svc-major-title-primary {
    margin-bottom: 0.55rem;
    text-align: center;
}
.svc-major-block--center-head .svc-major-title-secondary {
    margin-top: 0.15rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
html[dir='rtl'] .svc-major-block--center-head .svc-major-title-primary,
html[dir='rtl'] .svc-major-block--center-head .svc-major-title-secondary {
    text-align: center;
}
.svc-major-block--center-head .svc-major-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.svc-major-head h2 {
    /* legacy: titles use .svc-major-title-primary */
    font-size: inherit;
    margin: 0;
}
.svc-major-icon-wrap {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.08);
    padding: 6px;
}
.svc-major-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, #0f172a 0%, #312e81 48%, #115e59 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
    font-size: 1.42rem;
    color: #e2e8f0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    padding: 0;
}
[data-theme='light'] .svc-major-icon-wrap--fa {
    color: #f8fafc;
    background: linear-gradient(145deg, #1e293b 0%, #3730a3 50%, #0f766e 100%);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 26px rgba(30, 27, 75, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.svc-major-block[data-major-idx='0'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.45), rgba(6, 182, 212, 0.32));
    border-color: rgba(56, 189, 248, 0.45);
    color: #bae6fd;
}
.svc-major-block[data-major-idx='0'] .svc-major-icon-wrap--fa i {
    color: #7dd3fc;
}
.svc-major-block[data-major-idx='1'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.42), rgba(20, 184, 166, 0.28));
    border-color: rgba(52, 211, 153, 0.4);
    color: #a7f3d0;
}
.svc-major-block[data-major-idx='1'] .svc-major-icon-wrap--fa i {
    color: #6ee7b7;
}
.svc-major-block[data-major-idx='2'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.42), rgba(236, 72, 153, 0.28));
    border-color: rgba(196, 181, 253, 0.4);
    color: #e9d5ff;
}
.svc-major-block[data-major-idx='2'] .svc-major-icon-wrap--fa i {
    color: #d8b4fe;
}
.svc-major-block[data-major-idx='3'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.4), rgba(239, 68, 68, 0.26));
    border-color: rgba(251, 191, 36, 0.45);
    color: #fde68a;
}
.svc-major-block[data-major-idx='3'] .svc-major-icon-wrap--fa i {
    color: #fcd34d;
}
.svc-major-block[data-major-idx='4'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.45), rgba(59, 130, 246, 0.3));
    border-color: rgba(129, 140, 248, 0.45);
    color: #c7d2fe;
}
.svc-major-block[data-major-idx='4'] .svc-major-icon-wrap--fa i {
    color: #a5b4fc;
}
.svc-major-block[data-major-idx='5'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.42), rgba(99, 102, 241, 0.3));
    border-color: rgba(56, 189, 248, 0.42);
    color: #e0f2fe;
}
.svc-major-block[data-major-idx='5'] .svc-major-icon-wrap--fa i {
    color: #7dd3fc;
}
.svc-major-block[data-major-idx='0'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.55), rgba(6, 182, 212, 0.4));
    border-color: rgba(56, 189, 248, 0.45);
    color: #e0f2fe;
}
.svc-major-block[data-major-idx='1'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.52), rgba(20, 184, 166, 0.38));
    border-color: rgba(52, 211, 153, 0.42);
    color: #ecfdf5;
}
.svc-major-block[data-major-idx='2'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.52), rgba(236, 72, 153, 0.35));
    border-color: rgba(196, 181, 253, 0.42);
    color: #faf5ff;
}
.svc-major-block[data-major-idx='3'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.48), rgba(239, 68, 68, 0.32));
    border-color: rgba(251, 191, 36, 0.42);
    color: #fffbeb;
}
.svc-major-block[data-major-idx='4'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.52), rgba(59, 130, 246, 0.38));
    border-color: rgba(129, 140, 248, 0.45);
    color: #eef2ff;
}
.svc-major-block[data-major-idx='5'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.5), rgba(99, 102, 241, 0.38));
    border-color: rgba(56, 189, 248, 0.42);
    color: #f0f9ff;
}
[data-theme='light'] .svc-major-block[data-major-idx='0'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.14));
    border-color: rgba(59, 130, 246, 0.35);
    color: #1d4ed8;
}
[data-theme='light'] .svc-major-block[data-major-idx='0'] .svc-major-icon-wrap--fa i {
    color: #2563eb;
}
[data-theme='light'] .svc-major-block[data-major-idx='1'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.14));
    border-color: rgba(16, 185, 129, 0.35);
    color: #047857;
}
[data-theme='light'] .svc-major-block[data-major-idx='1'] .svc-major-icon-wrap--fa i {
    color: #059669;
}
[data-theme='light'] .svc-major-block[data-major-idx='2'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.12));
    border-color: rgba(139, 92, 246, 0.3);
    color: #6d28d9;
}
[data-theme='light'] .svc-major-block[data-major-idx='2'] .svc-major-icon-wrap--fa i {
    color: #7c3aed;
}
[data-theme='light'] .svc-major-block[data-major-idx='3'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.12));
    border-color: rgba(245, 158, 11, 0.35);
    color: #b45309;
}
[data-theme='light'] .svc-major-block[data-major-idx='3'] .svc-major-icon-wrap--fa i {
    color: #d97706;
}
[data-theme='light'] .svc-major-block[data-major-idx='4'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.14));
    border-color: rgba(99, 102, 241, 0.32);
    color: #4338ca;
}
[data-theme='light'] .svc-major-block[data-major-idx='4'] .svc-major-icon-wrap--fa i {
    color: #4f46e5;
}
[data-theme='light'] .svc-major-block[data-major-idx='5'] .svc-major-icon-wrap--fa {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.14));
    border-color: rgba(14, 165, 233, 0.32);
    color: #0369a1;
}
[data-theme='light'] .svc-major-block[data-major-idx='5'] .svc-major-icon-wrap--fa i {
    color: #0284c7;
}
[data-theme='light'] .svc-major-block[data-major-idx='0'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.1));
    border-color: rgba(59, 130, 246, 0.28);
    color: #1d4ed8;
}
[data-theme='light'] .svc-major-block[data-major-idx='1'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.16), rgba(20, 184, 166, 0.1));
    border-color: rgba(16, 185, 129, 0.28);
    color: #047857;
}
[data-theme='light'] .svc-major-block[data-major-idx='2'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.1));
    border-color: rgba(139, 92, 246, 0.26);
    color: #6d28d9;
}
[data-theme='light'] .svc-major-block[data-major-idx='3'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(239, 68, 68, 0.1));
    border-color: rgba(245, 158, 11, 0.28);
    color: #b45309;
}
[data-theme='light'] .svc-major-block[data-major-idx='4'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.16), rgba(59, 130, 246, 0.1));
    border-color: rgba(99, 102, 241, 0.28);
    color: #4338ca;
}
[data-theme='light'] .svc-major-block[data-major-idx='5'] .svc-sub-card-ico-wrap {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.16), rgba(99, 102, 241, 0.1));
    border-color: rgba(14, 165, 233, 0.26);
    color: #0369a1;
}
.svc-major-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.svc-major-titles .svc-major-desc {
    margin-top: 0;
    margin-bottom: 0;
    max-width: 52rem;
}
.svc-major-head-rule {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 10px 0 5px;
    width: 100%;
    max-width: none;
    opacity: 0.9;
}
.services-catalog-page .svc-major-block:not(.svc-major-block--en) .svc-major-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
}
.svc-major-titles--en .svc-major-title-primary {
    margin-bottom: 0.5rem;
}
.svc-major-desc-inline--en {
    margin-top: 0.15rem;
}
.svc-major-desc-inline--en .svc-major-desc-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.68;
    max-width: 52rem;
}
.svc-major-desc-toggle {
    margin-top: 0.55rem;
    padding: 0.35rem 0;
    border: none;
    background: none;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.svc-major-desc-toggle:hover {
    color: var(--secondary);
}
@media (min-width: 769px) {
    .svc-major-desc-inline--en .svc-major-desc-toggle {
        display: none;
    }
}
@media (max-width: 768px) {
    .svc-major-desc-inline--en:not(.is-expanded) .svc-major-desc-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
}
.svc-major-block--center-head .svc-major-desc-inline--en {
    text-align: center;
}
.svc-major-block--center-head .svc-major-desc-inline--en .svc-major-desc-text {
    margin-left: auto;
    margin-right: auto;
}
/* صفحة الخدمات المصنّفة: رأس القسم في المنتصف، مسافة بين سطرَي العنوان، عناوين أوضح */
.services-catalog-page .svc-major-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.15rem;
}
.services-catalog-page .svc-major-titles,
.services-catalog-page .svc-major-titles--en {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.services-catalog-page .svc-major-title-primary {
    font-size: clamp(1.9rem, 4.4vw, 2.72rem);
    margin: 0 0 0.55rem;
    line-height: 1.22;
    text-align: center;
}
.services-catalog-page .svc-major-title-secondary {
    margin: 0.45rem auto 0;
    font-size: 0.74rem;
    text-align: center;
}
html[dir='rtl'] .services-catalog-page .svc-major-title-primary,
html[dir='rtl'] .services-catalog-page .svc-major-title-secondary {
    text-align: center;
}
.services-catalog-page .svc-major-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.services-catalog-page .svc-major-titles .svc-major-desc {
    margin-top: 0.15rem;
}
.services-catalog-page .svc-major-desc-inline--en {
    text-align: center;
    margin-top: 0.35rem;
}
.services-catalog-page .svc-major-desc-inline--en .svc-major-desc-text {
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 901px) {
    .services-catalog-page .svc-major-desc-inline--en {
        width: 100%;
        max-width: min(76rem, 96vw);
    }
    .services-catalog-page .svc-major-desc-inline--en .svc-major-desc-text {
        max-width: 100%;
    }
}
.svc-subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
a.svc-sub-card {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    text-align: start;
}
.svc-sub-card-ico-wrap {
    flex-shrink: 0;
    width: 4.75rem;
    height: 4.75rem;
    min-width: 4.75rem;
    min-height: 4.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.45rem, 3.8vw, 1.72rem);
    color: #e2e8f0;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #134e4a 100%);
    box-shadow: none;
    border: 1px solid rgba(148, 163, 184, 0.22);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.svc-sub-card-ico-wrap img.svc-sub-card-ico-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 0.85rem;
}
a.svc-sub-card:hover .svc-sub-card-ico-wrap {
    transform: none;
    box-shadow: none;
    filter: brightness(1.12) saturate(1.06);
}
.svc-sub-card-text {
    flex: 1;
    min-width: 0;
}
a.svc-sub-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.14);
}
.svc-sub-card-title {
    font-size: 1.02rem;
    margin: 0 0 0.35rem;
    font-weight: 800;
    line-height: 1.3;
    transition: color 0.25s ease, background 0.25s ease, -webkit-text-fill-color 0.25s ease;
}
a.svc-sub-card:hover .svc-sub-card-title {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.svc-sub-card-lang {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    line-height: 1.35;
    text-align: start;
    unicode-bidi: isolate;
}
html[lang='en'] .svc-sub-card-lang {
    font-size: 0.8rem;
}
.svc-sub-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
}
a.svc-sub-card:hover .svc-sub-card-cta {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Subservice detail — layout + banner */
.subservice-layout {
    max-width: 1040px;
    margin: 0 auto;
}
.subservice-page {
    position: relative;
    z-index: 0;
}

.subservice-layout {
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.subservice-breadcrumb {
    margin-bottom: 1rem;
}
.subservice-crumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.subservice-crumb-link:hover {
    color: var(--primary-light);
    transform: translateX(-2px);
}
html[lang='en'] .subservice-crumb-link:hover {
    transform: translateX(2px);
}
.subservice-hero-banner {
    position: relative;
    z-index: 0;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 1.75rem;
    min-height: clamp(168px, 28vw, 220px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    --sub-banner-h1: 210deg;
    --sub-banner-h2: 280deg;
}
.subservice-hero-banner-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(900px 420px at 15% 20%, hsla(var(--sub-banner-h1), 85%, 55%, 0.35), transparent 55%),
        radial-gradient(700px 380px at 85% 80%, hsla(var(--sub-banner-h2), 80%, 50%, 0.28), transparent 50%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 27, 75, 0.88));
    pointer-events: none;
}
.subservice-hero-banner-watermark {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.subservice-watermark-img {
    width: min(82%, 400px);
    height: auto;
    max-height: 88%;
    object-fit: contain;
    opacity: 0.08;
    filter: saturate(1.05);
}
.subservice-watermark-img--theme-light {
    display: none;
}
[data-theme='light'] .subservice-watermark-img--theme-dark {
    display: none;
}
[data-theme='light'] .subservice-watermark-img--theme-light {
    display: block;
    opacity: 0.07;
}
[data-theme='light'] .subservice-hero-banner-mesh {
    background:
        radial-gradient(900px 420px at 15% 20%, hsla(var(--sub-banner-h1), 75%, 52%, 0.22), transparent 55%),
        radial-gradient(700px 380px at 85% 80%, hsla(var(--sub-banner-h2), 70%, 48%, 0.18), transparent 50%),
        linear-gradient(145deg, #f8fafc, #eef2ff);
}
.subservice-hero-banner-inner {
    position: relative;
    z-index: 2;
    padding: 1.75rem 1.5rem 1.75rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.subservice-banner-chip-stack {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.28rem 0 0.68rem;
    padding: 0.5rem 1rem 0.55rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    max-width: min(100%, 42rem);
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}
.subservice-banner-chip-line--primary {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
    text-align: center;
    line-height: 1.25;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    unicode-bidi: isolate;
}
.subservice-banner-chip-line--alt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.84);
    text-align: center;
    line-height: 1.25;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    unicode-bidi: isolate;
}
.subservice-banner-chip-line--alt::before {
    content: '·';
    margin-inline-end: 0.45rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 800;
}
.subservice-banner-chip-stack .subservice-banner-chip-line--alt:first-child::before {
    content: none;
    margin-inline-end: 0;
}
[data-theme='light'] .subservice-banner-chip-stack {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(99, 102, 241, 0.22);
}
[data-theme='light'] .subservice-banner-chip-line--primary {
    color: #1e1b4b;
}
[data-theme='light'] .subservice-banner-chip-line--alt {
    color: #475569;
}
[data-theme='light'] .subservice-banner-chip-line--alt::before {
    color: rgba(15, 23, 42, 0.35);
}
.subservice-banner-chip-stack[dir='rtl'] .subservice-banner-chip-line--primary {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 700;
}
.subservice-banner-title-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.88rem;
    margin-bottom: 0.82rem;
    width: 100%;
}
.subservice-banner-title-stack .subservice-banner-title {
    margin: 0;
    width: 100%;
    text-align: center;
}
.subservice-banner-title {
    font-size: clamp(1.5rem, 4.2vw, 2.15rem);
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
[data-theme='light'] .subservice-banner-title {
    color: #0f172a;
    text-shadow: none;
}
.subservice-banner-bilingual {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
    text-align: center;
    unicode-bidi: isolate;
}
[data-theme='light'] .subservice-banner-bilingual {
    color: #64748b;
}
.subservice-banner-lead {
    margin: 0.38rem 0 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin-inline: auto;
}
[data-theme='light'] .subservice-banner-lead {
    color: #475569;
}
.subservice-banner-icon-floater {
    position: absolute;
    z-index: 3;
    bottom: -12px;
    inset-inline-end: 8%;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #134e4a 100%);
    border: 2px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    animation: subserviceFloatIco 5s ease-in-out infinite;
}
[data-theme='light'] .subservice-banner-icon-floater {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-color: rgba(29, 58, 138, 0.22);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.mrtech-floater-mark-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.mrtech-floater-mark {
    width: 48px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    display: block;
}
.mrtech-floater-mark--theme-light {
    display: none;
}
[data-theme='light'] .mrtech-floater-mark--theme-dark {
    display: none;
}
[data-theme='light'] .mrtech-floater-mark--theme-light {
    display: block;
}
@keyframes subserviceFloatIco {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
@media (max-width: 640px) {
    .subservice-banner-icon-floater {
        display: none;
    }
}
.subservice-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    direction: ltr;
}
@media (min-width: 900px) {
    .subservice-detail-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 2rem;
    }
    html[lang='en'] .subservice-detail-grid .subservice-panel-body {
        order: 1;
    }
    html[lang='en'] .subservice-detail-grid .subservice-media-panel {
        order: 2;
    }
}
.subservice-media-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 4px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.35),
        rgba(168, 85, 247, 0.2) 45%,
        rgba(16, 185, 129, 0.22)
    );
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
[data-theme='light'] .subservice-media-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(129, 140, 248, 0.1), rgba(16, 185, 129, 0.12));
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.1);
}
.subservice-media-main {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
}
.subservice-media-main img,
.subservice-media-main video,
.subservice-media-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.subservice-media-main-video {
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(2, 6, 23, 0.92);
}
.subservice-media-main-img {
    cursor: zoom-in;
}
.subservice-media-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.65rem;
}
.subservice-media-thumb {
    display: block;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.4);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.subservice-media-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.45);
}
.subservice-media-thumb.is-active {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}
.subservice-media-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}
.subservice-media-thumb-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}
.subservice-media-thumb-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: rgba(2, 6, 23, 0.9);
}
.subservice-media-thumb-badge {
    position: absolute;
    inset-inline-end: 0.55rem;
    inset-block-end: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.2);
}
[data-theme='light'] .subservice-media-thumb-badge {
    background: rgba(30, 64, 175, 0.88);
    color: #fff;
}
.subservice-panel-body {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: var(--glass-shadow);
}
html[lang='ar'] .subservice-panel-body {
    direction: rtl;
    text-align: right;
}
html[lang='en'] .subservice-panel-body {
    direction: ltr;
    text-align: left;
}
.subservice-desc-full {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.85;
    min-height: 3.7em;
    color: var(--text-muted);
    text-align: start;
}

.btn-subservice-wa {
    background: #1b874c !important;
    color: #fff !important;
    border: 1px solid #157a42 !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
}

.btn-subservice-wa:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.btn-subservice-portfolio.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-subservice-portfolio.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.35);
}
.subservice-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.subservice-actions-grid .btn {
    justify-content: center;
    text-align: center;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    gap: 0.5rem;
}
.subservice-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}
.subservice-footer-actions--dual {
    flex-wrap: nowrap;
    gap: 0.75rem;
}
.subservice-footer-actions .btn {
    flex: 1;
    min-width: 160px;
    justify-content: center;
}
.subservice-footer-actions--dual .btn {
    flex: 1 1 0;
    min-width: 0;
}
.btn-subservice-back-pill {
    border-radius: 999px !important;
    font-weight: 800 !important;
    border: 2px solid var(--glass-border) !important;
    background: transparent !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.2s ease !important;
}
.btn-subservice-back-pill:hover {
    border-color: rgba(129, 140, 248, 0.55) !important;
    background: rgba(99, 102, 241, 0.08) !important;
    transform: translateY(-2px) !important;
}
.btn-subservice-similar-pill {
    border-radius: 999px !important;
    font-weight: 800 !important;
    border: none !important;
    color: #fff !important;
    background: linear-gradient(135deg, #122545 0%, #2d2e75 50%, #19694e 100%) !important;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease !important;
}
.btn-subservice-similar-pill:hover {
    filter: brightness(1.06);
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 36px rgba(79, 70, 229, 0.4) !important;
}
.subservice-back-section {
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    background: transparent;
}
.subservice-back-services {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: var(--bg-card);
}

.subservice-back-services:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

/* Pricing plans page */
.pricing-catalog-page {
    padding-top: 120px;
    padding-bottom: 4rem;
}
.pricing-catalog-hero {
    text-align: center;
    margin-bottom: 3rem;
}
.pricing-catalog-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 0.5rem;
}
.pricing-subsection {
    margin-bottom: 3rem;
}
.pricing-sub-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.pricing-sub-head h2 {
    font-size: 1.35rem;
    margin: 0;
}
.pricing-sub-head .pricing-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.pricing-plans-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.pricing-plan-card--featured {
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12), 0 18px 48px rgba(245, 158, 11, 0.07);
}
.pricing-subsection--featured .pricing-sub-head h2 {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme='light'] .pricing-subsection--featured .pricing-sub-head h2 {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pricing-plan-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease;
}
/* Dark UI: hover flips card to a light "paper" look */
[data-theme='dark'] .pricing-plan-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65),
        0 24px 56px rgba(99, 102, 241, 0.2),
        0 12px 36px rgba(15, 23, 42, 0.12);
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 52%, #f1f5f9 100%);
}
[data-theme='dark'] .pricing-plan-card:hover h3 {
    color: #0f172a;
}
[data-theme='dark'] .pricing-plan-card:hover .pricing-plan-price {
    background: linear-gradient(135deg, #2563eb, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme='dark'] .pricing-plan-card:hover li {
    color: #475569;
}
[data-theme='dark'] .pricing-plan-card:hover li::before {
    color: #059669;
}
[data-theme='dark'] .pricing-plan-card:hover .pricing-plan-cta {
    border-top-color: rgba(15, 23, 42, 0.1);
}
[data-theme='dark'] .pricing-plan-card:hover .pricing-plan-cta span {
    color: #64748b;
}
/* Light UI: hover flips to dark glass */
[data-theme='light'] .pricing-plan-card:hover {
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.25),
        0 26px 60px rgba(15, 23, 42, 0.35);
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(165deg, #0f172a 0%, #1e1b4b 48%, #134e4a 100%);
}
[data-theme='light'] .pricing-plan-card:hover h3 {
    color: #f8fafc;
}
[data-theme='light'] .pricing-plan-card:hover .pricing-plan-price {
    background: linear-gradient(135deg, #93c5fd, #5eead4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme='light'] .pricing-plan-card:hover li {
    color: #cbd5e1;
}
[data-theme='light'] .pricing-plan-card:hover li::before {
    color: #34d399;
}
[data-theme='light'] .pricing-plan-card:hover .pricing-plan-cta {
    border-top-color: rgba(255, 255, 255, 0.12);
}
[data-theme='light'] .pricing-plan-card:hover .pricing-plan-cta span {
    color: #94a3b8;
}
.pricing-plan-card > * {
    position: relative;
    z-index: 1;
}
.pricing-plan-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
}
.pricing-plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.pricing-plan-card ul {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    flex: 1;
}
.pricing-plan-card li {
    padding: 0.35rem 0;
    padding-inline-start: 1.25rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.pricing-plan-card li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 0;
    color: var(--secondary);
    font-weight: 800;
}
.pricing-plan-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}
.pricing-plan-cta span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pricing-plan-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-plan-cta a:hover {
    transform: translateY(-2px);
}
.pricing-cta-wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
}
.pricing-cta-mail {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

/* Portfolio work detail — نسخة يسار، غلاف + معرض يمين (LTR) */
.work-detail-page {
    padding-top: 110px;
    padding-bottom: 4rem;
}
.work-detail-hero {
    display: block;
    margin-bottom: 3rem;
    direction: ltr;
}
.work-detail-hero::after {
    content: '';
    display: block;
    clear: both;
}
/* عربي: النص يمين، الصور/الغلاف يسار (عكس ترتيب أعمدة LTR) */
html[lang='ar'] .work-detail-hero {
    direction: rtl;
}
.work-detail-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    width: min(100%, 560px);
    margin: 0 auto 1.5rem;
}
/* عزل اتجاه عمود الصور عن RTL حتى تبقى ترتيب الغلاف/المعرض طبيعياً */
html[lang='ar'] .work-detail-hero-visual {
    direction: ltr;
    unicode-bidi: isolate;
}
@media (min-width: 900px) {
    html[lang='en'] .work-detail-hero-visual {
        float: right;
        margin: 0 0 1.5rem 2rem;
    }
    html[lang='ar'] .work-detail-hero-visual {
        float: left;
        margin: 0 2rem 1.5rem 0;
    }
    .work-detail-actions,
    .work-detail-videos {
        clear: both;
    }
}
html[lang='ar'] .work-detail-intro {
    direction: rtl;
    text-align: right;
}
html[lang='en'] .work-detail-intro {
    direction: ltr;
    text-align: left;
}
.work-detail-cover {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    min-height: 340px;
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.work-detail-cover img,
.work-detail-cover video,
.work-detail-cover .work-detail-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
    border-radius: inherit;
}
.work-detail-intro h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 1rem;
    line-height: 1.2;
}
.work-detail-rich {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.35rem;
}
.work-detail-rich-p {
    margin: 0 0 0.85rem;
}
.work-detail-rich-h {
    margin: 1.15rem 0 0.55rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
}
.work-detail-rich-h:first-child {
    margin-top: 0;
}
.work-detail-rich-list {
    list-style: none;
    margin: 0.5rem 0 1rem;
    padding: 0;
}
.work-detail-rich-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    padding-inline-start: 0.15rem;
}
.work-detail-li-check {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 800;
}
.work-detail-intro p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.work-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.25rem;
    align-items: stretch;
}
@media (min-width: 900px) {
    html[lang='en'] .work-detail-actions {
        display: grid;
        grid-template-columns: minmax(0, 1.62fr) minmax(0, 1.18fr);
        gap: 0.85rem;
    }
    html[lang='en'] .work-detail-order-card,
    html[lang='en'] .work-detail-link-card {
        flex: unset;
        min-width: 0;
        width: 100%;
        justify-self: start;
    }
    html[lang='en'] .work-detail-order-card {
        max-width: min(100%, 300px);
    }
    html[lang='en'] .work-detail-link-card {
        max-width: min(100%, 400px);
    }
}
.work-detail-link-card {
    flex: 1 1 220px;
    max-width: 100%;
}
.work-detail-order-card {
    flex: 1.35 1 220px;
    min-width: min(100%, 200px);
    max-width: min(100%, 420px);
}
.work-detail-link-card,
.work-detail-order-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 4.5rem;
}
.work-detail-link-card {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0.35));
    color: var(--text-main);
}
.work-detail-order-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(18, 140, 126, 0.12));
    border-color: rgba(37, 211, 102, 0.35);
    color: #ecfdf5;
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.08);
}
.work-detail-link-card:hover,
.work-detail-order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}
.work-detail-link-card-ico,
.work-detail-order-card-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.work-detail-link-card-ico {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
}
.work-detail-order-card-ico {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.35rem;
}
.work-detail-link-card-txt,
.work-detail-order-card-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: start;
}
.work-detail-link-card-h,
.work-detail-order-card-h {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
}
.work-detail-order-card-h {
    color: #fff;
}
.work-detail-link-card-sub,
.work-detail-order-card-sub {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.88;
}
.work-detail-link-card-sub {
    color: var(--text-muted);
}
.work-detail-order-card-sub {
    color: rgba(255, 255, 255, 0.9);
}
.work-detail-link-card-go,
.work-detail-order-card-go {
    font-size: 1.05rem;
    opacity: 0.85;
    flex-shrink: 0;
}
.work-detail-order-card-go {
    color: #fff;
}
[data-theme='light'] .work-detail-order-card {
    color: #065f46;
    background: linear-gradient(135deg, rgb(196 255 225 / 95%), rgb(255 255 255 / 75%));
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}
[data-theme='light'] .work-detail-order-card-h {
    color: #064e3b;
}
[data-theme='light'] .work-detail-order-card-sub {
    color: rgba(6, 78, 59, 0.85);
}
[data-theme='light'] .work-detail-order-card-ico {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
}
[data-theme='light'] .work-detail-order-card-go {
    color: #047857;
}
[data-theme='light'] .work-detail-link-card {
    color: #0f172a;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(241, 245, 249, 0.95));
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}
[data-theme='light'] .work-detail-link-card-h {
    color: #0c4a6e;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
}
[data-theme='light'] .work-detail-link-card-ico {
    background: rgba(59, 130, 246, 0.18);
    color: #0369a1;
}
[data-theme='light'] .work-detail-link-card-go {
    color: #0369a1;
}
[data-theme='light'] .work-detail-order-card-h {
    font-size: 0.88rem;
    line-height: 1.25;
}
.work-detail-rich--html h2,
.work-detail-rich--html h3,
.work-detail-rich--html h4 {
    margin: 1rem 0 0.5rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-main);
}
.work-detail-rich--html h2:first-child,
.work-detail-rich--html h3:first-child,
.work-detail-rich--html h4:first-child {
    margin-top: 0;
}
.work-detail-rich--html p {
    margin: 0 0 0.65rem;
    color: var(--text-muted);
    line-height: 1.75;
}
.work-detail-rich--html ul {
    margin: 0 0 0.85rem 1.1rem;
    padding: 0;
    color: var(--text-muted);
    line-height: 1.65;
}
/* عربي: محاذاة فقرات منطقية مع تقليل الفراغات العمودية */
html[lang='ar'] .work-detail-rich--html {
    line-height: 1.68;
}
html[lang='ar'] .work-detail-rich--html p {
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
    margin: 0 0 0.48rem;
    line-height: 1.68;
    hyphens: manual;
    -webkit-hyphens: manual;
}
html[lang='ar'] .work-detail-rich--html h2,
html[lang='ar'] .work-detail-rich--html h3,
html[lang='ar'] .work-detail-rich--html h4 {
    text-align: right;
    margin: 0.55rem 0 0.32rem;
}
html[lang='ar'] .work-detail-rich--html h2:first-child,
html[lang='ar'] .work-detail-rich--html h3:first-child,
html[lang='ar'] .work-detail-rich--html h4:first-child {
    margin-top: 0;
}
html[lang='ar'] .work-detail-rich--html ul,
html[lang='ar'] .work-detail-rich--html ol {
    text-align: right;
    margin: 0 0 0.55rem 0;
    padding-inline-start: 1.15rem;
    line-height: 1.62;
}
html[lang='ar'] .work-detail-rich--html li {
    margin-bottom: 0.28rem;
}
html[lang='ar'] .work-detail-rich--html blockquote {
    text-align: right;
    margin: 0.45rem 0;
}
html[lang='ar'] .work-detail-rich--html img {
    display: block;
    margin-inline: auto;
}
.work-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1rem;
}
.work-detail-link:hover {
    text-decoration: underline;
}
.work-detail-order-btn {
    margin-top: 1rem;
}
.work-detail-gallery {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}
.work-detail-gallery h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.work-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.work-detail-thumb {
    position: relative;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
    width: 112px;
    flex: 0 0 auto;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.work-detail-thumb:hover {
    transform: translateY(-2px);
}
.work-detail-thumb.is-active {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}
.work-detail-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    vertical-align: middle;
}
.work-detail-thumb video {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    vertical-align: middle;
    background: #000;
    pointer-events: none;
}
.work-detail-thumb--video {
    cursor: pointer;
}
.work-detail-thumb-video-badge {
    position: absolute;
    inset-inline-end: 0.5rem;
    bottom: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.34);
    pointer-events: none;
}
.work-detail-videos {
    margin-top: 2.5rem;
}
.work-detail-videos h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.work-detail-vid-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.work-detail-video-unit {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.work-detail-video-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.work-detail-video-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}
.work-detail-video-quality-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.work-detail-video-quality {
    min-width: 120px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    padding: 0.5rem 0.9rem;
    font: inherit;
}
.yt-video-unit {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.work-detail-vid-grid .vid-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
}
.work-detail-vid-grid iframe,
.work-detail-vid-grid video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.yt-video-card {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: #000;
}
.yt-video-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.72);
}
.yt-video-card-play {
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 1.35rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 2;
    color: #fff;
}
.yt-video-card-label {
    display: none;
}
.yt-video-card:hover .yt-video-card-thumb {
    filter: brightness(0.82);
}
.yt-video-open-link {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
}
.yt-video-open-link:hover {
    background: rgba(239, 68, 68, 0.18);
}
.yt-video-blocked {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top, rgba(239, 68, 68, 0.15), transparent 38%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    color: #fff;
    text-align: center;
}
.yt-video-blocked-ico {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.8rem;
    color: #ff4e45;
}
.yt-video-blocked-text {
    margin: 0;
    max-width: 34rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}
.work-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}
.work-detail-back:hover {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    html[lang='ar'] .hero h1 #bind-hero-line1 {
        white-space: nowrap;
        font-size: clamp(1.35rem, 5.2vw, 1.95rem);
    }
    html[lang='ar'] .hero p#bind-hero-lead {
        font-size: clamp(0.78rem, 3.25vw, 0.92rem);
        line-height: 1.65;
        max-width: 100%;
    }
    html[lang='en'] .hero h1.hero-title-en {
        font-size: clamp(1.85rem, 6.5vw, 2.95rem);
        line-height: 1.06;
        margin-bottom: 0.85rem;
        font-weight: 400;
    }
    html[lang='en'] .hero h1.hero-title-en .hero-title-en-line1 {
        white-space: nowrap;
        font-size: clamp(1.72rem, 6.1vw, 2.72rem);
        line-height: 1.06;
        font-weight: 400;
    }
    html[lang='en'] .hero h1.hero-title-en .hero-title-en-line2 {
        line-height: 1.5;
        margin-top: 0.05em;
        font-weight: 800;
    }
    html[lang='en'] .hero h1.hero-title-en .text-gradient {
        white-space: normal;
    }
    html[lang='en'] .hero p#bind-hero-lead {
        font-size: clamp(0.84rem, 3.28vw, 0.98rem);
        line-height: 1.58;
        margin-bottom: 1.35rem;
    }
    html[lang='en'] .services-catalog-page .svc-major-desc-inline--en .svc-major-desc-text {
        font-size: 0.94rem;
        line-height: 1.62;
    }
    .hero-land-visual {
        margin-top: 0.75rem;
    }
    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: min(100%, 420px);
        margin-inline: auto;
        margin-top: 0.25rem;
        gap: 0.65rem;
    }
    .hero-cta-row .btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        min-height: 48px;
    }
    .footer-bottom {
        text-align: center;
        font-size: clamp(0.68rem, 2.85vw, 0.82rem);
        line-height: 1.3;
        padding-inline: 0.35rem;
        max-width: 100%;
    }
    .home-about-card {
        flex-direction: column;
        align-items: stretch;
    }
    html[lang='ar'] .home-about-card-body .home-band-title {
        text-align: right;
    }
    html[lang='ar'] .home-about-card-lead {
        text-align: justify;
        text-align-last: start;
        text-justify: inter-word;
        hyphens: manual;
    }
    html[lang='en'] .home-about-card-body .home-band-title {
        text-align: left;
    }
    html[lang='en'] .home-about-card-lead {
        text-align: justify;
        text-align-last: start;
    }
    .home-about-card .home-about-minis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }
    .home-about-card .home-about-mini {
        padding: 0.5rem 0.3rem;
        gap: 0.35rem;
    }
    .home-about-card .home-about-mini-title {
        font-size: clamp(0.62rem, 3.1vw, 0.76rem);
        white-space: nowrap;
    }
    .home-about-card .home-about-mini-ico {
        font-size: 0.88rem;
    }
    .port-modal-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.55rem;
    }
    .port-modal-actions .port-modal-more {
        margin-inline-start: 0 !important;
    }

    /* هيدر موبايل: قائمة جانبية + شريط أنظف */
    .mrtech-nav-open {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 14px;
        border: 1px solid var(--glass-border);
        background: rgba(255, 255, 255, 0.06);
        color: var(--text-main);
        cursor: pointer;
        transition:
            border-color 0.2s ease,
            background 0.2s ease;
    }
    .mrtech-nav-open:hover {
        border-color: rgba(59, 130, 246, 0.45);
        background: rgba(59, 130, 246, 0.12);
    }
    [data-theme='light'] .mrtech-nav-open {
        background: rgba(29, 78, 216, 0.06);
    }
    .nav-links--desktop,
    .nav-links.nav-links--desktop {
        display: none !important;
    }
    .theme-toggle--search-desktop {
        display: none !important;
    }
    .header-inner {
        flex-wrap: nowrap;
        align-items: center;
        height: 64px;
        min-height: 64px;
        padding-block: 0.35rem;
    }
    /* عربي: نفس ترتيب الإنجليزية — شعار + نص يسار، أزرار التحكم يمين */
    html[lang='ar'] .header-inner {
        direction: ltr;
    }
    header {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    }
    .logo-text {
        font-size: 1.05rem;
        gap: 0.55rem;
    }
    .logo-text img.logo-img {
        height: 36px;
    }
    /* زر اللغة مكان القائمة سابقاً والقائمة مكان اللغة */
    .header-inner .controls {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }
    .header-inner .controls .lang-toggle {
        order: 1;
    }
    .header-inner .controls .mrtech-header-dashboard {
        order: 2;
    }
    .header-inner .controls #mrtechSearchBtn {
        order: 3;
    }
    .header-inner .controls #themeToggle {
        order: 4;
    }
    .header-inner .controls .mrtech-nav-open {
        order: 5;
    }

    /* درج الجوال */
    .mrtech-mobile-drawer[hidden] {
        display: none !important;
    }
    .mrtech-mobile-drawer:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10060;
        pointer-events: none;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .mrtech-mobile-drawer:not([hidden]) .mrtech-mobile-drawer-backdrop,
    .mrtech-mobile-drawer:not([hidden]) .mrtech-mobile-drawer-panel {
        pointer-events: auto;
    }
    .mrtech-mobile-drawer-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(2, 6, 23, 0.62);
        backdrop-filter: blur(6px);
    }
    .mrtech-mobile-drawer-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: auto;
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        width: min(240px, 72vw);
        max-width: 100%;
        background: linear-gradient(288deg, rgb(24 45 93 / 54%) 0%, rgba(15, 23, 42, 0.94) 100%);
        border-inline-end: none;
        border-inline-start: 1px solid rgba(99, 102, 241, 0.28);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
        display: flex;
        flex-direction: column;
        padding: 0;
        outline: none;
    }
    .controls .mrtech-header-dashboard {
        display: none !important;
    }
    a.mrtech-mobile-drawer-ai-entry.mrtech-mobile-drawer-dash-entry {
        text-decoration: none;
        margin-bottom: 1rem;
        align-self: center;
    }
    [data-theme='light'] .mrtech-mobile-drawer-panel {
        background: linear-gradient(288deg, rgb(255 255 255) 0%, rgb(255 255 255 / 97%) 55%, #f1f5f9 100%);
        border-inline-start-color: rgba(29, 78, 216, 0.18);
    }
    .mrtech-mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1rem 1.1rem;
        border-bottom: 1px solid var(--glass-border);
    }
    .mrtech-mobile-drawer-title {
        font-weight: 800;
        font-size: 1.05rem;
    }
    .mrtech-mobile-drawer-nav {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 1rem 1rem 1.25rem;
        overflow: auto;
        flex: 1;
    }
    .mrtech-mobile-drawer-nav > a {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem;
        border-radius: 12px;
        text-decoration: none;
        color: var(--text-main);
        font-weight: 700;
        font-size: 0.95rem;
        border: 1px solid transparent;
        transition:
            background 0.2s ease,
            border-color 0.2s ease;
    }
    .mrtech-drawer-ico {
        flex-shrink: 0;
        width: 2.05rem;
        height: 2.05rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        font-size: 0.95rem;
        color: var(--primary-light);
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.12));
        border: 1px solid rgba(99, 102, 241, 0.28);
    }
    [data-theme='light'] .mrtech-drawer-ico {
        background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(5, 150, 105, 0.1));
        border-color: rgba(29, 78, 216, 0.2);
        color: #1d4ed8;
    }
    .mrtech-mobile-drawer-ai-h {
        margin: 0.85rem 1rem 0.35rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--glass-border);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        text-transform: uppercase;
    }
    .mrtech-mobile-drawer-ai-entry,
    a.mrtech-mobile-drawer-ai-entry {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: 0 1rem 0.5rem;
        padding: 0.7rem 0.85rem;
        border-radius: 14px;
        border: 1px solid rgba(56, 189, 248, 0.45);
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.2));
        color: #fff;
        font-family: 'Almarai', ui-sans-serif, system-ui, sans-serif;
        font-weight: 800;
        font-size: 0.82rem;
        letter-spacing: 0.04em;
        cursor: pointer;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        box-sizing: border-box;
        text-decoration: none;
    }
    .mrtech-mobile-drawer-ai-entry i {
        font-size: 1.1rem;
    }
    [data-theme='light'] .mrtech-mobile-drawer-ai-entry {
        color: #0f172a;
        border-color: rgba(37, 99, 235, 0.35);
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.12));
    }
    .mrtech-mobile-drawer-nav > a:hover,
    .mrtech-mobile-drawer-nav > a.nav-current {
        background: linear-gradient(89deg, #10394178 0%, rgb(0 12 41 / 52%) 100%);
        border-color: rgb(68, 116, 137);
        color: #f8fafc;
    }
    [data-theme='light'] .mrtech-mobile-drawer-nav > a:hover,
    [data-theme='light'] .mrtech-mobile-drawer-nav > a.nav-current {
        background: linear-gradient(91deg, rgba(16, 57, 65, 0.12) 0%, rgba(224, 231, 255, 0.92) 100%);
        border-color: rgba(37, 99, 235, 0.22);
        color: #0f172a;
    }
    .mrtech-mobile-drawer-nav > a.nav-current .mrtech-drawer-ico {
        color: #7dd3fc;
        background: linear-gradient(135deg, rgba(91, 163, 225, 0.38), rgba(59, 130, 246, 0.22));
        border-color: rgba(91, 163, 225, 0.55);
    }
    [data-theme='light'] .mrtech-mobile-drawer-nav > a.nav-current .mrtech-drawer-ico {
        color: #1d4ed8;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(91, 163, 225, 0.18));
        border-color: rgba(37, 99, 235, 0.4);
    }
    .mrtech-mobile-drawer-cta {
        margin-top: 0.35rem;
        margin-inline: auto;
        max-width: min(100%, 20rem);
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
        color: #fff !important;
        border: none !important;
    }
    .mrtech-mobile-drawer-nav .mrtech-mobile-drawer-search {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        display: inline-flex;
        align-items: center;
        border-radius: 12px;
        border: 1px solid #5ba3e1 !important;
        box-sizing: border-box;
        font-family: 'Almarai', ui-sans-serif, system-ui, sans-serif;
    }
    /* في اللايت مود: نفس مظهر زر البحث كالداكن (خلفية ملوّنة ونص وأيقونة فاتحة) */
    [data-theme='light'] .mrtech-mobile-drawer-nav .mrtech-mobile-drawer-search {
        border-color: #5ba3e1 !important;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(79, 70, 229, 0.88)) !important;
        color: #fff !important;
    }
    [data-theme='light'] .mrtech-mobile-drawer-nav .mrtech-mobile-drawer-search i {
        color: #fff !important;
    }
    /* كتالوج الخدمات — موبايل: عرض أوضح، تباعد أقل بين الأقسام */
    main.services-catalog-page.container {
        padding-left: max(0.85rem, env(safe-area-inset-left));
        padding-right: max(0.85rem, env(safe-area-inset-right));
    }
    .services-catalog-page .svc-major-block {
        margin-bottom: 1.5rem;
        padding: 1.2rem 1.05rem 1rem;
    }
    .services-catalog-page .services-catalog-hero {
        margin-bottom: 2.25rem;
    }
    /* رئيسية: هوامش للبطاقات */
    body[data-mrtech-page='home'] main > .container {
        padding-left: max(1.15rem, env(safe-area-inset-left));
        padding-right: max(1.15rem, env(safe-area-inset-right));
    }

    /* عنّا: هوامش الصفحة */
    .about-page-main .container {
        padding-left: max(1.15rem, env(safe-area-inset-left));
        padding-right: max(1.15rem, env(safe-area-inset-right));
    }

    /* معرض أعمال: فلاتر في شبكة متعددة الأعمدة */
    .port-subnav-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 0.75rem;
    }
    .port-subnav-card {
        min-height: auto;
        padding: 0.75rem 0.85rem;
    }
    .port-subnav-card-txt {
        font-size: 0.82rem;
        line-height: 1.25;
    }
    .port-subnav-card-ico {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    /* رؤيتنا: الشعار في المنتصف على الموبايل */
    section.about-vision-section:not(.about-goals-section) .about-vision-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    section.about-vision-section:not(.about-goals-section) .about-vision-card > div:last-child {
        text-align: center;
    }

    /* تواجدنا الرقمي: عمودان */
    .about-social-section .about-social-grid--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: none !important;
        gap: 0.75rem !important;
    }

    /* فوتر موبايل */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 1rem;
        align-items: start;
    }
    .footer-grid > div:first-child {
        grid-column: 1 / -1;
        text-align: center;
        max-width: 22rem;
        margin-inline: auto;
    }
    .footer-grid > div:first-child .logo-text {
        justify-content: center;
        align-items: center;
        width: fit-content;
        margin-inline: auto;
    }
    html[lang='ar'] .footer-grid > div:first-child .logo-text {
        direction: ltr;
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }
    .footer-grid > div:nth-child(4) {
        grid-column: 1 / -1;
    }
    footer {
        padding-top: 3.5rem;
    }
}

@media (min-width: 769px) {
    .mrtech-nav-open {
        display: none !important;
    }
}

/* Site search modal + Mr. AI */
.mrtech-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.mrtech-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1rem 2rem;
}
.mrtech-modal[hidden] {
    display: none !important;
}
.mrtech-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}
.mrtech-modal-panel {
    position: relative;
    width: min(560px, 100%);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    padding: 1.25rem 1.35rem 1.5rem;
    z-index: 1;
}
.mrtech-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.mrtech-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}
.mrtech-icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.mrtech-icon-btn:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
}
.mrtech-select {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-main);
    font: inherit;
}
.mrtech-search-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.45);
    color: var(--text-main);
    font: inherit;
    margin-bottom: 0.85rem;
}
.mrtech-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(52vh, 420px);
    overflow: auto;
}
.mrtech-search-empty {
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.mrtech-search-hit {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.mrtech-search-hit:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(129, 140, 248, 0.25);
}
.mrtech-search-hit-title {
    font-weight: 700;
    font-size: 0.95rem;
}
.mrtech-search-hit-scope {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.mrtech-ai-fab {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 10039;
    width: 3.35rem;
    height: 3.35rem;
    min-width: 3.35rem;
    padding: 0.35rem 0.25rem;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #fff;
    cursor: pointer;
    background:
        linear-gradient(155deg, rgba(15, 23, 42, 0.55) 0%, transparent 52%),
        linear-gradient(135deg, var(--primary) 0%, #6366f1 48%, var(--secondary) 100%);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 8px 26px rgba(59, 130, 246, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.35s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}
@media (max-width: 768px) {
    .mrtech-ai-fab {
        left: 0;
        bottom: 1.45rem;
        border-radius: 0 14px 14px 0;
        padding-left: 0.45rem;
        padding-right: 0.32rem;
        box-shadow:
            0 0 0 1px rgba(99, 102, 241, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.14),
            0 8px 26px rgba(59, 130, 246, 0.32);
    }
}
.mrtech-ai-fab-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1;
}
.mrtech-ai-fab-inner.mrtech-ai-fab-inner--square {
    flex-direction: column;
    gap: 0.2rem;
}
.mrtech-ai-fab-inner--square .mrtech-ai-fab-fa {
    font-size: 1.35rem;
}
.mrtech-ai-fab-inner--square .mrtech-ai-fab-label {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
}
.mrtech-ai-fab-fa {
    font-size: 1.12rem;
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.mrtech-ai-fab-label {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    direction: ltr;
    unicode-bidi: embed;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.mrtech-ai-fab-mr,
.mrtech-ai-fab-ai {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    opacity: 0.95;
}
.mrtech-ai-fab:hover {
    transform: scale(1.05) translateY(-1px);
    filter: saturate(1.08);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 12px 34px rgba(16, 185, 129, 0.22),
        0 10px 36px rgba(59, 130, 246, 0.38);
    background:
        linear-gradient(155deg, rgba(15, 23, 42, 0.4) 0%, transparent 48%),
        linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 42%, var(--secondary) 100%);
}
[data-theme='light'] .mrtech-ai-fab {
    border-color: rgba(37, 99, 235, 0.42);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, transparent 48%),
        linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, #0d9488 100%);
    box-shadow:
        0 0 0 1px rgba(79, 70, 229, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 8px 24px rgba(37, 99, 235, 0.22);
}
[data-theme='light'] .mrtech-ai-fab:hover {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.65) 0%, transparent 45%),
        linear-gradient(135deg, #38bdf8 0%, var(--primary) 45%, #14b8a6 100%);
    box-shadow:
        0 0 0 1px rgba(79, 70, 229, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 32px rgba(29, 78, 216, 0.28);
}
.mrtech-ai-panel {
    position: fixed;
    left: 1rem;
    right: auto;
    bottom: 4.5rem;
    z-index: 10040;
    width: min(400px, calc(100vw - 2rem));
    max-height: min(520px, 70vh);
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 27, 75, 0.94) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 12px 40px rgba(59, 130, 246, 0.15),
        0 28px 72px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: mrtech-ai-float 5s ease-in-out infinite;
}
@media (max-width: 767px) {
    .mrtech-ai-panel {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        border-radius: 0;
        animation: none !important;
        box-shadow: none;
        border: none;
        border-bottom: none;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: #0b1120 !important;
    }
    .mrtech-ai-panel::before {
        display: none !important;
    }
    .mrtech-ai-messages {
        max-height: none !important;
        min-height: 0 !important;
        flex: 1 1 auto !important;
    }
    .mrtech-ai-form {
        background: #0f172a !important;
        flex-shrink: 0;
    }
    .mrtech-ai-input {
        background: #1e293b !important;
    }
    .mrtech-ai-msg--assistant {
        background: #111827 !important;
    }
    .mrtech-ai-msg--user {
        background: #1d4ed8 !important;
        color: #f8fafc !important;
    }
    .mrtech-ai-head {
        background: #0f172a !important;
        flex-shrink: 0;
    }
    [data-theme='light'] .mrtech-ai-panel {
        background: #f8fafc !important;
    }
    [data-theme='light'] .mrtech-ai-form {
        background: #f1f5f9 !important;
    }
    [data-theme='light'] .mrtech-ai-input {
        background: #ffffff !important;
        border-color: rgba(148, 163, 184, 0.45) !important;
    }
    [data-theme='light'] .mrtech-ai-msg--assistant {
        background: #ffffff !important;
        border-color: rgba(148, 163, 184, 0.35) !important;
    }
    [data-theme='light'] .mrtech-ai-msg--user {
        background: #2563eb !important;
        color: #fff !important;
    }
    [data-theme='light'] .mrtech-ai-head {
        background: #e2e8f0 !important;
    }
}
.mrtech-ai-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}
@keyframes mrtech-ai-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .mrtech-ai-panel {
        animation: none;
    }
    .about-hero-orbit,
    .about-hero-glow,
    .about-hero-logo-mark {
        animation: none !important;
    }
    .about-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* لايت مود: نفس بنية الدارك (تدرج، شبكة، حدود زرقاء/فيروزية) بألوان فاتحة */
[data-theme='light'] .mrtech-ai-panel {
    background: linear-gradient(165deg, rgba(248, 250, 252, 0.98) 0%, rgba(224, 231, 255, 0.52) 42%, rgba(241, 245, 249, 0.97) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.16),
        0 12px 40px rgba(59, 130, 246, 0.14),
        0 28px 72px rgba(15, 23, 42, 0.1);
}
[data-theme='light'] .mrtech-ai-panel::before {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    opacity: 0.62;
}
[data-theme='light'] .mrtech-ai-head {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.16), rgba(16, 185, 129, 0.1));
    border-bottom-color: var(--glass-border);
}
[data-theme='light'] .mrtech-ai-head strong {
    color: var(--text-main);
}
[data-theme='light'] .mrtech-ai-msg--user {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(99, 102, 241, 0.14));
    border: 1px solid rgba(129, 140, 248, 0.38);
    color: #0f172a;
}
[data-theme='light'] .mrtech-ai-msg--assistant {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.38);
    color: var(--text-muted);
}
[data-theme='light'] .mrtech-ai-form {
    background: rgba(241, 245, 249, 0.88);
    border-top: 1px solid var(--glass-border);
}
[data-theme='light'] .mrtech-ai-input {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.42);
    color: var(--text-main);
}
[data-theme='light'] .mrtech-ai-send.btn-primary {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}
.mrtech-ai-panel[hidden] {
    display: none !important;
}
.mrtech-ai-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.08));
    position: relative;
    z-index: 1;
}
.mrtech-ai-head strong {
    display: block;
    font-size: 1.05rem;
}
.mrtech-ai-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.mrtech-ai-messages {
    flex: 1;
    overflow: auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 160px;
    max-height: 280px;
    position: relative;
    z-index: 1;
}
.mrtech-ai-msg--user {
    align-self: flex-end;
    max-width: 92%;
    padding: 0.5rem 0.75rem;
    border-radius: 14px 14px 4px 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(99, 102, 241, 0.22));
    border: 1px solid rgba(129, 140, 248, 0.35);
    font-size: 0.9rem;
}
.mrtech-ai-msg--assistant {
    align-self: stretch;
    padding: 0.5rem 0.75rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--glass-border);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}
.mrtech-ai-msg-body a {
    color: var(--primary-light);
    font-weight: 700;
}
.mrtech-ai-hint {
    display: none;
}
.mrtech-ai-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem 0.85rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.35);
    position: relative;
    z-index: 1;
}
.mrtech-ai-input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-main);
    font: inherit;
    font-size: 0.88rem;
}
.mrtech-ai-send {
    padding: 0 0.9rem !important;
    min-height: 42px;
}

/* Clients listing & client profile */
.mrtech-clients-empty,
.client-profile-miss,
.client-profile-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
}
.mrtech-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.mrtech-client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    padding: 1.25rem 1rem;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.mrtech-client-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.14);
}
.mrtech-client-card-logo-wrap {
    width: 100%;
    aspect-ratio: 1;
    max-width: 168px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(145deg, #e2e5ea 0%, #ffffff 48%, #eef0f3 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
[data-theme='dark'] .mrtech-client-card-logo-wrap {
    background: linear-gradient(155deg, #0b1220 0%, #1e293b 42%, #0f172a 100%);
    border-color: rgba(99, 102, 241, 0.28);
}
.mrtech-client-card-logo {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
}
.mrtech-client-card-logo-fallback {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.65;
}
.mrtech-client-card-name {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    width: 100%;
    min-width: 0;
}
.mrtech-client-card-name-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}
/* اسم ثانوي (إنجليزي/عربي) — صندوق شبه شفاف وسطر واحد مع نقاط */
.mrtech-lang-pill {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 0.28rem 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
[data-theme='light'] .mrtech-lang-pill {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
}
.mrtech-client-card-name-sub.mrtech-lang-pill {
    margin-top: 0.4rem;
}
html[lang='en'] .mrtech-clients-page .mrtech-client-card-name,
html[lang='en'] .mrtech-clients-page .mrtech-client-card-name-sub {
    font-family: var(--font-en), 'Almarai', sans-serif;
}
html[lang='en'] .mrtech-clients-page .mrtech-client-card-name-sub {
    font-family: 'Almarai', var(--font-en), sans-serif;
}
html[lang='en'] .client-profile-name-sub .mrtech-lang-pill,
html[lang='en'] .client-work-title-pill {
    font-family: 'Almarai', var(--font-en), sans-serif;
}
.client-profile-page h1 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin: 0 0 0.35rem;
}
.client-profile-hero {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}
@media (max-width: 700px) {
    .client-profile-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .client-profile-titles {
        text-align: center;
    }
}
.client-profile-logo-shell {
    border-radius: 20px;
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e2e5ea 0%, #ffffff 48%, #eef0f3 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
}
[data-theme='dark'] .client-profile-logo-shell {
    background: linear-gradient(155deg, #0b1220 0%, #1e293b 45%, #0f172a 100%);
    border-color: rgba(99, 102, 241, 0.32);
}
.client-profile-logo-img {
    max-width: 86%;
    max-height: 150px;
    object-fit: contain;
}
.client-profile-logo-fallback {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.55;
}
.client-profile-name-sub {
    margin: 0 0 0.65rem;
    min-width: 0;
}
.client-profile-name-sub .mrtech-lang-pill {
    margin-top: 0;
    max-width: min(100%, 28rem);
}
.client-profile-desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 1.05rem;
    text-align: justify;
    text-align-last: start;
    overflow-wrap: break-word;
}
html[lang='ar'] .client-profile-desc {
    text-justify: inter-word;
    hyphens: manual;
}
html[lang='en'] .client-profile-desc {
    hyphens: auto;
    -webkit-hyphens: auto;
}
.client-profile-works h2 {
    font-size: 1.35rem;
    margin: 0 0 1.25rem;
    color: var(--text-main);
}
.client-work-block {
    margin-bottom: 1.35rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    overflow: hidden;
}
.client-work-block-inner {
    padding: 1.25rem 1.35rem;
}
.client-work-block-inner--with-thumb {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem 1.15rem;
}
.client-work-block-text {
    flex: 1;
    min-width: 0;
}
.client-work-thumb-wrap {
    flex-shrink: 0;
    width: 118px;
    align-self: stretch;
    max-height: 132px;
}
@media (min-width: 480px) {
    .client-work-thumb-wrap {
        width: 132px;
        max-height: 140px;
    }
}
.client-work-thumb {
    width: 100%;
    height: 100%;
    min-height: 86px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    display: block;
    background: rgba(15, 23, 42, 0.35);
}
.client-work-thumb-wrap--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    border-radius: 14px;
    border: 1px dashed var(--glass-border);
    background: rgba(59, 130, 246, 0.05);
}
.client-work-thumb-fallback {
    font-size: 1.45rem;
    color: var(--text-muted);
    opacity: 0.4;
}
.client-work-title-pill {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0.3rem 0 0.45rem;
    padding: 0.22rem 0.48rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-theme='light'] .client-work-title-pill {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}
.client-work-block--link a {
    text-decoration: none;
    color: inherit;
    transition: background 0.25s ease;
}
.client-work-block--link a.client-work-block-inner--with-thumb {
    display: flex;
}
.client-work-block--link a:hover {
    background: rgba(59, 130, 246, 0.06);
}
.client-work-block h3 {
    margin: 0 0 0.15rem;
    font-size: 1.1rem;
}
.client-work-block p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.client-work-more {
    display: inline-block;
    margin-top: 0.65rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary-light);
}
.client-work-block > .client-manual-gal {
    margin: 0 1.35rem 1.25rem;
}
.client-manual-gal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}
.client-manual-gal-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.client-manual-gal-item img {
    width: 100%;
    height: 104px;
    object-fit: cover;
    display: block;
}
.clients-editor-root .cards-stack.portfolio-section-cards .admin-client-card {
    margin-bottom: 0;
}

/* Admin: bilingual labels on About form */
.admin-field-bilab {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 700;
}
.admin-field-bilab-ar {
    font-size: 0.95rem;
}
.admin-field-bilab-en {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.82;
    letter-spacing: 0.02em;
}
html[lang='en'] .admin-field-bilab-ar {
    font-size: 0.88rem;
}
html[lang='en'] .admin-field-bilab-en {
    font-size: 0.78rem;
}
.showcase-cards-root {
    display: grid;
    gap: 1rem;
}
.showcase-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.showcase-source-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
[data-theme='dark'] .showcase-source-card {
    background: rgba(15, 23, 42, 0.62);
}
.showcase-source-thumb {
    min-height: 130px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.showcase-source-thumb .project-thumb-img,
.showcase-source-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.showcase-source-body {
    display: grid;
    gap: 0.3rem;
}
.showcase-source-body strong {
    font-size: 1rem;
}
.showcase-source-body span {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}
.showcase-gallery-list {
    display: grid;
    gap: 0.85rem;
}
.showcase-gallery-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.project-showcase-main {
    padding-top: 118px;
    padding-bottom: 4rem;
    overflow: clip;
}
.project-showcase-shell {
    --showcase-accent: #1d7fbf;
    --showcase-accent-2: #47c59d;
    --showcase-surface: #f4fbff;
    --showcase-hero-card-min-height: 34rem;
    --showcase-hero-card-mobile-height: 26rem;
    --showcase-hero-card-radius: 34px;
    --showcase-hero-card-fit: cover;
}
.project-showcase-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: stretch;
    min-height: 78vh;
    padding: 1.6rem 0 2.6rem;
}
.showcase-hero-copy {
    position: relative;
    z-index: 1;
    min-height: var(--showcase-hero-card-min-height);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}
.showcase-hero-copy-main {
    display: grid;
    gap: 0.8rem;
}
.showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--showcase-accent) 12%, transparent);
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 800;
}
.showcase-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.showcase-lead {
    max-width: 44rem;
    margin: 1.2rem 0 0;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.95;
}
.showcase-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.showcase-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    font-size: 0.78rem;
    font-weight: 700;
}
.showcase-hero-pill--sub {
    background: color-mix(in srgb, var(--showcase-accent-2) 14%, transparent);
}
.showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
}
.showcase-action {
    min-width: 12rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.showcase-action--portfolio {
    min-width: 13rem;
}
.showcase-action--wa {
    min-width: 14.5rem;
    white-space: nowrap;
    font-weight: 900;
    box-shadow: 0 18px 40px color-mix(in srgb, var(--showcase-accent-2) 34%, transparent);
    transform: translateY(-2px) scale(1.02);
}
.showcase-action--wa:hover {
    transform: translateY(-4px) scale(1.035);
    box-shadow: 0 22px 48px color-mix(in srgb, var(--showcase-accent-2) 42%, transparent);
}
.showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.7rem;
}
.showcase-stat {
    appearance: none;
    border: 0;
    text-align: center;
    cursor: pointer;
    padding: 1.2rem 1.1rem 1.15rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
        color-mix(in srgb, var(--showcase-surface) 84%, white 16%);
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 10.4rem;
}
.showcase-stat::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--showcase-accent), var(--showcase-accent-2));
}
.showcase-stat:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--showcase-accent) 26%, transparent);
    box-shadow: 0 10px 22px rgb(15 23 42 / 8%);
}
[data-theme='dark'] .showcase-stat {
    background: rgba(15, 23, 42, 0.64);
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-stat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
    box-shadow: 0 18px 34px color-mix(in srgb, var(--showcase-accent) 22%, transparent);
}
.showcase-stat .showcase-stat-value {
    display: block;
    margin: 0;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1.6rem, 2.8vw, 2.15rem);
    font-weight: 900;
    line-height: 1.05;
}
.showcase-stat .showcase-stat-value--type {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
}
.showcase-stat .showcase-stat-text {
    display: block;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.7;
}
.showcase-hero-visual {
    position: relative;
    min-height: var(--showcase-hero-card-min-height);
}
.showcase-hero-card {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: var(--showcase-hero-card-min-height);
    border-radius: var(--showcase-hero-card-radius);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 18%, transparent);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--showcase-surface) 82%, white 18%)),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
[data-theme='dark'] .showcase-hero-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 14, 25, 0.96));
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-hero-card img,
.showcase-hero-card video {
    width: 100%;
    height: 100%;
    object-fit: var(--showcase-hero-card-fit, cover);
    display: block;
}
.showcase-hero-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    font-size: 4.4rem;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
}
.showcase-hero-fallback-fa {
    font-size: clamp(4.2rem, 8vw, 6rem);
}
.showcase-hero-fallback-img {
    width: min(38%, 10rem);
    height: min(38%, 10rem);
    object-fit: contain;
    filter: drop-shadow(0 20px 44px rgba(15, 23, 42, 0.18));
}
.showcase-icon-img,
.showcase-line-ico-img,
.showcase-proscons-ico-img,
.showcase-side-ico-img,
.showcase-stat-ico-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.showcase-line-ico-fa,
.showcase-proscons-ico-fa,
.showcase-side-ico-fa,
.showcase-stat-ico-fa {
    font-size: inherit;
}
.showcase-hero-orb {
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(0);
    opacity: 0.5;
    pointer-events: none;
    transition: transform 0.35s ease;
}
.showcase-hero-orb--a {
    top: -2rem;
    inset-inline-start: -2.2rem;
    width: 8.5rem;
    height: 8.5rem;
    background: radial-gradient(circle, color-mix(in srgb, var(--showcase-accent) 34%, transparent), transparent 72%);
}
.showcase-hero-orb--b {
    bottom: 2rem;
    inset-inline-end: -2rem;
    width: 10rem;
    height: 10rem;
    background: radial-gradient(circle, color-mix(in srgb, var(--showcase-accent-2) 34%, transparent), transparent 72%);
}
.showcase-tabs-bar {
    position: sticky;
    top: 86px;
    z-index: 5;
    margin: 0 0 2.2rem;
    padding: 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
[data-theme='dark'] .showcase-tabs-bar {
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}
.showcase-tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.68rem 1rem;
    border-radius: 999px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}
.showcase-tab-link:hover,
.showcase-tab-link.is-active {
    color: white;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
    transform: translateY(-1px);
}
.showcase-section {
    padding: 1.25rem 0 0;
    scroll-margin-top: 150px;
    content-visibility: auto;
    contain-intrinsic-size: 760px;
}
.showcase-section + .showcase-section {
    margin-top: 2.7rem;
}
.showcase-section-head {
    max-width: none;
    width: 100%;
    margin-bottom: 1.4rem;
}
.showcase-section-kicker {
    margin: 0 0 0.45rem;
    color: var(--showcase-accent);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.showcase-section-head h2,
.showcase-copy-card h2,
.showcase-cta-box h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    line-height: 1.12;
}
.showcase-section-head-ico {
    display: inline-flex;
    vertical-align: middle;
    margin-inline-end: 0.45rem;
}
.showcase-section-head-ico-fa {
    color: var(--showcase-accent);
}
.showcase-section-head p,
.showcase-copy-card p,
.showcase-side-card p,
.showcase-cta-box p {
    color: var(--text-muted);
    line-height: 1.9;
    text-align: justify;
}
.showcase-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 1.3rem;
}
.showcase-copy-card,
.showcase-side-card,
.showcase-cta-box {
    padding: 1.5rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--showcase-surface) 84%, white 16%));
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 12%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
[data-theme='dark'] .showcase-copy-card,
[data-theme='dark'] .showcase-side-card,
[data-theme='dark'] .showcase-cta-box {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 14, 25, 0.96));
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-side-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.showcase-side-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.22rem;
}
.showcase-side-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    color: white;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
    box-shadow: 0 18px 38px color-mix(in srgb, var(--showcase-accent) 22%, transparent);
}
.showcase-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}
.showcase-line-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.25rem;
    min-height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--showcase-surface) 86%, white 14%));
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
[data-theme='dark'] .showcase-line-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 14, 25, 0.96));
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-line-card p {
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
}
.showcase-line-details {
    display: grid;
    gap: 0.3rem;
    text-align: center;
}
.showcase-line-details span {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.65;
}
.showcase-line-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 16px;
    color: white;
    font-size: 1.08rem;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
}
.showcase-package-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--showcase-surface) 86%, white 14%));
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
[data-theme='dark'] .showcase-package-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 14, 25, 0.96));
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-package-card,
.showcase-package-grid span {
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        background 0.24s ease,
        color 0.24s ease,
        border-color 0.24s ease;
}
.showcase-package-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #0f172a 0%, #0b1220 58%, #020617 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.24);
}
.showcase-package-card:hover h3,
.showcase-package-card:hover .showcase-package-grid span {
    color: #fff;
}
.showcase-package-card:hover .showcase-package-grid span {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}
.showcase-package-card h3 {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
}
.showcase-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.55rem;
}
.showcase-package-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    background: color-mix(in srgb, var(--showcase-accent) 10%, transparent);
}
.showcase-compare-wrap {
    margin-top: 1.25rem;
    border-radius: 28px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--showcase-surface) 88%, white 12%));
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
[data-theme='dark'] .showcase-compare-wrap {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 14, 25, 0.96));
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-compare-wrap--compact {
    margin-top: 1.5rem;
}
.showcase-compare-table-wrap {
    overflow: auto;
    border-radius: 22px;
}
.showcase-compare-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
}
.showcase-compare-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 1rem 1.05rem;
    color: var(--text-main);
    background: color-mix(in srgb, var(--showcase-accent) 10%, white 90%);
    font-size: 0.86rem;
    font-weight: 900;
    text-align: start;
}
[data-theme='dark'] .showcase-compare-table thead th {
    background: color-mix(in srgb, var(--showcase-accent) 18%, rgb(15, 23, 42) 82%);
}
.showcase-compare-table tbody tr {
    opacity: 0;
    transform: translateY(14px);
    animation: showcaseRowIn 0.55s ease forwards;
    animation-delay: var(--showcase-row-delay, 0s);
}
.showcase-compare-table tbody td {
    padding: 1rem 1.05rem;
    border-top: 1px solid color-mix(in srgb, var(--showcase-accent) 10%, transparent);
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.6);
}
[data-theme='dark'] .showcase-compare-table tbody td {
    background: rgba(15, 23, 42, 0.36);
}
.showcase-compare-table tbody td:nth-child(2) {
    color: var(--showcase-accent);
    font-weight: 800;
}
.showcase-compare-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.showcase-compare-feature-ico {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--showcase-accent) 24%, transparent);
    flex: 0 0 auto;
}
@keyframes showcaseRowIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.showcase-screen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.showcase-screen-card {
    position: relative;
    overflow: hidden;
    min-height: 17rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--showcase-surface) 86%, white 14%));
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
.showcase-screen-card--zoom {
    padding: 0;
    width: 100%;
    cursor: zoom-in;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.showcase-screen-card--zoom:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgb(15 23 42 / 8%);
}
.showcase-screen-card--more {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 17rem;
    padding: 1.1rem;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(135deg, #0f172a 0%, #111827 46%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}
.showcase-screen-card--more p {
    margin: 0;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.showcase-screen-card--more:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 32px rgb(2 6 23 / 22%);
}
.showcase-screen-more-dots {
    width: 4.8rem;
    height: 4.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.16em;
}
[data-theme='dark'] .showcase-screen-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 14, 25, 0.96));
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-screen-caption {
    padding: 0.8rem 1rem 1rem;
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: justify;
}
.showcase-screen-media,
.showcase-screen-media img,
.showcase-screen-media video {
    width: 100%;
    height: 100%;
}
.showcase-screen-media img,
.showcase-screen-media video {
    object-fit: cover;
}
.showcase-screen-open {
    position: absolute;
    inset: auto 0.9rem 0.9rem auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: white;
    font-size: 0.82rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.showcase-screen-index {
    position: absolute;
    inset: 0.9rem auto auto 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    font-size: 0.74rem;
    font-weight: 800;
}
.showcase-screen-card--link,
.showcase-screen-card--link:hover {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}
.showcase-screen-link-ico,
.showcase-screen-empty-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 20px;
    color: white;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
}
.showcase-screen-card--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}
.showcase-screen-card--empty p {
    max-width: 20rem;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.8;
}
.showcase-proscons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}
.showcase-pros-card,
.showcase-cons-card {
    padding: 1.35rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--showcase-surface) 86%, white 14%));
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
[data-theme='dark'] .showcase-pros-card,
[data-theme='dark'] .showcase-cons-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 14, 25, 0.96));
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-pros-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.showcase-pros-head h3 {
    margin: 0;
    font-size: 1.2rem;
}
.showcase-pros-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
}
.showcase-pros-icon--warn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.showcase-proscons-list {
    display: grid;
    gap: 0.85rem;
}
.showcase-proscons-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 10%, transparent);
}
[data-theme='dark'] .showcase-proscons-item {
    background: rgba(15, 23, 42, 0.36);
}
.showcase-proscons-item-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    border-radius: 12px;
    color: var(--showcase-accent);
    background: color-mix(in srgb, var(--showcase-accent) 12%, transparent);
}
.showcase-proscons-item p {
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.8;
}
[data-theme='light'] .showcase-pros-card .showcase-proscons-item p {
    background: linear-gradient(135deg, #1aa567, #0f6b41);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme='dark'] .showcase-pros-card .showcase-proscons-item p {
    background: linear-gradient(135deg, #1e8e67, #52c89a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.showcase-proscons-item--pros .showcase-proscons-item-ico {
    color: #0f7a46;
    background: color-mix(in srgb, #0f7a46 14%, transparent);
}
.showcase-proscons-item--cons .showcase-proscons-item-ico {
    color: #9a4308;
    background: color-mix(in srgb, #9a4308 14%, transparent);
}
.showcase-proscons-item--pros .showcase-proscons-ico-fa {
    color: #0f7a46;
}
.showcase-proscons-item--cons .showcase-proscons-ico-fa {
    color: #9a4308;
}
.showcase-proscons-item--pros .showcase-proscons-ico-img {
    filter: hue-rotate(64deg) saturate(1.7) brightness(0.84);
}
.showcase-proscons-item--cons .showcase-proscons-ico-img {
    filter: hue-rotate(-18deg) saturate(1.85) brightness(0.82);
}
.showcase-devices-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 0.65fr);
    gap: 1rem;
    align-items: end;
}
.showcase-device-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}
.showcase-device-frame {
    position: relative;
    width: 100%;
    padding: 0.52rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--showcase-surface) 85%, white 15%));
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 16%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
.showcase-device-frame--zoom {
    display: block;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 16%, transparent);
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.showcase-device-frame--zoom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgb(15 23 42 / 10%);
}
[data-theme='dark'] .showcase-device-frame {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 14, 25, 0.96));
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-device-screen {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020817;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.showcase-device-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: auto;
}
.showcase-device-open {
    position: absolute;
    inset: auto 0.72rem 0.72rem auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.72);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
    z-index: 5;
}
/* Hidden per request */
.showcase-device-open {
    display: none !important;
}

.showcase-copy-card.showcase-copy-card--package.showcase-reveal.is-visible {
    margin-bottom: 20px;
}

.showcase-section-kicker--sub-en {
    margin-top: 0.2rem;
    opacity: 0.88;
    font-size: 0.74rem;
}

/* Make the "Features package" grid more eye-catching on larger screens */
.showcase-copy-card--package .showcase-package-grid {
    gap: 0.9rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
}
.showcase-copy-card--package .showcase-package-grid span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: flex-start;
    height: 100%;
    min-height: 3.3rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 16%, transparent);
    background: color-mix(in srgb, var(--showcase-accent) 8%, transparent);
    text-align: start;
    line-height: 1.45;
    font-size: 0.98rem;
    font-weight: 800;
    transition: color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, transform 0.2s ease;
}
.showcase-copy-card--package .showcase-package-grid span i {
    font-size: 1.05rem;
    transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.showcase-copy-card--package .showcase-package-grid span:nth-child(6n + 1) i { color: #3b82f6; }
.showcase-copy-card--package .showcase-package-grid span:nth-child(6n + 2) i { color: #10b981; }
.showcase-copy-card--package .showcase-package-grid span:nth-child(6n + 3) i { color: #f59e0b; }
.showcase-copy-card--package .showcase-package-grid span:nth-child(6n + 4) i { color: #ef4444; }
.showcase-copy-card--package .showcase-package-grid span:nth-child(6n + 5) i { color: #8b5cf6; }
.showcase-copy-card--package .showcase-package-grid span:nth-child(6n + 6) i { color: #06b6d4; }
.showcase-copy-card--package .showcase-package-grid span > span {
    font-weight: 800;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.showcase-copy-card--package .showcase-package-grid span:hover i {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 35%, transparent));
}
.showcase-copy-card--package .showcase-package-grid span:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.1);
    border-color: color-mix(in srgb, currentColor 22%, transparent);
}
.showcase-copy-card--package .showcase-package-grid span:hover > span {
    color: inherit;
    text-shadow: 0 0 8px color-mix(in srgb, currentColor 20%, transparent);
}

@media (min-width: 980px) {
    .showcase-copy-card--package .showcase-package-grid span {
        transform: none;
    }
}
.showcase-device-count {
    position: absolute;
    left: 0.72rem;
    top: 0.72rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--showcase-accent) 28%, transparent);
}
.showcase-device-caption {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.6;
    text-align: center;
}
.showcase-device-card--laptop .showcase-device-frame {
    max-width: 100%;
    padding: 0.66rem 0.66rem 1.02rem;
    border-radius: 28px 28px 18px 18px;
}
.showcase-device-card--laptop .showcase-device-screen {
    aspect-ratio: 16 / 10;
}
.showcase-device-card--laptop .showcase-device-frame::before {
    content: '';
    position: absolute;
    inset: auto 12% 0.28rem;
    height: 0.46rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--showcase-accent) 18%, rgba(15, 23, 42, 0.58));
}
.showcase-device-card--tablet .showcase-device-frame {
    max-width: 14rem;
    border-radius: 28px;
}
.showcase-device-card--tablet .showcase-device-frame::before {
    content: '';
    position: absolute;
    top: auto;
    bottom: 0.26rem;
    left: 50%;
    width: 2.6rem;
    height: 0.26rem;
    border-radius: 999px;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.3);
}
.showcase-device-card--tablet .showcase-device-screen {
    aspect-ratio: 3 / 4;
    border-radius: 20px;
}
.showcase-device-card--mobile .showcase-device-frame {
    max-width: 9.8rem;
    border-radius: 30px;
    padding: 0.42rem;
}
.showcase-device-card--mobile .showcase-device-screen {
    aspect-ratio: 9 / 19;
    border-radius: 24px;
}
.showcase-device-card--mobile .showcase-device-screen::before {
    content: '';
    position: absolute;
    top: 0.3rem;
    left: 50%;
    width: 36%;
    height: 0.36rem;
    border-radius: 999px;
    transform: translateX(-50%);
    background: rgba(2, 6, 23, 0.72);
    z-index: 1;
}
.showcase-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}
.showcase-lightbox.is-open {
    display: block;
}
.showcase-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(12px);
}
.showcase-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    max-width: min(1100px, calc(100vw - 2rem));
    margin: 2rem auto;
    padding: 1rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
}
[data-theme='dark'] .showcase-lightbox-dialog {
    background: rgba(10, 14, 25, 0.94);
}
.showcase-lightbox-head,
.showcase-lightbox-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.showcase-lightbox-head span,
.showcase-lightbox-counter {
    font-weight: 800;
}
.showcase-lightbox-close,
.showcase-lightbox-nav,
.showcase-lightbox-zoom button {
    border: 0;
    cursor: pointer;
    color: var(--text-main);
    background: rgba(148, 163, 184, 0.16);
}
.showcase-lightbox-close,
.showcase-lightbox-zoom button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 16px;
}
.showcase-lightbox-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}
.showcase-lightbox-nav {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
}
.showcase-lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(70vh, 760px);
    overflow: auto;
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.85);
}
.showcase-lightbox-media img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
    transform-origin: center center;
    transition: transform 0.24s ease;
}
.showcase-lightbox-media video {
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 18px;
    background: #000;
}
.showcase-lightbox-external {
    display: grid;
    gap: 0.85rem;
    place-items: center;
    min-height: min(52vh, 540px);
    padding: 1.25rem;
    text-align: center;
    color: #fff;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}
.showcase-lightbox-external-ico {
    width: 4.6rem;
    height: 4.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.55rem;
}
.showcase-lightbox-external p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}
.showcase-lightbox-external-link {
    min-width: min(240px, 100%);
}
.showcase-lightbox-zoom {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
body.showcase-lightbox-open {
    overflow: hidden;
}
.showcase-cta-box {
    text-align: center;
}
.showcase-cta-box .showcase-section-kicker,
.showcase-cta-box p {
    text-align: center;
}
.showcase-cta-box h2 {
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2), var(--showcase-accent));
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: showcaseGradientShift 7s ease infinite;
}
@keyframes showcaseGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.project-showcase-empty {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.project-showcase-empty p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}
.showcase-reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.showcase-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.showcase-hover-text {
    transition: color 0.22s ease, text-shadow 0.22s ease, filter 0.22s ease;
}
.showcase-hover-text.is-sparked {
    background: linear-gradient(135deg, #0f6b41, #1b8f55);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 14px rgba(16, 110, 67, 0.16);
}
[data-theme='dark'] .showcase-hover-text.is-sparked {
    color: color-mix(in srgb, var(--showcase-accent-2) 54%, var(--text-main));
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 16px color-mix(in srgb, var(--showcase-accent-2) 18%, transparent);
}
.showcase-pointer-sparkle {
    position: fixed;
    inset: 0 auto auto 0;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
    z-index: 1300;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 16%, transparent 17% 100%),
        radial-gradient(circle at center, color-mix(in srgb, var(--showcase-accent-2) 78%, white 22%) 0 44%, transparent 45% 100%);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--showcase-accent-2) 20%, transparent),
        0 0 22px color-mix(in srgb, var(--showcase-accent-2) 38%, transparent);
    mix-blend-mode: screen;
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.showcase-pointer-sparkle.is-active {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1) rotate(18deg);
    animation: showcaseSparklePulse 1s ease-in-out infinite;
}
@keyframes showcaseSparklePulse {
    0%,
    100% {
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--showcase-accent-2) 16%, transparent),
            0 0 18px color-mix(in srgb, var(--showcase-accent-2) 26%, transparent);
    }
    50% {
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--showcase-accent-2) 28%, transparent),
            0 0 28px color-mix(in srgb, var(--showcase-accent-2) 42%, transparent);
    }
}
.showcase-live-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.showcase-live-video-card {
    display: block;
    padding: 0.9rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--showcase-surface) 86%, white 14%));
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
[data-theme='dark'] .showcase-live-video-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 14, 25, 0.96));
    box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
}
.showcase-live-video-media {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    background: #020817;
}
.showcase-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.7rem;
}
.showcase-file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    padding: 0.85rem 0.8rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    background: color-mix(in srgb, var(--showcase-surface) 86%, white 14%);
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
}
.showcase-file-card-ico {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--showcase-accent) 14%, transparent);
    color: color-mix(in srgb, var(--showcase-accent) 72%, #111827 28%);
    font-size: 1.05rem;
}
.showcase-file-card-title {
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.35;
}
.showcase-file-card-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.showcase-live-video-media video,
.showcase-live-video-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.showcase-live-video-title {
    margin: 0.72rem 0 0;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.7;
    color: var(--text-main);
    text-align: center;
}
.showcase-live-video-card--link {
    text-decoration: none;
    color: inherit;
}
.showcase-live-video-media--link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--showcase-accent), var(--showcase-accent-2));
}
@media (max-width: 980px) {
    .project-showcase-hero,
    .showcase-section-grid {
        grid-template-columns: 1fr;
    }
    .showcase-hero-visual {
        min-height: var(--showcase-hero-card-mobile-height);
    }
    .showcase-hero-card {
        min-height: var(--showcase-hero-card-mobile-height);
    }
    .showcase-hero-copy {
        min-height: var(--showcase-hero-card-mobile-height);
    }
    .showcase-proscons-grid {
        grid-template-columns: 1fr;
    }
    .showcase-devices-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .showcase-device-card--laptop {
        grid-column: 1 / -1;
    }
}
@media (max-width: 760px) {
    .project-showcase-main {
        padding-top: 108px;
    }
    .project-showcase-hero {
        min-height: auto;
        gap: 1.35rem;
        padding-top: 0.8rem;
    }
    .showcase-hero-copy {
        min-height: auto;
    }
    .showcase-title {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }
    .showcase-lead {
        font-size: 0.96rem;
        line-height: 1.85;
    }
    .showcase-stats {
        grid-template-columns: 1fr;
    }
    .showcase-stat {
        min-height: 9.1rem;
    }
    .showcase-tabs-bar {
        position: static;
        top: auto;
        border-radius: 20px;
        padding: 0.58rem;
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(148, 163, 184, 0.24);
    }
    .showcase-tabs-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.45rem;
    }
    .showcase-tab-link {
        flex: initial;
        min-width: 0;
        min-height: 2.45rem;
        padding: 0.5rem 0.3rem;
        font-size: 0.74rem;
        line-height: 1.2;
        font-weight: 800;
        white-space: normal;
        text-align: center;
        border: 1px solid color-mix(in srgb, var(--showcase-accent) 16%, transparent);
    }
    .showcase-screen-card {
        min-height: 14.5rem;
    }
    .showcase-devices-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    .showcase-device-card--tablet .showcase-device-frame {
        max-width: min(14rem, 78vw);
    }
    .showcase-device-card--mobile .showcase-device-frame {
        max-width: min(10rem, 60vw);
    }
    .showcase-package-grid {
        grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
        gap: 0.45rem;
    }
    .showcase-package-grid span {
        min-height: 2.5rem;
        padding: 0.5rem 0.6rem;
        font-size: 0.92rem;
        line-height: 1.42;
    }
    .showcase-copy-card--package .showcase-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .showcase-copy-card--package .showcase-package-grid span {
        transform: none;
    }
    .showcase-compare-table-wrap {
        overflow: visible;
    }
    .showcase-compare-table {
        min-width: 0;
        border-spacing: 0;
    }
    .showcase-compare-table thead {
        display: none;
    }
    .showcase-compare-table tbody {
        display: grid;
        gap: 0.65rem;
    }
    .showcase-compare-table tbody::before { content: ''; display: none; }
    .showcase-compare-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem 0.55rem;
        opacity: 1;
        transform: none;
        animation: none;
        padding: 0.72rem 0.75rem;
        border-radius: 18px;
        background: color-mix(in srgb, var(--showcase-surface) 84%, white 16%);
        border: 1px solid color-mix(in srgb, var(--showcase-accent) 12%, transparent);
        box-shadow: 0px 1px 8px 0px rgb(15 23 42 / 5%);
    }
    [data-theme='dark'] .showcase-compare-table tbody tr {
        background: rgba(15, 23, 42, 0.54);
        box-shadow: 0px 1px 8px 0px rgb(2 6 23 / 18%);
    }
    .showcase-compare-table tbody td {
        display: flex;
        flex-direction: column;
        gap: 0.28rem;
        align-items: center;
        padding: 0.34rem 0.25rem;
        border-top: 0;
        background: transparent;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
    }
    .showcase-compare-table tbody td:first-child {
        grid-column: 1 / -1;
    }
    .showcase-compare-table tbody td::before {
        content: attr(data-col);
        display: block;
        font-size: 0.68rem;
        font-weight: 900;
        line-height: 1.35;
        color: var(--text-muted);
    }
    .showcase-compare-table tbody td[data-col=""]::before {
        content: '';
    }
    .showcase-compare-table tbody td:first-child::before {
        content: '';
        display: none;
    }
    .showcase-compare-table tbody td:nth-child(2)::before { content: 'AI Clinic Suite'; display: block; }
    .showcase-compare-table tbody td:nth-child(3)::before { content: 'الأنظمة الأخرى'; display: block; }
    .showcase-compare-table tbody td:nth-child(2),
    .showcase-compare-table tbody td:nth-child(3) {
        font-weight: 700;
    }
    .showcase-compare-table tbody td:nth-child(2) {
        color: var(--text-main);
        padding-inline-end: 0.5rem;
        border-inline-end: 1px solid color-mix(in srgb, var(--showcase-accent) 22%, transparent);
    }
    .showcase-compare-table tbody td:nth-child(3) {
        color: #dc2626;
        padding-inline-start: 0.5rem;
    }
    .showcase-compare-table tbody td[data-showcase-compact="1"] {
        font-weight: 800;
        white-space: nowrap;
    }
    #showcase-differentiators .showcase-section-head h2 {
        display: block;
        width: 100%;
        line-height: 1.25;
        margin-bottom: 0.35rem;
    }
    #showcase-differentiators .showcase-section-head p,
    #showcase-differentiators .showcase-compare-table tbody td {
        font-size: 0.84rem;
        line-height: 1.45;
    }
    .showcase-compare-feature {
        gap: 0.5rem;
        text-align: center;
    }
    .showcase-compare-feature-ico {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.78rem;
    }
    .showcase-lightbox-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
        padding: 0.85rem;
    }
    .showcase-lightbox-stage {
        grid-template-columns: 1fr;
    }
    .showcase-lightbox-nav {
        display: none;
    }
    .showcase-lightbox-media {
        min-height: 52vh;
    }
    .showcase-live-video-media {
        aspect-ratio: 16 / 10;
    }
}
