/* ================= المتغيرات العصبية للتصميم ================= */
:root {
    --primary-dark: #1A237E;
    --primary-light: #3949AB;
    --secondary-blue: #0066FF;
    --accent-orange: #FF9800;
    --bg-main: #F4F7FE;
    --white: #FFFFFF;
    --text-dark: #2D3748;
    --text-gray: #718096;
    --card-shadow: 0 20px 40px rgba(26, 35, 126, 0.08);
    --hover-shadow: 0 30px 60px rgba(0, 102, 255, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
    font-size: 2.8rem; color: var(--primary-dark); font-weight: 900; margin-bottom: 10px; position: relative; display: inline-block;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: -10px; right: 50%; transform: translateX(50%); width: 60px; height: 4px; background: var(--secondary-blue); border-radius: 2px;
}
.section-title p { color: var(--text-gray); font-size: 1.2rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--secondary-blue), var(--primary-dark)); color: var(--white); box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0, 102, 255, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: var(--white); backdrop-filter: blur(5px); }
.btn-secondary:hover { background: var(--white); color: var(--primary-dark); }
.pulse-btn { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 102, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}

/* ================= الهيدر ================= */
#main-header {
    background-color: var(--primary-dark); padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 999; transition: var(--transition); box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
#main-header.scrolled { padding: 10px 0; background-color: rgba(26, 35, 126, 0.98); backdrop-filter: blur(10px); }
#main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 1.1rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a::after { content: ''; position: absolute; right: 0; bottom: -5px; width: 0; height: 3px; background-color: var(--accent-orange); transition: var(--transition); border-radius: 2px; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.btn-nav-download { background: var(--accent-orange); color: white; padding: 8px 24px; border-radius: 30px; font-weight: bold; font-size: 1rem; }
.btn-nav-download:hover { background: #FFB300; transform: scale(1.05); }

/* زر الموبايل و القائمة الجانبية */
.mobile-menu-btn { display: none; cursor: pointer; }
.mobile-nav-overlay {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--primary-dark);
    z-index: 1000; padding: 80px 20px 30px; transition: 0.4s ease-in-out; box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; gap: 20px;
}
.mobile-nav-overlay.active { right: 0; }
.close-menu-btn { position: absolute; top: 20px; right: 20px; cursor: pointer; }
.mobile-link { color: white; font-size: 1.2rem; font-weight: 700; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ================= القسم الرئيسي (Hero) ================= */
.hero-section {
    position: relative; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    min-height: 100vh; display: flex; align-items: center; padding-top: 100px; padding-bottom: 150px; overflow: hidden;
}
.floating-shape { position: absolute; border-radius: 50%; background: linear-gradient(135deg, rgba(0, 102, 255, 0.4), rgba(255, 152, 0, 0.2)); filter: blur(60px); z-index: 1; animation: floatShape 10s infinite alternate ease-in-out; }
.shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: 100px; left: -50px; animation-delay: -5s; }
@keyframes floatShape { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.1); } }

.hero-content { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; width: 100%; gap: 40px; }
.hero-text { flex: 1; color: var(--white); max-width: 650px; }
.badge { display: inline-block; background: rgba(255, 152, 0, 0.2); color: var(--accent-orange); padding: 8px 16px; border-radius: 30px; font-weight: 700; margin-bottom: 20px; border: 1px solid rgba(255, 152, 0, 0.3); }
.hero-text h1 { font-size: 3.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero-text h1 span { color: var(--accent-orange); }
.hero-text p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; }

.hero-image-placeholder { flex: 1; display: flex; justify-content: center; align-items: center; }
.glowing-logo { width: 350px; filter: drop-shadow(0 0 30px rgba(255,255,255,0.3)); animation: floatLogo 4s infinite ease-in-out; }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.wave-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 2; }

/* ================= قسم من نحن ================= */
.about-section { padding: 100px 0; background-color: var(--bg-main); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.glass-card {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px; padding: 40px 30px; box-shadow: var(--card-shadow); transition: var(--transition);
}
.glass-card:hover { transform: translateY(-10px); box-shadow: var(--hover-shadow); }

/* المربعات التي كانت فارغة أصبحت الآن تعمل بشكل ممتاز */
.icon-wrapper {
    width: 70px; height: 70px; background: linear-gradient(135deg, var(--secondary-blue), var(--primary-dark));
    color: white; border-radius: 20px; display: flex; justify-content: center; align-items: center;
    margin-bottom: 20px; box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}
.about-card h3 { color: var(--primary-dark); font-size: 1.8rem; margin-bottom: 15px; }
.custom-list { list-style: none; }
.custom-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-gray); }
.custom-list li span { color: var(--secondary-blue); font-weight: bold; }

