/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --primary-color: #ff3c3c;
    --secondary-color: #ffd700;
    --dark-color: #222;
    --light-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo h1, .logo h2, .logo h3 {
    font-size: 1.8rem;
}

.logo span {
    color: var(--secondary-color);
}

/* تحسين تباين الشعار في الهيدر */
header .logo h1 {
    color: #ffffff; /* تأكيد اللون الأبيض */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* إضافة ظل لزيادة التباين */
}

header .logo span {
    color: #ffd700; /* اللون الأصفر الذهبي */
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

/* تحسين تباين الروابط في الهيدر */
nav a {
    color: #ffffff; /* تأكيد اللون الأبيض */
    text-decoration: none;
    font-weight: 700; /* زيادة سمك الخط */
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: #ffd700; /* اللون الأصفر الذهبي */
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* تحسين تباين زر التحميل */
.download-btn {
    background-color: var(--secondary-color);
    color: #333333; /* لون داكن لضمان التباين */
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 2px solid rgba(0, 0, 0, 0.1); /* إضافة حدود لزيادة الوضوح */
}

.download-btn:hover {
    background-color: #ffed4e; /* لون أصفر فاتح أكثر */
    color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1100;
    padding: 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.mobile-nav a:hover, .mobile-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1611605698323-b1e99cfd37ea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1074&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-download-section {
    max-width: 500px;
    margin: 40px auto;
}

/* تحسين تباين وتنسيق زر تحميل Hero */
.hero-download-btn {
    display: flex;
    background-color: var(--secondary-color);
    color: #333333;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.hero-download-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.2);
}

.hero-download-btn i {
    font-size: 2.5rem;
    color: #333333;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.btn-text .main-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222222;
}

.btn-text .sub-text {
    font-size: 1rem;
    color: #444444;
    opacity: 0.9;
}

/* إضافة تحسينات للتباين */
.hero-download-btn:focus {
    outline: 3px solid rgba(255, 60, 60, 0.5);
    outline-offset: 2px;
}

.download-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat h2, .stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* ظل داكن لزيادة التباين */
}

.stat p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #222222; /* لون داكن لزيادة التباين */
    text-shadow: none; /* إزالة الظل إذا كان موجوداً */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.features-download {
    text-align: center;
    margin-top: 50px;
}

/* تحسين تباين زر "حمّل SnapTube الآن مجاناً" */
.secondary-download-btn {
    display: inline-block;
    background-color: #d32f2f; /* أحمر داكن لتحسين التباين */
    color: #ffffff !important; /* أبيض مع !important */
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 800 !important; /* زيادة سمك الخط */
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3) !important; /* حدود بيضاء */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important; /* ظل للنص */
}

.secondary-download-btn:hover {
    background-color: #b71c1c; /* أحمر أغمق عند التحويم */
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.4);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Platforms Section */
.platforms {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.platform-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    filter: brightness(0.9); /* زيادة التباين */
}

/* تحسين تباين العناوين في قسم المنصات بعد تغيير h4 إلى h3 */
.platform-card h3 {
    font-size: 1.3rem; /* زيادة حجم الخط قليلاً */
    color: #222222 !important; /* لون داكن جداً */
    font-weight: 700 !important; /* زيادة سمك الخط */
    margin-bottom: 10px;
}

.platform-card p {
    font-size: 0.9rem;
    color: #444444 !important; /* لون أغمق */
    font-weight: 600 !important; /* زيادة سمك الخط */
    margin-top: 5px;
}

.platforms-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Steps Section */
.steps {
    padding: 100px 0;
    background-color: var(--white);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 30px;
}

.step-number {
    background-color: var(--primary-color);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 25px;
    border: 5px solid var(--white);
    box-shadow: 0 0 0 5px var(--primary-color);
}

.step-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: var(--text-color);
}

.step p {
    color: var(--text-light);
    line-height: 1.7;
}

.steps-download {
    text-align: center;
    margin-top: 50px;
}

.steps-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(255, 60, 60, 0.3);
}

.steps-download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 60, 60, 0.4);
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: var(--white);
}

.download-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.download-text {
    flex: 1;
    min-width: 300px;
}

/* إضافة تباين أفضل للنص في قسم التحميل */
.download-text h2 {
    color: #ffffff; /* تأكيد اللون الأبيض */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* إضافة ظل */
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download-description {
    color: #ffffff !important; /* أبيض نقي */
    font-weight: 700 !important; /* زيادة سمك الخط */
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95 !important; /* زيادة الوضوح */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important; /* إضافة ظل */
}

.version-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.version-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
}

