/* Dark Theme Specific Styles - تم إصلاح مشاكل الألوان المذكورة */

/* Base Dark Theme Body */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
}

/* Navigation Dark Theme */
[data-theme="dark"] .navbar-custom {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

[data-theme="dark"] .navbar-custom.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav-link {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #60a5fa !important;
}

[data-theme="dark"] .navbar-toggler {
    border-color: #475569;
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28203, 213, 225, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section Dark Theme */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .hero-title {
    color: #f1f5f9;
}

[data-theme="dark"] .hero-subtitle {
    color: #cbd5e1;
}

[data-theme="dark"] .hero-badge {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .stat-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.3);
}

[data-theme="dark"] .stat-number {
    color: #60a5fa;
}

[data-theme="dark"] .stat-label {
    color: #cbd5e1;
}

/* Section Headers Dark Theme */
[data-theme="dark"] .section-title {
    color: #f1f5f9;
}

[data-theme="dark"] .section-description {
    color: #cbd5e1;
}

[data-theme="dark"] .section-badge {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Cards Dark Theme */
[data-theme="dark"] .card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .stat-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    color: #f1f5f9;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .service-title,
[data-theme="dark"] .plan-name,
[data-theme="dark"] .team-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .service-description,
[data-theme="dark"] .team-bio {
    color: #cbd5e1;
}

[data-theme="dark"] .service-link {
    color: #60a5fa;
}

[data-theme="dark"] .service-link:hover {
    color: #93c5fd;
}

/* ====================================================================== */
/* إصلاح مشاكل قسم Why Choose Us في الدارك مود */
/* ====================================================================== */

/* خلفية القسم */
[data-theme="dark"] .why-choose-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
}

/* الكروت */
[data-theme="dark"] .why-card {
    background: rgba(30, 41, 59, 0.85) !important;
    border: 1px solid rgba(51, 65, 85, 0.6) !important;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .why-card:hover {
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 15px 35px -10px rgba(96, 165, 250, 0.25);
    transform: translateY(-6px);
}

[data-theme="dark"] .why-card:before {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.10)) !important;
}

/* الأيقونات */
[data-theme="dark"] .why-icon {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -6px rgba(96, 165, 250, 0.4);
}

/* النصوص */
[data-theme="dark"] .why-card h3 {
    color: #f1f5f9 !important;
    font-weight: 700;
}

[data-theme="dark"] .why-card p {
    color: #cbd5e1 !important;
    line-height: 1.6;
}

/* العناصر المتحركة */
[data-theme="dark"] .why-accent {
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.2), transparent 70%) !important;
}

[data-theme="dark"] .floating-shape {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    opacity: 0.1 !important;
}

/* ====================================================================== */
/* إصلاح مشاكل Pricing Section في الدارك مود */
/* ====================================================================== */

/* خلفية قسم الأسعار */
[data-theme="dark"] .pricing-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
}

/* Pricing Cards Dark Theme */
[data-theme="dark"] .pricing-card {
    background: rgba(30, 41, 59, 0.85) !important;
    border: 2px solid rgba(51, 65, 85, 0.6) !important;
    color: #f1f5f9 !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pricing-card:hover {
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 20px 50px -10px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .pricing-card.popular {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3), 0 15px 35px -8px rgba(96, 165, 250, 0.4);
}

/* إصلاح pricing-header-card */
[data-theme="dark"] .pricing-header-card {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #f1f5f9 !important;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}

[data-theme="dark"] .pricing-card.popular .pricing-header-card {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.9), rgba(59, 130, 246, 0.85)) !important;
    color: #ffffff !important;
}

/* أسماء الباقات */
[data-theme="dark"] .plan-name {
    color: #f1f5f9 !important;
    font-weight: bold;
}

[data-theme="dark"] .pricing-card.popular .plan-name {
    color: #ffffff !important;
}

