﻿/* =========================================================
   OFUQ — Global Stylesheet (Amp.styles.css)
   ---------------------------------------------------------
   Global only. Component styles live in *.razor.css.
   Sections:
     1. Fonts
     2. Design Tokens
     3. Reset & Base
     4. Typography
     5. Layout (container / section / grid / app-main)
     6. Buttons
     7. Footer
     8. Hero
     9. Services & Cards
    10. Stats
    11. CTA
    12. Forms
    13. Utilities
    14. Accessibility & Motion
    15. Print
   Mobile-first — breakpoints 640 / 768 / 960
   ========================================================= */


/* =========================================================
   1. FONTS
   ========================================================= */
@font-face {
    font-family: 'Cairo';
    src: url('../Fonts/Cairo/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../Fonts/Cairo/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   2. DESIGN TOKENS
   ========================================================= */
:root {
    /* Colors */
    --c-bg: #0A0F1E;
    --c-bg-2: #0F1729;
    --c-surface: #111A2E;
    --c-surface-2: #16213A;
    --c-border: rgba(255, 255, 255, 0.08);
    --c-border-2: rgba(255, 255, 255, 0.14);
    --c-primary: #00E5B0;
    --c-primary-2: #4FFFD0;
    --c-secondary: #7C3AED;
    --c-secondary-2: #A78BFA;
    --c-grad: linear-gradient(135deg, #00E5B0 0%, #7C3AED 100%);
    --c-grad-soft: linear-gradient(135deg, rgba(0,229,176,0.12), rgba(124,58,237,0.12));
    --c-text: #E6EDF7;
    --c-text-dim: rgba(230, 237, 247, 0.68);
    --c-text-mute: rgba(230, 237, 247, 0.45);
    --c-danger: #F87171;
    --c-warning: #FBBF24;
    --c-success: #34D399;
    /* Typography */
    --font-sans: 'Cairo', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    /* Fluid type scale */
    --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
    --fs-sm: clamp(0.85rem, 0.82rem + 0.18vw, 0.94rem);
    --fs-base: clamp(0.95rem, 0.9rem + 0.22vw, 1.05rem);
    --fs-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --fs-xl: clamp(1.3rem, 1.15rem + 0.75vw, 1.55rem);
    --fs-2xl: clamp(1.6rem, 1.35rem + 1.25vw, 2.15rem);
    --fs-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.15rem);
    --fs-4xl: clamp(2.5rem, 1.6rem + 4.5vw, 4.2rem);
    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 2.5rem;
    --sp-8: 3rem;
    --sp-9: 4rem;
    --sp-10: 5rem;
    --sp-11: 6rem;
    /* Radius */
    --r-xs: 6px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 26px;
    --r-full: 999px;
    /* Shadows */
    --sh-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
    --sh-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --sh-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    --sh-glow: 0 8px 40px rgba(0, 229, 176, 0.22);
    --sh-glow-2: 0 8px 40px rgba(124, 58, 237, 0.28);
    /* Layout
       --header-h-active يُستخدم في scroll-padding-top
       ويُزامَن مع الارتفاع الفعلي للهيدر عبر media query */
    --content-max: 1280px;
    --header-h: 72px;
    --header-h-sm: 60px;
    --header-h-active: var(--header-h-sm);
    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 180ms;
    --dur: 300ms;
    --dur-slow: 500ms;
    /* Safe areas */
    --safe-top: env(safe-area-inset-top, 0);
    --safe-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 960px) {
    :root {
        --header-h-active: var(--header-h);
    }
}


/* =========================================================
   3. RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h-active) + var(--sp-4) + var(--safe-top));
}

body {
    min-height: 100dvh;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--c-text);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

    a:hover {
        color: var(--c-primary-2);
    }

ul, ol {
    list-style: none;
}

::selection {
    background: rgba(0, 229, 176, 0.35);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: var(--c-text);
    margin: 0 0 var(--sp-3);
}

h1 {
    font-size: var(--fs-3xl);
}

h2 {
    font-size: var(--fs-2xl);
}

h3 {
    font-size: var(--fs-xl);
}

h4 {
    font-size: var(--fs-lg);
}

h5 {
    font-size: var(--fs-base);
}

h6 {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

p {
    margin: 0 0 var(--sp-4);
    color: var(--c-text-dim);
    line-height: 1.75;
}

strong {
    color: var(--c-text);
    font-weight: 700;
}


/* =========================================================
   5. LAYOUT
   ========================================================= */
.app-main {
    min-height: calc(100dvh - var(--header-h-active));
    outline: none;
}

    .app-main:focus-visible {
        outline: 2px solid var(--c-primary);
        outline-offset: -2px;
    }

.container {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--sp-4);
}

.section {
    padding-block: var(--sp-8);
}

.section--lg {
    padding-block: var(--sp-10);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: var(--sp-7);
}

.section-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-3);
    color: var(--c-text);
}

