/* ================================================================
   EDAAFA AGENCY — Glassmorphism Design System
   إضافة وكالة — نظام تصميم زجاجي
   ================================================================ */

/* Google Fonts now loaded via <link> in HTML for non-render-blocking performance */

/* ──────────────────────── CSS TOKENS ──────────────────────── */
:root {
    /* Colors */
    --bg-dark: #060B18;
    --bg-card: #0C1428;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-hover: rgba(255, 255, 255, 0.09);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(0, 229, 255, 0.35);
    --accent-cyan: #00E5FF;
    --accent-blue: #5B8DEF;
    --accent-purple: #8B5CF6;
    --accent-glow: rgba(0, 229, 255, 0.25);
    --text-primary: #F0F4FF;
    --text-muted: #8892A4;
    --text-dim: #5A6378;
    --success: #10B981;
    --warning: #F59E0B;

    /* Glass tokens */
    --glass-blur: blur(18px);
    --glass-sat: saturate(180%);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.15);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Spacing */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --nav-h: 80px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur: 0.35s;
}

/* ──────────────────────── RESET & BASE ──────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 99px;
}

::selection {
    background: rgba(0, 229, 255, 0.25);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ── Font Awesome: reserve icon space while loading async (prevents CLS) ── */
i[class*="fa-"] {
    display: inline-block;
    min-width: 0.875em;
    height: 1em;
    vertical-align: -0.125em;
    line-height: 1;
}

ul {
    list-style: none;
}

/* ──────────────────────── BACKGROUND MESH ──────────────────────── */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 10%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 90% 80%, rgba(91, 141, 239, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 65%),
        var(--bg-dark);
}

.mesh-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ──────────────────────── GLASS CARD ──────────────────────── */
.glass {
    background: var(--surface);
    backdrop-filter: var(--glass-blur) var(--glass-sat);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-sat);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass);
    transition: border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        transform var(--dur) var(--ease-spring);
}

.glass:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
    transform: translateY(-4px);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ──────────────────────── BUTTONS ──────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--dur) var(--ease-spring);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: var(--bg-dark);
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 36px rgba(0, 229, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 1.5px solid var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.1) inset;
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

.btn-lg {
    padding: 18px 44px;
    font-size: 1.1rem;
}

/* ──────────────────────── TYPOGRAPHY ──────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.85;
}

.section-center {
    text-align: center;
}

.section-center .section-label {
    justify-content: center;
}

.section-center .section-desc {
    margin: 0 auto;
}

/* ──────────────────────── LAYOUT ──────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
    position: relative;
    z-index: 1;
    /* Skip rendering of off-screen sections — big LCP + CLS win */
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

/* ──────────────────────── NAVBAR ──────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.navbar.scrolled {
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 44px;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.07);
}

.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 10px;
    transition: all var(--dur) var(--ease);
}

.hamburger:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: all var(--dur) var(--ease);
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(6, 11, 24, 0.97);
    backdrop-filter: blur(24px);
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
    z-index: 998;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all var(--dur) var(--ease);
}

.mobile-menu.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-glass);
    transition: background var(--dur) var(--ease);
}

.mobile-menu a:hover {
    background: var(--surface);
    color: var(--accent-cyan);
}

/* ──────────────────────── PRELOADER ──────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    height: 70px;
    animation: preloaderPulse 1.2s ease-in-out infinite alternate;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--surface);
    border-radius: 99px;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 99px;
    animation: preloaderFill 0.7s var(--ease) forwards;
}

@keyframes preloaderPulse {
    from {
        opacity: 0.6;
        filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.3));
    }

    to {
        opacity: 1;
        filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.65));
    }
}

@keyframes preloaderFill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ──────────────────────── HERO ──────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
    /* Hero section should NOT use content-visibility (it's the LCP element) */
    content-visibility: visible;
    contain-intrinsic-size: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 50px;
    padding: 6px 16px 6px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 12px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-typewriter-wrap {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 2.5em;
}