/* أسعار الباقات */
[data-theme="dark"] .plan-price {
    color: #60a5fa !important;
    font-weight: 900;
}

[data-theme="dark"] .pricing-card.popular .plan-price {
    color: #ffffff !important;
}

/* النصوص المساعدة */
[data-theme="dark"] .pricing-header-card .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .pricing-card.popular .pricing-header-card .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* المزايا */
[data-theme="dark"] .feature-item {
    color: #cbd5e1 !important;
    background: rgba(51, 65, 85, 0.3) !important;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(71, 85, 105, 0.4);
}

[data-theme="dark"] .feature-icon {
    background: #34d399 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .feature-text {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .feature-value {
    color: #60a5fa !important;
}

/* الأزرار */
[data-theme="dark"] .btn-pricing {
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

[data-theme="dark"] .pricing-card:not(.popular) .btn-primary {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    border: none !important;
    color: #ffffff !important;
}

[data-theme="dark"] .pricing-card.popular .btn-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #1e293b !important;
    border: none !important;
}

/* الشارة الشعبية */
[data-theme="dark"] .pricing-card.popular::before {
    background: #fbbf24 !important;
    color: #1e293b !important;
}

[data-theme="dark"] .popular-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #1e293b !important;
}

/* جدول المقارنة */
[data-theme="dark"] .comparison-table {
    background: rgba(30, 41, 59, 0.85) !important;
    border: 1px solid rgba(51, 65, 85, 0.6) !important;
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .comparison-header {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .comparison-table .table {
    color: #f1f5f9 !important;
    background: transparent !important;
}

[data-theme="dark"] .comparison-table .table th {
    background: rgba(51, 65, 85, 0.7) !important;
    color: #f1f5f9 !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
}

[data-theme="dark"] .comparison-table .table td {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #cbd5e1 !important;
    border-color: rgba(71, 85, 105, 0.4) !important;
}

[data-theme="dark"] .comparison-table .table tbody tr:hover {
    background: rgba(51, 65, 85, 0.4) !important;
}

[data-theme="dark"] .comparison-table .text-success {
    color: #34d399 !important;
}

[data-theme="dark"] .comparison-table .text-danger {
    color: #f87171 !important;
}

[data-theme="dark"] .comparison-table .text-primary {
    color: #60a5fa !important;
}

/* ====================================================================== */
/* إصلاح مشاكل Clients Section في الدارك مود */
/* ====================================================================== */

/* خلفية قسم العملاء */
[data-theme="dark"] .clients-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
}

/* الشريط المتحرك للعملاء */
[data-theme="dark"] .clients-marquee {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(51, 65, 85, 0.5) !important;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .clients-track {
    background: transparent !important;
}

/* عناصر العملاء */
[data-theme="dark"] .client-item {
    background: rgba(51, 65, 85, 0.7) !important;
    border: 1px solid rgba(71, 85, 105, 0.6) !important;
    color: #f1f5f9 !important;
    border-radius: 15px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .client-item:hover {
    background: rgba(51, 65, 85, 0.9) !important;
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 8px 20px -6px rgba(96, 165, 250, 0.3);
    transform: translateY(-3px);
}

/* شعارات العملاء */
[data-theme="dark"] .client-logo-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    border-radius: 12px;
    padding: 1rem;
}

[data-theme="dark"] .client-logo-wrapper img {
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .client-item:hover .client-logo-wrapper img {
    filter: brightness(1) contrast(1.2);
}

/* أسماء الشركات */
[data-theme="dark"] .client-company-name {
    color: #f1f5f9 !important;
    font-weight: 600;
}

/* الأحرف الأولى للعملاء */
[data-theme="dark"] .client-initials {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* التدرج في الأطراف */
[data-theme="dark"] .clients-gradient {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), transparent) !important;
}

[data-theme="dark"] .clients-gradient-left {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), transparent) !important;
}

[data-theme="dark"] .clients-gradient-right {
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.95), transparent) !important;
}

