﻿/* ==================== متغيرات التصميم ==================== */
:root {
    /* الألوان الأساسية - لوحة خضراء احترافية تطابق الشعار */
    --primary-color: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0a7a6f;
    --secondary-color: #1e40af;
    /* التبديل بين الأخضر والأزرق */
    --secondary-light: #3b82f6;
    --accent-color: #059669;
    /* درجة خضراء إضافية */
    --accent-light: #10b981;

    /* ألوان النص - توازن مع اللون الأساسي */
    --text-primary: #1e293b;
    /* Slate 800 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-light: #ffffff;
    --text-dim: #94a3b8;
    /* Slate 400 */

    /* ألوان الخلفية */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    /* Slate 50 */
    --bg-dark: #0f172a;
    /* Slate 900 - خلفية داكنة احترافية */
    --bg-navy: #1e3a8a;

    /* التدرجات الاحترافية */
    --gradient-primary: linear-gradient(135deg, #0d9488 0%, #0a7a6f 100%);
    --gradient-secondary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-warm: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    /* تم توحيده مع الأساسي للانسجام */
    --gradient-cool: linear-gradient(135deg, #334155 0%, #0f172a 100%);
    --gradient-gold: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    /* خلفية داكنة بدلاً من اللون الذهبي الصارخ */
    --gradient-soft: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);

    /* الظلال - أكثر نعومة وحيوية */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 30px 60px -12px rgba(0, 0, 0, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.2);

    /* المسافات */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* الخطوط */
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* الانتقالات */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== إعادة تعيين الأنماط ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    direction: inherit;
    text-align: start;
    overflow-x: hidden;
}

/* ==================== الطباعة ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* ==================== الحاوية ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== الهيدر ==================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    z-index: 3000;
    /* Highest to keep toggle clickable */
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    background: #ffffff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition-base);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    list-style: none;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.nav-link i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-link span {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.nav-link:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.nav-link:hover i {
    color: white;
    transform: scale(1.1);
}

