/* إعدادات عامة وتطبيق خط كايرو */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }

body {
    background-color: #0b0f19; color: #ffffff; min-height: 100vh;
    /* مسافة من فوق عشان الهيدر الثابت ميغطيش على المحتوى */
    padding-top: 100px; 
    padding-bottom: 50px;
}

/* ================= الهيدر (شريط التنقل) ================= */
.main-header {
    position: fixed; top: 0; right: 0; left: 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px); /* التأثير الزجاجي الفاخر */
    border-bottom: 1px solid rgba(233, 24, 65, 0.2);
    z-index: 1000; padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 90%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

/* اللوجو الدائري */
.logo-area { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.circle-logo {
    width: 55px; height: 55px; border-radius: 50%;
    object-fit: cover; border: 2px solid #E91841;
    box-shadow: 0 0 15px rgba(233, 24, 65, 0.3);
}
.brand-name { font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: 1px;}
.brand-name span { color: #E91841; }

/* قائمة الكمبيوتر */
.desktop-nav a {
    color: #a0aec0; text-decoration: none; margin-right: 25px;
    font-size: 1.1rem; font-weight: 600; transition: 0.3s;
}
.desktop-nav a:hover, .desktop-nav a.active { color: #E91841; }

/* زرار قائمة الموبايل (التوجل) */
.mobile-toggle {
    display: none; background: none; border: none;
    color: #E91841; font-size: 2rem; cursor: pointer; transition: 0.3s;
}

/* قائمة الموبايل الجانبية (Sidebar) */
.mobile-menu {
    position: fixed; top: 0; right: -300px; /* مخفية بره الشاشة يمين */
    width: 280px; height: 100vh; background: #111827;
    border-left: 2px solid #E91841; z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* أنيميشن ناعم جداً */
    padding: 80px 20px 20px; display: flex; flex-direction: column; gap: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}
.mobile-menu.active { right: 0; /* تظهر لما تاخد الكلاس ده */ }
.mobile-menu a {
    color: #fff; text-decoration: none; font-size: 1.3rem; font-weight: 600;
    border-bottom: 1px solid #1f2937; padding-bottom: 15px; transition: 0.3s;
}
.mobile-menu a:hover { color: #E91841; padding-right: 10px; }
.close-menu {
    position: absolute; top: 20px; left: 20px; background: none;
    border: none; color: #E91841; font-size: 2.5rem; cursor: pointer;
}
/* طبقة سودا خفيفة ورا القائمة لما تفتح */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 1000; display: none; opacity: 0; transition: 0.3s;
}
.menu-overlay.active { display: block; opacity: 1; }

/* ================= تنسيقات المحتوى (الكروت والنصوص) ================= */
.main-wrapper { width: 90%; max-width: 1000px; margin: 0 auto; text-align: center; }
.welcome-text h1 { font-size: 2.5rem; color: #E91841; margin-bottom: 10px; }
.welcome-text p { color: #a0aec0; font-size: 1.1rem; margin-bottom: 50px; }

.categories-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.category-card {
    background: #111827; border: 1px solid #1f2937; border-radius: 15px;
    padding: 40px 20px; width: 280px; cursor: pointer; transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.icon-wrapper { font-size: 3rem; color: #E91841; margin-bottom: 20px; transition: transform 0.4s ease; }
.category-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.category-card p { color: #6b7280; font-size: 0.95rem; }

.category-card:hover { transform: translateY(-10px); border-color: #E91841; box-shadow: 0 10px 30px rgba(233, 24, 65, 0.2); }
.category-card:hover .icon-wrapper { transform: scale(1.1); color: #fff; }

.video-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; border: 1px solid #1f2937; }

.fade-in { animation: fadeIn 1s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ================= شاشات الموبايل ================= */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    .welcome-text h1 { font-size: 2rem; }
    .category-card { width: 100%; max-width: 350px; padding: 30px 15px; }
    .nav-container { width: 95%; }
}