/* ====================================================================== */
/* إصلاح مشاكل Advanced FAQ في الدارك مود */
/* ====================================================================== */

/* خلفية قسم الأسئلة الشائعة */
[data-theme="dark"] .advanced-faq {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
}

/* شريط البحث والإحصائيات */
[data-theme="dark"] .faq-top-bar {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(51, 65, 85, 0.5) !important;
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
}

/* مربع البحث */
[data-theme="dark"] .faq-search-box input {
    background: rgba(51, 65, 85, 0.8) !important;
    border: 2px solid rgba(71, 85, 105, 0.8) !important;
    color: #f1f5f9 !important;
    border-radius: 12px;
}

[data-theme="dark"] .faq-search-box input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3) !important;
    background: rgba(51, 65, 85, 0.9) !important;
}

[data-theme="dark"] .faq-search-box input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="dark"] .faq-search-box i {
    color: #60a5fa !important;
}

/* إحصائيات مصغرة */
[data-theme="dark"] .faq-stat {
    background: rgba(51, 65, 85, 0.7) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    border-radius: 10px;
}

[data-theme="dark"] .faq-stat i {
    color: #60a5fa !important;
}

/* أزرار التصنيفات */
[data-theme="dark"] .faq-categories-rail {
    background: rgba(30, 41, 59, 0.4) !important;
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .faq-cat-btn {
    background: rgba(51, 65, 85, 0.7) !important;
    border: 1px solid rgba(71, 85, 105, 0.6) !important;
    color: #cbd5e1 !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .faq-cat-btn.active,
[data-theme="dark"] .faq-cat-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 4px 15px -4px rgba(96, 165, 250, 0.4);
}

/* كروت الأسئلة */
[data-theme="dark"] .faq-item-card {
    background: rgba(30, 41, 59, 0.85) !important;
    border: 1px solid rgba(51, 65, 85, 0.6) !important;
    color: #f1f5f9 !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .faq-item-card:hover {
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 15px 35px -10px rgba(96, 165, 250, 0.25);
    transform: translateY(-5px);
}

[data-theme="dark"] .faq-item-card.expanded {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3), 0 15px 35px -8px rgba(96, 165, 250, 0.4);
}

/* أيقونات الأسئلة */
[data-theme="dark"] .faq-icon-circle {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px -5px rgba(96, 165, 250, 0.5);
}

/* نص الأسئلة */
[data-theme="dark"] .faq-q-text {
    color: #f1f5f9 !important;
    font-weight: 600;
}

/* شرائح التصنيف */
[data-theme="dark"] .faq-category-chip {
    background: rgba(96, 165, 250, 0.2) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* أزرار التوسيع */
[data-theme="dark"] .faq-toggle-btn {
    background: rgba(51, 65, 85, 0.7) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .faq-item-card.expanded .faq-toggle-btn {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
}

/* محتوى الإجابات */
[data-theme="dark"] .faq-answer-wrapper {
    background: rgba(51, 65, 85, 0.4) !important;
    border-top: 1px solid rgba(71, 85, 105, 0.5) !important;
}

[data-theme="dark"] .faq-answer-inner {
    color: #cbd5e1 !important;
    background: transparent !important;
}

[data-theme="dark"] .faq-answer-inner:before {
    background: linear-gradient(90deg, #60a5fa, #3b82f6) !important;
}

/* حالة الفراغ */
[data-theme="dark"] .faq-empty {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px dashed rgba(96, 165, 250, 0.5) !important;
    color: #94a3b8 !important;
}

/* ====================================================================== */
/* إصلاح مشاكل Testimonials Section في الدارك مود */
/* ====================================================================== */

/* خلفية قسم آراء العملاء */
[data-theme="dark"] .testimonials-section,
[data-theme="dark"] .testimonials-section-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
}

/* إزالة التدرجات الفاتحة واستبدالها بألوان داكنة */
[data-theme="dark"] .testimonials-section-modern:before {
    background: radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.15), transparent 60%), 
                radial-gradient(circle at 15% 85%, rgba(59, 130, 246, 0.18), transparent 65%) !important;
}

