/* تصميم الصفحة الرئيسية الحديث */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* تنسيق عام */
body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #4338ca 0%, #3b82f6 100%);
    background-attachment: fixed;
    color: var(--dark-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* الشعار والعنوان */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    border: 5px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
    background-color: white;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-lg);
}

.site-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 15px auto 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* البطاقات الرئيسية */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.card-text {
    color: var(--gray-500);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* الأزرار */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.25);
}

.btn-secondary:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* قسم الميزات */
.features-section {
    margin-top: 80px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.section-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.feature-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* تذييل الصفحة */
.footer {
    margin-top: 80px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

/* تصميم متجاوب */
@media (max-width: 992px) {
    .site-title {
        font-size: 2rem;
    }
    
    .site-description {
        font-size: 1.1rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .homepage-container {
        padding: 30px 15px;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .site-description {
        font-size: 1rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-section {
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
