/* --- المتغيرات والأساسيات (تم التعديل لألوان اللوجو الأزرق) --- */
:root {
    --bg-color: #ffffff;
    --main-text: #1d1d1f; 
    --sub-text: #86868b;
    --accent-color: #2A6DF5; 
    --accent-dark: #1E4BB5;  
    --card-bg: #f5f5f7;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--main-text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* المؤثرات الحركية */
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translate(0px, 0px) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(0.9); } 100% { transform: translate(0px, 0px) scale(1); } }
.animate-text { animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.3s; } .delay-3 { animation-delay: 0.5s; }

/* --- الهيدر (القائمة العلوية) --- */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.logo {
    font-size: 26px; font-weight: 900; color: var(--accent-color);
    text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo::before {
    content: ''; display: inline-block; width: 12px; height: 12px;
    background: var(--accent-color); border-radius: 50%;
    box-shadow: 0 0 10px rgba(42, 109, 245, 0.5); 
}

/* قائمة الكمبيوتر */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 35px; 
}

.desktop-menu a {
    text-decoration: none;
    color: var(--main-text);
    font-size: 17px;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.desktop-menu a:not(.desktop-login-btn)::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--accent-color); transition: var(--transition);
}

.desktop-menu a:not(.desktop-login-btn):hover::after,
.desktop-menu a.active:not(.desktop-login-btn)::after {
    width: 100%; 
}

.desktop-menu a:hover, .desktop-menu a.active {
    color: var(--accent-color);
}

.desktop-login-btn {
    border: 2px solid var(--accent-color);
    color: var(--accent-color) !important;
    padding: 8px 24px;
    border-radius: 30px;
}

.desktop-login-btn:hover, .desktop-login-btn.active {
    background: var(--accent-color);
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(42, 109, 245, 0.3);
    transform: translateY(-2px);
}

/* أزرار الموبايل (مخفية في الكمبيوتر) */
.nav-actions { display: none; align-items: center; gap: 15px; } 

.nav-login { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background-color: var(--card-bg); color: var(--main-text); transition: var(--transition); text-decoration: none; }
.nav-login svg { width: 18px; height: 18px; }
.nav-login:hover { background-color: var(--accent-color); color: #fff; transform: translateY(-2px); }

.menu-btn { cursor: pointer; display: flex; flex-direction: column; gap: 5px; z-index: 1001; position: relative; width: 26px; height: 18px; justify-content: center; }
.menu-btn span { display: block; width: 100%; height: 2px; background-color: var(--main-text); border-radius: 2px; transition: var(--transition); position: absolute; }
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3) { bottom: 0; }
.menu-btn.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }


/* --- القائمة الجانبية (للموبايل) - تم الإصلاح الجذري للمربعات البشعة --- */
.side-menu {
    position: fixed; top: 80px; right: -100%; width: 280px; height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.05); display: flex; flex-direction: column;
    padding: 20px 25px; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; border-right: 3px solid var(--accent-color);
    overflow-y: auto; 
}
.side-menu.open { right: 0; }

.side-menu a { 
    display: flex; align-items: center; gap: 15px; text-decoration: none; 
    color: var(--main-text); font-size: 16px; font-weight: 700; 
    padding: 15px 5px; margin-bottom: 5px; border-bottom: 1px solid rgba(0,0,0,0.05); 
    background: transparent !important; /* إجبار إزالة أي خلفية ملونة */
    transition: var(--transition); 
}

/* تصغير الأيقونات إجبارياً في القائمة الجانبية */
.side-menu a svg { 
    width: 22px !important; height: 22px !important; 
    min-width: 22px; flex-shrink: 0; transition: var(--transition); 
    background: transparent !important;
}

.side-menu a:hover { color: var(--accent-color); padding-right: 10px; }
.side-menu a.active { color: var(--accent-color); background: transparent !important; border-bottom: 2px solid var(--accent-color); }
.side-menu a.login-btn { margin-top: 15px; margin-bottom: 20px; color: var(--accent-color); font-weight: 700; border: 2px solid var(--accent-color); border-radius: 12px; padding: 12px 15px; justify-content: center; border-bottom: 2px solid var(--accent-color); }
.side-menu a.login-btn:hover { background: var(--accent-color) !important; color: #fff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(42, 109, 245, 0.3); padding-right: 15px; }


/* --- القسم الرئيسي (Hero) --- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px 10% 50px; overflow: hidden; }
.blob-1, .blob-2 { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -2; animation: float 15s infinite ease-in-out; }
.blob-1 { top: 15%; right: 10%; width: 400px; height: 400px; background: rgba(42, 109, 245, 0.08); }
.blob-2 { bottom: 10%; left: 5%; width: 500px; height: 500px; background: rgba(30, 75, 181, 0.05); animation-delay: -5s; }

.hero h1 { font-size: 70px; font-weight: 900; line-height: 1.2; letter-spacing: -2px; background: linear-gradient(135deg, #1d1d1f 0%, #434344 50%, var(--accent-color) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 30px; text-shadow: 0 20px 40px rgba(42, 109, 245, 0.1); }
.hero h1 span { color: var(--accent-color); -webkit-text-fill-color: var(--accent-color); }
.hero p { font-size: 22px; color: var(--sub-text); max-width: 800px; margin-bottom: 50px; line-height: 1.6; font-weight: 400; }
.btn-premium { background: var(--main-text); color: #fff; text-decoration: none; padding: 18px 40px; border-radius: 40px; font-weight: 700; font-size: 18px; transition: var(--transition); display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.btn-premium:hover { transform: translateY(-5px); background: var(--accent-color); box-shadow: 0 20px 40px rgba(42, 109, 245, 0.4); }
.btn-premium::after { content: '←'; transition: var(--transition); margin-right: 5px; }
.btn-premium:hover::after { transform: translateX(-8px); }

/* --- العناوين والمميزات --- */
.section-title { text-align: center; font-size: 42px; font-weight: 800; margin-bottom: 60px; }
.section-title span { color: var(--accent-color); }
.features { padding: 100px 10%; background-color: var(--bg-color); position: relative; z-index: 2; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feat-card { background: var(--card-bg); border-radius: 20px; padding: 40px; transition: var(--transition); border: 1px solid rgba(0,0,0,0.03); position: relative; overflow: hidden; }
.feat-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); background: #fff; }
.feat-icon { font-size: 35px; margin-bottom: 25px; display: inline-flex; color: var(--accent-color); background: rgba(42, 109, 245, 0.1); width: 70px; height: 70px; align-items: center; justify-content: center; border-radius: 18px; }
.feat-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 15px; }
.feat-card p { color: var(--sub-text); line-height: 1.7; font-weight: 400; }

/* --- قسم الباقات --- */
.pricing { padding: 100px 10%; background-color: var(--card-bg); border-top: 1px solid rgba(0,0,0,0.03); }
.pricing-grid { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.pricing-card { background: #fff; border-radius: 24px; padding: 40px 30px; width: 320px; text-align: center; transition: var(--transition); border: 1px solid rgba(0,0,0,0.05); position: relative; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 15px; }
.pricing-card .price { font-size: 48px; font-weight: 900; color: var(--main-text); margin-bottom: 20px; letter-spacing: -1px; }
.pricing-card .price span { font-size: 16px; color: var(--sub-text); font-weight: 500; }
.pricing-card ul { list-style: none; margin-bottom: 40px; text-align: right; }
.pricing-card ul li { margin-bottom: 15px; color: var(--sub-text); position: relative; padding-right: 30px; font-size: 15px; }
.pricing-card ul li::before { content: '✓'; color: var(--accent-color); font-weight: bold; position: absolute; right: 0; font-size: 18px; }
.btn-outline { display: block; width: 100%; padding: 14px; border-radius: 30px; border: 2px solid var(--main-text); color: var(--main-text); text-decoration: none; font-weight: 700; transition: var(--transition); font-size: 16px; }
.btn-outline:hover { background: var(--main-text); color: #fff; }
.pricing-card.popular { background: var(--main-text); color: #fff; transform: scale(1.05); box-shadow: 0 20px 50px rgba(42, 109, 245, 0.15); border: none; }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }
.pricing-card.popular h3, .pricing-card.popular .price { color: #fff; }
.pricing-card.popular .price span { color: rgba(255,255,255,0.6); }
.pricing-card.popular ul li { color: rgba(255,255,255,0.8); }
.pricing-card.popular .btn-outline { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.pricing-card.popular .btn-outline:hover { background: var(--accent-dark); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--accent-color), var(--accent-dark)); color: #fff; padding: 5px 20px; border-radius: 20px; font-size: 13px; font-weight: 700; box-shadow: 0 5px 15px rgba(42, 109, 245, 0.3); }

/* --- الفوتر --- */
.footer { background: #fff; padding: 60px 10% 30px; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 24px; font-weight: 900; color: var(--accent-color); text-decoration: none; margin-bottom: 20px; display: inline-block; }
.footer-text { color: var(--sub-text); line-height: 1.8; font-size: 15px; }
.footer-links h4 { font-size: 17px; margin-bottom: 20px; color: var(--main-text); }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: var(--sub-text); text-decoration: none; transition: var(--transition); font-size: 15px; }
.footer-links ul li a:hover { color: var(--accent-color); padding-right: 8px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.05); color: var(--sub-text); font-size: 13px; }

/* =========================================
   التجاوب (الموبايل والتابلت) 
========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 55px; }
    .hero p { font-size: 20px; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-10px); }
    .desktop-menu { gap: 20px; } 
}

@media (max-width: 768px) {
    .navbar { height: 70px; padding: 0 5%; }
    
    .desktop-menu { display: none; } 
    .nav-actions { display: flex; } 
    
    .side-menu { top: 70px; height: calc(100vh - 70px); width: 280px; padding: 15px; }
    .hero { padding: 110px 5% 50px; }
    .hero h1 { font-size: 40px; letter-spacing: -1px; }
    .hero p { font-size: 17px; }
    .section-title { font-size: 32px; }
    .feat-card, .pricing-card { padding: 25px; width: 100%; }
    .blob-1 { width: 200px; height: 200px; }
    .blob-2 { width: 250px; height: 250px; }
    .pricing-card.popular { margin-top: 20px; }
}