/* استيراد خط Cairo من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

/* إعادة تعيين الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* تصميم الجسم الرئيسي */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: #2c3e50;
    background: linear-gradient(135deg, #e8f5e8 0%, #e0f2f7 100%);
    direction: rtl;
    text-align: right;
}

/* الحاوي الرئيسي */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* تصميم الرأس */
header {
    background: linear-gradient(135deg, #26a69a 0%, #00796b 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

header h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

header p {
    font-size: 1.3em;
    font-weight: 300;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* تصميم الأقسام */
section {
    background: white;
    margin: 30px 0;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #26a69a, #00796b);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* تصميم العناوين */
h2 {
    color: #00796b;
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #26a69a;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: #4db6ac;
}

h3 {
    color: #26a69a;
    font-size: 1.5em;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

/* تصميم الفقرات */
p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #34495e;
}

/* تصميم القوائم */
ul, ol {
    margin: 20px 0;
    padding-right: 30px;
}

li {
    margin-bottom: 12px;
    font-size: 1.05em;
    line-height: 1.7;
}

li strong {
    color: #00796b;
    font-weight: 600;
}

/* تصميم الروابط */
a {
    color: #26a69a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #00796b;
    text-decoration: underline;
}

a[download] {
    display: inline-block;
    background: linear-gradient(135deg, #26a69a, #00796b);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 166, 154, 0.3);
}

a[download]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
    color: white;
    text-decoration: none;
}

/* تصميم الأيقونات */
.icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* تصميم التذييل */
footer {
    background: linear-gradient(135deg, #26a69a 0%, #00796b 100%);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

/* تصميم متجاوب للأجهزة المحمولة */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    section {
        padding: 25px;
        margin: 20px 0;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    ul, ol {
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 0;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    header p {
        font-size: 1em;
    }
    
    section {
        padding: 20px;
        margin: 15px 0;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.3em;
    }
}

/* تأثيرات إضافية للتفاعل */
.highlight-box {
    background: linear-gradient(135deg, #e8f5e8, #e0f2f7);
    border: 2px solid #26a69a;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.highlight-box::before {
    content: '💡';
    position: absolute;
    top: -10px;
    right: 20px;
    background: white;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 1.2em;
}

/* تحسينات إضافية للوصولية */
:focus {
    outline: 3px solid #26a69a;
    outline-offset: 2px;
}

/* تحسين مظهر التمرير */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #26a69a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00796b;
}



/* تصميم الأزرار التفاعلية */
.action-btn {
    display: inline-block;
    background: linear-gradient(135deg, #26a69a, #00796b);
    color: white !important;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin: 5px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 166, 154, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
    color: white !important;
    text-decoration: none;
}

