/* إعدادات عامة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    /* الخلفية الأسطورية للأهرامات مع طبقة عتمة دافئة لتوضيح المحتوى */
    background: linear-gradient(to bottom, rgba(7, 9, 14, 0.75), rgba(7, 9, 14, 0.92)),
        url('bg-pyramids.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #f8fafc;
    font-family: 'Cairo', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    selection-background-color: #f59e0b;
    selection-color: #07090e;
}

/* تصميم النافبار الفاجر والمتجاوب مع الهواتف */
nav {
    background: rgba(11, 15, 25, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

/* تنسيق حاوية النافبار للهواتف والشاشات الكبيرة */
/* تنسيق النافبار المتجاوب مع الهواتف والشاشات الكبيرة */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* تفعيل التمرير الأفقي الناعم للأزرار في الموبايل إذا زادت عن المساحة */
@media (max-width: 1024px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 14px;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
        justify-content: flex-start;
    }

    .nav-links::-webkit-scrollbar {
        height: 3px;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: rgba(245, 158, 11, 0.4);
        border-radius: 10px;
    }
}

/* بطاقات زجاجية فخمة للمحتوى */
.glass-card {
    background: rgba(14, 22, 38, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* تأثيرات حركية خفيفة للتبويبات */
.tab-content {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تخصيص السكرول بار العام */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #07090e;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}