/* ========================================
   أفكار مشاريع تخرج — التصميم الاحترافي
   مستوحى من تصميم بوابة التعليم
   ======================================== */

/* --- استيراد الخطوط العربية --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* --- المتغيرات العامة --- */
:root {
    /* الألوان الأساسية - أخضر / تركوازي */
    --primary: #0d9e7b;
    --primary-hover: #0b8a6b;
    --primary-light: #3cc9a3;
    --primary-lighter: #6ee7c2;
    --primary-pale: #d1fae5;
    --primary-ghost: #ecfdf5;
    --primary-50: #f0fdf9;

    /* الألوان الداكنة */
    --dark: #062b23;
    --dark-section: #0a3d30;
    --dark-card: #0f4f3e;
    --dark-text: #c6f6e0;

    /* محايدة */
    --bg-body: #f6fdfb;
    --bg-white: #ffffff;
    --bg-light: #f0f9f6;
    --bg-alt: #e6f5ef;

    /* نصوص */
    --text-heading: #0a2e22;
    --text-body: #3d5a50;
    --text-muted: #6b8f82;
    --text-light: #94b3a8;

    /* حدود وظلال */
    --border: #d5e8e0;
    --border-light: #e8f4ef;
    --shadow-xs: 0 1px 3px rgba(10, 46, 34, 0.04);
    --shadow-sm: 0 2px 8px rgba(10, 46, 34, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 46, 34, 0.08);
    --shadow-lg: 0 8px 40px rgba(10, 46, 34, 0.1);
    --shadow-xl: 0 16px 60px rgba(10, 46, 34, 0.12);
    --shadow-card: 0 4px 24px rgba(10, 46, 34, 0.07);
    --shadow-card-hover: 0 12px 40px rgba(13, 158, 123, 0.15);
    --shadow-btn: 0 4px 14px rgba(13, 158, 123, 0.3);
    --shadow-btn-hover: 0 8px 25px rgba(13, 158, 123, 0.4);

    /* أنصاف أقطار */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    /* انتقالات */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition: 0.35s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);

    /* خط */
    --font: 'Cairo', 'Tajawal', sans-serif;
}

/* --- إعادة الضبط --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-body);
    direction: rtl;
    text-align: right;
    line-height: 1.85;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    line-height: 1.35;
}

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

/* ============================
   شريط التنقل (Navbar)
   ============================ */
.navbar-custom {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(13, 158, 123, 0.08);
    padding: 0.7rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(10, 46, 34, 0.08);
    padding: 0.5rem 0;
}

.navbar-custom .navbar-brand {
    color: var(--text-heading);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: var(--transition-fast);
}

.navbar-custom .navbar-brand:hover {
    color: var(--primary);
}

.navbar-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 3px 10px rgba(13, 158, 123, 0.25);
}

.navbar-custom .nav-link {
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    margin: 0 0.15rem;
}

.navbar-custom .nav-link:hover {
    color: var(--primary);
    background: var(--primary-ghost);
}

.navbar-custom .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: var(--shadow-btn);
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: #fff !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-btn);
    transition: var(--transition) !important;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover) !important;
}

.navbar-toggler {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.55rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(13, 158, 123, 0.15);
}

/* ============================
   بانر العنوان (Hero Banner)
   ============================ */
.hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(175deg, #e8f8f2 0%, #f0fdf9 40%, #ffffff 100%);
    overflow: hidden;
    padding: 140px 0 70px;
    text-align: center;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.hero-banner .hero-title {
    font-size: 3.2rem;
    text-align: center;
    animation: fadeInUp 0.7s var(--ease-out) 0.15s both;
}

.hero-banner .hero-description {
    text-align: center;
    margin: 0 auto;
    animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

.hero-banner .hero-badge {
    animation: fadeInDown 0.7s var(--ease-out);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 158, 123, 0.12) 0%, transparent 70%);
    top: -150px;
    right: -200px;
    animation: blob-float 20s ease-in-out infinite;
}

.hero-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(60, 201, 163, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
    animation: blob-float 18s ease-in-out infinite reverse;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 158, 123, 0.08) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: blob-float 15s ease-in-out infinite 3s;
}

/* الشكل العضوي الكبير بدون blur */
.hero-organic-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.hero-organic-shape-1 {
    width: 450px;
    height: 450px;
    top: 5%;
    left: -5%;
    background: var(--primary-ghost);
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    opacity: 0.6;
    animation: morph 18s ease-in-out infinite;
}

.hero-organic-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 8%;
    background: linear-gradient(135deg, var(--primary-pale), var(--primary-ghost));
    border-radius: 40% 60% 50% 50% / 55% 45% 55% 45%;
    opacity: 0.5;
    animation: morph 14s ease-in-out infinite reverse;
}

