/* =========================================
   1. المتغيرات العامة والخطوط (Variables & Fonts)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Amiri:wght@400;700&display=swap');

:root {
    /* لوحة الألوان الأساسية */
    --primary-color: #14b8a6; /* فيروزي رئيسي */
    --primary-dark: #0f766e;
    --primary-darker: #0d4e4a;
    --primary-light: #ccfbf1;
    --bg-light: #f0fdfa;
    
    /* ألوان النصوص */
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-light: #99f6e4;
    --white: #ffffff;
}

/* الكلاسات المساعدة للخطوط */
.font-naskh { font-family: 'Noto Naskh Arabic', serif; }
.font-diwani { font-family: 'Noto Nastaliq Urdu', serif; }
.font-amiri { font-family: 'Amiri', serif; }

/* =========================================
   2. الإعدادات الأساسية (Base Reset)
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    font-family: 'Noto Naskh Arabic', serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* إعدادات الحاوية (Container) لتوسيط المحتوى */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-light { color: var(--primary-light); }

/* =========================================
   3. الأزرار (Buttons)
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn svg { width: 34px; height:34px; fill: currentColor; }

.btn-primary {
    background-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(15, 118, 110, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-darker);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: var(--white);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline:hover { background-color: var(--bg-light); }

.btn-white {
    background-color: var(--white);
    color: var(--primary-darker);
}
.btn-white:hover { background-color: var(--bg-light); }

.btn-large {
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 1.1rem;
}

/* =========================================
   4. الشريط العلوي (Navbar)
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-dark);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 150px;
}

.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 100px; height: 100px; border-radius: 50%; }
.logo-text { font-size: 2rem; font-weight: bold; color: var(--primary-darker); margin-top: 5px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
    color: var(--primary-dark);
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:not(.btn):hover { color: var(--primary-color); }

/* إخفاء الروابط في الموبايل */
@media (max-width: 768px) { .nav-links { display: none; } }

/* =========================================
   5. القسم الرئيسي (Hero Section)
========================================= */
.hero-section {
    padding-top: 100px;
    padding-bottom: 0px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-light);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.hero-content { flex: 1; }
.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-light);
    color: var(--primary-darker);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* حل مشكلة تداخل الخط الديواني هنا بدقة */
.hero-title {
    font-size: 2rem;
    color: var(--primary-darker);
    line-height: 1.8; 
    margin-bottom: 30px;
}
.hero-subtitle {
    display: block;
    font-size: 2rem;
    color: var(--primary-dark);
    line-height: normal;
    margin-top: 50px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 2.8;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-buttons.center { justify-content: center; }

/* إعدادات الموبايل للقسم الرئيسي */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.5rem; }
}

/* --- تصميم الهاتف الخاص --- */
.hero-image-area { flex: 1; display: flex; justify-content: center; }
.phone-frame {
    background-color: var(--primary-darker);
    border-radius: 40px;
    padding: 12px;
    border: 8px solid var(--primary-dark);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    position: relative;
    max-width: 320px;
    width: 100%;
}
.notch {
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 25px;
    background-color: var(--primary-dark);
    border-bottom-left-radius: 15px; border-bottom-right-radius: 15px;
}
/* حل مشكلة الصورة لتظهر بالكامل دون قص */
.phone-screen {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    background-color: black;
}

/* الموجة السفلية المائلة */
.wave-bottom {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 0px; z-index: 1;
}
.wave-bottom svg { width: 100%; height: 0%; display: block; }

/* =========================================
   6. قسم المميزات (Features)
========================================= */
.features-section { padding: 40px 0; background-color: var(--white); }

.section-header { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 2.5rem; color: var(--primary-darker); margin-bottom: 80px; line-height: 1.8; }
.divider { width: 150px; height: 4px; background-color: var(--primary-dark); margin: 0 auto; border-radius: 10px; }

/* نظام الشبكة (Grid) للمميزات */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* موبايل */
    gap: 30px;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } } /* تابلت */
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } } /* شاشات كبيرة */

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    border: 2px solid var(--primary-light);
    position: relative;
    transition: all 0.3s ease;
    display: flex; flex-direction: column; height: 100%;
}
.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.1);
}