.section-sub {
    font-size: var(--fs-base);
    color: var(--c-text-dim);
    margin: 0;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--sp-5);
}

.grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid--2, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .container {
        padding-inline: var(--sp-6);
    }

    .section {
        padding-block: var(--sp-10);
    }

    .section--lg {
        padding-block: var(--sp-11);
    }

    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* =========================================================
   6. BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.75rem 1.4rem;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: var(--fs-sm);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

    .btn:active {
        transform: translateY(1px) scale(0.99);
    }

    .btn i, .btn svg {
        font-size: 0.95em;
        transition: transform var(--dur) var(--ease-out);
    }

.btn--primary {
    background: var(--c-grad);
    color: var(--c-bg);
    box-shadow: var(--sh-glow);
}

    .btn--primary:hover {
        color: var(--c-bg);
        transform: translateY(-2px);
        box-shadow: var(--sh-glow), var(--sh-glow-2);
    }

        .btn--primary:hover i,
        .btn--primary:hover svg {
            transform: translateX(-3px);
        }

[dir="ltr"] .btn--primary:hover i,
[dir="ltr"] .btn--primary:hover svg {
    transform: translateX(3px);
}

.btn--outline {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border-2);
}

    .btn--outline:hover {
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
        border-color: var(--c-primary);
    }

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text);
}

    .btn--ghost:hover {
        background: rgba(255, 255, 255, 0.09);
        color: #fff;
    }

.btn--sm {
    min-height: 36px;
    padding: 0.55rem 1rem;
    font-size: var(--fs-xs);
}

.btn--lg {
    min-height: 52px;
    padding: 0.95rem 1.8rem;
    font-size: var(--fs-base);
}

.btn--block {
    width: 100%;
}


/* =========================================================
   7. FOOTER
   ========================================================= */
.app-footer {
    background: var(--c-bg-2);
    border-top: 1px solid var(--c-border);
    margin-top: var(--sp-9);
    padding-top: var(--sp-8);
    padding-bottom: calc(var(--sp-6) + var(--safe-bottom));
    color: var(--c-text-dim);
    font-size: var(--fs-sm);
}

.app-footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--sp-4) var(--sp-7);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
}

@media (min-width: 640px) {
    .app-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .app-footer__inner {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        padding-inline: var(--sp-6);
    }
}

.app-footer__logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: var(--sp-3);
}

.app-footer .brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.app-footer .brand-sub {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--c-primary);
    text-transform: uppercase;
}

.app-footer__tagline {
    color: var(--c-text-mute);
    font-size: var(--fs-sm);
    line-height: 1.75;
    max-width: 320px;
}

.app-footer__heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text);
    margin-bottom: var(--sp-4);
}

.app-footer nav ul,
.app-footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-footer nav a {
    color: var(--c-text-dim);
    font-size: var(--fs-sm);
}

    .app-footer nav a:hover {
        color: var(--c-primary);
    }

.app-footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--c-text-mute);
}

.app-footer__contact i {
    color: var(--c-primary);
    font-size: 0.85rem;
    width: 1.1rem;
    text-align: center;
}

