:root {
    --primary-color: #377E4F;
    --primary-dark: #2a613d;
    --primary-light: #e8f5e9;
    --accent-color: #25D366;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(55, 126, 79, 0.15);
    --shadow-lg: 0 20px 40px rgba(55, 126, 79, 0.2);
    --radius: 16px;
}

/* شريط التنقل */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* تأثير الخط تحت الروابط */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* تحسينات الموبايل للناف بار */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        border-radius: 10px;
        box-shadow: var(--shadow-lg);
        margin-top: 10px;
    }
}

/* زر الواتس اب العائم */
.whatsapp-float {
    width: 65px;
    height: 65px;
    background-color: var(--accent-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    color: #FFF;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* شعارات الفوتر - نسخة آمنة */
.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    /* ✅ إزالة الفلتر المشكل */
    /* filter: brightness(0) invert(1);  <-- تم التعليق عليه */
    opacity: 0.95;
    transition: all 0.3s ease;
    display: block;
}

/* إذا كان شعارك داكن وتريد تفتيحه، استخدم هذا بدلاً من الفلتر الكامل */
.footer-logo.dark-logo {
    filter: brightness(1.2) contrast(1.1);
}

/* Hover effect آمن */
.logo-wrapper:hover .footer-logo {
    opacity: 1;
    transform: scale(1.05);
}

.footer-sub {
    font-size: 0.85em;
}

/**/
/* ========================================
   أنماط الفوتر السفلية (Footer)
   الشعارين، حقوق النشر، والتجاوب
   ======================================== */

/* --- تحسينات أساسية للفوتر المظلم --- */
footer.bg-dark {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    position: relative;
    overflow: hidden;
}

/* الخط العلوي المتحرك بالفوتر */
footer.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* --- حاوية الشعار المزدوج --- */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-wrapper:hover {
    background: rgba(55, 126, 79, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* صورة الشعار */
.footer-logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.logo-wrapper:hover .footer-logo {
    opacity: 1;
    transform: scale(1.05);
}

/* تمييز شعار الشركة المطورة */
.company-logo {
    border-color: var(--accent-color) !important;
    background: rgba(37, 211, 102, 0.1) !important;
}

.company-logo .footer-logo {
    height: 50px;
    /* أكبر قليلاً للشركة */
}

/* النص التوضيحي تحت الشعار (مثل: "المنتج" / "الشركة المطورة") */
.logo-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.logo-wrapper:hover .logo-label {
    color: var(--accent-color);
}

/* السهم الفاصل بين الشعارين */
.logo-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(0);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-3px);
    }
}

/* --- حقوق النشر والنص السفلي --- */
.footer-copyright {
    position: relative;
    z-index: 1;
}

.footer-copyright small {
    letter-spacing: 0.3px;
    line-height: 1.8;
}

.footer-tagline {
    font-size: 0.85rem;
    font-style: italic;
}

/* --- روابط الفوتر والأيقونات (اختياري) --- */
.footer-links li a {
    position: relative;
    padding-right: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links li a:hover {
    color: var(--accent-color) !important;
    padding-right: 10px;
}

.footer-links li a i {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.footer-links li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icon:hover {
    background: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: var(--white) !important;
}

.social-icon i {
    font-size: 1.2rem;
}

/* --- التجاوب مع الجوال (Responsive) --- */

/* للأجهزة اللوحية والجوالات الكبيرة */
@media (max-width: 768px) {
    .logo-wrapper {
        padding: 8px 12px;
    }

    .footer-logo {
        height: 35px;
    }

    .company-logo .footer-logo {
        height: 40px;
    }

    .logo-label {
        font-size: 0.7rem;
    }

    /* تحويل السهم ليصبح عمودياً على الجوال */
    .logo-separator {
        font-size: 1.2rem;
        transform: rotate(90deg);
    }

    .logo-separator i {
        transform: rotate(-90deg);
        /* إعادة ضبط اتجاه الأيقونة */
    }
}

/* للجوالات الصغيرة جداً */
@media (max-width: 480px) {

    /* ترتيب عمودي للشعارين */
    .d-flex.gap-4.flex-wrap {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* جعل السهم يشير للأسفل بدلاً من اليمين/اليسار */
    .logo-separator {
        transform: rotate(90deg) !important;
    }

    /* توسيط جميع محتويات الفوتر */
    .row>div[class*="col-"] {
        text-align: center !important;
    }

    .footer-contact li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ========================================
   تنسيقات خاصة للغة الإنجليزية (الناف بار)
   ======================================== */

/* تغيير خط الروابط في الناف بار للإنجليزية */
html[lang="en"] .nav-link {
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

/* تغيير خط اسم العلامة التجارية */
html[lang="en"] .navbar-brand {
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

/* تغيير خط الأزرار في الناف بار */
html[lang="en"] .navbar .btn {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* تحسين الخطوط بشكل عام للغة الإنجليزية */
html[lang="en"] body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* جعل روابط الناف بار أكثر وضوحاً */
html[lang="en"] .navbar-nav {
    font-weight: 500;
}