/* تنسيقات عامة للجسم والخطوط */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #2a004f; /* لون الخلفية الأرجواني */
    color: #fff; /* لون النص الأساسي أبيض */
    overflow-x: hidden; /* منع السكرول الأفقي */
    line-height: 1.6;
    text-align: left;
    direction: ltr; /* اتجاه النص من اليسار لليمين */
}

/* Container الرئيسي للخلفية والصورة */
.container {
    width: 100%;
    background-image: url('images/xena_background.jpg'); /* صورة الخلفية */
    background-size: cover; /* تغطية المساحة بالكامل */
    background-position: center; /* توسيط الصورة */
    background-repeat: no-repeat; /* عدم تكرار الصورة */
    min-height: 100vh; /* على الأقل ارتفاع الشاشة بالكامل */
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box; /* لضمان إن البادينج مش هيزود العرض الكلي */
}

/* لوجو الموقع */
.logo {
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
    margin-bottom: 20px;
    padding-top: 20px;
    text-align: center; /* توسيط اللوجو */
    width: 100%; /* عشان ياخد العرض بالكامل ويتوسط */
    box-sizing: border-box; /* عشان البادينج مايسببش مشاكل في العرض */
}

/* القسم الرئيسي (Hero Section) */
.hero-section {
    flex-grow: 1; /* يسمح للقسم بأخذ المساحة المتاحة */
    display: flex;
    flex-direction: row; /* افتراضياً، العناصر بجانب بعضها على الشاشات الكبيرة */
    align-items: center; /* محاذاة العناصر عموديا في المنتصف */
    justify-content: space-around; /* توزيع المساحة حول العناصر */
    padding: 20px 60px 50px 60px; /* بادينج للقسم */
    gap: 50px; /* مسافة بين العناصر */
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px); /* لضمان إن الفوتر يبقى في الأسفل */
    box-sizing: border-box;
}

/* محتوى قسم الهيرو (النص والأزرار) */
.hero-content {
    max-width: 550px;
    text-align: left;
    z-index: 10;
    flex-shrink: 0;
}

.hero-content h1 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.6em;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 50px;
}

/* حاوية أزرار التحميل */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* زر التحميل الفردي - التنسيقات الموحدة لضمان التناسق الكامل */
.download-btn {
    background-color: #282828;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center; /* توسيط المحتوى عمودياً (أيقونة + نص) */
    justify-content: flex-start; /* محاذاة المحتوى لليسار */
    gap: 10px;
    text-align: left;
    font-size: 0.9em;
    font-weight: 500;
    min-width: 170px; /* ضمان عرض موحد */
    min-height: 60px; /* ضمان ارتفاع موحد للأزرار ذات السطرين */
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    /* مسافة موحدة بين الأيقونة والنص لجميع الأزرار */
    margin-right: 0; /* تأكيد عدم وجود مارجن إضافي هنا */
}

.download-btn div {
    display: flex;
    flex-direction: column; /* ليكون النص على سطرين */
    justify-content: center; /* توسيط النص داخل الـ div */
    line-height: 1.2;
    flex-grow: 1; /* السماح للـ div بأخذ المساحة المتاحة لدفع الأيقونة لليسار */
    /* ضمان أن النص بالكامل داخل الـ div يكون محاذى لليسار */
    text-align: left;
}

.download-btn span {
    font-size: 1.2em;
    font-weight: 700;
    display: block;
    text-transform: uppercase; /* لضمان أن كل أسماء المتاجر بحروف كبيرة */
    white-space: nowrap; /* لمنع الكلمة من الانقسام إذا كان العرض ضيقاً جداً */
}

/* التنسيق الخاص بزر APK Download أصبح الآن مثل باقي الأزرار تماماً */
/* تم إزالة جميع التخصيصات الخاصة بـ .download-btn.apk-download التي كانت تجعله مختلفًا */
.download-btn.apk-download {
    /* لا توجد تنسيقات خاصة هنا، سيتطابق مع .download-btn */
}
.download-btn.apk-download div {
    /* لا توجد تنسيقات خاصة هنا، سيتطابق مع .download-btn div */
}
.download-btn.apk-download span {
    /* لا توجد تنسيقات خاصة هنا، سيتطابق مع .download-btn span */
}
.download-btn.apk-download img {
    /* لا توجد تنسيقات خاصة هنا، سيتطابق مع .download-btn img */
}