.app-footer__bottom {
    border-top: 1px solid var(--c-border);
    padding: var(--sp-4);
    text-align: center;
    color: var(--c-text-mute);
    font-size: var(--fs-xs);
}


/* =========================================================
   8. HERO
   ========================================================= */
.hero {
    position: relative;
    padding-block: var(--sp-9);
    overflow: hidden;
    isolation: isolate;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: -20% auto auto -15%;
        width: 60vw;
        height: 60vw;
        max-width: 700px;
        max-height: 700px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0, 229, 176, 0.18) 0%, transparent 65%);
        filter: blur(30px);
        z-index: -1;
        pointer-events: none;
    }

    .hero::after {
        content: '';
        position: absolute;
        inset: auto -15% -20% auto;
        width: 55vw;
        height: 55vw;
        max-width: 650px;
        max-height: 650px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 65%);
        filter: blur(30px);
        z-index: -1;
        pointer-events: none;
    }

@media (min-width: 960px) {
    .hero {
        padding-block: var(--sp-11);
    }
}

.hero__content {
    max-width: 780px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--r-full);
    background: var(--c-grad-soft);
    border: 1px solid rgba(0, 229, 176, 0.22);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 0.03em;
    margin-bottom: var(--sp-5);
}

.hero__title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-4);
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

    .hero__title em {
        font-style: normal;
        background: var(--c-grad);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

.hero__lead {
    font-size: var(--fs-lg);
    color: var(--c-text-dim);
    max-width: 620px;
    margin-bottom: var(--sp-6);
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}


/* =========================================================
   9. SERVICES & CARDS
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--sp-5);
    }
}

.service-card {
    position: relative;
    padding: var(--sp-6) var(--sp-5);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
    overflow: hidden;
    isolation: isolate;
}

    .service-card::before {
        content: '';
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: var(--c-grad);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform var(--dur) var(--ease-out);
        border-radius: var(--r-lg) var(--r-lg) 0 0;
    }

[dir="ltr"] .service-card::before {
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-border-2);
    background: var(--c-surface-2);
    box-shadow: var(--sh-md);
}

    .service-card:hover::before {
        transform: scaleX(1);
    }

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: var(--c-grad-soft);
    border: 1px solid rgba(0, 229, 176, 0.18);
    color: var(--c-primary);
    font-size: 1.4rem;
    margin-bottom: var(--sp-4);
    transition: transform var(--dur) var(--ease-out);
}

.service-card:hover .service-card__icon {
    transform: scale(1.05) rotate(-3deg);
}

.service-card__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-2);
}

.service-card__desc {
    font-size: var(--fs-sm);
    color: var(--c-text-dim);
    line-height: 1.75;
    margin: 0;
}


/* =========================================================
   10. STATS
   ========================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
    padding: var(--sp-6) var(--sp-4);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
        padding: var(--sp-7) var(--sp-5);
    }
}

.stat {
    text-align: center;
}

.stat__value {
    font-size: var(--fs-2xl);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--sp-2);
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}


/* =========================================================
   11. CTA
   ========================================================= */
.cta {
    position: relative;
    padding: var(--sp-8) var(--sp-5);
    background: var(--c-grad-soft);
    border: 1px solid rgba(0, 229, 176, 0.15);
    border-radius: var(--r-xl);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

    .cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at center, rgba(0, 229, 176, 0.08) 0%, transparent 70%);
        z-index: -1;
        pointer-events: none;
    }

@media (min-width: 768px) {
    .cta {
        padding: var(--sp-10) var(--sp-7);
    }
}

.cta__title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: var(--sp-3);
}

.cta__lead {
    color: var(--c-text-dim);
    font-size: var(--fs-base);
    max-width: 560px;
    margin: 0 auto var(--sp-6);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
}