#typewriter-text {
    color: var(--accent-cyan);
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--accent-cyan);
    border-radius: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.75s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-cyan);
    line-height: 1;
}

.hero-stat .lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.hero-img-wrap img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 229, 255, 0.12);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* Floating glass mini cards */
.float-card {
    position: absolute;
    padding: 12px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    animation: heroFloat 4s ease-in-out infinite;
}

.float-card:nth-child(2) {
    top: 8%;
    right: -20px;
    animation-delay: -1s;
}

.float-card:nth-child(3) {
    bottom: 14%;
    left: -20px;
    animation-delay: -2.5s;
}

.float-card:nth-child(4) {
    top: 50%;
    right: -24px;
    animation-delay: -0.7s;
}

.float-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.float-card-icon.cyan {
    background: rgba(0, 229, 255, 0.18);
}

.float-card-icon.blue {
    background: rgba(91, 141, 239, 0.18);
}

.float-card-icon.purple {
    background: rgba(139, 92, 246, 0.18);
}

.float-card-icon.green {
    background: rgba(16, 185, 129, 0.18);
}

.float-card-text .val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.float-card-text .lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ──────────────────────── WHY US ──────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.why-card {
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.why-card:hover::before {
    opacity: 1;
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ──────────────────────── STATS ──────────────────────── */
.stats-section {
    background: rgba(0, 229, 255, 0.03);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 64px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-plus {
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
}

/* ──────────────────────── SERVICES ──────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 56px;
}

.service-card {
    padding: 36px 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur) var(--ease);
}

.service-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 24px;
    position: relative;
}

.service-icon-wrap.c1 {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.05));
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.service-icon-wrap.c2 {
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.15), rgba(91, 141, 239, 0.05));
    border: 1px solid rgba(91, 141, 239, 0.2);
}

.service-icon-wrap.c3 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.service-icon-wrap.c4 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.service-icon-wrap.c5 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.service-icon-wrap.c6 {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 20px;
    transition: gap var(--dur) var(--ease);
}

.service-card:hover .service-link {
    gap: 14px;
}

/* ──────────────────────── MEDIATION ──────────────────────── */
.mediation-section {
    position: relative;
    overflow: hidden;
}

.mediation-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.mediation-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.mediation-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.party-card {
    padding: 28px 24px;
    border-radius: var(--radius);
}

.party-card.client {
    border-color: rgba(0, 229, 255, 0.25);
}

.party-card.freelancer {
    border-color: rgba(91, 141, 239, 0.25);
}

.party-card.us {
    border-color: rgba(139, 92, 246, 0.25);
    grid-column: 1/-1;
}

.party-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.party-badge.cyan {
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent-cyan);
}

.party-badge.blue {
    background: rgba(91, 141, 239, 0.12);
    color: var(--accent-blue);
}

.party-badge.purple {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-purple);
}

.party-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.party-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Steps */
.steps-title {
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 48px;
}

.steps-title span {
    color: var(--accent-cyan);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.step-card {
    padding: 28px 24px;
    position: relative;
    text-align: center;
}

.step-number {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    opacity: 0.7;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.step-card h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.mediation-guarantee {
    margin-top: 48px;
    padding: 36px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
    border: 1px solid rgba(0, 229, 255, 0.15);
    background: rgba(0, 229, 255, 0.03);
}

.guarantee-item .g-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.guarantee-item h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.guarantee-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ──────────────────────── PARTNERS ──────────────────────── */
.partners-section {
    position: relative;
    overflow: hidden;
}

.partners-hero {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.partners-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.perk-card {
    padding: 32px 24px;
    text-align: center;
}

.perk-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 18px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.perk-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.perk-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.partner-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 56px;
    position: relative;
}

.partner-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.35), transparent);
}

.pstep {
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.pstep-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.pstep h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pstep p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Partner form */
.partner-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px;
}