/* الدوائر الزخرفية الصغيرة */
.hero-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-dot-1 {
    width: 12px; height: 12px;
    background: var(--primary);
    opacity: 0.2;
    top: 20%;
    left: 15%;
    animation: dot-pulse 3s ease-in-out infinite;
}

.hero-dot-2 {
    width: 8px; height: 8px;
    background: var(--primary-light);
    opacity: 0.25;
    top: 60%;
    right: 20%;
    animation: dot-pulse 4s ease-in-out infinite 1s;
}

.hero-dot-3 {
    width: 16px; height: 16px;
    background: var(--primary-pale);
    top: 35%;
    right: 12%;
    animation: dot-pulse 5s ease-in-out infinite 2s;
}

.hero-dot-4 {
    width: 6px; height: 6px;
    background: var(--primary);
    opacity: 0.15;
    bottom: 25%;
    left: 25%;
    animation: dot-pulse 3.5s ease-in-out infinite 0.5s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -25px) scale(1.03); }
    66% { transform: translate(-15px, 15px) scale(0.97); }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%; }
    25% { border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%; }
    50% { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
    75% { border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%; }
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.8); opacity: 0.4; }
}

/* محتوى الهيرو */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.5rem 1.3rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.7s var(--ease-out);
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.3rem;
    color: var(--text-heading);
    animation: fadeInUp 0.7s var(--ease-out) 0.15s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--primary-pale), var(--primary-lighter));
    border-radius: 3px;
    z-index: -1;
}

.hero-description {
    color: var(--text-body);
    font-size: 1.12rem;
    max-width: 560px;
    line-height: 1.95;
    margin-bottom: 2rem;
    animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.7s var(--ease-out) 0.45s both;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover);
    color: #fff;
}

.btn-outline-custom {
    background: var(--bg-white);
    color: var(--text-heading);
    border: 2px solid var(--border);
    padding: 0.85rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-ghost);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* بطاقات الإحصائيات في الهيرو */
.hero-stats-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease-out) 0.6s both;
}

.hero-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    min-width: 160px;
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.hero-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--primary-ghost);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

/* صورة/بطاقة الهيرو الجانبية */
.hero-visual {
    position: relative;
    z-index: 2;
    animation: fadeInLeft 0.8s var(--ease-out) 0.4s both;
}

.hero-card-float {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.hero-card-float::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary-lighter));
}

.hero-card-inner {
    background: linear-gradient(135deg, var(--primary-ghost), var(--bg-light));
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-card-inner i {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.7;
}

.hero-card-inner h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
}

.hero-card-inner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 250px;
}

/* البطاقات العائمة فوق الهيرو */
.hero-floating-badge {
    position: absolute;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    z-index: 3;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-heading);
    animation: float-badge 6s ease-in-out infinite;
}

.hero-floating-badge i {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero-floating-badge.badge-1 {
    top: 10%;
    left: -15%;
    animation-delay: 0s;
}

.hero-floating-badge.badge-1 i {
    background: var(--primary-ghost);
    color: var(--primary);
}

.hero-floating-badge.badge-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 2s;
}

.hero-floating-badge.badge-2 i {
    background: #fef3c7;
    color: #d97706;
}

.hero-floating-badge.badge-3 {
    top: 35%;
    right: -10%;
    animation-delay: 4s;
}

.hero-floating-badge.badge-3 i {
    background: #ede9fe;
    color: #7c3aed;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* الموجة بين الأقسام */
.section-wave {
    display: block;
    width: 100%;
    line-height: 0;
    margin-top: -2px;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================
   قسم البحث والتصفية
   ============================ */
.search-section {
    padding: 2.5rem 0 1rem;
    background: var(--bg-body);
    position: relative;
}

.search-box {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary-lighter));
    border-radius: 3px 3px 0 0;
}

.search-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.search-label i {
    color: var(--primary);
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i.search-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.9rem 3rem 0.9rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-heading);
    background: var(--bg-light);
    transition: var(--transition);
    direction: rtl;
}

.search-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 158, 123, 0.1);
    background: var(--bg-white);
}

.filter-group {
    margin-top: 1.2rem;
}

.filter-group-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.filter-pill {
    padding: 0.42rem 1.1rem;
    border: 2px solid var(--border);
    background: var(--bg-white);
    color: var(--text-body);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.filter-pill i {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-ghost);
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-btn);
}

.filter-pill.active i {
    color: #fff;
}

.results-info {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.results-info span {
    color: var(--primary);
    font-weight: 800;
}

/* ============================
   قسم المشاريع
   ============================ */
.projects-section {
    padding: 2rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* زخرفة خلفية */
.projects-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 158, 123, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    left: -10%;
    pointer-events: none;
}

.projects-section::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(60, 201, 163, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 5%;
    right: -8%;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3.2rem;
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-ghost);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.8rem;
    border: 1px solid var(--primary-pale);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-line {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    margin: 1rem auto 0;
}

/* ============================
   بطاقة المشروع
   ============================ */
.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-card);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(13, 158, 123, 0.15);
}