.feature-icon {
    width: 80px; height: 80px;
    background-color: var(--primary-light); color: var(--primary-dark);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; transition: all 0.3s;
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-card:hover .feature-icon { background-color: var(--primary-dark); color: var(--white); }

.feature-card h3 { font-size: 2rem; color: var(--primary-darker); margin-bottom: 25px; line-height: 1.6; }
.feature-card p { color: var(--text-muted); }

/* زوايا الأرابيسك */
.arabesque-corner { position: absolute; width: 60px; height: 60px; border: 3px solid var(--primary-dark); }
.top-right { top: -10px; right: -10px; border-left: none; border-bottom: none; border-radius: 0 20px 0 0; }
.top-left { top: -10px; left: -10px; border-right: none; border-bottom: none; border-radius: 20px 0 0 0; }
.bottom-right { bottom: -10px; right: -10px; border-left: none; border-top: none; border-radius: 0 0 20px 0; }
.bottom-left { bottom: -10px; left: -10px; border-right: none; border-top: none; border-radius: 0 0 0 20px; }

/* =========================================
   7. الأقسام الأخرى والزخارف
========================================= */
/* البانر الإسلامي */
.banner-section {
    background-color: var(--primary-darker);
    padding: 100px 0;
    position: relative;
}
.banner-title { font-size: 3rem; margin-bottom: 50px; line-height: 1.8; }
.banner-desc { font-size: 1.25rem; color: var(--primary-light); max-width: 800px; margin: 0 auto; line-height: 1.8; }
.divider-dots { width: 100px; height: 4px; background: repeating-linear-gradient(to right, var(--primary-color) 0, var(--primary-color) 15px, transparent 15px, transparent 30px); margin: 30px auto 0; }

/* لقطات الشاشة */
.screenshots-section { padding: 100px 0; background-color: var(--bg-light); }
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}
@media (min-width: 768px) { .screenshots-grid { grid-template-columns: repeat(3, 1fr); } }
.screenshot-card {
    background: var(--white); padding: 15px; border-radius: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.screenshot-card img {
    width: 100%; height: auto; border-radius: 16px; display: block;
}
/* =========================================
   قسم التحميل
========================================= */
.download-section { 
    padding: 100px 0; /* مساحة جيدة من الأعلى والأسفل */
}

.download-box {
    background-color: var(--primary-darker); 
    padding: 60px 40px; 
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(15, 118, 110, 0.5);
}

/* حل مشكلة التداخل في عنوان قسم التحميل */
.download-box h2 {
    font-size: 3.5rem;          /* حجم خط مناسب */
    line-height: 2;             /* الأهم: ارتفاع السطر يمنع تداخل الحروف */
    margin-bottom: 20px;        /* دفع النص الذي أسفله بعيداً */
}

/* ضبط النص الصغير تحت العنوان */
.download-box p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;        /* دفع الأزرار للأسفل */
}
/* قاعدة عامة تمنع تداخل هذا الخط في أي مكان في الموقع */
.font-diwani { 
    font-family: 'Noto Nastaliq Urdu', serif; 
    line-height: 2 !important; 
    padding-bottom: 10px; /* مساحة إضافية لتأمين الحروف السفلية */
}
/* =========================================
   8. التذييل (Footer)
========================================= */
.footer { background-color: #042f2e; padding-top: 60px; color: var(--primary-light); border-top: 4px solid var(--primary-dark); }
.footer-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.footer-logo img { width: 50px; height: 50px; border-radius: 50%; }
.footer-logo h3 { font-size: 1.5rem; }
.footer h4 { font-size: 1.25rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--white); }
.social-icons { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.social-icons a { background-color: var(--primary-dark); padding: 8px 15px; border-radius: 8px; transition: 0.3s; }
.social-icons a:hover { background-color: var(--primary-color); color: var(--white); }
.footer-bottom { text-align: center; padding: 30px 0; border-top: 1px solid var(--primary-dark); }

/* =========================================
   9. الرسوم المتحركة والزخارف الخلفية
========================================= */
.animate-float { animation: float 6s ease-in-out infinite; }
.hover-lift { transition: transform 0.3s ease; }
.hover-lift:hover { transform: translateY(-10px); }
.text-shadow { text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }

/* النقوش الهندسية */
.geometric-pattern {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(15, 118, 110, 0.03) 10px, rgba(15, 118, 110, 0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(15, 118, 110, 0.03) 10px, rgba(15, 118, 110, 0.03) 20px);
}
/* =========================================
   10. تنسيقات الصفحات الداخلية (سياسة الخصوصية)
========================================= */

/* ترويسة الصفحة الداخلية */
.page-header {
    padding-top: 160px;
    padding-bottom: 80px;
    background-color: var(--primary-darker);
    border-bottom: 4px solid var(--primary-color);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.8;
}

/* صندوق المحتوى النصي */
.privacy-content {
    padding: 80px 20px;
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--primary-light);
}

.content-box .intro-text {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--primary-light);
}

.content-box h3 {
    color: var(--primary-darker);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-box ul {
    list-style-type: disc;
    margin-right: 25px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.content-box li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* تعديل للموبايل */
@media (max-width: 768px) {
    .content-box { padding: 30px 20px; }
    .page-header h1 { font-size: 2.5rem; }

}