/* إخفاء زر الإغلاق في الشاشات الكبيرة */
.menu-close-btn {
    display: none;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

[dir="ltr"] .nav-support-btn i {
    margin-right: 0.5rem;
    margin-left: 0;
}

[dir="ltr"] .lang-btn i {
    margin-right: 0.2rem;
}

body.en {
    direction: ltr !important;
    text-align: left !important;
}

body.en .usage-details {
    border-right: none;
    border-left: 4px solid #4caf50;
}

body.en .nav-support-btn i {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* ==================== زر الدعم الفني ==================== */
.nav-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.nav-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    background: linear-gradient(135deg, #0a7a6f 0%, #0d9488 100%);
}

.nav-support-btn i {
    font-size: 1.1rem;
    margin-left: 0.3rem;
}

[dir="ltr"] .nav-support-btn i {
    margin-left: 0;
    margin-right: 0.3rem;
}

/* ==================== زر الطلب في الهيدر ==================== */
.nav-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.nav-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    background: linear-gradient(135deg, #0a7a6f 0%, #0d9488 100%);
}

.nav-order-btn i {
    font-size: 1.1rem;
    margin-left: 0.3rem;
}

[dir="ltr"] .nav-order-btn i {
    margin-left: 0;
    margin-right: 0.3rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 2001;
    /* Ensure it's above everything */
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    /* Above page content but below header/menu */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 2100;
    }

    #navMenu {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 1100;
        /* Between header and overlay */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        padding: 4rem 1.2rem 1.5rem;
        transform: translateX(100%);
        visibility: hidden;
        overflow-y: auto;
    }

    .menu-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        border: none;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
        z-index: 10;
    }

    .menu-close-btn:hover {
        background: var(--primary-dark);
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
    }

    body.en .menu-close-btn {
        right: auto;
        left: 1rem;
    }

    body.en #navMenu {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    }

    #navMenu.active {
        transform: translateX(0);
        visibility: visible;
    }

    body.en #navMenu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
        justify-content: flex-start;
    }

    .nav-link:hover {
        transform: translateX(5px);
    }

    body.en .nav-link:hover {
        transform: translateX(-5px);
    }

    .nav-support-btn,
    .nav-order-btn {
        width: 100%;
        padding: 1rem 1.2rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        background: var(--gradient-primary);
        color: white !important;
        font-size: 1.1rem;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
        overflow: visible;
        white-space: nowrap;
        flex-wrap: nowrap;
        border: none;
        cursor: pointer;
        font-family: inherit;
    }

    .nav-support-btn i,
    .nav-order-btn i {
        font-size: 1.3rem;
        flex-shrink: 0;
        color: white !important;
    }

    .nav-support-btn span,
    .nav-order-btn span {
        color: white !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-grow: 1;
        text-align: start;
    }

    .nav-support-btn:hover,
    .nav-order-btn:hover {
        background: linear-gradient(135deg, #0a7a6f 0%, #0d9488 100%);
        transform: translateX(5px);
    }

    body.en .nav-support-btn:hover,
    body.en .nav-order-btn:hover {
        transform: translateX(-5px);
    }

    .lang-switcher {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
}

/* ==================== قسم البطل ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-primary);
    animation: fadeInUp 1s ease;
}


.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    text-shadow: none;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    color: var(--text-secondary);
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0a7a6f 100%);
    color: var(--text-light);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.4);
    background: linear-gradient(135deg, #0a7a6f 0%, #0d9488 100%);
}

/* ==================== الأقسام العامة ==================== */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

/* ==================== قسم الخدمات ==================== */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card .btn {
    margin-top: auto;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 100%;
    height: 350px;
    border-radius: 0;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    overflow: hidden;
    background: transparent;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.service-card:nth-child(1) .service-icon {
    background: transparent;
}

.service-card:nth-child(2) .service-icon {
    background: transparent;
}

.service-card:nth-child(3) .service-icon {
    background: var(--gradient-primary);
}

/* تنسيق خاص للبطاقة البديلة */
.service-card-alt {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-alt:hover {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
}

.service-card-alt .service-icon {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.service-link:hover {
    color: var(--primary-light);
    gap: var(--spacing-sm);
}

/* تم دمج قسم من نحن في الأسفل لتجنب التكرار */


.vision {
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.15) 0%, transparent 100%);
    z-index: 1;
}

.vision .container {
    position: relative;
    z-index: 2;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.vision-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.vision-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.vision-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.vision-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.join {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.join-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
}

.join-description {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.95);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
}

/* ==================== التذييل ==================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2rem 0 1rem;
    /* تقليل الحجم الكبير للتذييل */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: var(--spacing-md);
    color: var(--accent-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-right: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== الرسوم المتحركة ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* ==================== التجاوب ==================== */
@media (max-width: 768px) {
    .nav-menu {
        gap: var(--spacing-sm);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .services-grid,
    .vision-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    /* Removed redundant/conflicting header styles */
}

/* ==================== أقسام مجالات الاستخدام القابلة للطي ==================== */
.usage-details {
    margin-top: 1.5rem;
    border-radius: 12px;
    border-right: 4px solid #4caf50;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.usage-details summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
    user-select: none;
}

.usage-details summary::-webkit-details-marker {
    display: none;
}

.usage-details summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: #4caf50;
}

.usage-details[open] summary::after {
    transform: rotate(180deg);
}

.usage-details summary:hover {
    background: rgba(76, 175, 80, 0.15);
}

.usage-details .usage-content {
    padding: 0 1.5rem 1.5rem;
}

.usage-details .usage-content ul {
    color: #1b5e20;
    text-align: start;
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2;
}

.usage-details .usage-content ul li {
    margin-bottom: 0.5rem;
}

.usage-details .usage-content .warning-text {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #81c784;
    color: #c62828;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==================== زر العودة إلى الأعلى ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    /* Changed from --gradient-warm */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2);
    /* Updated shadow color */
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-to-top:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: var(--gradient-secondary);
}

.scroll-to-top:active {
    transform: scale(0.95);
}

.scroll-to-top i {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* تجاوب الزر على الشاشات الصغيرة */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* ==================== شريط تقدم القراءة ====================  */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-warm);
    z-index: 9999;
    transition: width 0.2s ease;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
}

/* ==================== شاشة التحميل ====================  */
/* ==================== شاشة التحميل المتميزة ====================  */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    /* Slate 900 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.page-loader::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(30, 64, 175, 0.15) 0%, transparent 70%);
    animation: loaderBgPulse 4s ease-in-out infinite;
}

@keyframes loaderBgPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-icon::before,
.loader-icon::after {
    content: '';
    position: absolute;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    animation: ringPulse 2s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.loader-icon::after {
    animation-delay: 0.5s;
}

@keyframes ringPulse {
    0% {
        width: 40px;
        height: 40px;
        opacity: 1;
        border-width: 8px;
    }

    100% {
        width: 140px;
        height: 140px;
        opacity: 0;
        border-width: 1px;
    }
}

.icon-diamond {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-light), #2dd4bf);
    transform: rotate(45deg);
    box-shadow: 0 0 40px rgba(13, 148, 136, 0.8);
    animation: diamondSpin 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
    z-index: 5;
    border-radius: 4px;
}

@keyframes diamondSpin {
    0% {
        transform: rotate(45deg) scale(1);
    }

    50% {
        transform: rotate(225deg) scale(1.2);
    }

    100% {
        transform: rotate(405deg) scale(1);
    }
}

.logo-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: finalGlow 4s ease-in-out infinite;
}

@keyframes finalGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.loader-text {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: row;
    /* التأكد من ترتيب الصف */
    direction: ltr;
    /* إجبار الاتجاه من اليسار لليمين للأحرف الإنجليزية */
    gap: 0.2rem;
}

.loader-text span {
    display: inline-block;
    animation: letterAnim 2s infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

@keyframes letterAnim {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
        color: var(--primary-light);
    }
}

.loader-text span:nth-child(1) {
    animation-delay: 0.1s;
}

.loader-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-text span:nth-child(3) {
    animation-delay: 0.3s;
}

.loader-text span:nth-child(4) {
    animation-delay: 0.4s;
}

.loader-text span:nth-child(5) {
    animation-delay: 0.5s;
}

.loader-text span:nth-child(6) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(7) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(8) {
    animation-delay: 0.8s;
}

.loader-text span:nth-child(9) {
    animation-delay: 0.9s;
}

.loader-progress-container {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-light), #60a5fa);
    box-shadow: 0 0 15px var(--primary-light);
    animation: progressFill 2.5s ease-in-out forwards;
}