.project-card:hover::before {
    opacity: 1;
}

.card-top {
    padding: 1.8rem 1.6rem 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.card-icon-box {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: var(--radius-md);
    background: var(--primary-ghost);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.35rem;
    transition: var(--transition);
    border: 1px solid var(--primary-pale);
}

.project-card:hover .card-icon-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-btn);
    transform: scale(1.05) rotate(-3deg);
}

.card-number-badge {
    display: inline-block;
    background: var(--primary-ghost);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.65rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.35rem;
    border: 1px solid var(--primary-pale);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.5;
    margin: 0;
}

.card-body-content {
    padding: 0 1.6rem 0.8rem;
    flex-grow: 1;
}

.card-desc {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
}

.card-bottom {
    padding: 1rem 1.6rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid;
}

/* ألوان التصنيفات المميزة */
.tag-تعليمية {
    background: #e6fffa;
    color: #02a890;
    border-color: #b2f5ea;
}

.tag-إدارية {
    background: #ebf8ff;
    color: #2b6cb0;
    border-color: #bee3f8;
}

.tag-خدمية {
    background: #fffaf0;
    color: #dd6b20;
    border-color: #fbd38d;
}

.tag-جامعية {
    background: #f0f5ff;
    color: #4c51bf;
    border-color: #c3dafe;
}

.tag-أرشفة {
    background: #fff5f5;
    color: #c53030;
    border-color: #fed7d7;
}

.btn-view-details {
    background: var(--primary-ghost);
    color: var(--primary);
    border: 2px solid var(--primary-pale);
    padding: 0.4rem 1.3rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-view-details:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-btn);
    transform: translateX(-3px);
}

/* --- رسالة عدم وجود نتائج --- */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.no-results-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.no-results h4 {
    color: var(--text-body);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ============================
   القسم الداكن (CTA)
   ============================ */
.dark-cta-section {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-section) 50%, #0d5a47 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.dark-cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 158, 123, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -20%;
    right: -10%;
    pointer-events: none;
}

.dark-cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(60, 201, 163, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -15%;
    left: -5%;
    pointer-events: none;
}

.dark-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.dark-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--primary-lighter);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.2rem;
    backdrop-filter: blur(8px);
}

.dark-cta-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.dark-cta-text {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.9;
}

.dark-cta-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dark-feature-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition);
    width: 200px;
}

.dark-feature-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    border-color: rgba(13, 158, 123, 0.3);
}

.dark-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(13, 158, 123, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    color: var(--primary-lighter);
    font-size: 1.3rem;
}

.dark-feature-title {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.dark-feature-text {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================
   المودال (تفاصيل المشروع)
   ============================ */
.modal-custom .modal-dialog {
    max-width: 850px;
}

.modal-custom .modal-content {
    border: none;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-header-section {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-section) 60%, #0d5a47 100%);
    color: #fff;
    padding: 2.2rem 2.2rem 2rem;
    position: relative;
    overflow: hidden;
}

.modal-header-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 158, 123, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -40%;
    left: -10%;
    pointer-events: none;
}

.modal-header-section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(60, 201, 163, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -20%;
    right: 5%;
    pointer-events: none;
}

.modal-project-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    color: var(--primary-lighter);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.8rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.modal-main-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.45;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

/* قائمة النقاط تفاصيل المودال */
.modal-list {
    list-style-type: disc;
    padding-right: 1.5rem;
    margin: 0;
}

.modal-list li {
    margin-bottom: 0.8rem;
    color: var(--text-body);
    font-size: 0.94rem;
    line-height: 1.85;
}

.modal-list li strong {
    color: var(--text-heading);
    font-weight: 700;
}

.modal-close-x {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.modal-close-x:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.modal-body-section {
    padding: 2.2rem;
    max-height: 62vh;
    overflow-y: auto;
}

.modal-body-section::-webkit-scrollbar { width: 5px; }
.modal-body-section::-webkit-scrollbar-track { background: var(--bg-light); border-radius: 3px; }
.modal-body-section::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.modal-body-section::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* أقسام المودال */
.detail-block {
    margin-bottom: 2.2rem;
}

.detail-block:last-child { margin-bottom: 0; }

.detail-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--bg-light);
}

.detail-heading i {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--primary-ghost);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.detail-paragraph {
    color: var(--text-body);
    font-size: 0.94rem;
    line-height: 1.95;
}

/* بطاقات جوانب المشكلة */
.aspect-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
    margin-bottom: 0.7rem;
    border-right: 4px solid var(--primary);
    transition: var(--transition);
}

