/* ============================================================
   CSS Variables - Purple Theme
   ============================================================ */
:root {
    --color-primary: #6366F1;
    --color-primary-dark: #4F46E5;
    --color-accent: #A855F7;
    --color-dark: #020617;
    --color-dark-gray: #0F172A;
    --color-light-text: #F8FAFC;
    --color-gray-text: #CBD5E1;
    --spacing-large: 90px;
    --border-radius: 15px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Changa', 'Cairo', sans-serif;
    background: var(--color-dark);
    color: var(--color-light-text);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes pulse-vibrant {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6); }
    50% { box-shadow: 0 0 20px 8px rgba(168, 85, 247, 0); }
}
@keyframes pulse-purple {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
    50% { box-shadow: 0 0 20px 8px rgba(99, 102, 241, 0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes blink-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #00ff88; }
    50% { opacity: 0.3; }
}
@keyframes shine {
    from { left: -100%; }
    to { left: 150%; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 110px;
    border: 2px solid var(--color-primary);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Changa', sans-serif;
    color: var(--color-light-text);
    background-color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin: 10px;
    animation: float 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}
.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0px 0px 15px 5px rgba(99, 102, 241, 0.7);
    transform: scale(1.05);
    animation: none;
}
.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    font-size: 18px;
    animation: pulse-vibrant 2s infinite;
}
.btn-accent:hover {
    background-color: #9333EA;
    border-color: #9333EA;
    box-shadow: 0px 0px 15px 5px rgba(168, 85, 247, 0.7);
}

/* شاشة التحميل - Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-dark); /* اللون الداكن لموقعك */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(99, 102, 241, 0.2);
    border-top: 5px solid var(--color-primary); /* اللون البنفسجي */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    font-family: 'Changa', sans-serif;
    color: var(--color-light-text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* حالة الإخفاء بعد التحميل */
.loaded #loader-wrapper {
    opacity: 0;
    visibility: hidden;
}

/* ============================================================
   Header
   ============================================================ */
.header {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.97) 0%, rgba(15, 23, 42, 0.97) 100%) !important;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5) !important;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

/* ثبيت لون الهيدر عند جميع الـ states */
.header.scrolled,
.header.active,
.header:hover {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.97) 0%, rgba(15, 23, 42, 0.97) 100%) !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5) !important;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--color-light-text); }
.logo-text span { color: var(--color-primary); }
.nav-menu ul { display: flex; gap: 5px; }
.nav-menu ul li a {
    color: var(--color-light-text);
    font-size: 16px; font-weight: 600;
    padding: 10px 18px;
    display: block; border-radius: 8px;
    transition: color 0.3s, background 0.3s;
}
.nav-menu ul li a:hover { color: var(--color-primary); background: rgba(99, 102, 241, 0.1); }
.nav-btn-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
    border-radius: 50px !important;
    animation: pulse-purple 2s infinite;
}
.mobile-menu-toggle {
    display: none;
    background: none; border: none;
    color: var(--color-light-text); font-size: 24px; cursor: pointer;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb-bar {
    background: rgba(15, 23, 42, 0.5);
    padding: 12px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray-text);
}
.breadcrumb a { color: var(--color-gray-text); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: rgba(203, 213, 225,0.4); }
.breadcrumb-current { color: var(--color-primary); font-weight: 600; }

/* ============================================================
   Hero
   ============================================================ */