/* =========================================================
   12. FORMS
   ========================================================= */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.form-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text-dim);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1rem;
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    color: var(--c-text);
    font-family: inherit;
    font-size: var(--fs-sm);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: var(--c-text-mute);
    }

    .form-input:hover,
    .form-textarea:hover,
    .form-select:hover {
        border-color: var(--c-border-2);
    }

    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--c-primary);
        background: var(--c-surface);
        box-shadow: 0 0 0 3px rgba(0, 229, 176, 0.14);
    }

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-error {
    font-size: var(--fs-xs);
    color: var(--c-danger);
    margin: 0;
}


/* =========================================================
   13. UTILITIES
   ========================================================= */
.text-center {
    text-align: center;
}

.text-end {
    text-align: end;
}

.mt-4 {
    margin-top: var(--sp-4);
}

.mt-6 {
    margin-top: var(--sp-6);
}

.mt-8 {
    margin-top: var(--sp-8);
}

.mb-4 {
    margin-bottom: var(--sp-4);
}

.mb-6 {
    margin-bottom: var(--sp-6);
}

.mb-8 {
    margin-bottom: var(--sp-8);
}

.gradient-text {
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.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;
}

.skip-link {
    position: fixed;
    inset-inline-start: -9999px;
    top: 0;
    padding: 0.85rem 1.25rem;
    background: var(--c-primary);
    color: var(--c-bg);
    font-weight: 700;
    border-radius: 0 0 var(--r-md) 0;
    z-index: 9999;
    transition: inset-inline-start var(--dur-fast) var(--ease-out);
}

    .skip-link:focus {
        inset-inline-start: 0;
        color: var(--c-bg);
        outline: none;
    }

#blazor-error-ui {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    padding: 0.9rem 1.25rem;
    background: #1E1120;
    color: var(--c-danger);
    border-top: 1px solid rgba(248, 113, 113, 0.4);
    display: none;
    z-index: 9999;
    font-size: var(--fs-sm);
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        margin-inline-start: 0.75rem;
        font-weight: 700;
    }


/* =========================================================
   14. ACCESSIBILITY & MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .service-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

@media (prefers-contrast: more) {
    :root {
        --c-text: #FFFFFF;
        --c-text-dim: #D6DEE8;
        --c-border: rgba(255, 255, 255, 0.2);
        --c-border-2: rgba(255, 255, 255, 0.3);
    }
}


/* =========================================================
   15. PRINT
   ========================================================= */
@media print {
    .app-footer,
    .btn,
    .menu-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .service-card,
    .stats,
    .cta {
        border: 1px solid #ccc;
        background: #fff;
        box-shadow: none;
        page-break-inside: avoid;
    }
}
/* ============================================
   NavMenu — Scoped Styles
   Matches: NavMenu.razor (BEM) + header-scroll.js
   ============================================ */

/* ── Header shell ───────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 30, 0.78);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--c-border);
    padding-top: var(--safe-top);
    transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
    will-change: transform;
}

/* الصنف الذي يضيفه/يحذفه header-scroll.js */
.header--hidden {
    transform: translateY(-100%);
}