/* ──────────────────────── CONTACT FORM ──────────────────────── */
.contact-grid-wrap {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

/* ──────────────────────── CONTACT FORM ──────────────────────── */
.contact-grid-wrap {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

/* Mediation mini-cards grid (2 cols normally, 1 on mobile) */
.mediation-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-content: center;
}

/* Join / partners preview box */
.join-box {
    padding: 64px 48px;
}

@media (max-width: 768px) {
    .contact-grid-wrap {
        grid-template-columns: 1fr !important;
    }

    .mediation-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .mediation-cards-grid .glass[style*="grid-column"] {
        grid-column: auto !important;
    }

    .join-box {
        padding: 36px 20px !important;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group select option {
    background: var(--bg-card);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ──────────────────────── CTA BANNER ──────────────────────── */
.cta-section {
    padding: 80px 0;
}

.cta-inner {
    padding: 64px 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(91, 141, 239, 0.08) 100%);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, rgba(0, 229, 255, 0.03) 0%, transparent 50%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-inner>* {
    position: relative;
    z-index: 1;
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-inner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ──────────────────────── FOOTER ──────────────────────── */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 64px 0 32px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .brand-logo {
    height: 44px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--dur) var(--ease);
}

.social-btn:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--dur) var(--ease);
}

.footer-col ul li a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.83rem;
    color: var(--text-dim);
}

.footer-bottom a {
    color: var(--accent-cyan);
}

/* ──────────────────────── WHATSAPP FLOAT ──────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 990;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.4);
    cursor: pointer;
    transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease);
    animation: waPulse 2.5s ease-in-out infinite;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 36px rgba(0, 229, 255, 0.6);
    animation: none;
}

@keyframes waPulse {

    0%,
    100% {
        box-shadow: 0 4px 24px rgba(0, 229, 255, 0.4);
    }

    50% {
        box-shadow: 0 4px 40px rgba(0, 229, 255, 0.7);
    }
}

/* ──────────────────────── SCROLL TO TOP ──────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 100px;
    left: 28px;
    z-index: 990;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--dur) var(--ease);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--accent-cyan);
}

/* ──────────────────────── SCROLL REVEAL ──────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* ──────────────────────── PAGE HERO ──────────────────────── */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.page-hero * {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .section-label {
    justify-content: center;
}

.page-hero .section-desc {
    max-width: 600px;
}

/* ──────────────────────── THANKS PAGE ──────────────────────── */
.thanks-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.thanks-card {
    padding: 60px 48px;
    max-width: 520px;
    border-radius: var(--radius-xl);
}

.thanks-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    animation: bounceIn 0.8s var(--ease-spring);
}

@keyframes bounceIn {
    from {
        transform: scale(0.4);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thanks-card h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.thanks-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — EDAAFA AGENCY
   Breakpoints: 1280 | 1024 | 768 | 480
═══════════════════════════════════════════════ */

/* ── Large Tablet (≤ 1280px) ── */
@media (max-width: 1280px) {
    .container {
        max-width: 1000px;
    }

    .hero-content {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 32px;
    }

    .mediation-parties-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 16px;
    }
}

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    :root {
        --nav-h: 72px;
    }

    section {
        padding: 90px 0;
    }

    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-badge {
        margin: 0 auto 20px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Why-us */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Mediation inline layout */
    .mediation-parties-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .mediation-parties-grid>div:nth-child(2) {
        display: none;
    }

    /* hide center divider */
    .mediation-intro {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mediation-guarantee {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Partners */
    .partners-perks {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-steps::before {
        display: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    /* Contact page two-col layout */
    .contact-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
    :root {
        --nav-h: 64px;
    }

    section {
        padding: 72px 0;
    }

    /* Nav */
    .nav-links,
    .nav-cta {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    /* Page hero */
    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero .section-title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .page-hero .section-desc {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    /* Hero section */
    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.2;
    }

    .hero-typewriter-wrap {
        font-size: clamp(1.1rem, 4.5vw, 1.6rem);
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-canvas {
        display: none;
    }

    .float-card {
        display: none;
    }

    /* Section titles */
    .section-title {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
    }

    .section-desc {
        font-size: 0.92rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 36px;
    }

    .service-card {
        padding: 28px 22px;
    }

    /* Why-us */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-card {
        padding: 24px 20px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stats-section {
        padding: 48px 0;
    }

    /* Mediation page */
    .mediation-parties-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .mediation-parties-grid>div:nth-child(2) {
        display: none !important;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step-card {
        padding: 24px 18px;
    }

    .mediation-guarantee {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 20px;
    }

    .mediation-parties {
        grid-template-columns: 1fr;
    }

    .party-card.us {
        grid-column: auto;
    }

    /* Partners page */
    .partners-perks {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .perk-card {
        padding: 24px 20px;
    }

    .partner-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .partner-steps::before {
        display: none;
    }

    .pstep {
        padding: 20px 14px;
    }

    .partner-form-wrap {
        padding: 24px 20px;
    }

    /* Contact page */
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-inner {
        padding: 40px 24px;
        border-radius: var(--radius-lg);
    }

    .cta-inner h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-btns .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer {
        padding: 48px 0 24px;
    }

    .footer-brand .brand-logo {
        height: 36px;
    }

    /* Float buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 20px;
        left: 20px;
    }

    .scroll-top {
        width: 38px;
        height: 38px;
        bottom: 82px;
        left: 20px;
        font-size: 0.9rem;
    }

    /* Stats grid on join section */
    div.reveal[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    :root {
        --nav-h: 60px;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem) !important;
    }

    .hero-typewriter-wrap {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 12px;
    }

    .hero-stat-num {
        font-size: 1.5rem;
    }

    /* Page hero */
    .page-hero {
        padding: 100px 0 48px;
    }

    .page-hero .section-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-num {
        font-size: 2rem;
    }

    /* Partners steps → single column on the smallest screens */
    .partner-steps {
        grid-template-columns: 1fr;
    }

    /* Mediation guarantee */
    .mediation-guarantee {
        padding: 20px 16px;
    }

    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* CTA */
    .cta-inner {
        padding: 32px 16px;
    }

    /* Thanks card */
    .thanks-card {
        padding: 40px 24px;
    }

    .thanks-icon {
        font-size: 2.8rem;
    }

    .thanks-card h1 {
        font-size: 1.6rem;
    }

    /* Footer */
    .footer-socials {
        flex-wrap: wrap;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    /* Fix join-section stats grid */
    div.reveal[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Navbar logo */
    .nav-logo img {
        height: 34px;
    }
}

/* ── Very Small (≤ 360px) ── */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.7rem !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Global overflow prevention ── */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ── CRITICAL MOBILE OVERRIDES (≤768px) ── */
/* These target inline-style grids inside HTML that can't be
   overridden by normal media queries without !important */
@media (max-width: 768px) {

    /* Contact page 2-col layout */
    .contact-grid-wrap,
    section .container>div[style*="grid-template-columns:1fr 1.6fr"],
    section .container>div[style*="grid-template-columns: 1fr 1.6fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Mediation parties 3-col grid */
    div[style*="grid-template-columns:1fr auto 1fr"],
    div[style*="grid-template-columns: 1fr auto 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Partners stats 4-col */
    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    /* Any inline 3-col grid */
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Mediation center column divider */
    .mediation-parties-grid>div:nth-child(2) {
        display: none !important;
    }

    /* Hero floating cards — hide on mobile */
    .float-card {
        display: none !important;
    }

    /* Fix page-hero padding */
    .page-hero {
        padding: 110px 0 52px !important;
    }

    /* Make all buttons full width on small screens */
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Prevent hero title from overflowing */
    .hero-title {
        word-break: break-word;
    }

    /* Fix canvas overlap */
    .hero-canvas {
        max-width: 100%;
    }

    /* Fix preloader bar */
    .preloader-bar {
        max-width: 200px;
    }

    /* Section label on mobile */
    .section-label {
        font-size: 0.78rem;
    }

    /* Inline style 2-col grids that needs collapsing */
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Why-cards grid */
    .why-grid {
        grid-template-columns: 1fr !important;
    }

    /* Why section center block */
    .section-center {
        text-align: center;
    }

    .section-center .section-label {
        justify-content: center;
    }

    /* Inline style big paddings */
    div[style*="padding:40px"] {
        padding: 24px 16px !important;
    }

    div[style*="padding: 40px"] {
        padding: 24px 16px !important;
    }
}

@media (max-width: 480px) {

    /* Extra: hide hero image */
    .hero-visual {
        display: none !important;
    }

    /* Navbar logo size */
    .nav-logo img {
        height: 30px;
    }

    /* Stats smaller */
    .stat-num {
        font-size: 1.9rem;
    }

    /* Fix CTA buttons really small screens */
    .cta-btns .btn {
        font-size: 0.88rem;
        padding: 13px 20px;
    }

    /* Fix glass card paddings */
    .glass {
        padding: 20px 16px;
    }

    .glass.service-card {
        padding: 24px 18px;
    }

    /* Section padding tighter */
    section {
        padding: 52px 0;
    }

    /* Inline 3-col and 4-col → 2-col on 480 */
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ──────────────────────── BLOG PAGE ──────────────────────── */

/* Filter Tabs */
.blog-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 9px 22px;
    border-radius: 50px;
    border: 1.5px solid var(--border-glass);
    background: var(--surface);
    color: var(--text-muted);
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}

.filter-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.07);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: var(--bg-dark);
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

/* Featured Article */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    min-height: 340px;
}

.blog-featured-img {
    position: relative;
    overflow: hidden;
}

.blog-featured-img .blog-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.blog-featured-content {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.blog-featured-content h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 900;
    line-height: 1.4;
}

.blog-featured-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* Blog Card */
.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}

.blog-card-img {
    position: relative;
    overflow: hidden;
}

.blog-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    transition: transform 0.5s var(--ease);
}

.blog-card:hover .blog-img-placeholder {
    transform: scale(1.05);
}

.blog-cat-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-card-body h3 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--text-primary);
}

.blog-card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 4px;
    transition: gap var(--dur) var(--ease);
}

.blog-read-more:hover {
    gap: 10px;
}

/* Newsletter input focus */
.newsletter-form input:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

/* Responsive Blog */
@media (max-width: 900px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured-img .blog-img-placeholder {
        min-height: 200px;
    }

    .blog-featured-content {
        padding: 28px 24px;
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 7px 16px;
        font-size: 0.82rem;
    }
}

/* ──────────────────────── ARTICLE MODAL ──────────────────────── */
.article-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    overflow-y: auto;
    padding: 40px 20px;
}

.article-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.article-modal {
    width: 100%;
    max-width: 820px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.7), 0 0 80px rgba(0, 229, 255, 0.08);
    transform: translateY(40px) scale(0.97);
    transition: transform 0.45s var(--ease-spring), opacity 0.4s var(--ease);
    opacity: 0;
    overflow: hidden;
    margin: 20px 0;
}

.article-modal-overlay.open .article-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close btn */
.article-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur) var(--ease);
    z-index: 10;
    backdrop-filter: blur(8px);
}

.article-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #EF4444;
    transform: rotate(90deg);
}

/* Article header */
.article-modal-header {
    position: relative;
    padding: 48px 48px 32px;
    border-bottom: 1px solid var(--border-glass);
}

.article-modal-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.article-modal-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 16px;
}

.article-modal-meta {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.article-modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article body */
.article-modal-body {
    padding: 40px 48px 48px;
}

.article-modal-body h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
    padding-right: 18px;
}

.article-modal-body h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue));
}