/* عناصر الديكور الخلفية */
[data-theme="dark"] .testimonials-bg-decor .circle {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(59, 130, 246, 0.25)) !important;
    filter: blur(40px);
    opacity: 0.25 !important;
}

[data-theme="dark"] .testimonials-bg-decor .gradient.g1 {
    background: rgba(96, 165, 250, 0.15) !important;
}

[data-theme="dark"] .testimonials-bg-decor .gradient.g2 {
    background: rgba(59, 130, 246, 0.15) !important;
}

/* أزرار التنقل */
[data-theme="dark"] .tnav-btn {
    background: rgba(30, 41, 59, 0.85) !important;
    border: 1px solid rgba(51, 65, 85, 0.7) !important;
    color: #60a5fa !important;
    box-shadow: 0 6px 20px -6px rgba(96, 165, 250, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(15px);
}

[data-theme="dark"] .tnav-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 25px -8px rgba(96, 165, 250, 0.5) !important;
}

/* كروت آراء العملاء */
[data-theme="dark"] .testimonial-card-modern {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(51, 65, 85, 0.7) !important;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5), 0 8px 25px -8px rgba(96, 165, 250, 0.15) !important;
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .testimonial-card-modern.featured {
    border: 1px solid rgba(96, 165, 250, 0.6) !important;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.8)) !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3), 0 20px 50px -15px rgba(0, 0, 0, 0.6) !important;
}

/* تأثير الإضاءة */
[data-theme="dark"] .testimonial-shine {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(96, 165, 250, 0.3) 45%, rgba(255, 255, 255, 0) 80%) !important;
    opacity: 0.2 !important;
}

/* العناصر الديكورية للكروت */
[data-theme="dark"] .testimonial-card-modern:before {
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.25), transparent 65%) !important;
    opacity: 0.4 !important;
}

[data-theme="dark"] .testimonial-card-modern.featured:before {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.35), transparent 65%) !important;
}

/* أيقونة الاقتباس */
[data-theme="dark"] .testimonial-quote-icon {
    color: rgba(96, 165, 250, 0.2) !important;
}

/* نجوم التقييم */
[data-theme="dark"] .testimonial-rating {
    color: #fbbf24 !important;
}

/* نص الآراء */
[data-theme="dark"] .testimonial-text {
    color: #cbd5e1 !important;
    font-weight: 500;
}

[data-theme="dark"] .testimonial-text:after {
    background: linear-gradient(90deg, #60a5fa, #3b82f6) !important;
}

/* صور وأسماء العملاء */
[data-theme="dark"] .client-avatar {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    box-shadow: 0 6px 20px -6px rgba(96, 165, 250, 0.6) !important;
}

[data-theme="dark"] .client-name {
    color: #f1f5f9 !important;
    font-weight: 700;
}

[data-theme="dark"] .client-position {
    color: #60a5fa !important;
    font-weight: 600;
}

[data-theme="dark"] .client-company {
    color: #94a3b8 !important;
}

[data-theme="dark"] .client-extra {
    color: #94a3b8 !important;
}

/* شعارات الشركات */
[data-theme="dark"] .company-logo {
    filter: brightness(0.9) saturate(0.8);
    opacity: 0.8 !important;
}

[data-theme="dark"] .testimonial-card-modern:hover .company-logo {
    filter: brightness(1.1) saturate(1);
    opacity: 1 !important;
}

/* نقاط التنقل */
[data-theme="dark"] .testimonials-dots button {
    border: 2px solid rgba(96, 165, 250, 0.6) !important;
    background: transparent !important;
}

[data-theme="dark"] .testimonials-dots button.active {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.3) !important;
}