/* ================= قسم المميزات ================= */
.features-section { padding: 100px 0; background-color: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.feature-item {
    background: var(--white); border: 1px solid #F0F2F5; border-radius: 24px; padding: 30px 20px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: var(--transition); cursor: default;
}
.feature-item:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(26, 35, 126, 0.1); border-color: var(--secondary-blue); }
.icon-box {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px auto; display: flex; justify-content: center; align-items: center; transition: var(--transition);
}
.feature-item:hover .icon-box { transform: scale(1.1) rotate(5deg); }
.feature-item h3 { color: var(--primary-dark); font-size: 1.3rem; margin-bottom: 10px; font-weight: 800; }
.feature-item p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.5; }

/* ================= قسم التحميل و التواصل ================= */
.cta-section { padding: 100px 0; background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="%231A237E" stroke-width="2" fill="none" opacity="0.05"/></svg>') var(--bg-main); }
.cta-box { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); border-radius: 40px; padding: 80px 40px; text-align: center; color: white; position: relative; overflow: hidden; }
.cta-box h2 { font-size: 3rem; margin-bottom: 20px; }
.cta-box p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px auto; opacity: 0.9; }
.coming-soon-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 15px 40px; border-radius: 50px; font-size: 1.5rem; font-weight: bold; border: 2px dashed rgba(255,255,255,0.5); backdrop-filter: blur(5px); }

.contact-section { padding: 100px 0; background-color: var(--white); }
.contact-cards { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.contact-card { background: var(--bg-main); padding: 40px; border-radius: 30px; text-align: center; width: 100%; max-width: 350px; transition: var(--transition); border: 1px solid transparent; }
.contact-card:hover { background: var(--white); box-shadow: var(--hover-shadow); transform: translateY(-5px); border-color: var(--secondary-blue); }
.contact-icon { width: 70px; height: 70px; background: rgba(0, 102, 255, 0.1); color: var(--secondary-blue); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 20px auto; transition: var(--transition); }
.contact-icon.whatsapp { color: #25D366; background: rgba(37, 211, 102, 0.1); }
.contact-card:hover .contact-icon { background: var(--secondary-blue); color: white; }
.contact-card:hover .contact-icon.whatsapp { background: #25D366; color: white; }
.contact-card h3 { color: var(--primary-dark); margin-bottom: 10px; }
.contact-card p { color: var(--text-gray); font-weight: 700; font-size: 1.2rem; }

footer { background: #0D1340; color: rgba(255,255,255,0.7); padding: 40px 0 20px 0; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; }
.footer-logo img { height: 60px; margin-bottom: 10px; opacity: 0.8; }
.copyright { margin-top: 30px; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; width: 100%; }

/* ================= الفوتر وتنسيق السوشيال ميديا ================= */
footer { background: #0D1340; color: rgba(255,255,255,0.7); padding: 50px 0 20px 0; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; }
.footer-logo img { height: 60px; margin-bottom: 10px; opacity: 0.8; }

/* السوشيال ميديا */
.social-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}
.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.social-icon.facebook:hover {
    background: #1877F2; /* لون فيسبوك */
}
.social-icon.instagram:hover {
    background: #E1306C; /* لون انستجرام */
}

.copyright { margin-top: 20px; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; width: 100%; }


/* ================= إصلاحات الموبايل (Responsive) ================= */
@media (max-width: 992px) {
    /* إصلاح جذري لتداخل الواجهة الرئيسية في الجوال */
    .hero-section {
        min-height: auto; /* إلغاء الارتفاع الإجباري لتفادي القص */
        padding-top: 120px;
        padding-bottom: 100px; /* مسافة كافية للموجة السفلية */
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text h1 { font-size: 2.8rem; }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn { width: 100%; max-width: 300px; }
    
    /* تصغير الشعار وإعطائه مساحة من الأزرار والموجة */
    .glowing-logo {
        width: 180px; /* تصغير حجم الشعار للموبايل */
        margin-top: 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links, .btn-nav-download { display: none; }
    .mobile-menu-btn { display: block; }
    
    .section-title h2 { font-size: 2.2rem; }
    .about-card, .cta-box { padding: 30px 20px; }
}