/* إعادة تعيين الأنماط الأساسية والخطوط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif; /* يفضل استخدام خط عربي مثل Noto Sans Arabic */
}

:root {
    --primary-color: #6a1b9a; /* لون أرجواني داكن (Purple) */
    --secondary-color: #ba68c8; /* لون أرجواني فاتح */
    --dark-bg: #1e1e2f; /* خلفية داكنة للـ Hero */
    --text-light: #ffffff;
    --text-dark: #333333;
    --card-bg: #f4f4f9;
}

body {
    direction: rtl;
    text-align: right;
    background-color: #ffffff;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================= 1. Header & Navigation ======================= */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li {
    margin-right: 25px;
}

.nav-menu ul li a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu ul li a:hover {
    color: var(--primary-color);
}

.menu-icon {
    font-size: 1.5em;
    cursor: pointer;
    display: none; /* إخفاء الأيقونة في عرض سطح المكتب */
}

/* ======================= 2. Hero Section (مع الصور) ======================= */
.hero-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 100px 0;
}

.hero-main-content { /* الحاوية الجديدة لجمع النص والصور */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 35px auto;
}

.hero-content {
    max-width: 600px; /* تقليل العرض ليترك مساحة للصور */
    text-align: right;
    flex-shrink: 0; /* منع المحتوى من التقلص */
}

.hero-logo {
    width: 120px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.app-links {
    display: flex;
    gap: 15px;
}

.app-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.app-btn i {
    margin-left: 10px;
    font-size: 1.2em;
}

.google-play {
    background-color: #4CAF50;
    color: var(--text-light);
}

.app-store {
    background-color: #007AFF;
    color: var(--text-light);
}

.google-play:hover, .app-store:hover {
    opacity: 0.9;
}

.app-btn.coming-soon {
    /* تطبيق طبقة الشفافية */
    opacity: 0.5; 
    
    /* تغيير مؤشر الفأرة للإشارة إلى أن الزر غير قابل للنقر */
    cursor: not-allowed; 
    
    /* منع أي تفاعلات ظل (Shadow) عند المرور فوقه */
    box-shadow: none; 
}

.app-btn.coming-soon:hover {
    /* منع تغيير الألوان أو التفاعلات عند المرور فوقه */
    opacity: 0.5; /* تثبيت الشفافية */
    background-color: #007AFF; /* تثبيت اللون الأصلي لـ App Store */
}

/* أنماط صور الهواتف (Mockups) */
.image-mockups {
    display: flex;
    position: relative;
    width: 400px; 
    height: 400px; 
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    flex-shrink: 0;
}

.mockup-img {
    position: absolute;
    width: 250px; 
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    object-fit: contain;
}

.mockup-1 {
    transform: translateX(-50px) rotateY(15deg) rotateX(10deg); 
    z-index: 2;
}

.mockup-2 {
    transform: translateX(50px) rotateY(-15deg) rotateX(-10deg); 
    z-index: 1;
    opacity: 0.8;
}

/* ======================= 3. Services Section ======================= */
.services-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--card-bg);
}

.services-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.details-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.details-btn:hover {
    background-color: #5d1587;
}

.service-extra-info {
    display: none; /* إخفاؤه بشكل افتراضي */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
    font-size: 0.9em;
    color: #444;
}

.service-extra-info ul {
    list-style: disc; /* نقاط القائمة */
    padding-right: 20px;
    margin-top: 10px;
}

.service-extra-info ul li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* الكلاس الذي سيضيفه JavaScript لإظهار الكلام */
.service-extra-info.active {
    display: block; /* إظهاره عند إضافة كلاس 'active' */
}

/* ======================= 4. Info Section ======================= */
.info-section {
    padding: 80px 0;
}

.info-section .container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.info-content {
    flex: 1;
}

.info-content h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-right: 4px solid var(--secondary-color);
    padding-right: 15px;
}

.info-content h5 {
    font-size: 26px;
}

.info-content p {
    line-height: 1.7;
    color: #555;
}

.info-content ul {
    list-style: none;
    padding-right: 20px;
}

.info-content ul li {
    margin-bottom: 10px;
    position: relative;
}

.info-content ul li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: -1em;
}

/* ======================= 5. Footer ======================= */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* ======================= Media Queries (للاستجابة) ======================= */

/* الشاشات المتوسطة (الأجهزة اللوحية) */
@media (max-width: 992px) { 
    .hero-main-content {
        flex-direction: column; /* جعل المحتوى والصور تتراص عمودياً */
        text-align: center;
        gap: 20px;
        margin: 0 auto 35px auto;
    }
    .hero-content {
        text-align: center; /* توسيط المحتوى النصي */
    }
    .app-links {
        justify-content: center; /* توسيط أزرار التطبيق */
    }
    .image-mockups {
        width: 100%; /* جعل الحاوية تشغل العرض كاملاً */
        height: 300px; 
        margin-top: 135px;
    }
    .mockup-img {
        width: 200px; /* تصغير حجم الهاتف */
    }
    .mockup-1 {
        transform: translateX(-30px) rotateY(10deg) rotateX(5deg);
    }
    .mockup-2 {
        transform: translateX(30px) rotateY(-10deg) rotateX(-5deg);
    }
}

/* الشاشات الصغيرة (الهواتف) */
@media (max-width: 768px) { 
    
    /* إخفاء قائمة التنقل على الجوال */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .google-play {
        max-width: 30%;
        margin: auto;
    }

    .app-store {
        max-width: 30%;
        margin: auto;
    }

    .nav-menu.active {
        display: flex; /* يتم تفعيله بالـ JS */
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .menu-icon {
        display: block;
    }

    /* إخفاء الصور على الشاشات الصغيرة */
    .image-mockups {
        display: none; 
    }

    /* تعديلات على أقسام المحتوى */
    .hero-section {
        padding: 50px 0;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .app-links {
        flex-direction: column;
        gap: 10px;
    }

    .info-section .container {
        flex-direction: column;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }
}