[data-theme="dark"] .testimonials-dots button:not(.active):hover {
    background: rgba(96, 165, 250, 0.3) !important;
    opacity: 0.7 !important;
}

/* تأثيرات إضافية للتفاعل */
[data-theme="dark"] .testimonial-card-modern:hover {
    border-color: rgba(96, 165, 250, 0.8) !important;
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.6), 0 10px 30px -10px rgba(96, 165, 250, 0.25) !important;
    transform: translateY(-3px);
}

/* استجابة للأجهزة المحمولة */
@media (max-width: 768px) {
    [data-theme="dark"] .testimonial-card-modern {
        background: rgba(30, 41, 59, 0.95) !important;
        border: 1px solid rgba(51, 65, 85, 0.8) !important;
    }
    
    [data-theme="dark"] .tnav-btn {
        background: rgba(30, 41, 59, 0.9) !important;
        border: 1px solid rgba(51, 65, 85, 0.8) !important;
    }
}

/* ====================================================================== */
/* إصلاح مشاكل نموذج التواصل مع AOS Animation في الدارك مود */
/* ====================================================================== */

/* قسم التواصل العام */
[data-theme="dark"] .contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* إصلاح contact-form-wrapper مع العناصر المتحركة AOS */
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .contact-form,
[data-theme="dark"] [data-aos="fade-left"] .contact-form-wrapper,
[data-theme="dark"] [data-aos="fade-right"] .contact-form-wrapper,
[data-theme="dark"] .aos-init.aos-animate .contact-form-wrapper {
    background: rgba(30, 41, 59, 0.92) !important;
    border: 1px solid rgba(51, 65, 85, 0.7) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px) !important;
}

/* العناوين */
[data-theme="dark"] .contact-form-wrapper .contact-form-title,
[data-theme="dark"] .contact-form-title,
[data-theme="dark"] .contact-info-title {
    color: #f1f5f9 !important;
    font-weight: 600;
}

/* تسميات الحقول */
[data-theme="dark"] .contact-form-wrapper .form-label,
[data-theme="dark"] .form-label {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}

/* حقول الإدخال */
[data-theme="dark"] .contact-form-wrapper .form-control,
[data-theme="dark"] .contact-form .form-control {
    background: rgba(51, 65, 85, 0.8) !important;
    border: 2px solid rgba(71, 85, 105, 0.8) !important;
    color: #f1f5f9 !important;
    transition: all 0.3s ease !important;
}

[data-theme="dark"] .contact-form-wrapper .form-control:focus,
[data-theme="dark"] .contact-form .form-control:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3) !important;
    background: rgba(51, 65, 85, 0.9) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .contact-form-wrapper .form-control::placeholder,
[data-theme="dark"] .contact-form .form-control::placeholder {
    color: #94a3b8 !important;
}

/* textarea خاص */
[data-theme="dark"] .contact-form-wrapper textarea.form-control,
[data-theme="dark"] .contact-form textarea.form-control {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #f1f5f9 !important;
    border: 2px solid rgba(71, 85, 105, 0.8) !important;
}

[data-theme="dark"] .contact-form-wrapper textarea.form-control:focus,
[data-theme="dark"] .contact-form textarea.form-control:focus {
    background: rgba(51, 65, 85, 0.9) !important;
    border-color: #60a5fa !important;
}

/* أزرار الإرسال */
[data-theme="dark"] .contact-form-wrapper .btn-primary,
[data-theme="dark"] .contact-form .btn-primary {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px -6px rgba(96, 165, 250, 0.4) !important;
    border: none !important;
}

