/* ==========================================
   محمد الياسري - خبير التسويق الرقمي
   نظام التصميم وتنسيقات CSS الأساسية
   ========================================== */

/* 1. إعدادات المتغيرات الأساسية */
:root {
    --primary: #1d4ed8;       /* أزرق ملكي */
    --primary-hover: #1e40af;
    --secondary: #7c3aed;     /* بنفسجي خفيف */
    --secondary-hover: #6d28d9;
    --dark-bg: #0b132b;       /* كحلي عميق */
    --dark-card: #1c2541;     /* كحلي متوسط للبطاقات */
    --light-bg: #f8fafc;      /* رمادي فاتح جداً للخلفيات */
    --warm-white: #ffffff;
    --text-main: #0f172a;     /* لون النص الأساسي الداكن */
    --text-muted: #475569;    /* لون النص الثانوي */
    --text-light: #f1f5f9;    /* لون النص في الأقسام الداكنة */
    --text-light-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --font-family: 'Alexandria', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06), 0 3px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(11, 19, 43, 0.08);
    --shadow-glow: 0 0 20px rgba(29, 78, 216, 0.25);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* 2. التنسيقات العامة للمتصفح */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    direction: rtl;
    text-align: right;
    background-color: var(--warm-white);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    background: none;
}

/* الحاويات والمساحات */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* 3. عناصر التصميم القابلة لإعادة الاستخدام */
.badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    background-color: rgba(29, 78, 216, 0.08);
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    border: 1px solid rgba(29, 78, 216, 0.15);
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.color-danger {
    color: var(--danger);
    font-weight: bold;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    gap: 8px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--warm-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    border: 2px solid rgba(15, 23, 42, 0.15);
    color: var(--text-main);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: rgba(15, 23, 42, 0.03);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-glow {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(29, 78, 216, 0.2);
    }
    100% {
        box-shadow: 0 0 25px rgba(29, 78, 216, 0.6);
    }
}

/* عناوين الأقسام */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
}

/* 4. شريط التنقل (Header) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height var(--transition-normal);
}

.main-header.scrolled .header-container {
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-symbol {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--warm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

/* القائمة المتجاوبة على الموبايل */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left var(--transition-normal) ease-in-out;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    padding: 0 40px;
}

.mobile-nav-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-menu-overlay .btn {
    margin-top: 16px;
    width: 100%;
    max-width: 280px;
}

/* 5. القسم الأول: البطل Hero */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(29, 78, 216, 0.03) 0%, rgba(124, 58, 237, 0.02) 90%), var(--warm-white);
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
}

.hero-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 20px;
}

.hero-lead {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* شبكة المشاكل */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.problem-card {
    background-color: var(--warm-white);
    border: 1px solid rgba(241, 245, 249, 0.9);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(29, 78, 216, 0.1);
}

.problem-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: rgba(239, 68, 68, 0.06);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem-card .card-icon svg {
    width: 24px;
    height: 24px;
}

.problem-card:nth-child(4) .card-icon, /* المنافسة قوية */
.problem-card:nth-child(1) .card-icon, /* حملات بدون نتائج */
.problem-card:nth-child(8) .card-icon  /* المنافسين يبيعون بسعر ارخص */ {
    background-color: rgba(29, 78, 216, 0.06);
    color: var(--primary);
}

.problem-card .problem-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.6;
}

/* قسم حقيقة / إحصاءات */
.fact-section {
    background-color: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 50px;
    border: 1px solid rgba(241, 245, 249, 0.5);
    box-shadow: var(--shadow-lg);
}

.fact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.fact-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.fact-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--text-main);
}

.fact-intro-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 30px;
}

.fact-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* الجزء البصري للنمو */
.fact-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.growth-graphic {
    background-color: var(--dark-bg);
    border-radius: var(--radius-md);
    height: 200px;
    position: relative;
    overflow: hidden;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
}

.chart-bars {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 120px;
    opacity: 0.3;
}

.bar-col {
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height var(--transition-slow);
}

.col-1 { height: 30%; }
.col-2 { height: 45%; }
.col-3 { height: 60%; }
.col-4 { height: 85%; }

.curve-svg {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    height: 120px;
}