.version-card i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.version-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.version-size, .version-android {
    font-size: 1.1rem;
}

.download-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--secondary-color);
}

.main-download-area {
    margin: 40px 0;
}

.main-download-btn {
    display: block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.main-download-btn:hover {
    background-color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.download-btn-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-btn-content i {
    font-size: 3rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.btn-text .main-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-text .sub-text {
    font-size: 1rem;
    opacity: 0.8;
}

.download-stats {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
}

.security-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.security-info i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 3px;
}

.download-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 550px;
    background-color: var(--dark-color);
    border-radius: 30px;
    position: relative;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-color: #111;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-label {
    margin-top: 20px;
    text-align: center;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* تحسين تباين النص في الـ FAQ */
.faq-download {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #ff3c3c 0%, #e63939 100%); /* ألوان أكثر تبايناً */
    border-radius: var(--border-radius);
    color: var(--white);
}

.faq-download p {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.faq-download-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 20px;
    font-size: 1.1rem;
}

.faq-download-btn:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-description {
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-info {
    list-style: none;
}

.footer-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ccc;
}

.footer-info i {
    color: var(--secondary-color);
}

.footer-download {
    margin: 20px 0;
}

/* تحسين تباين زر "تحميل للأندرويد" في الفوتر */
.footer-download-btn {
    display: inline-block;
    background-color: #d32f2f !important; /* أحمر داكن */
    color: #ffffff !important; /* أبيض */
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 800 !important; /* زيادة سمك الخط */
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3) !important; /* حدود بيضاء */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important; /* ظل للنص */
}

.footer-download-btn:hover {
    background-color: #b71c1c !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-seo {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background-color: var(--white);
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-30px);
    transition: transform 0.3s;
    position: relative;
}

.modal-overlay.active .contact-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.contact-modal h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2rem;
}

.contact-modal p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.contact-modal form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.contact-modal input,
.contact-modal textarea {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.btn-primary:hover {
    background-color: #ff1c1c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 60, 60, 0.3);
}

/* Success Message */
.success-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4CAF50;
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3000;
    transform: translateX(150%);
    transition: transform 0.5s;
}

.success-message.active {
    transform: translateX(0);
}

.success-message i {
    font-size: 1.5rem;
}

/* Floating Download Button */
.floating-download-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 60, 60, 0.4);
    z-index: 999;
    transition: var(--transition);
    display: none;
}

.floating-download-btn:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 15px 40px rgba(255, 60, 60, 0.6);
}

