/**
 * ========================================================
 * الأنماط والتصميم العام للموقع (Custom Stylesheet)
 * متوافق مع نظام Bootstrap 5 RTL ومصمم بأحدث معايير الويب
 * ========================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --secondary-color: #0f766e;
    --secondary-dark: #115e59;
    --accent-color: #f59e0b;
    --dark-navy: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ----------------------------------------------------
   1. الهيدر وشريط التنقل (Header & Navigation)
---------------------------------------------------- */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--dark-navy) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
    transition: all 0.25s ease;
}

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

/* القائمة المنسدلة للخدمات (Services Dropdown) */
.dropdown-menu-custom {
    border: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    padding: 0.75rem;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.dropdown-item-header {
    font-weight: 700;
    color: var(--dark-navy);
    font-size: 0.95rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    background: var(--light-bg);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item-sub {
    font-size: 0.88rem;
    padding: 0.45rem 1.2rem;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
}

.dropdown-item-sub:hover {
    color: var(--primary-color);
    background-color: #f0f9ff;
    padding-right: 1.5rem;
}

/* ----------------------------------------------------
   2. قسم البطل (Hero Section)
---------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #0b1329 0%, #0f2744 50%, #0c4a6e 100%);
    color: #ffffff;
    padding: 5.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0f2fe;
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.hero-title span {
    color: #38bdf8;
}

.hero-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 620px;
    margin-bottom: 2rem;
}

/* ----------------------------------------------------
   3. بطاقات الخدمات والمنتجات (Cards)
---------------------------------------------------- */
.card-custom {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
    border-color: #bae6fd;
}

.card-img-wrapper {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.card-body-custom {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-custom {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 0.75rem;
}

.card-desc-custom {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* شارات الخدمات الفرعية داخل البطاقة */
.sub-service-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 2px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sub-service-pill:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: #7dd3fc;
}

/* ----------------------------------------------------
   4. قسم المميزات والأرقام (Stats & Features)
---------------------------------------------------- */
.stats-bar {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: -3.5rem;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-box {
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.25rem;
}

/* ----------------------------------------------------
   5. تذييل الصفحة (Footer)
---------------------------------------------------- */
.footer-custom {
    background: #090e1a;
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid #1e293b;
}

.footer-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(-4px);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.8rem;
    margin-top: 3.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ----------------------------------------------------
   6. أزرار وتفاصيل مخصصة
---------------------------------------------------- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0284c7);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
    transform: translateY(-2px);
}

.btn-outline-custom {
    border: 2px solid #e2e8f0;
    background: transparent;
    color: var(--dark-navy);
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f9ff;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.1rem;
    }
    .stats-bar {
        margin-top: 1rem;
    }
    .dropdown-menu-custom {
        box-shadow: none;
        border: 1px solid var(--border-color);
        background: #f8fafc;
        margin-top: 0.5rem;
    }
}