#hero-section {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 100px 0 80px;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23,0.88) 0%, rgba(15, 23, 42,0.82) 50%, rgba(2, 6, 23,0.88) 100%);
    z-index: 1;
}
.hero-grid-lines {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(99, 102, 241,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hero-bg-gradient {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% -10%, rgba(99, 102, 241,0.2) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(99, 102, 241,0.07) 0%, transparent 60%),
        linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-gray) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 920px;
    margin: 0 auto; padding: 0 20px;
    animation: fadeInUp 1s ease both;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 50px;
    padding: 10px 24px; font-size: 14px; font-weight: 700;
    color: rgb(200, 160, 255); margin-bottom: 28px;
}
.hero-badge-dot {
    width: 10px; height: 10px; background: #00ff88;
    border-radius: 50%; animation: blink-dot 1.5s infinite;
}
/* H1 - Primary Keyword */
h1.hero-title {
    font-family: 'Changa', sans-serif;
    font-size: clamp(36px, 6vw, 66px);
    font-weight: 800; line-height: 1.25;
    margin-bottom: 24px; color: var(--color-light-text);
}
h1.hero-title .highlight {
    background: linear-gradient(135deg, #c084fc, var(--color-primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 19px; color: var(--color-gray-text);
    line-height: 1.9; max-width: 700px; margin: 0 auto 35px;
}
/* Keyword Tags - LSI keywords visible */
.hero-keywords {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 10px; margin-bottom: 38px;
}
.keyword-tag {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    padding: 8px 18px; font-size: 14px; font-weight: 600;
    color: rgb(200, 160, 255);
}
.hero-buttons {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 10px; margin-bottom: 60px;
}
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px; overflow: hidden;
    max-width: 900px; margin: 0 auto;
}
.stat-item {
    background: rgba(2, 6, 23, 0.8);
    padding: 28px 20px; text-align: center; transition: background 0.3s;
}
.stat-item:hover { background: rgba(15, 23, 42, 0.9); }
.stat-number {
    font-family: 'Changa', sans-serif;
    font-size: 40px; font-weight: 800;
    color: var(--color-primary); line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--color-gray-text); font-weight: 600; }

/* ============================================================
   Section Common
   ============================================================ */
.section { padding: 90px 0; }
.section-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: rgb(180, 130, 255);
    font-size: 13px; font-weight: 700;
    padding: 7px 18px; border-radius: 50px;
    margin-bottom: 18px; letter-spacing: 1px; text-transform: uppercase;
}
.section-title {
    font-family: 'Changa', sans-serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800; line-height: 1.3; margin-bottom: 18px;
}
.section-title .highlight {
    background: linear-gradient(135deg, #c084fc, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc { font-size: 17px; color: var(--color-gray-text); line-height: 1.8; max-width: 650px; }

/* ============================================================
   Intro Text Block (SEO Content)
   ============================================================ */
.seo-intro {
    background: rgba(15, 23, 42,0.3);
    border-right: 4px solid var(--color-primary);
    border-radius: 0 12px 12px 0;
    padding: 28px 32px;
    margin-bottom: 60px;
}
.seo-intro h2 {
    font-family: 'Changa', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--color-light-text); margin-bottom: 14px;
}
.seo-intro p {
    font-size: 16px; color: var(--color-gray-text);
    line-height: 1.85; margin-bottom: 12px;
}
.seo-intro p:last-child { margin-bottom: 0; }

/* ============================================================
   Services
   ============================================================ */
.services-section { background: linear-gradient(180deg, rgba(15, 23, 42,0.4) 0%, rgba(2, 6, 23,0.6) 100%); }
.services-header { text-align: center; margin-bottom: 50px; }
.services-header .section-desc { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: linear-gradient(135deg, rgba(15, 23, 42,0.8), rgba(2, 6, 23,0.9));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius);
    padding: 36px 28px;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #7c3aed);
    transform: scaleX(0); transition: transform 0.4s ease;
}
.service-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--color-primary);
    margin-bottom: 22px; transition: all 0.3s;
}
.service-card:hover .service-icon {
    background: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--color-light-text); }
.service-card p { font-size: 15px; color: var(--color-gray-text); line-height: 1.75; }

/* ============================================================
   Results
   ============================================================ */