.floating-download-btn::after {
    content: 'تحميل';
    position: absolute;
    top: -40px;
    right: 50%;
    transform: translateX(50%);
    background: var(--dark-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-download-btn:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 20px;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .download-content {
        flex-direction: column;
        text-align: center;
    }
    
    .download-btn-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
    }
    
    .download-btn {
        display: none; /* إخفاء زر التحميل في الهيدر على الهاتف */
    }
    
    /* إصلاح زر تحميل Hero للهاتف */
    .hero-download-btn {
        padding: 15px 20px;
        margin: 20px 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .hero-download-btn i {
        font-size: 2rem;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .hero-download-section .btn-text {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .hero-download-section .btn-text .main-text {
        font-size: 1.2rem;
        font-weight: 700;
        color: #333333;
        margin-bottom: 5px;
    }
    
    .hero-download-section .btn-text .sub-text {
        font-size: 0.85rem;
        color: #555555;
        opacity: 0.9;
    }
    
    .hero-download-section {
        margin: 30px 15px;
        max-width: 100%;
    }
    
    .download-note {
        font-size: 0.9rem;
        padding: 0 15px;
        text-align: center;
    }
    
    .hero {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .features, .platforms, .steps, .download-section, .faq {
        padding: 70px 0;
    }
    
    .step {
        min-width: 100%;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .contact-modal {
        padding: 25px;
    }
    
    .btn {
        padding: 12px 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .version-info {
        grid-template-columns: 1fr;
    }
    
    .floating-download-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* إصلاح للهيدر على الهاتف */
    .header-content {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    /* تحسين ظهور زر التحميل في القائمة المتنقلة */
    .mobile-nav {
        padding: 0 10px;
    }
    
    .mobile-nav li:last-child {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-nav li:last-child a {
        background: linear-gradient(135deg, var(--secondary-color) 0%, #ffed4e 100%);
        color: #333333;
        padding: 15px;
        font-size: 1.1rem;
        font-weight: 700;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .mobile-nav li:last-child a i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 8px 0;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 8px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-download-btn {
        padding: 12px 15px;
        margin: 15px 10px;
    }
    
    .hero-download-btn i {
        font-size: 1.8rem;
    }
    
    .hero-download-section .btn-text .main-text {
        font-size: 1.1rem;
    }
    
    .hero-download-section .btn-text .sub-text {
        font-size: 0.75rem;
    }
    
    .hero-stats {
        gap: 20px;
        margin-top: 40px;
    }
    
    .stat h2, .stat h3 {
        font-size: 1.8rem;
    }
    
    .platform-card h3 {
        font-size: 1.1rem;
    }
    
    .platform-card p {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) {
    .floating-download-btn {
        display: flex;
    }
}

/* =========================================== */
/* حل مشكلة التباين في الهاتف - الإصلاحات المطلوبة */
/* =========================================== */

/* تحسين تباين جميع النصوص الفرعية في جميع أحجام الشاشات */
.hero-download-btn .sub-text,
.main-download-btn .sub-text,
.download-btn .sub-text,
.secondary-download-btn .sub-text,
.steps-download-btn .sub-text,
.faq-download-btn .sub-text,
.footer-download-btn .sub-text {
    color: #333333 !important;
    font-weight: 600 !important;
    opacity: 0.95 !important;
    display: block !important;
    margin-top: 5px !important;
}

/* حل مشكلة التباين للنصوص الفرعية - للهاتف فقط */
@media (max-width: 768px) {
    /* إصلاح النصوص الفرعية في زر Hero */
    .hero-download-btn .btn-text .sub-text,
    .main-download-btn .btn-text .sub-text {
        color: #222222 !important;
        font-weight: 700 !important;
        opacity: 1 !important;
        background-color: rgba(255, 255, 255, 0.8) !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        margin-top: 5px !important;
        font-size: 0.9rem !important;
        text-shadow: none !important;
    }
    
    /* إصلاح تباين النصوص في قسم التحميل الرئيسي للهاتف */
    .download-section {
        background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
    }
    
    .download-description,
    .download-section .version-card,
    .download-section .info-item,
    .download-section .download-stats p,
    .download-section .security-info p {
        color: #ffffff !important;
        opacity: 0.95 !important;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* تحسين تباين زر التحميل الرئيسي في الهاتف */
    .main-download-btn {
        background-color: #ffd700 !important;
        border: 2px solid rgba(0, 0, 0, 0.2) !important;
    }
    
    .main-download-btn .btn-text .main-text {
        color: #222222 !important;
        font-weight: 800 !important;
    }
    
    .main-download-btn .btn-text .sub-text {
        color: #333333 !important;
        font-weight: 700 !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        margin-top: 5px !important;
    }
    
    /* إضافة خلفية للنصوص الفرعية لزيادة التباين */
    .hero-download-btn .sub-text,
    .main-download-btn .sub-text {
        background-color: rgba(255, 255, 255, 0.85) !important;
        padding: 5px 10px !important;
        border-radius: 5px !important;
        margin-top: 8px !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        font-weight: 700 !important;
        color: #222222 !important;
        font-size: 0.85rem !important;
    }
    
    /* تحسين تباين العناصر الأخرى في الهاتف */
    .hero-stats .stat p,
    .platform-card p,
    .step p,
    .faq-answer p {
        color: #444444 !important;
        font-weight: 500 !important;
        opacity: 0.95 !important;
    }
    
    /* تحسين تباين النصوص الفرعية في الهاتف بشكل خاص */
    .hero-download-btn .btn-text .sub-text,
    .main-download-btn .btn-text .sub-text {
        color: #000000 !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 700 !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
        margin-top: 8px !important;
        font-size: 0.9rem !important;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* تحسين تباين العناصر الأخرى */
    .download-note,
    .platforms-note p,
    .download-info span {
        color: #333333 !important;
        font-weight: 600 !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        display: inline-block !important;
        margin: 5px 0 !important;
    }
    
    /* إصلاح محدد للنصوص الفرعية في الهاتف */
    .hero-download-section .btn-text .sub-text {
        color: #222222 !important;
        background-color: rgba(255, 255, 255, 0.85) !important;
        font-weight: 700 !important;
        padding: 6px 8px !important;
        border-radius: 4px !important;
        margin-top: 8px !important;
        opacity: 1 !important;
        font-size: 0.85rem !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
}

/* إصلاح محدد للأزرار التي لديها مشكلة تباين */
.btn-text .sub-text {
    color: #333333 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}