[data-theme="dark"] .contact-form-wrapper .btn-primary:hover,
[data-theme="dark"] .contact-form .btn-primary:hover {
    box-shadow: 0 10px 30px -8px rgba(96, 165, 250, 0.5) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

/* معلومات التواصل */
[data-theme="dark"] .contact-info,
[data-theme="dark"] .contact-info-wrapper,
[data-theme="dark"] [data-aos="fade-right"] .contact-info {
    background: rgba(30, 41, 59, 0.92) !important;
    border: 1px solid rgba(51, 65, 85, 0.7) !important;
    color: #f1f5f9 !important;
    backdrop-filter: blur(20px) !important;
}

[data-theme="dark"] .contact-item {
    background: rgba(51, 65, 85, 0.6) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .contact-item:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    box-shadow: 0 8px 25px -8px rgba(96, 165, 250, 0.2) !important;
}

[data-theme="dark"] .contact-icon {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .contact-content h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .contact-content p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .contact-content a {
    color: #60a5fa !important;
}

[data-theme="dark"] .contact-content a:hover {
    color: #93c5fd !important;
}

/* قائمة معلومات التواصل */
[data-theme="dark"] .contact-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

[data-theme="dark"] .contact-info-list li {
    background: rgba(51, 65, 85, 0.6) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    color: #f1f5f9 !important;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
}

[data-theme="dark"] .contact-info-list li:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    box-shadow: 0 4px 15px -4px rgba(96, 165, 250, 0.2) !important;
}

[data-theme="dark"] .contact-info-list li i {
    color: #60a5fa !important;
}

[data-theme="dark"] .contact-info-list li span:first-of-type {
    color: #f1f5f9 !important;
    font-weight: 600;
}

[data-theme="dark"] .contact-info-list li a {
    color: #60a5fa !important;
}

[data-theme="dark"] .contact-info-list li a:hover {
    color: #93c5fd !important;
}

/* إصلاح خاص للعناصر مع AOS Animation */
[data-theme="dark"] .aos-init.aos-animate {
    color: inherit !important;
}

[data-theme="dark"] .aos-init.aos-animate .form-control {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .aos-init.aos-animate .form-label {
    color: #f1f5f9 !important;
}

/* ====================================================================== */
/* تحسينات إضافية للوضع الليلي: الخدمات (price-text)، المشاريع (portfolio / project-card), الفريق */
/* ====================================================================== */
/* Services Section Price Box */
[data-theme="dark"] .service-price {
    background: rgba(51,65,85,0.45) !important;
    border: 1px solid rgba(71,85,105,0.55) !important;
    border-radius: 12px !important;
}
[data-theme="dark"] .price-text {
    color: #94a3b8 !important;
}
[data-theme="dark"] .price-value {
    color: #60a5fa !important;
}
/* Feature / skill tags inside service cards */
[data-theme="dark"] .feature-tag {
    background: rgba(51,65,85,0.55) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(71,85,105,0.5) !important;
}

/* Portfolio / Projects Section */
[data-theme="dark"] .portfolio-section {
    background: linear-gradient(135deg,#0f172a 0%,#1e293b 100%) !important;
}
[data-theme="dark"] .project-card {
    background: rgba(30,41,59,0.82) !important;
    border: 1px solid rgba(51,65,85,0.55) !important;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5) !important;
    backdrop-filter: blur(14px);
}
[data-theme="dark"] .project-card:hover {
    border-color: rgba(96,165,250,0.6) !important;
    box-shadow: 0 18px 45px -14px rgba(96,165,250,0.35) !important;
}
[data-theme="dark"] .project-image { background: rgba(15,23,42,0.6) !important; }
[data-theme="dark"] .project-overlay { background: rgba(0,0,0,0.75) !important; }
[data-theme="dark"] .project-title { color: #f1f5f9 !important; }
[data-theme="dark"] .project-description { color: #cbd5e1 !important; }
[data-theme="dark"] .project-meta { color: #94a3b8 !important; }
[data-theme="dark"] .project-category { color: #60a5fa !important; }
[data-theme="dark"] .tech-tag {
    background: rgba(51,65,85,0.55) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(71,85,105,0.5) !important;
}

/* Team Section */
[data-theme="dark"] .team-section {
    background: linear-gradient(135deg,#0f172a 0%,#1e293b 100%) !important;
}
[data-theme="dark"] .team-card {
    background: rgba(30,41,59,0.82) !important;
    border: 1px solid rgba(51,65,85,0.55) !important;
    backdrop-filter: blur(14px);
}
[data-theme="dark"] .team-card:hover {
    border-color: rgba(96,165,250,0.6) !important;
    box-shadow: 0 18px 45px -14px rgba(96,165,250,0.35) !important;
}
[data-theme="dark"] .team-name { color: #f1f5f9 !important; }
[data-theme="dark"] .team-bio { color: #cbd5e1 !important; }
[data-theme="dark"] .skill-tag {
    background: rgba(51,65,85,0.55) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(71,85,105,0.5) !important;
}

/* Subtle transitions */
[data-theme="dark"] .project-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .service-card {
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* Ensure headings inside the new dark cards stay bright */
[data-theme="dark"] .service-title { color: #f1f5f9 !important; }
[data-theme="dark"] .service-description { color: #cbd5e1 !important; }
/* ====================================================================== */
/* تحسين التناسق العام للوضع الليلي: About / Services / Certifications / Footer */
/* ====================================================================== */
[data-theme="dark"] .about-section,
[data-theme="dark"] .services-section,
[data-theme="dark"] .certifications-section,
[data-theme="dark"] .footer-section {
    background: linear-gradient(135deg,#0f172a 0%,#1e293b 65%,#11243a 100%) !important;
}

/* حاويات المحتوى الداخلية (زجاجي موحد) */
[data-theme="dark"] .about-content,
[data-theme="dark"] .service-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .cert-item,
[data-theme="dark"] .footer-widget {
    background: rgba(30,41,59,0.78) !important;
    border: 1px solid rgba(51,65,85,0.55) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 10px 28px -12px rgba(0,0,0,0.55) !important;
    border-radius: 18px !important;
    transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

/* تأثير التحويم موحد */
[data-theme="dark"] .about-content:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .cert-item:hover,
[data-theme="dark"] .footer-widget:hover {
    border-color: rgba(96,165,250,0.65) !important;
    box-shadow: 0 18px 46px -14px rgba(96,165,250,0.28), 0 6px 18px -6px rgba(0,0,0,0.55) !important;
    transform: translateY(-6px);
}

/* عناصر فرعية (feature-item / tags) */
[data-theme="dark"] .about-features .feature-item,
[data-theme="dark"] .feature-tag,
[data-theme="dark"] .skill-tag,
[data-theme="dark"] .tech-tag {
    background: rgba(51,65,85,0.55) !important;
    border: 1px solid rgba(71,85,105,0.55) !important;
    color: #cbd5e1 !important;
    box-shadow: 0 4px 14px -6px rgba(0,0,0,0.4) !important;
}
[data-theme="dark"] .about-features .feature-item:hover {
    border-color: rgba(96,165,250,0.6) !important;
    box-shadow: 0 10px 30px -10px rgba(96,165,250,0.30) !important;
}

/* عناوين ونصوص داخل الأقسام لضمان وضوح */
[data-theme="dark"] .about-title,
[data-theme="dark"] .service-title,
[data-theme="dark"] .cert-item h4,
[data-theme="dark"] .footer-title { color:#f1f5f9 !important; }
[data-theme="dark"] .about-text,
[data-theme="dark"] .service-description,
[data-theme="dark"] .cert-item p,
[data-theme="dark"] .footer-description { color:#cbd5e1 !important; }

/* أيقونات داخل العناصر (خدمات / شهادات) */
[data-theme="dark"] .service-icon,
[data-theme="dark"] .feature-icon,
[data-theme="dark"] .cert-item i {
    background: linear-gradient(135deg,#60a5fa,#3b82f6) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -8px rgba(96,165,250,0.45) !important;
}

/* حدود الفواصل داخل الفوتر */
[data-theme="dark"] .footer-bottom { border-top: 1px solid rgba(71,85,105,0.5) !important; }

/* الروابط داخل الفوتر موحدة */
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-menu a { color:#94a3b8 !important; }
[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .footer-menu a:hover { color:#60a5fa !important; }

/* بطاقات الشهادات (إن وُجدت صور) */
[data-theme="dark"] .cert-logo, [data-theme="dark"] .cert-item img { filter: brightness(0.95) contrast(1.05); transition: filter .35s; }
[data-theme="dark"] .cert-item:hover .cert-logo, [data-theme="dark"] .cert-item:hover img { filter: brightness(1.07) contrast(1.12); }

/* شريط تمرير الشهادات (إن وجد) */
[data-theme="dark"] .certifications-slider { filter: none !important; }

/* تدرج خفيف علوي وسفلي لعمق بصري */
[data-theme="dark"] .about-section::before,
[data-theme="dark"] .services-section::before,
[data-theme="dark"] .certifications-section::before,
[data-theme="dark"] .footer-section::before {
    content: ""; position:absolute; inset:0; pointer-events:none; background:
        radial-gradient(circle at 75% 15%, rgba(96,165,250,0.10), transparent 55%),
        radial-gradient(circle at 20% 85%, rgba(59,130,246,0.08), transparent 60%);
    mix-blend-mode: normal;
}

/* ضمان تموضع نسبي للأقسام لإظهار ::before */
[data-theme="dark"] .about-section,
[data-theme="dark"] .services-section,
[data-theme="dark"] .certifications-section,
[data-theme="dark"] .footer-section { position:relative; }

/* تحسين تباين price-value داخل الخدمات عند تواجد خلفية زجاجية */
[data-theme="dark"] .price-value { text-shadow: 0 0 6px rgba(96,165,250,0.35); }

/* تخفيف حِدّة الظلال على الشاشات الصغيرة */
@media (max-width:768px) {
  [data-theme="dark"] .about-content,
  [data-theme="dark"] .service-card,
  [data-theme="dark"] .cert-item,
  [data-theme="dark"] .footer-widget { box-shadow: 0 8px 20px -10px rgba(0,0,0,0.55) !important; }
  [data-theme="dark"] .about-content:hover,
  [data-theme="dark"] .service-card:hover,
  [data-theme="dark"] .cert-item:hover { transform: translateY(-4px); }
}

/* ====================================================================== */
/* Floating Elements (Hero) - Dark Mode Consistency */
/* ====================================================================== */
[data-theme="dark"] .floating-elements { pointer-events:none; }
[data-theme="dark"] .floating-card {
    background: rgba(30,41,59,0.85) !important;
    border: 1px solid rgba(96,165,250,0.28) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 10px 28px -12px rgba(0,0,0,0.65), 0 0 0 1px rgba(96,165,250,0.15) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}
[data-theme="dark"] .floating-card i { color: #60a5fa !important; text-shadow: 0 0 6px rgba(96,165,250,0.4); }
[data-theme="dark"] .floating-card:hover {
    border-color: rgba(96,165,250,0.55) !important;
    box-shadow: 0 18px 46px -16px rgba(96,165,250,0.35), 0 6px 20px -8px rgba(0,0,0,0.6) !important;
}
/* Individual positional cards (optional subtle glow) */
[data-theme="dark"] .card-1,
[data-theme="dark"] .card-2,
[data-theme="dark"] .card-3 { box-shadow: 0 8px 24px -10px rgba(96,165,250,0.25) !important; }

/* Floating geometric shapes refinement */
[data-theme="dark"] .floating-shapes .shape {
    background: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(59,130,246,0.12)) !important;
    border: 1px solid rgba(96,165,250,0.25) !important;
    box-shadow: 0 8px 32px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(96,165,250,0.15) !important;
}