.article-modal-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--accent-cyan);
}

.article-modal-body p {
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 18px;
    font-size: 1rem;
}

.article-modal-body ul,
.article-modal-body ol {
    padding-right: 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-modal-body li {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 0.95rem;
    position: relative;
}

.article-modal-body ul li::marker {
    color: var(--accent-cyan);
}

.article-modal-body ol li::marker {
    color: var(--accent-cyan);
    font-weight: 800;
}

.article-modal-body blockquote {
    background: rgba(0, 229, 255, 0.05);
    border-right: 4px solid var(--accent-cyan);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 28px;
    margin: 28px 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.9;
}

.article-modal-body strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Article CTA at end */
.article-modal-cta {
    margin-top: 40px;
    padding: 32px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(91, 141, 239, 0.06));
    border: 1px solid rgba(0, 229, 255, 0.2);
    text-align: center;
}

.article-modal-cta h3 {
    margin-top: 0 !important;
    color: var(--text-primary) !important;
    font-size: 1.3rem !important;
}

.article-modal-cta p {
    margin-bottom: 24px;
}

/* Body scroll lock */
body.modal-open {
    overflow: hidden;
}

/* Responsive modal */
@media (max-width: 768px) {
    .article-modal-overlay {
        padding: 16px 10px;
    }

    .article-modal-header {
        padding: 40px 24px 24px;
    }

    .article-modal-body {
        padding: 28px 24px 36px;
    }

    .article-modal-close {
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .article-modal-body h2 {
        font-size: 1.2rem;
    }

    .article-modal-body blockquote {
        padding: 16px 20px;
    }
}

/* ══════════ FAQ SECTION ══════════ */
.faq-section {
    position: relative;
    z-index: 1;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.1);
    transition: var(--trans-all);
}