.results-section { background: rgba(2, 6, 23,0.95); }
.results-header { text-align: center; margin-bottom: 50px; }
.results-header .section-desc { margin: 0 auto; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.result-card {
    background: rgba(15, 23, 42,0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden; transition: all 0.4s ease; cursor: pointer;
}
.result-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}
.result-card-img { position: relative; overflow: hidden; }
.result-card-img img {
    width: 100%; height: 200px;
    object-fit: cover; object-position: top;
    transition: transform 0.4s ease;
}
.result-card:hover .result-card-img img { transform: scale(1.05); }

.result-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23,0.9) 0%, transparent 60%);
    pointer-events: none; /* هذا السطر سيجعل الضغطة تمر من خلال الطبقة للصورة */
}

.result-card-body { padding: 16px; }
.result-card-title { font-size: 14px; font-weight: 700; color: var(--color-light-text); margin-bottom: 10px; }
.result-metrics { display: flex; gap: 8px; flex-wrap: wrap; }
.metric-badge {
    display: flex; align-items: center; gap: 5px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px; padding: 4px 10px;
    font-size: 12px; font-weight: 700; color: rgb(200, 160, 255);
}
.metric-badge.green {
    background: rgba(0,200,100,0.12);
    border-color: rgba(0,200,100,0.3); color: #00ff88;
}

/* ============================================================
   Why Us
   ============================================================ */