@keyframes progressFill {
    0% {
        width: 0;
    }

    30% {
        width: 40%;
    }

    60% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

/* ==================== تحسينات إضافية ====================  */
/* تأثير hover محسّن على الصور */
.service-icon img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon img {
    transform: scale(1.08) rotate(2deg);
    filter: brightness(1.1);
}

/* تأثير النبض على الأيقونات */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.vision-icon {
    animation: pulse 3s ease-in-out infinite;
}

/* تأثير التوهج على الأزرار */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* ==================== أزرار نسخ الأرقام ====================  */
.phone-item {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.phone-number {
    cursor: pointer;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: var(--accent-light);
}

.copy-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.copy-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.5);
    background: linear-gradient(135deg, #5fbdff 0%, #20e3ff 100%);
}

.copy-btn:active {
    transform: translateY(0) scale(0.98);
}

.copy-btn i {
    font-size: 0.85rem;
}

/* تأثير النسخ الناجح */
.copy-btn.copied {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* تنبيه النسخ */
.copy-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    animation: slideIn 0.4s ease forwards, slideOut 0.4s ease 7.6s forwards;
    opacity: 0;
}

.copy-notification i {
    font-size: 1.3rem;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* تجاوب على الشاشات الصغيرة */
@media (max-width: 768px) {
    .copy-notification {
        right: 20px;
        left: 20px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .copy-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* ==================== قسم الصناعات ====================  */
.industries {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.industries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(30, 64, 175, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.industries .container {
    position: relative;
    z-index: 2;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.industry-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.industry-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.industry-card:hover::before {
    transform: translateX(100%);
}

.industry-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
    transition: all 0.4s ease;
}

.industry-card:hover .industry-icon {
    transform: rotateY(360deg) scale(1.1);
}

.industry-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.industry-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==================== قسم من نحن المحدث ====================  */
.about-modern {
    background: white;
    padding: 5rem 0;
    position: relative;
}

.about-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(5, 150, 105, 0.03) 100%);
    z-index: 1;
}

.about-modern-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-text-section {
    flex: 1;
}

.about-slider-section {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #f1f5f9;
    height: 450px;
    width: 100%;
}

.about-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
}

/* تم حذف الـ Overlay */

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
    z-index: 1;
    background-color: #eee;
    /* لون خلفية خفيف جداً */
}

.slide.active {
    z-index: 5;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border-right: 4px solid var(--primary-color);
}

.feature-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .about-modern-content {
        flex-direction: column;
        gap: 2rem;
        display: flex !important;
    }

    .about-slider-section {
        display: block !important;
        position: relative !important;
        height: 500px !important;
        /* ارتفاع أكبر لملاءمة الصور الطولية 1080x1920 */
        width: 100% !important;
        order: 2;
        margin-top: 1.5rem;
        background: #f8fafc;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .about-slider,
    .slider-wrapper {
        height: 100% !important;
        width: 100% !important;
        position: relative !important;
    }

    .slide {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.8s ease;
        position: absolute !important;
        top: 0;
        left: 0;
    }

    .slide.active {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 100 !important;
    }

    .about-text-section {
        order: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .industries-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }

    .nav-menu {
        display: flex;
        /* العودة للـ flex داخل القائمة المنسدلة */
    }
}

.industry-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
}

.industry-card {
    padding: 1.5rem 1rem;
}

.about-features {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ==================== قسم نموذج طلب عرض السعر ====================  */
/* ==================== استمارة الطلب المنبثقة (Modal) ====================  */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quote-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 30px;
    position: relative;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.quote-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 2.5rem 3rem 1.5rem;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
}

.modal-header h2 {
    margin-bottom: 0.5rem;
    color: white;
    font-size: 2.2rem;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: #f44336;
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 2rem 3rem 3rem;
}

/* زر فتح الاستمارة */
.open-quote-container {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.open-quote-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.05;
    top: -150px;
    right: -150px;
}

.btn-open-quote {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #0d9488 0%, #0a7a6f 100%);
    color: white;
    border-radius: 60px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
}

.btn-open-quote:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 45px rgba(13, 148, 136, 0.5);
    background: linear-gradient(135deg, #0a7a6f 0%, #0d9488 100%);
}

.btn-open-quote i {
    font-size: 1.8rem;
    animation: bounceHorizontal 2s infinite;
}

@keyframes bounceHorizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }
}

