@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Noto+Kufi+Arabic:wght@100..900&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* create colors variables */
:root {
    --primary-color: #4da6bb;
    --secondary-color: #638cfe;
    --text-color: #333;
    --text-color-transparent-gray: #b9b5b5b6;
    --background-color: #f9f9ff;
    --footer-color: #4da6bb;
}
/* --- Global Styles (تم التعديل) --- */
body {
    margin: 0;
    font-family: 'Cairo', 'Tajawal', 'Noto Kufi Arabic', sans-serif;
    background-color: #f9f9ff;
    color: #333;
    text-align: center;
    padding-bottom: 70px; /* أضف هذا السطر لترك مساحة للفوتر */
}

/* --- Header --- */
header {
    width: 100%;
    background-color: var(--primary-color);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    position: relative; /* مهم لوضع زر تبديل اللغة absolute بالنسبة له */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    height: 45px;
    /* change the colored logo to white no details*/
    filter: brightness(0) invert(1) /* this will make the logo white */;
    transition: filter 0.3s ease;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
    /* let the text little bit down */
    margin-top: 10px;
}

.tagline {
    margin: 15px 0 0 0;
    font-size: 0.8rem;
    color: #e0e0e0;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Cairo', sans-serif;
}

/* --- Language Switcher Styles (New) --- */
.language-switcher {
    position: absolute;
    top: 20px;
    z-index: 100;
    display: flex;
    gap: 5px;
}

/* الموقع الافتراضي للعربية (RTL) - يكون في اليسار */
html[dir="rtl"] .language-switcher {
    left: 15px;
}

/* الموقع عند التبديل إلى الإنجليزية (LTR) - يكون في اليمين */
html[dir="ltr"] .language-switcher {
    right: 15px;
    left: auto;
}

.language-switcher button {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    /* تقليل الحشوة لجعل الزر أصغر حجماً */
    padding: 3px 8px; 
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
    /* تقليل حجم الخط ليتناسب مع الزر */
    font-size: 14px; 
    font-weight: bold;
    line-height: 1;
    color: white; 
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    font-family: 'Cairo', 'Tajawal', 'Noto Kufi Arabic', sans-serif; 
}

.language-switcher button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* تنسيق للغة النشطة */
.language-switcher .active-lang {
    border-color: #fff;
    transform: scale(1.1);
}

/* --- Main Content --- */
main {
    max-width: 550px;
    width: 100%;
    padding: 20px;
    margin: 50px auto 0 auto;
    background-color: white;
    border-radius: 10px;
}

.illustration-container {
    padding: 20px;
    margin-bottom: 20px;
}

.main-image {
    max-width: 40%;
    height: auto;
    border-radius: 10px;
}

/* --- Text & Button --- */
.text-container h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-family: 'Cairo', sans-serif;
    text-align: center;
}

.download-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Cairo', sans-serif;
}

.download-button:hover {
    background-color: var(--secondary-color);
}
.version-info{
    margin-top: 15px;
    font-size: 1rem;
    color: #138b0fa4;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Cairo', sans-serif;
    text-align: center;
}
.contact-us {
    margin-top: 30px;
    font-size: 1.1rem;
    color: var(--text-color-transparent-gray);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Cairo', sans-serif;
}
/* social-media icons */
.social-media {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
}
.social-media a {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-media a:hover {
    color: var(--secondary-color);
}
/* social-media images */
.social-media img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}
/* --- Footer --- */
footer {
    width: 100%;
    background-color: var(--footer-color);
    text-align: center;
    color: white;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
}
/* --- Responsive Design --- */
@media (max-width: 600px) {
    .site-title {
        font-size: 1.5rem;
    }
    .logo {
        height: 35px;
    }
    .text-container h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    main {
        margin-top: 30px;
    }
    .social-media {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    }
    .contact-us {
        margin-top: 15px;
    }
    /* تعديل موقع مبدل اللغة على الشاشات الصغيرة */
    .language-switcher {
        top: 10px;
    }
    html[dir="rtl"] .language-switcher {
        left: 10px;
    }
    html[dir="ltr"] .language-switcher {
        right: 10px;
    }
}