.why-section { background: linear-gradient(135deg, rgba(15, 23, 42,0.5) 0%, rgba(2, 6, 23,0.8) 100%); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-list { margin-top: 35px; display: flex; flex-direction: column; gap: 18px; }
.why-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px 22px;
    background: rgba(15, 23, 42,0.6);
    border-radius: 12px; border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s;
}
.why-item:hover { border-color: rgba(99, 102, 241, 0.35); background: rgba(15, 23, 42,0.9); }
.why-icon-box {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: white; flex-shrink: 0;
}
.why-text h3 { font-size: 17px; font-weight: 700; color: var(--color-light-text); margin-bottom: 6px; }
.why-text p { font-size: 14px; color: var(--color-gray-text); line-height: 1.65; }
.rank-visual-card {
    background: rgba(15, 23, 42,0.7);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px; padding: 30px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.5); position: relative;
}
.rank-visual-header { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.rank-row {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rank-num { font-family: 'Changa', sans-serif; font-size: 24px; font-weight: 800; }
.rank-num.first { color: var(--color-primary); }
.rank-num.second { color: #9090b0; }
.rank-num.third { color: #CD7F32; }
.rank-info { flex: 1; margin: 0 14px; }
.rank-info .rname { font-size: 15px; font-weight: 600; }
.rank-info .rurl { font-size: 12px; color: var(--color-gray-text); }
.rank-bar-w { width: 90px; }
.rank-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.rank-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--color-primary), #7c3aed); }
.floating-badge {
    position: absolute; top: -18px; left: -18px;
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    color: white; border-radius: 12px;
    padding: 12px 18px; font-weight: 800; font-size: 13px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5); text-align: center;
}
.floating-badge span { display: block; font-size: 26px; font-family: 'Changa', sans-serif; }

/* ============================================================
   Process
   ============================================================ */
.process-section { background: rgba(2, 6, 23,0.9); }
.process-header { text-align: center; margin-bottom: 70px; }
.steps-wrap {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: relative; max-width: 1100px; margin: 0 auto;
}
.steps-line {
    position: absolute; top: 36px; left: 8%; right: 8%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241,0.4), var(--color-primary), rgba(99, 102, 241,0.4), transparent);
}
.step-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 10px; position: relative; }
.step-num {
    width: 72px; height: 72px;
    background: rgba(15, 23, 42,0.9);
    border: 2px solid rgba(99, 102, 241, 0.35);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Changa', sans-serif; font-size: 24px; font-weight: 800;
    color: var(--color-primary); margin-bottom: 20px;
    position: relative; z-index: 1; transition: all 0.3s;
}
.step-item:hover .step-num {
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    color: white; border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}
.step-item h3 { font-size: 16px; font-weight: 700; color: var(--color-light-text); margin-bottom: 10px; }
.step-item p { font-size: 13px; color: var(--color-gray-text); line-height: 1.6; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-section { background: linear-gradient(135deg, rgba(15, 23, 42,0.4) 0%, rgba(2, 6, 23,0.7) 100%); }
.pricing-header { text-align: center; margin-bottom: 60px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.pricing-card {
    background: rgba(15, 23, 42,0.7);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px; padding: 40px 30px;
    text-align: center; transition: all 0.4s; position: relative;
}
.pricing-card.featured {
    background: linear-gradient(170deg, rgba(62,35,90,0.9), rgba(15, 23, 42,0.8));
    border-color: var(--color-primary);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.25); transform: scale(1.04);
}
.plan-badge-top {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    color: white; font-size: 12px; font-weight: 800;
    padding: 6px 22px; border-radius: 50px; white-space: nowrap;
}
.plan-name { font-size: 13px; font-weight: 700; color: var(--color-gray-text); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.plan-price { font-family: 'Changa', sans-serif; font-size: 52px; font-weight: 900; color: var(--color-light-text); line-height: 1; margin-bottom: 8px; }
.plan-price sup { font-size: 20px; color: var(--color-primary); vertical-align: super; }
.plan-price span { font-size: 16px; color: var(--color-gray-text); font-weight: 400; }
.plan-desc { font-size: 14px; color: var(--color-gray-text); margin-bottom: 28px; }
.plan-features { list-style: none; margin-bottom: 32px; text-align: right; }
.plan-features li {
    padding: 10px 0; font-size: 14px; color: var(--color-gray-text);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li i { color: #00ff88; font-size: 12px; flex-shrink: 0; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-section { background: rgba(15, 23, 42,0.4); }
.testimonials-header { text-align: center; margin-bottom: 60px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: rgba(2, 6, 23,0.7);
    border: 1px solid rgba(99, 102, 241,0.1);
    border-radius: var(--border-radius); padding: 30px; transition: all 0.3s;
}
.testimonial-card:hover { border-color: rgba(99, 102, 241,0.3); transform: translateY(-5px); }
.stars { color: var(--color-accent); font-size: 15px; margin-bottom: 16px; }
.testimonial-text { font-size: 15px; color: var(--color-gray-text); line-height: 1.8; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: white; font-size: 18px; flex-shrink: 0;
}
.author-info .aname { font-weight: 700; font-size: 15px; }
.author-info .apos { font-size: 13px; color: var(--color-gray-text); }
.rating-summary {
    display: flex; align-items: center; gap: 10px;
    background: rgba(15, 23, 42,0.5);
    border: 1px solid rgba(99, 102, 241,0.2);
    border-radius: 12px; padding: 16px 24px;
    margin-bottom: 40px; width: fit-content; margin-left: auto; margin-right: auto;
}
.rating-number { font-family: 'Changa', sans-serif; font-size: 40px; font-weight: 900; color: var(--color-primary); }
.rating-text .stars-big { color: var(--color-accent); font-size: 20px; }
.rating-text p { font-size: 13px; color: var(--color-gray-text); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: rgba(2, 6, 23,0.9); }
.faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; max-width: 1100px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: rgba(15, 23, 42,0.6);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px; overflow: hidden; transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(99, 102, 241, 0.4); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; cursor: pointer;
    font-size: 15px; font-weight: 700; color: var(--color-light-text);
}
.faq-q i { color: var(--color-primary); transition: transform 0.3s; font-size: 14px; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    font-size: 14px; color: var(--color-gray-text); line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }

/* ============================================================
   CTA / Contact
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, rgba(15, 23, 42,0.9), rgba(2, 6, 23,1));
    padding: 100px 0; text-align: center;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(99, 102, 241,0.12) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 2; }
.cta-title {
    font-family: 'Changa', sans-serif;
    font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.3; margin-bottom: 20px;
}
.cta-desc { font-size: 18px; color: var(--color-gray-text); margin: 0 auto 40px; max-width: 600px; line-height: 1.75; }

/* SEO Text Footer Block */
.seo-text-section {
    background: rgba(2, 6, 23,0.8);
    padding: 60px 0;
    border-top: 1px solid rgba(99, 102, 241,0.1);
}
.seo-text-section h2 {
    font-family: 'Changa', sans-serif;
    font-size: 26px; font-weight: 800;
    color: var(--color-light-text); margin-bottom: 20px;
}
.seo-text-section h3 {
    font-size: 18px; font-weight: 700;
    color: rgb(200, 160, 255); margin: 24px 0 12px;
}
.seo-text-section p {
    font-size: 15px; color: var(--color-gray-text);
    line-height: 1.9; margin-bottom: 14px;
}
.seo-text-section strong { color: rgb(200, 160, 255); }
.seo-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    background: rgba(2, 6, 23,1);
    border-top: 1px solid rgba(99, 102, 241,0.15);
    padding: 70px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-about p { font-size: 14px; color: var(--color-gray-text); line-height: 1.75; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 38px; height: 38px;
    background: rgba(15, 23, 42,0.8);
    border: 1px solid rgba(99, 102, 241,0.2);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--color-gray-text); font-size: 15px; transition: all 0.3s;
}
.social-link:hover { background: rgba(99, 102, 241,0.15); color: var(--color-primary); border-color: var(--color-primary); }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--color-gray-text); font-size: 14px; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--color-primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 25px; display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; color: var(--color-gray-text); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--color-gray-text); font-size: 13px; }
.footer-links a:hover { color: var(--color-primary); }