.aspect-item:hover {
    background: var(--primary-ghost);
    transform: translateX(-4px);
    box-shadow: var(--shadow-sm);
}

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

.aspect-item-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.3rem;
}

.aspect-item-text {
    font-size: 0.86rem;
    color: var(--text-body);
    line-height: 1.75;
    margin: 0;
}

/* بطاقات مميزات الحل */
.feature-mini-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-mini-card:hover {
    border-color: var(--primary-pale);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-mini-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-ghost);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.7rem;
    color: var(--primary);
    font-size: 1.15rem;
    border: 1px solid var(--primary-pale);
    transition: var(--transition);
}

.feature-mini-card:hover .feature-mini-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: transparent;
}

.feature-mini-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.3rem;
}

.feature-mini-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* هدف المشروع */
.goal-banner {
    background: linear-gradient(135deg, var(--dark), var(--dark-section));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.goal-banner::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 158, 123, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -50%;
    left: -5%;
    pointer-events: none;
}

.goal-banner-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: rgba(13, 158, 123, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-lighter);
    font-size: 1.3rem;
    margin-top: 0.1rem;
}

.goal-banner p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

/* فوتر المودال */
.modal-footer-section {
    padding: 1rem 2.2rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
}

.btn-back {
    background: var(--bg-light);
    color: var(--text-body);
    border: 2px solid var(--border);
    padding: 0.55rem 1.8rem;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-back:hover {
    background: var(--primary-ghost);
    border-color: var(--primary-pale);
    color: var(--primary);
}

/* ============================
   زر العودة للأعلى
   ============================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-btn-hover);
}

/* ============================
   الفوتر
   ============================ */
.footer-section {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-section) 100%);
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 158, 123, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -30%;
    right: -10%;
    pointer-events: none;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
}

.footer-brand-text {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-lighter);
}

.footer-bottom {
    text-align: center;
}

.footer-desc {
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-copy span {
    color: var(--primary-lighter);
}

.footer-powered {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.8rem;
    letter-spacing: 0.5px;
}

.powered-link {
    color: var(--primary-lighter);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
    position: relative;
    padding-left: 1.4rem;
}

.powered-link::before {
    content: '\f618';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #25d366;
    transition: var(--transition-fast);
}

.powered-link:hover {
    color: #25d366;
    text-decoration: none;
}

.powered-link:hover::before {
    transform: translateY(-50%) scale(1.2);
}

/* ============================
   أنيميشنات الظهور
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }
.reveal-delay-7 { transition-delay: 0.56s; }
.reveal-delay-8 { transition-delay: 0.64s; }
.reveal-delay-9 { transition-delay: 0.72s; }

/* ============================
   الاستجابة
   ============================ */
@media (max-width: 1200px) {
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    .hero-banner { padding: 110px 0 60px; }
    .hero-title { font-size: 2.3rem; }
    .hero-description { font-size: 1rem; }
    .modal-custom .modal-dialog { max-width: 95%; margin: 1rem auto; }
}

@media (max-width: 768px) {
    .hero-banner { padding: 100px 0 50px; }
    .hero-title { font-size: 1.85rem; }
    .hero-description { font-size: 0.92rem; }
    .search-box { padding: 1.3rem; }
    .filter-pills { justify-content: center; }
    .section-title { font-size: 1.7rem; }
    .card-top { flex-direction: column; align-items: center; text-align: center; }
    .card-number-badge { margin: 0 auto 0.35rem; display: block; text-align: center; }
    .card-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 0.4rem; padding: 1rem 1rem 1.2rem; }
    .btn-view-details { padding: 0.35rem 0.9rem; font-size: 0.78rem; }
    .category-tag { padding: 0.22rem 0.6rem; font-size: 0.7rem; }
    .modal-header-section { padding: 1.5rem 1.2rem; }
    .modal-main-title { font-size: 1.25rem; }
    .modal-body-section { padding: 1.2rem; }
    .modal-close-x { top: 0.8rem; left: 0.8rem; }
    .goal-banner { flex-direction: column; text-align: center; }
    .footer-top { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .back-to-top { bottom: 1.5rem; left: 1.5rem; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .hero-title { font-size: 1.55rem; }
    .hero-badge { font-size: 0.8rem; }
    .filter-pill { font-size: 0.8rem; padding: 0.35rem 0.8rem; }
    .section-title { font-size: 1.45rem; }
}

/* --- تحسينات --- */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.project-card, .feature-mini-card, .btn-view-details, .filter-pill {
    will-change: transform;
}

.cards-grid { min-height: 200px; }

@media print {
    .navbar-custom, .back-to-top, .hero-banner, .search-section,
    .footer-section { display: none !important; }
    .project-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
