/* --- 1. الأساسيات --- */
:root {
    --primary-color: #1a4f8b; 
    --accent-color: #3b82f6;     
    --text-dark: #111827;        
    --text-gray: #6b7280;        
    --font-main: 'Poppins', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

.main-landing-page {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    /* غيرنا اللون لدرجة سماوي ثلجي باهت جداً تريح العين */
    background-color: #f8fbff; 
    /* خففنا لون النقاط وخلينا المسافة بينهم أكبر شوي (40px) عشان الشكل يطلع أرقى */
    background-image: radial-gradient(#d1d5db 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    overflow-x: hidden;
}

/* --- 2. Navbar & Buttons --- */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 12px 5%; 
    background: rgba(220, 235, 250, 0.4) !important; 
    backdrop-filter: blur(20px) saturate(150%); 
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(26, 79, 139, 0.08); 
}

.logo-img { 
    width: 60px; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-gray); 
    margin: 0 15px; 
    font-size: 0.9rem; 
    font-weight: 500; 
    transition: 0.3s; 
}

.nav-links a:hover { 
    color: var(--primary-color); 
}

.btn { 
    padding: 12px 24px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-block; 
    transition: 0.3s; 
}

.btn-primary { 
    background-color: var(--primary-color); 
    color: #fff; 
}

.btn-outline { 
    border: 1px solid var(--text-gray); 
    color: var(--text-dark); 
    margin-right: 10px; 
}

/* --- 3. Hero Section --- */
.hero {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 40px 8%; 
    min-height: 60vh; 
    gap: 40px;
}

.hero-text { 
    flex: 1.2; 
    text-align: left; 
}

.hero-text h1 { 
    font-size: 3rem; 
    line-height: 1.2; 
    margin-bottom: 20px; 
    color: var(--primary-color); 
}

.hero-text .subtitle { 
    font-weight: 600; 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
    color: var(--text-dark); 
}

.hero-text .description { 
    color: var(--text-gray); 
    margin-bottom: 30px; 
    max-width: 500px; 
}

.btn-cta { 
    background-color: var(--primary-color); 
    color: #fff; 
    padding: 16px 32px; 
    border-radius: 50px; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
}
.hero-image { 
    flex: 0.8; 
    display: flex; 
    justify-content: center;
    position: relative; /* ضروري عشان التشعبات تثبت تحت الروبوت */
}

.hero-image {

    flex: 0.8;

    display: flex;

    justify-content: center;

}



.hero-image img {

    width: 450px;

    height: auto;

    animation: float 3.5s ease-in-out infinite;

}

/* --- 4. توزيع الكروت --- */
.steps-container, .detailed-steps {
    display: flex !important; 
    flex-direction: row !important; 
    flex-wrap: nowrap !important;   
    justify-content: center !important; 
    align-items: stretch !important;
    padding: 60px 8% !important; 
    gap: 25px !important;
    width: 100% !important;
}

.step-card, .detail-item {
    flex: 1; 
    padding: 35px 25px; 
    border-radius: 20px;
    background: #ffffff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9; 
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* 2. أوامر التأخير (يجب أن تكون خارج الأقواس السابقة) */
.step-card:nth-child(1), .detail-item:nth-child(1) { 
    transition-delay: 0.1s; 
}

.step-card:nth-child(2), .detail-item:nth-child(2) { 
    transition-delay: 0.4s; 
}

.step-card:nth-child(3), .detail-item:nth-child(3) { 
    transition-delay: 0.7s; 
}

/* 3. كود الأيقونات (مستقل أيضاً) */
.icon-box, .detail-item i {
    width: 70px; 
    height: 70px; 
    background-color: #f0f7ff;
    border-radius: 18px; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    margin: 0 auto 20px; 
    color: var(--primary-color); 
    font-size: 1.8rem;
}
/* --- 5. الأقسام --- */
.content-section { 
    padding: 100px 10%; 
    text-align: center; 
}

.content-section h2 { 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    margin-bottom: 25px; 
}

#about p { 
    font-size: 1.15rem; 
    line-height: 1.8; 
    max-width: 850px; 
    margin: 0 auto; 
    color: var(--text-gray); 
}

#how-it-works { 
    background: #f9fbff; 
    border-radius: 40px; 
    margin: 20px; 
}

#companies { 
    background: #eef7ff; /* لون سماوي باهت جداً ومنعش */
    color: #1a4f8b;      /* تغيير اللون الأساسي للنص للأزرق الغامق */
    padding: 100px 10%; 
    border-radius: 50px; /* يعطيه زوايا منحنية فخمة */
    margin: 20px;
    text-align: center;
}

/* تعديل ألوان النصوص داخل القسم عشان توضح على الخلفية الفاتحة */
#companies h2 { 
    color: #1a4f8b !important; 
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#companies p { 
    color: #4a5568 !important; /* رمادي غامق للنصوص الطويلة */
    font-size: 1.1rem;
    line-height: 1.8;
}
/* --- 6. الفوتر --- */
.simple-bottom-bar { 
    padding: 25px 0; 
    border-top: 1px solid #eee; 
    background: #fff; 
}

.simple-bottom-bar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.footer-links { 
    display: flex; 
    gap: 20px; 
}

.footer-links a { 
    text-decoration: none; 
    color: #6b7280; 
    font-size: 13px; 
    font-weight: 500; 
    transition: 0.3s; 
}

.footer-links a:hover { 
    color: var(--primary-color); 
}

/* --- 7. الحركات والـ Hover --- */
@keyframes float { 
    0%, 100% { transform: translateY(0px); } 
    50% { transform: translateY(-15px); } 
}

@keyframes entranceEffect {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* نخفي الأقسام ونخليها مستعدة للصعود */
#about, #how-it-works, .steps-container, .hero, .content-section {
    opacity: 0;
    transform: translateY(60px); /* نازلة لتحت 60 بكسل */
    transition: all 0.9s ease-out; /* حركة ناعمة */
}

/* الكلاس اللي بيخليها تظهر (بيضيفه الجافاسكريبت بعد شوي) */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* تتابع ظهور الكروت */
.step-card:nth-child(1) { animation-delay: 0.2s; }
.step-card:nth-child(2) { animation-delay: 0.4s; }
.step-card:nth-child(3) { animation-delay: 0.6s; }

/* تأثير الـ Hover للكروت */
.step-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(26, 79, 139, 0.15); 
    border-color: var(--accent-color); 
}

.step-card:hover .icon-box { 
    background-color: var(--primary-color); 
    color: #ffffff; 
    transform: scale(1.1) rotate(5deg); 
}

/* تأثير اللمعة */
.step-card::after {
    content: ""; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.step-card:hover::after { 
    left: 100%; 
}

/* للموبايل */
@media (max-width: 992px) {
    .hero, .steps-container, .detailed-steps { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .hero-text { 
        text-align: center; 
    }
    
    .hero-image img { 
        width: 300px; 
    }
}
/* الأقسام تكون مخفية في البداية */
.content-section, .steps-container, .hero {
    opacity: 0;
    transform: translateY(50px); /* نازلة لتحت شوي */
    transition: all 0.8s ease-out; /* مدة الحركة نعومتها */
}

/* الكلاس اللي بيضيفه الجافاسكريبت أول ما تنزلين بالماوس */
.show-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.highlight {
    color: #2c5282; /* لون أزرق احترافي يناسب DeepSkills Boost */
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* حركة اختيارية: خط خفيف تحت الكلمة */
.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    background: rgba(44, 82, 130, 0.1);
    bottom: 0;
    left: 0;
    z-index: -1;
}
/* حاوية الأيقونات: نزيد المسافة العلوية */
.about-features {
    display: flex;
    justify-content: center;
    gap: 80px; /* نزيد المسافة بين الأيقونات عشان الزحمة */
    margin-top: 60px; /* نبعدها أكثر عن النص */
}

/* الأيقونة نفسها: نكبرها ونخلي لونها هادئ */
.feature-item i {
    font-size: 3.5rem; /* تكبير الأيقونة */
    color: #2c5282; 
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* حركة بسيطة عند مرور الماوس تزيد التفاعل */
.feature-item i:hover {
    transform: scale(1.1);
    color: #4299e1; /* تفتيح اللون قليلاً عند التأشير */
}
/* تنسيق العناوين بتدرج لوني فخم */
.content-section h2 {
    font-size: 3rem; /* كبرنا الخط شوي عشان يوضح التدرج */
    font-weight: 800;
    background: linear-gradient(90deg, #1a4f8b 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text; /* هذي الحركة اللي تخلي اللون داخل الخط */
    -webkit-text-fill-color: transparent; /* تخلي خلفية الخط شفافة عشان يبان التدرج */
    background-clip: text;
    display: inline-block; /* ضروري عشان التدرج يضبط على قد الكلمة */
    margin-bottom: 30px;
    letter-spacing: -1px; /* يعطي طابع تصميم حديث */
}