.faq-item:hover {
    border-color: rgba(0, 229, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--trans-all);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.04);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 1rem;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ══════════ LOGOS TICKER ══════════ */
.logos-section {
    padding: 40px 0;
    background: rgba(255,255,255,0.01);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
}
.logos-label { text-align: center; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }
.logos-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
    gap: 60px;
    align-items: center;
}
.logos-track img {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}
.logos-track img:hover {
    opacity: 1; filter: grayscale(0);
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } /* Arabic RTL, scroll right */
}

/* ══════════ PROCESS TIMELINE ══════════ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}
.process-grid::before {
    content: ''; position: absolute; top: 40px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-glass) 10%, var(--border-glass) 90%, transparent);
    z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: center; }
.step-num {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--bg-main); border: 2px solid var(--primary);
    color: var(--primary); font-size: 28px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; box-shadow: 0 0 20px rgba(91,141,239,0.2);
    font-family: var(--font-en);
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 12px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

@media(max-width: 992px) {
    .process-grid { grid-template-columns: 1fr 1fr; }
    .process-grid::before { display: none; }
}
@media(max-width: 576px) {
    .process-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ══════════ CASE STUDIES ══════════ */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; }
.case-card {
    background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 16px;
    padding: 30px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.case-card:hover { transform: translateY(-5px); border-color: rgba(0,229,255,0.3); }
.case-metric { font-size: 3rem; font-weight: 900; color: var(--accent-cyan); font-family: var(--font-en); margin-bottom: 10px; line-height: 1; }
.case-metric span { font-size: 1.2rem; }
.case-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; }
.case-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ══════════ TESTIMONIALS ══════════ */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.testi-card {
    background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 16px; padding: 30px;
}
.testi-stars { color: #f59e0b; margin-bottom: 15px; font-size: 14px; }
.testi-text { font-size: 1rem; line-height: 1.8; font-style: italic; margin-bottom: 24px; position: relative; }
.testi-text::before { content: '"'; font-size: 4rem; color: rgba(255,255,255,0.05); position: absolute; top: -20px; right: -10px; font-family: serif; }
.testi-author { display: flex; align-items: center; gap: 15px; }
.testi-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.testi-info h4 { margin: 0 0 5px; font-size: 1rem; }
.testi-info p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }