﻿:root {
    --primary-purple: #6f42c1;
    --purple-light: #8b63d1;
    --purple-dark: #5a379a;
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-purple-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Purple Theme */
.custom-purple-bg {
    background: var(--gradient-purple) !important;
}
.language-selector-text {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-option {
    padding: 0.25rem 0;
}

.language-name {
    font-weight: 500;
}

.dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.footer-language-selector .dropdown-toggle {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
    transition: all 0.3s ease;
}

    .footer-language-selector .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }

.dropdown-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dropdown-item:hover:not(.active) {
    background: #f8f9fa;
    color: #333;
}

/* RTL Support */
.rtl-mode .language-option {
    text-align: right;
}

.rtl-mode .language-name {
    margin-right: 0.5rem;
    margin-left: 0;
}

.footer-language-selector .dropdown-menu {
    position: absolute !important;
    inset: auto auto 0 0 !important;
    transform: translateY(-100%) !important;
    z-index: 99999 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .language-selector-text {
        font-size: 0.9rem;
    }

    .footer-language-selector .btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}
.btn-purple {
    background: var(--gradient-purple);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

    .btn-purple:hover {
        background: var(--gradient-purple-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(111, 66, 193, 0.4);
    }

/* Hero Section */
.hero-section {
    padding: 120px 0;
    background: var(--gradient-purple);
    color: white;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('/images/pattern.png');
        opacity: 0.1;
    }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-glow {
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

    .btn-glow:hover {
        box-shadow: 0 6px 20px rgba(255,255,255,0.4);
        transform: translateY(-2px);
    }

.hero-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

/* Sections Common */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* Cards */
.shadow-hover {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
}

    .shadow-hover:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(111, 66, 193, 0.2);
    }

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--gradient-purple);
    color: white;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.feature-badge {
    background: rgba(111, 66, 193, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: var(--primary-purple);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .contact-item i {
        font-size: 2rem;
        color: var(--primary-purple);
        margin-right: 1rem;
    }

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    .contact-form .form-control:focus {
        border-color: var(--primary-purple);
        box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
    }

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    background-color: #f9fafc;
}

/* ===============================
           NAVBAR STYLE - IMPROVED
        ================================ */
.navbar {
    min-height: 66px;
    padding: 0.4rem 1rem;
    background: linear-gradient(90deg, #5a189a 0%, #7b2cbf 60%, #9d4edd 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed; /* ✅ اجعل الناف بار ثابتًا في الأعلى */
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin-right: 10px; /* مساحة إضافية للشاشات الكبيرة */
}

.logo-img {
    height: 34px;
    width: auto;
    transition: transform 0.2s ease-in-out;
}

    .logo-img:hover {
        transform: scale(1.04);
    }

.navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

    .navbar-nav .nav-link {
        color: #f1ebff !important;
        font-size: 0.95rem;
        font-weight: 500;
        padding: 8px 14px !important;
        border-radius: 8px;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
        white-space: nowrap; /* منع كسر النص */
    }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: #fff !important;
            background-color: rgba(255, 255, 255, 0.18);
        }

.navbar-toggler {
    border: none;
    color: #fff;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* تحسينات للشاشات الكبيرة جدًا */
@media (min-width: 1400px) {
    .navbar .container {
        max-width: 1400px;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 10px 16px !important;
    }

    .navbar-brand {
        font-size: 1.15rem;
        margin-right: 30px;
    }
}

/* تحسينات للشاشات المتوسطة */
@media (min-width: 1200px) and (max-width: 1399px) {
    .navbar .container {
        max-width: 1250px;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 8px 14px !important;
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .navbar-collapse {
        margin-top: 10px;
    }
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    font-size: 0.9rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

    .dropdown-item:hover {
        background-color: #f4effd;
    }

/* ===============================
           FOOTER STYLE
        ================================ */
.footer-language-selector {
    position: relative !important;
    z-index: 9999;
}

footer.custom-purple-bg {
    background: linear-gradient(90deg, #7b2cbf 0%, #5a189a 100%);
    color: #fff;
    padding: 25px 0 10px;
    font-size: 0.93rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.footer-sections {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

    .footer-bottom p {
        margin: 0;
        font-size: 0.88rem;
    }

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-link {
    color: #e9dcff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: #fff;
    }

/* ===============================
           UTILITIES & COMPONENTS
        ================================ */

/* Back to Top */
.btn-back-to-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: linear-gradient(135deg, #6a1bbd, #9d4edd);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.25s ease-in-out;
}

    .btn-back-to-top:hover {
        transform: scale(1.1);
    }

/* Alerts */
.notification-alert {
    margin: 15px auto;
    width: 95%;
    border-radius: 8px;
}

/* RTL fix */
.rtl-mode .navbar-nav .nav-link {
}

.rtl-mode .footer-links {
    justify-content: flex-start !important;
}
        

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 80px 0;
        text-align: center;
    }
    /* 💜 تحسين مظهر Mega Menu */
.mega-menu-container {
    position: relative;
}

.mega-menu {
    min-width: 600px;
    border-radius: 1rem;
    padding-top: 1rem !important;
    padding-bottom: 0.5rem !important;
    background: #fff;
    transition: all 0.25s ease;
}

.mega-menu .dropdown-header {
    border-bottom: 1px solid #eee;
}

.mega-navbar .nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    transition: color 0.2s ease;
}

.mega-navbar .nav-link:hover {
    color: #7b2cbf;
}

.text-purple {
    color: #7b2cbf !important;
}

.btn-outline-purple {
    border-color: #7b2cbf;
    color: #7b2cbf;
}

.btn-outline-purple:hover {
    background-color: #7b2cbf;
    color: #fff;
}

.content-preview {
    transition: transform 0.2s ease;
}

.content-item:hover .content-preview {
    transform: translateY(-3px);
}

.content-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* 📱 استجابة الشاشات */
@media (min-width: 992px) {
    .mega-menu-container:hover > .mega-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

/* 🕌 دعم RTL */
[dir="rtl"] .mega-menu .dropdown-header i {
    transform: scaleX(-1);
}

[dir="rtl"] .mega-menu-container .nav-link i {
    margin-left: 6px;
    margin-right: 0;
}

    .section-title {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}
/* 💜 تحسين مظهر Mega Menu */
.mega-menu-container {
    position: relative;
}

.mega-menu {
    min-width: 600px;
    border-radius: 1rem;
    padding-top: 1rem !important;
    padding-bottom: 0.5rem !important;
    background: #fff;
    transition: all 0.25s ease;
}

    .mega-menu .dropdown-header {
        border-bottom: 1px solid #eee;
    }

.mega-navbar .nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    transition: color 0.2s ease;
}

    .mega-navbar .nav-link:hover {
        color: #7b2cbf;
    }

.text-purple {
    color: #7b2cbf !important;
}

.btn-outline-purple {
    border-color: #7b2cbf;
    color: #7b2cbf;
}

    .btn-outline-purple:hover {
        background-color: #7b2cbf;
        color: #fff;
    }

.content-preview {
    transition: transform 0.2s ease;
}

.content-item:hover .content-preview {
    transform: translateY(-3px);
}

.content-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
}
/* RTL/LTR fixes for icons and dropdowns */
.navbar-nav .nav-link i {
    font-size: 1rem;
}

.rtl-mode .navbar-nav .nav-link i {
    margin-left: 6px;
    margin-right: 0;
}

.ltr-mode .navbar-nav .nav-link i {
    margin-right: 6px;
    margin-left: 0;
}

.dropdown-menu .dropdown-item i {
    font-size: 1rem;
}

.rtl-mode .dropdown-menu .dropdown-item i {
    margin-left: 6px;
}

footer .footer-link i {
    font-size: 1rem;
}

.rtl-mode footer .footer-link i {
    margin-left: 6px;
}

.ltr-mode footer .footer-link i {
    margin-right: 6px;
}

/* Ensure navbar visible in large screens */
.navbar.fixed-top {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* 📱 استجابة الشاشات */
@media (min-width: 992px) {
    .mega-menu-container:hover > .mega-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

/* 🕌 دعم RTL */
[dir="rtl"] .mega-menu .dropdown-header i {
    transform: scaleX(-1);
}

[dir="rtl"] .mega-menu-container .nav-link i {
    margin-left: 6px;
    margin-right: 0;
}