.growth-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--warm-white);
    border: 3px solid var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.node-1 { bottom: 50px; right: 80%; }
.node-2 { bottom: 90px; right: 40%; }
.node-3 { bottom: 135px; right: 10%; }

.growth-badge-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--warm-white);
    font-size: 12px;
    font-weight: 500;
}

.stats-cards-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mini-stat-card {
    background-color: var(--warm-white);
    border: 1px solid rgba(241, 245, 249, 0.8);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mini-stat-card.highlight {
    border-color: rgba(29, 78, 216, 0.2);
    background-color: rgba(29, 78, 216, 0.02);
}

.mini-stat-card .number {
    display: block;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.mini-stat-card .label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* 6. قسم النتائج ودراسات الحالة */
.results-section {
    background-color: var(--light-bg);
}

.cases-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.case-card {
    flex: 1 1 320px;
    max-width: 380px;
    background-color: var(--warm-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(241, 245, 249, 0.8);
    transition: all var(--transition-normal);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.case-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #eaeaea;
    cursor: pointer;
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(11, 19, 43, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.case-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    color: var(--warm-white);
    background-color: rgba(29, 78, 216, 0.8);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.case-content {
    padding: 24px;
}

.case-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    display: inline-block;
    margin-bottom: 8px;
}

.case-result {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.case-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.results-cta {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.cta-question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* شريط الإحصائيات الداكن */
.stats-bar-container {
    background-color: var(--dark-bg);
    padding: 60px 0;
    color: var(--warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-bar-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.stat-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    width: 1px;
    height: 70%;
    background-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 38px;
    font-weight: 800;
    color: var(--warm-white);
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-text {
    font-size: 15px;
    color: var(--text-light-muted);
    font-weight: 500;
}

/* 7. قسم آلية العمل */
.process-section {
    background-color: var(--warm-white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 32px;
    width: 2px;
    background-color: rgba(29, 78, 216, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-right: 80px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    right: 16px;
    top: 4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--warm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.1);
    z-index: 2;
}

.timeline-content {
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    border: 1px solid rgba(241, 245, 249, 0.8);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    transform: translateX(-4px);
    border-color: rgba(29, 78, 216, 0.15);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(29, 78, 216, 0.06);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.timeline-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.process-cta {
    text-align: center;
    margin-top: 50px;
}

/* 8. قسم عن محمد الياسري */
.about-section {
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

/* الجانب البصري التجريدي */
.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.premium-vector-badge {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(11, 19, 43, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vector-circle {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 2px dashed rgba(29, 78, 216, 0.3);
}

.animate-spin-slow {
    animation: rotateCircle 25s infinite linear;
}

@keyframes rotateCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vector-circle-inner {
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.expert-initials {
    font-size: 90px;
    font-weight: 800;
    color: var(--warm-white);
    background: linear-gradient(135deg, #ffffff 30%, rgba(255, 255, 255, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
}

.expert-lines {
    position: absolute;
    width: 320px;
    height: 320px;
    pointer-events: none;
}

.floating-abstract {
    position: absolute;
    padding: 10px 18px;
    background-color: var(--warm-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid rgba(241, 245, 249, 0.9);
    animation: floatElement 4s infinite ease-in-out;
}

.floating-abstract.el-1 {
    top: 50px;
    right: 15%;
    animation-delay: 0s;
}

.floating-abstract.el-2 {
    bottom: 50px;
    left: 15%;
    animation-delay: 2s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* جانب المعلومات */
.about-info .about-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 8px;
}

.about-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.about-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* بطاقات المزايا */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.advantage-card {
    background-color: var(--warm-white);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid rgba(241, 245, 249, 0.8);
    box-shadow: var(--shadow-sm);
}

.advantage-card .adv-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 6px;
}

.advantage-card .adv-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.advantage-card .adv-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* صف إحصائيات عني */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 24px;
}

.about-stat-item {
    text-align: center;
}

.about-stat-item .num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.about-stat-item .txt {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* 9. قسم شركاء النجاح */
.partners-section {
    background-color: var(--warm-white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-content: center;
}

.partner-card {
    background-color: var(--light-bg);
    border: 1px solid rgba(241, 245, 249, 0.9);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: all var(--transition-normal);
}

.partner-card:hover {
    transform: translateY(-4px);
    background-color: var(--warm-white);
    border-color: rgba(29, 78, 216, 0.15);
    box-shadow: var(--shadow-md);
}

.partner-logo-box {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.partner-logo-fallback {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    background-color: rgba(15, 23, 42, 0.03);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-card:hover .partner-logo-fallback {
    background-color: rgba(29, 78, 216, 0.05);
    color: var(--primary);
}

.partner-details {
    margin-bottom: 16px;
}

.partner-name {
    display: none; /* hidden because fallback has it */
}

.partner-cat {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}

.partner-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-link-indicator {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

/* 10. القسم الختامي والتذييل */
.final-cta-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
    padding: 80px 0;
    color: var(--warm-white);
    text-align: center;
}

.cta-box-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* التذييل */
.main-footer {
    background-color: #060913;
    color: var(--text-light);
    padding-top: 80px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--warm-white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand-desc {
    font-size: 14px;
    color: var(--text-light-muted);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-light-muted);
}

.footer-links a:hover {
    color: var(--warm-white);
    padding-right: 4px;
}

/* شبكات التواصل الاجتماعي */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--text-light-muted);
    transition: all var(--transition-fast);
}

.social-link-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-link-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--warm-white);
    transform: translateY(-2px);
}

.social-link-item.whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
}

.social-link-item.tiktok:hover {
    border-color: #ff0050;
    color: #ffffff;
}

.social-link-item.instagram:hover {
    border-color: #e1306c;
    color: #e1306c;
}

.social-link-item.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light-muted);
}

/* 11. الزر العائم للواتساب */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--warm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all var(--transition-normal);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* 12. النافذة المنبثقة للصور (Lightbox) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #f1f5f9;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition-fast);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.lightbox-close:hover {
    color: var(--danger);
    background-color: rgba(255,255,255,0.1);
}

.lightbox-caption {
    margin: 15px auto;
    width: 80%;
    text-align: center;
    color: var(--warm-white);
    font-size: 16px;
    font-weight: 500;
}

/* 13. تأثيرات الحركة (Scroll Animations) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 14. التجاوب وتنسيق الأجهزة الذكية */

/* الشاشات المتوسطة (أجهزة التابلت) */
@media (max-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    

    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual {
        height: 320px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* الشاشات الصغيرة (أجهزة الجوال) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    /* الهيدر والملاحة */
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* البطل Hero */
    .hero-section {
        padding-top: 130px;
        padding-bottom: 50px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-lead {
        font-size: 16px;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .problem-card {
        padding: 20px;
    }
    
    /* قسم حقيقة */
    .fact-section {
        padding: 24px;
        border-radius: var(--radius-md);
    }
    
    .fact-title {
        font-size: 20px;
    }
    
    .fact-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .fact-actions .btn {
        width: 100%;
    }
    
    .stats-cards-mini {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* قسم النتائج */
    .cases-grid {
        gap: 20px;
    }
    
    .case-card {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .stats-bar-container {
        padding: 40px 0;
    }
    
    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-bar-item:not(:last-child)::after {
        display: none;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    /* آلية العمل */
    .timeline::before {
        right: 20px;
    }
    
    .timeline-item {
        padding-right: 50px;
    }
    
    .timeline-dot {
        right: 4px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    /* عن محمد الياسري */
    .about-visual {
        height: 280px;
    }
    
    .premium-vector-badge {
        width: 180px;
        height: 180px;
    }
    
    .vector-circle {
        width: 220px;
        height: 220px;
    }
    
    .vector-circle-inner {
        width: 200px;
        height: 200px;
    }
    
    .expert-initials {
        font-size: 60px;
    }
    
    .floating-abstract.el-1 {
        right: 5%;
        top: 20px;
    }
    
    .floating-abstract.el-2 {
        left: 5%;
        bottom: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* شركاء النجاح */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .partner-card {
        min-height: auto;
        padding: 20px;
    }
    
    /* التذييل */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    
    .floating-whatsapp svg {
        width: 26px;
        height: 26px;
    }
}