.download-btn:hover {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

/* ------------------------------------------- */
/* الموبايل Mockup (الهاتف) */
/* ------------------------------------------- */

.mobile-mockup {
    position: relative;
    width: 20vw;
    max-width: 280px;
    aspect-ratio: 0.5;
    border-radius: 40px;
    background-color: #000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 10px rgba(255,255,255,0.1);
    overflow: hidden;
    flex-shrink: 0;
    padding: 8px;
    box-sizing: border-box;
    margin-left: auto;
}

.swiper-container {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background-color: #000;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.swiper-slide .slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* عناصر الزينة الإضافية على اليمين (النقط فقط الآن) */
.decor-elements {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 20;
    right: 3vw;
}

/* تنسيقات الـ Pagination Dots (النقط العمودية) */
.swiper-pagination {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: auto !important;
    height: auto !important;
    margin-top: 0;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    width: 6px !important;
    height: 6px !important;
    margin: 0 !important;
    width: 0.5vw !important;
    height: 0.5vw !important;
    max-width: 6px !important;
    max-height: 6px !important;
}

.swiper-pagination-bullet-active {
    background-color: #8a2be2 !important;
}

/* الفوتر */
.main-footer {
    padding: 20px 60px;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95em;
    transition: color 0.3s ease-in-out;
}

.footer-links a:hover {
    color: #8a2be2;
}

.footer-links .separator {
    color: #ccc;
    font-size: 0.95em;
}

.copyright {
    margin-top: 15px;
    font-size: 0.85em;
    color: #aaa;
}

/* ------------------------------------------- */
/* Media Queries for Responsive Design */
/* ------------------------------------------- */

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .logo {
        font-size: 2em;
        margin-bottom: 15px;
        padding-top: 10px;
    }
    .hero-content h1 {
        font-size: 2.5em;
        line-height: 1.2;
    }
    .hero-content p {
        font-size: 1.3em;
    }

    .download-buttons {
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .download-btn {
        min-width: 150px;
        padding: 8px 15px;
        font-size: 0.8em;
        gap: 8px;
        width: 85%;
        max-width: 280px;
        justify-content: center;
        text-align: center; /* توسيط النص داخل الزر على الشاشات الصغيرة */
        min-height: 55px; /* تعديل الارتفاع لضمان التناسق على الموبايل */
    }
    .download-btn img {
        width: 25px;
        height: 25px;
    }
    .download-btn div {
        /* هنا يجب أن تبقى flex-direction: column افتراضية من القاعدة العامة */
        align-items: center; /* توسيط المحتوى الأفقي داخل الـ div */
        justify-content: center; /* توسيط المحتوى العمودي داخل الـ div (للنص) */
        text-align: center; /* توسيط النص داخل الـ div على الشاشات الصغيرة */
    }
    .download-btn span {
        font-size: 1.1em;
    }

    .mobile-mockup {
        width: 45vw;
        max-width: 250px;
        padding: 6px;
        margin: 0 auto;
        margin-bottom: 20px;
        order: -1;
    }

    .decor-elements {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        z-index: 20;
    }

    .swiper-pagination {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: auto !important;
        height: auto !important;
        z-index: 10;
        margin-top: 0;
        padding: 10px 0;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .swiper-pagination-bullet {
        width: 6px !important;
        height: 6px !important;
    }

    .main-footer {
        padding: 15px 20px;
    }
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    .footer-links .separator {
        display: none;
    }
    .footer-links a {
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 20px 15px;
        gap: 20px;
    }
    .hero-content h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    .hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .download-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 0;
        margin-bottom: 25px;
    }
    .download-btn {
        width: 85%;
        max-width: 280px;
        padding: 10px 15px;
        font-size: 0.9em;
        gap: 10px;
        justify-content: center;
        text-align: center; /* توسيط النص داخل الزر على الشاشات الصغيرة جداً */
        min-height: 50px; /* تعديل الارتفاع أكثر للشاشات الأصغر */
    }
    .download-btn img {
        width: 28px;
        height: 28px;
    }
    .download-btn div {
        /* هنا يجب أن تبقى flex-direction: column افتراضية من القاعدة العامة */
        align-items: center; /* توسيط المحتوى الأفقي داخل الـ div */
        justify-content: center; /* توسيط المحتوى العمودي داخل الـ div (للنص) */
        text-align: center; /* توسيط النص داخل الـ div على الشاشات الأصغر جداً */
    }
    .download-btn span {
        font-size: 1.1em;
    }

    .mobile-mockup {
        width: 70vw;
        max-width: 220px;
        padding: 4px;
        margin: 0 auto 30px auto;
        order: -1;
    }
    .swiper-container {
        border-radius: 26px;
    }
    .decor-elements {
        display: none;
    }
}