.header__shell {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-inline: var(--sp-4);
    height: var(--header-h-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

@media (min-width: 960px) {
    .header__shell {
        height: var(--header-h);
        padding-inline: var(--sp-6);
        gap: var(--sp-5);
    }
}

/* ── Brand ──────────────────────────────── */
.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand__logo {
    display: block;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.brand__sub {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--c-primary);
    text-transform: uppercase;
}

/* ── Primary nav (desktop) ──────────────── */
.primary-nav {
    flex: 1;
    display: none;
    justify-content: center;
}

.primary-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
    position: relative;
}

    .nav-link i {
        font-size: 0.85rem;
        opacity: 0.7;
        transition: opacity var(--dur-fast) var(--ease-out);
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

        .nav-link:hover i {
            opacity: 1;
        }

    .nav-link.active {
        color: #fff;
    }

        .nav-link.active i {
            opacity: 1;
            color: var(--c-primary);
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            inset-inline-start: 50%;
            transform: translateX(-50%);
            width: 22px;
            height: 2px;
            border-radius: 2px;
            background: linear-gradient(90deg, #00E5B0, #7C3AED);
        }

/* ── Actions ────────────────────────────── */
.header__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

/* Language switch */
.lang-switch {
    padding: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-switch__btn {
    padding: 0.35rem 0.75rem;
    min-width: 40px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
}

    .lang-switch__btn:hover {
        color: #fff;
    }

    .lang-switch__btn.is-active {
        background: linear-gradient(135deg, rgba(0, 229, 176, 0.22), rgba(124, 58, 237, 0.22));
        color: #fff;
        box-shadow: inset 0 0 0 1px rgba(0, 229, 176, 0.3);
    }

/* CTA */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #00E5B0, #7C3AED);
    color: var(--c-bg);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
    box-shadow: 0 4px 20px rgba(0, 229, 176, 0.22);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

    .btn-cta span {
        display: none;
    }

    .btn-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 28px rgba(124, 58, 237, 0.4);
        color: var(--c-bg);
    }

    .btn-cta i {
        font-size: 0.8rem;
        transition: transform var(--dur) var(--ease-out);
    }

    .btn-cta:hover i {
        transform: translateX(-3px);
    }

[dir="ltr"] .btn-cta:hover i {
    transform: translateX(3px);
}

/* Menu toggle (hamburger) */
.menu-toggle {
    display: block;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-toggle__icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

    .menu-toggle__icon span {
        display: block;
        height: 2px;
        width: 100%;
        background: #fff;
        border-radius: 2px;
        transform-origin: center;
        transition: transform var(--dur) ease, opacity var(--dur) ease;
    }

    .menu-toggle__icon.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle__icon.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle__icon.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

/* ── Mobile drawer ──────────────────────── */
/* يحمل صنف "nav" لأن header-scroll.js يبحث عن `.nav.open` */
.nav.mobile-drawer {
    display: none;
    background: rgba(10, 15, 30, 0.98);
    border-top: 1px solid var(--c-border);
}

    .nav.mobile-drawer.open {
        display: block;
    }

.mobile-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1.5rem 1.25rem;
}

.mobile-drawer__link {
    display: block;
    padding: 0.85rem 0;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

    .mobile-drawer__link.active {
        color: var(--c-primary);
    }

/* ── Desktop breakpoint ─────────────────── */
@media (min-width: 960px) {
    .primary-nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .btn-cta {
        padding: 0.55rem 1.1rem;
    }

        .btn-cta span {
            display: inline;
        }
}
/* ═══════════════════════════════════════════════════
   Mobile backdrop — خلف القائمة الجانبية
   يظهر فقط على الجوال (≤ 960px) عند فتح القائمة
   ═══════════════════════════════════════════════════ */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999; /* أقل من .header (1000) */
    animation: backdropFadeIn 0.2s ease-out;
    cursor: pointer;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* على سطح المكتب لا يظهر إطلاقًا (احتياط) */
@media (min-width: 960px) {
    .mobile-backdrop {
        display: none;
    }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .mobile-backdrop {
        animation: none;
    }
}
/* ═══════════════════════════════════════════════════
   Body scroll lock عند فتح القائمة الجانبية
   ⚠️ يجب أن يكون في global CSS (لا في scoped)
   لأن :has() يحتاج الوصول لـ <body>
   ═══════════════════════════════════════════════════ */
body:has(.header .mobile-drawer.open) {
    overflow: hidden;
    /* على iOS: منع التمرير المرن */
    touch-action: none;
}
/* =========================================================
   16. DECORATIVE BACKGROUND LAYERS
   — site-wrapper + website-bg + grid-bg
   — تُستخدم في MainLayout
   ========================================================= */

.site-wrapper {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    isolation: isolate; /* ← يحتوي z-index الطبقات */
}

    /* ضمان أن app-main يتمدد لدفع الفوتر للأسفل */
    .site-wrapper > .app-main {
        flex: 1;
        position: relative;
        z-index: 1;
    }

    .site-wrapper > .app-footer {
        position: relative;
        z-index: 1;
    }

/* ── التوهج الأساسي (Mint + Violet) ── */
.website-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at 15% 15%, rgba(0, 229, 176, 0.07) 0%, transparent 45%), radial-gradient(circle at 85% 85%, rgba(124, 58, 237, 0.07) 0%, transparent 45%), var(--c-bg);
}

/* ── شبكة نقطية خفيفة ── */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    /* تلاشي الشبكة نحو الحواف (تمنع إحساس "السجن") */
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

/* على الجوال: خفّف الكثافة (أداء GPU) */
@media (max-width: 640px) {
    .grid-bg {
        background-size: 40px 40px;
        opacity: 0.6;
    }
}

/* احترام تفضيل تقليل الحركة (لو أضفنا حركة لاحقًا) */
@media (prefers-reduced-motion: reduce) {
    .website-bg,
    .grid-bg {
        animation: none;
    }
}
 
.not-found-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65dvh; /* ضمان توسيط عمودي مريح داخل الـ MainLayout */
    padding-block: var(--sp-8);
}

.not-found__visual {
    position: relative;
    display: inline-block;
    margin-bottom: var(--sp-6);
}

/* أيقونة البوصلة الخلفية المتحركة */
.not-found__icon {
    font-size: 5rem;
    color: var(--c-primary);
    opacity: 0.15;
    position: absolute;
    top: 50%;
    inset-inline-start: 50%; /* دعم RTL/LTR */
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

/* رقم 404 الكبير بتأثير التدرج اللوني */
.not-found__code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.05em;
    /* يكتسب تأثير التدرج من فئة .gradient-text الموجودة في Amp.styles.css */
}

.not-found__title {
    font-size: var(--fs-2xl);
    color: var(--c-text);
    margin-bottom: var(--sp-3);
}

.not-found__desc {
    font-size: var(--fs-base);
    color: var(--c-text-dim);
    max-width: 500px;
    margin-inline: auto; /* توسيط أفق التفردي يدعم RTL/LTR تلقائياً */
    margin-bottom: var(--sp-6);
    line-height: 1.75;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
}

/* حركة الطفو البسيطة للأيقونة */
@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }
}