/* استايلات النموذج داخل المودال */
.quote-form-container {
    max-width: 100%;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.3rem;
    border: 2px solid #edeff2;
    border-radius: 15px;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
    background: white;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e40af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1.2rem center;
    padding-right: 3rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.7;
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.btn-submit,
.btn-reset {
    flex: 1;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-reset {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-reset:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-4px);
}

.form-note {
    text-align: center;
    color: #0d9488;
    font-size: 1rem;
    padding: 1.2rem;
    background: #f0fdfa;
    border-radius: 15px;
    border-right: 5px solid #14b8a6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .modal-header {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }

    .btn-open-quote {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
    }
}

/* ==================== زر الدعم الفني في الهيدر ==================== */
.nav-support-btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.nav-support-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
    background: var(--gradient-warm);
}

.nav-support-btn i {
    font-size: 1.1rem;
}

/* تعديل الهيدر ليتناسب مع الزر الإضافي */
@media (max-width: 992px) {
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-support-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .nav-support-btn span {
        display: none;
        /* إخفاء النص في الجوال والاكتفاء بالأيقونة */
    }
}

/* قسم تفاصيل المنتجات والخدمات */
.product-overview {
    background-color: var(--bg-primary);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.overview-header {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
}

.overview-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.overview-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.overview-highlight-box {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.overview-highlight-box:hover {
    transform: translateY(-5px);
}

.highlight-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.highlight-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.highlight-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .overview-title {
        font-size: 2rem;
    }

    .highlight-title {
        font-size: 1.5rem;
    }

    .overview-highlight-box {
        padding: 2rem 1.5rem;
    }
}

/* ==================== قسم معرض الصور ====================  */
.gallery-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.image-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 60px;
}

.image-slider {
    overflow: hidden;
    border-radius: 20px;
}

.slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
}

.slider-slide {
    flex: 0 0 280px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.slider-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-slide:hover img {
    transform: scale(1.1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.3);
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.5);
}

.prev-btn {
    left: 20px;
    /* دائماً على اليسار */
    right: auto;
}

.next-btn {
    right: 20px;
    /* دائماً على اليمين */
    left: auto;
}

/* Fix for Slider Navigation in Arabic (RTL) */
[dir="rtl"] .image-slider-container .prev-btn {
    left: auto;
    right: 20px;
}

[dir="rtl"] .image-slider-container .next-btn {
    right: auto;
    left: 20px;
}

[dir="rtl"] .image-slider-container .prev-btn i,
[dir="rtl"] .image-slider-container .next-btn i {
    transform: rotate(180deg);
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .image-slider-container {
        padding: 0 45px;
    }

    .slider-slide {
        flex: 0 0 260px;
        height: 400px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 3px;
        right: auto;
    }

    .next-btn {
        right: 3px;
        left: auto;
    }

    [dir="rtl"] .image-slider-container .prev-btn {
        left: auto;
        right: 3px;
    }

    [dir="rtl"] .image-slider-container .next-btn {
        right: auto;
        left: 3px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 3rem 0;
    }

    .image-slider-container {
        padding: 0 35px;
        margin: 2rem auto 0;
    }

    .slider-slide {
        flex: 0 0 calc(100vw - 90px);
        max-width: 300px;
        height: 450px;
    }

    .slider-track {
        gap: 1rem;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .prev-btn {
        left: 1px;
        right: auto;
    }

    .next-btn {
        right: 1px;
        left: auto;
    }

    [dir="rtl"] .image-slider-container .prev-btn {
        left: auto;
        right: 1px;
    }

    [dir="rtl"] .image-slider-container .next-btn {
        right: auto;
        left: 1px;
    }

    .slider-indicators {
        margin-top: 1.5rem;
    }

    .indicator-dot {
        width: 10px;
        height: 10px;
    }

    .indicator-dot.active {
        width: 24px;
    }
}

@media (max-width: 390px) {
    .slider-slide {
        flex: 0 0 calc(100vw - 80px);
        max-width: 280px;
        height: 420px;
    }
}

/* ==================== سلايدر معلومات الشركة المطور ==================== */
.company-summary-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.info-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}

.info-slider-container {
    overflow: hidden;
    padding: 20px 0;
    border-radius: 40px;
    direction: inherit;
}

.info-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
}

.info-slide {
    flex: 0 0 100%;
    padding: 0 10px;
}

.info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f1f5f9;
    height: 100%;
    transition: transform 0.3s ease;
}

/* ضمان أن البطاقات تتبع اتجاه اللغة الصحيح لتصحيح الترقيم */
[dir="rtl"] .info-card {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] .info-card {
    direction: ltr;
    text-align: left;
}

.info-card p {
    margin-top: 1rem;
    line-height: 1.8;
}

/* استثناء للأقسام التي تتطلب توسيط */
.info-card .text-center,
.info-card h3 {
    text-align: center !important;
}

.text-center {
    text-align: center !important;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i.main-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: block;
}

.info-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 800;
}

.info-card h3 i {
    font-size: 2.22rem;
    color: #10b981;
}

.info-card p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .info-slider-wrapper {
        padding: 0 10px;
    }

    .info-card {
        padding: 3rem 1.5rem;
    }

    .info-card h3 {
        font-size: 1.8rem;
    }

    .info-card p {
        font-size: 1.1rem;
    }

    .info-slider-wrapper .slider-btn {
        display: none;
    }
}

/* ==================== Expandable Text (Read More) ==================== */
.expandable-text-container {
    position: relative;
}

.expandable-text {
    max-height: 250px;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    position: relative;
}

.expandable-text.collapsed {
    max-height: 250px;
}

.expandable-text.expanded {
    max-height: 2000px;
}

.expandable-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.read-more-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    font-family: inherit;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    background: linear-gradient(135deg, #0a7a6f 0%, #0d9488 100%);
}

.read-more-btn i {
    margin-inline-end: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .expandable-text {
        max-height: 200px;
    }

    .expandable-text.collapsed {
        max-height: 200px;
    }

    .read-more-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}