/* WhatsApp Float */
.whatsapp-btn {
    position: fixed; bottom: 30px; left: 30px;
    width: 60px; height: 60px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 28px; z-index: 999;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    animation: pulse-vibrant 2s infinite;
}

/* ============================
 Image Zoom Modal
============================ */

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.modal-content {

    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    
    animation: zoomIn 0.4s;
}

@keyframes zoomIn {

    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {

    position: absolute;
    top: 20px;
    right: 40px;
    
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* =================================
   Custom Scrollbar
================================= */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8a2be2, #c084fc);
    border-radius: 10px;
    border: 2px solid #020617;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a855f7, #d8b4fe);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .steps-wrap { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .steps-line { display: none; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .seo-columns { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: block; }
    .why-inner { grid-template-columns: 1fr; gap: 50px; }
    .faq-inner { grid-template-columns: 1fr; gap: 40px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .results-grid, .steps-wrap, .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .floating-badge { display: none; }
    .hero-keywords { display: none; }
}
.mobile-nav-menu {
    position: fixed; top: 0; right: -100%; bottom: 0; width: 280px;
    background: linear-gradient(180deg, #020617, #2d1446);
    z-index: 2000; padding: 80px 20px 30px;
    transition: right 0.35s ease;
    border-left: 1px solid rgba(99, 102, 241,0.2);
}
.mobile-nav-menu.open { right: 0; }
.mobile-nav-close { position: absolute; top: 20px; left: 20px; background: none; border: none; color: white; font-size: 22px; cursor: pointer; }
.mobile-nav-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav-menu ul li a { display: block; padding: 15px 0; color: var(--color-gray-text); font-size: 16px; font-weight: 600; transition: color 0.3s; }
.mobile-nav-menu ul li a:hover { color: var(--color-primary); }

/* 1. السماح بالضغط على الصورة من خلال الطبقة الشفافة */
.result-card-overlay {
    pointer-events: none; /* هذا السطر هو السر لكي تعمل الضغطة */
}

/* 2. تصميم نافذة التكبير */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 99999; /* يجب أن يكون أعلى من اللودر */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    border: 2px solid var(--color-primary);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 30px; right: 30px;
    color: white; font-size: 50px;
    cursor: pointer; line-height: 1;
}

#caption {
    color: white; margin-top: 20px; font-family: 'Changa'; font-size: 18px;
}

/* تنسيق الحاوية وتوسيطها */
.single-post-container {
    max-width: 850px;      /* تحديد عرض المقالة لسهولة القراءة */
    margin: 0 auto;        /* توسيط المقالة في منتصف الصفحة */
    padding: 40px 20px;    /* هوامش داخلية (علوية وجانبية) */
    color: #ffffff;        /* جعل لون الخط الأساسي أبيض */
    direction: rtl;        /* التأكد من اتجاه النص العربي */
}

/* تنسيق العنوان الرئيسي */
.post-title {
    color: #ffffff;        /* لون العنوان أبيض */
    margin-bottom: 20px;
    font-size: 2.2rem;
}

/* تنسيق التاريخ وبيانات المقالة */
.post-meta {
    color: #E2E8F0;        /* أبيض خفيف (رمادي فاتح جداً) للتمييز */
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* تنسيق محتوى المقالة والفقرات */
.post-content {
    color: #ffffff;        /* لون محتوى المقالة أبيض */
}

.post-content p {
    margin-bottom: 1.8em;  /* مسافات مريحة بين الفقرات */
    line-height: 1.7;      /* ضبط المسافة بين الأسطر */
}

/* جعل الصور متجاوبة داخل المقالة */
.post-content img {
    max-width: 100%;       /* لا تخرج الصورة عن عرض المقالة */
    height: auto;
    display: block;
    margin: 20px auto;     /* توسيط الصور */
}

/* التأكد من أن الروابط داخل المقالة واضحة (اختياري) */
.post-content a {
    color: #3498db;        /* لون أزرق للروابط لتمييزها */
    text-decoration: underline;
}

.breadcrumb-bar {
    display: none;
}

/* ---------- حاوية المقالات ---------- */
.tag-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 مقالات في الصف */
    gap: 30px; /* المسافة بين المقالات */
    margin: 40px 0;
}

/* ---------- كل مقال ---------- */
.tag-posts article {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* ---------- تأثير عند تمرير الماوس ---------- */
.tag-posts article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ---------- عنوان المقال ---------- */
.tag-posts .entry-title a {
    color: #222;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

.tag-posts .entry-title a:hover {
    color: #0073aa;
}

/* ---------- ملخص المقال ---------- */
.tag-posts .entry-summary {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #555;
}

/* ---------- تذييل المقال ---------- */
.tag-posts .entry-footer {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* ---------- هيدر الصفحة ---------- */
.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-header .archive-title {
    font-size: 2rem;
    font-weight: bold;
}

.archive-header .tag-description {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

/* ---------- التصفح ---------- */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #222;
}

.pagination a:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ---------- متجاوبة ---------- */
/* شاشة متوسطة */
@media (max-width: 1200px) {
    .tag-posts {
        grid-template-columns: repeat(3, 1fr); /* 3 مقالات في الصف */
    }
}

/* شاشة صغيرة */
@media (max-width: 900px) {
    .tag-posts {
        grid-template-columns: repeat(2, 1fr); /* 2 مقالات في الصف */
    }
}

/* شاشة موبايل */
@media (max-width: 600px) {
    .tag-posts {
        grid-template-columns: 1fr; /* 1 مقال في الصف */
    }
}

/* تنسيق الشبكة مع إضافة هوامش خارجية للمنطقة كاملة */
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    padding: 20px;
    margin: 20px auto; /* هوامش خارجية من الأعلى والأسفل وتوسيط للشبكة */
    max-width: 1200px; /* يفضل تحديد عرض أقصى لتبدو الهوامش واضحة */
}

/* التعديل القوي للعنوان باستخدام !important */
.grid-item h2, 
.grid-item h3, 
.grid-item .post-title a { 
    color: #ffffff !important;    /* إجبار اللون الأبيض */
    font-size: 14px !important;    /* تصغير الحجم وإجباره */
    margin: 10px 0 !important;     /* هوامش صغيرة حول العنوان */
    text-decoration: none;
}

/* لضمان التجاوب مع الشاشات الصغيرة */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 10px; /* تقليل الهوامش في التابلت */
    }
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: 1fr;
        margin: 5px; /* أقل هامش ممكن للجوال */
    }
}

.grid-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 15px; /* هامش أسفل كل كرت */
}

.post-content {
    flex-grow: 1;
}