/* احترام تفضيلات المستخدم لتقليل الحركة */
 @media (prefers-reduced-motion: reduce) {
    .not-found__icon {
        animation: none;
    }
}
/* ═══════════════════════════════════════════════════════════
   ReconnectModal — Scoped Styles
   يتناغم مع Design Tokens في Amp.styles.css
   ═══════════════════════════════════════════════════════════ */

/* ── النافذة المنبثقة (Dialog) ── */
#components-reconnect-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 90%;
    max-width: 420px;
    padding: var(--sp-6);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg), 0 0 0 1px rgba(0, 229, 176, 0.05);
    color: var(--c-text);
    font-family: var(--font-sans);
    text-align: center;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    display: none;
}

    #components-reconnect-modal[open] {
        display: block;
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    /* الخلفية الضبابية */
    #components-reconnect-modal::backdrop {
        background: rgba(10, 15, 30, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        transition: opacity var(--dur) var(--ease-out);
    }

    #components-reconnect-modal[open]::backdrop {
        opacity: 1;
    }

/* ── حاوية المحتوى ── */
.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}

/* ── حركة النبض المزدوج ── */
.components-rejoining-animation {
    display: flex;
    gap: 8px;
    margin-bottom: var(--sp-2);
}

    .components-rejoining-animation div {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--c-grad);
        animation: reconnect-pulse 1.4s infinite ease-in-out both;
    }

        .components-rejoining-animation div:nth-child(1) {
            animation-delay: -0.32s;
        }

        .components-rejoining-animation div:nth-child(2) {
            animation-delay: -0.16s;
        }

@keyframes reconnect-pulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 229, 176, 0.4);
    }
}

/* ── النصوص ── */
#components-reconnect-modal p {
    margin: 0;
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--c-text-dim);
}

#components-reconnect-modal span#components-seconds-to-next-attempt {
    color: var(--c-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 1.5ch;
    text-align: center;
}

/* ── التحكم في إظهار الحالات (Blazor يضيف فئات *-visible) ── */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible {
    display: none;
}

    /* Blazor يضيف نفس اسم الفئة كـ class للعنصر عند تفعيل الحالة */
    .components-reconnect-first-attempt-visible.components-reconnect-first-attempt-visible,
    .components-reconnect-repeated-attempt-visible.components-reconnect-repeated-attempt-visible,
    .components-reconnect-failed-visible.components-reconnect-failed-visible,
    .components-pause-visible.components-pause-visible,
    .components-resume-failed-visible.components-resume-failed-visible {
        display: block;
    }

/* ── الأزرار ── */
#components-reconnect-button,
#components-resume-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: var(--fs-sm);
    font-family: var(--font-sans);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
    margin-top: var(--sp-2);
}

    /* عند تفعيل الحالة، أظهر الزر كـ inline-flex */
    #components-reconnect-button.components-reconnect-failed-visible {
        display: inline-flex;
    }

    #components-resume-button.components-pause-visible,
    #components-resume-button.components-resume-failed-visible {
        display: inline-flex;
    }

/* زر إعادة المحاولة (أساسي) */
#components-reconnect-button {
    background: var(--c-grad);
    color: var(--c-bg);
    box-shadow: var(--sh-glow);
}

    #components-reconnect-button:hover {
        transform: translateY(-2px);
        box-shadow: var(--sh-glow), var(--sh-glow-2);
    }

    #components-reconnect-button:active {
        transform: translateY(1px) scale(0.98);
    }

/* زر الاستئناف (مخطط) */
#components-resume-button {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border-2);
}

    #components-resume-button:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: var(--c-primary);
        color: #fff;
    }

    /* أيقونات الأزرار */
    #components-reconnect-button i,
    #components-resume-button i {
        font-size: 0.9em;
    }

/* ── احترام تفضيل تقليل الحركة ── */
@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal {
        transition: none;
    }

    .components-rejoining-animation div {
        animation: none;
        opacity: 1;
        transform: scale(1);
    }
}
/* =========================================================
   16. CLIENTS & PARTNERS (شركاء النجاح)
   ========================================================= */
.clients-section {
    padding-block: var(--sp-8);
    background: var(--c-bg-2);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
    align-items: center;
    justify-items: center;
}

@media (min-width: 640px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 960px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--sp-6);
    }
}

.client-logo {
    width: 100%;
    max-width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-3);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    transition: all var(--dur) var(--ease-out);
    opacity: 0.6;
    filter: grayscale(100%);
}

    .client-logo:hover {
        opacity: 1;
        filter: grayscale(0%);
        border-color: var(--c-primary);
        box-shadow: var(--sh-glow);
        transform: translateY(-3px);
    }

    .client-logo img, .client-logo svg {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* =========================================================
   17. FEATURES / WHY CHOOSE US (لماذا نحن)
   ========================================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: var(--sp-6);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    text-align: center;
    transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

    .feature-card:hover {
        transform: translateY(-4px);
        border-color: var(--c-primary);
    }

.feature-card__icon {
    width: 64px;
    height: 64px;
    margin-inline: auto;
    margin-bottom: var(--sp-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-grad-soft);
    color: var(--c-primary);
    font-size: 1.6rem;
    border: 1px solid rgba(0, 229, 176, 0.15);
}

.feature-card__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-2);
}

.feature-card__desc {
    font-size: var(--fs-sm);
    color: var(--c-text-dim);
    line-height: 1.7;
    margin: 0;
}

/* =========================================================
   18. PROJECTS TEASER (معرض المشاريع المصغر)
   ========================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--sh-lg);
    }

.project-card__image {
    width: 100%;
    height: 220px;
    background: var(--c-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-mute);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

    /* طبقة تدرج فوق الصورة */
    .project-card__image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, var(--c-surface) 0%, transparent 60%);
    }

.project-card__content {
    padding: var(--sp-5);
}

.project-card__category {
    font-size: var(--fs-xs);
    color: var(--c-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-2);
}

.project-card__title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-3);
    line-height: 1.4;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
    transition: gap var(--dur-fast) var(--ease-out);
}

    .project-card__link:hover {
        gap: 0.7rem;
        color: var(--c-primary-2);
    }
/* =========================================================
   تحديث شبكة الخدمات لتناسب 4 بطاقات بشكل مثالي
   ========================================================= */
@media (min-width: 960px) {
    .services-grid.four-items {
        grid-template-columns: repeat(2, 1fr); /* شبكة 2x2 مريحة للعين */
        max-width: 900px;
        margin-inline: auto;
    }
}

@media (min-width: 1200px) {
    .services-grid.four-items {
        grid-template-columns: repeat(4, 1fr); /* 4 بطاقات في صف واحد للشاشات الكبيرة جداً */
        max-width: var(--content-max);
    }
}

/* رابط "اقرأ المزيد" داخل بطاقة الخدمة */
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: var(--sp-4);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--c-primary);
    text-decoration: none;
    transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

    .service-card__link:hover {
        color: var(--c-primary-2);
        gap: 0.7rem;
    }

/* عكس اتجاه السهم في وضع LTR */
[dir="ltr"] .service-card__link i {
    transform: rotate(180deg);
    /* أو يمكن استخدام fa-arrow-right مباشرة في الكود حسب اللغة */
}
/* =========================================================
   HERO — محدّث مع لوحة تفاعلية
   ========================================================= */
.hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-8);
    align-items: center;
}

@media (min-width: 960px) {
    .hero__layout {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--sp-10);
    }
}

/* ── اللوحة التفاعلية ── */
.hero__visual {
    position: relative;
    display: none;
}

@media (min-width: 960px) {
    .hero__visual {
        display: block;
    }
}

.interactive-panel {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-inline-start: auto;
    padding: var(--sp-6);
    background: linear-gradient(135deg, rgba(17, 26, 46, 0.6), rgba(22, 33, 58, 0.4));
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    isolation: isolate;
}

/* الشبكة المتحركة في الخلفية */
.interactive-panel__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 229, 176, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 176, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* التوهج المركزي */
.interactive-panel__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 229, 176, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* حاوية البطاقات */
.interactive-panel__cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    height: 100%;
}

/* بطاقة الخدمة التفاعلية */
.interactive-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: rgba(17, 26, 46, 0.7);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--dur) var(--ease-out);
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.5s);
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.interactive-card:hover {
    background: var(--c-surface-2);
    border-color: var(--c-primary);
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--sh-glow);
    animation-play-state: paused;
}

/* أيقونة البطاقة */
.interactive-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-grad-soft);
    border: 1px solid rgba(0, 229, 176, 0.25);
    color: var(--c-primary);
    font-size: 1.4rem;
    transition: all var(--dur) var(--ease-out);
}

.interactive-card:hover .interactive-card__icon {
    background: var(--c-grad);
    color: var(--c-bg);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(0, 229, 176, 0.4);
}

/* نصوص البطاقة */
.interactive-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

    .interactive-card__text h4 {
        font-size: var(--fs-base);
        font-weight: 700;
        color: var(--c-text);
        margin: 0;
        transition: color var(--dur-fast) var(--ease-out);
    }

.interactive-card:hover .interactive-card__text h4 {
    background: var(--c-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.interactive-card__text span {
    font-size: var(--fs-xs);
    color: var(--c-text-mute);
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease-out);
}

.interactive-card:hover .interactive-card__text span {
    color: var(--c-text-dim);
}

/* ── احترام تفضيل تقليل الحركة ── */
@media (prefers-reduced-motion: reduce) {
    .interactive-panel__grid,
    .interactive-panel__glow,
    .interactive-card {
        animation: none;
    }

        .interactive-card:hover {
            transform: none;
        }
}
 