:root {
    --bg-dark: #020512;
    --text-main: #ffffff;
    --text-muted: #a3adc2;
    --primary-blue: #1852f5;
    --primary-hover: #2665ff;
    --gradient-text: linear-gradient(180deg, #ffffff 0%, #aab7d4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* التمرير الناعم */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- الخلفية والإضاءة --- */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}
.glow-top-right {
    top: -20%; right: -10%; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(24, 82, 245, 0.15) 0%, rgba(24, 82, 245, 0) 70%);
}
.glow-bottom-right {
    bottom: -30%; right: 10%; width: 1000px; height: 1000px;
    background: radial-gradient(circle, rgba(17, 54, 235, 0.25) 0%, rgba(2, 5, 18, 0) 70%);
}
.services-glow-right {
    top: 100vh; right: -20%; width: 1200px; height: 1200px;
    background: radial-gradient(circle, rgba(14, 60, 255, 0.2) 0%, rgba(2, 5, 18, 0) 60%);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* --- الهيدر والقائمة (Sticky) --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s;
}
/* تأثير عند النزول */
.navbar.scrolled {
    background: rgba(2, 5, 18, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 28px; height: 28px; }
.logo-icon .circle { background-color: #ffffff; border-radius: 50%; width: 100%; height: 100%; }
.logo-text { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.5px; }
.logo-accent { color: #4b84ff; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--primary-blue);
    box-shadow: 0 0 10px var(--primary-blue);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-contact {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2665ff 100%);
    color: #ffffff; text-decoration: none; padding: 0.75rem 1.5rem;
    border-radius: 50px; font-size: 0.9rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 82, 245, 0.3);
}
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 82, 245, 0.5);
}

/* --- مسافات الأقسام لتناسب الهيدر الثابت --- */
.section-padding {
    padding-top: 100px;
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* --- القسم الأول: Accueil --- */
.hero-section {
    display: flex; align-items: center; justify-content: space-between;
}
.hero-content { flex: 1; max-width: 650px; padding-right: 2rem; }
.badge {
    display: inline-block; background: rgba(38, 101, 255, 0.15);
    color: #7b9df5; padding: 0.4rem 1rem; border-radius: 100px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 2rem;
    border: 1px solid rgba(123, 157, 245, 0.1);
}
.hero-title {
    font-size: 4.5rem; line-height: 1.1; font-weight: 600;
    margin-bottom: 1.5rem; background: var(--gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}
.hero-description {
    font-size: 1.1rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 3rem;
}
.hero-actions { display: flex; gap: 1.5rem; }
.btn {
    padding: 1rem 2rem; border-radius: 12px; font-size: 1rem;
    font-weight: 500; text-decoration: none; transition: all 0.3s ease;
}
.btn-primary {
    background: linear-gradient(135deg, #246bfd 0%, #1145eb 100%);
    color: white; box-shadow: 0 10px 25px rgba(24, 82, 245, 0.4); border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(24, 82, 245, 0.5); }
.btn-secondary {
    background-color: transparent; color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px);
}
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); }

/* تأثير الكرات (Spheres) */
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.sphere-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; position: relative; }
.sphere {
    width: 250px; height: 250px; border-radius: 50%; position: relative;
    background: radial-gradient(110% 110% at 30% 30%, #3a75ff 0%, #0d38b8 45%, #020a2e 100%);
    box-shadow: inset -5px -5px 15px rgba(255, 255, 255, 0.3), inset 5px 5px 25px rgba(255, 255, 255, 0.7), inset 15px 15px 40px rgba(255, 255, 255, 0.4), inset -25px -25px 50px rgba(0, 0, 0, 0.9), 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 60px rgba(24, 82, 245, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4); transform-style: preserve-3d; animation: float 6s ease-in-out infinite;
}
.sphere::before {
    content: ''; position: absolute; top: 6%; left: 6%; width: 88%; height: 88%;
    border-radius: 50%; box-shadow: inset 8px 20px 20px rgba(255, 255, 255, 0.6); z-index: 2;
}
.sphere-inner-glow {
    position: absolute; top: 25%; left: 25%; width: 30%; height: 30%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%); filter: blur(8px);
}
.sphere-1 { animation-delay: 0s; } .sphere-2 { animation-delay: -1.5s; } .sphere-3 { animation-delay: -3s; } .sphere-4 { animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* --- العناوين المشتركة للأقسام --- */
.page-header { margin-bottom: 4rem; max-width: 800px; }
.page-title {
    font-size: 3.5rem; line-height: 1.15; font-weight: 600; margin-bottom: 1.25rem;
    background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px;
}
.page-subtitle { font-size: 1.15rem; color: var(--text-muted); font-weight: 400; line-height: 1.6; }

/* --- القسم الثاني: Services --- */
.badge-services {
    background: linear-gradient(90deg, rgba(24, 82, 245, 0.2) 0%, rgba(24, 82, 245, 0.05) 100%);
    border: 1px solid rgba(24, 82, 245, 0.3); color: #8bb1ff; font-size: 0.8rem;
    padding: 6px 12px; border-radius: 20px; display: inline-block; margin-bottom: 1rem; text-transform: uppercase;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
    background: rgba(10, 15, 35, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; padding: 2.5rem 2rem; display: flex; gap: 1.5rem;
    backdrop-filter: blur(12px); transition: all 0.3s ease; cursor: pointer;
}
.service-card:hover {
    transform: translateY(-8px); border-color: rgba(24, 82, 245, 0.5);
    box-shadow: 0 15px 35px rgba(10, 20, 50, 0.8), 0 0 20px rgba(24, 82, 245, 0.15); background: rgba(12, 18, 45, 0.8);
}
.service-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(24, 82, 245, 0.2), rgba(10, 20, 60, 0.8));
    border: 1px solid rgba(24, 82, 245, 0.4); box-shadow: inset 0 0 10px rgba(24, 82, 245, 0.5), 0 0 15px rgba(24, 82, 245, 0.2);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-text { color: #ffffff; font-weight: 700; font-size: 0.9rem; text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
.service-content h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: #ffffff; }
.service-content p { font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); }

/* --- القسم الثالث: Réalisations --- */
.badge-realisations {
    display: inline-block; background: rgba(38, 101, 255, 0.15); color: #7b9df5;
    padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.5rem; border: 1px solid rgba(123, 157, 245, 0.15);
}
.realisations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.realisation-card {
    background: rgba(8, 14, 36, 0.65); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; padding: 2rem; display: flex; gap: 1.5rem;
    backdrop-filter: blur(16px); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; position: relative; overflow: hidden;
}
.realisation-card:hover {
    transform: translateY(-12px); border-color: rgba(24, 82, 245, 0.4);
    box-shadow: 0 22px 40px rgba(2, 5, 18, 0.8), 0 0 30px rgba(24, 82, 245, 0.12);
}
.card-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-blue { background: radial-gradient(circle at 30% 30%, rgba(24, 82, 245, 0.25), rgba(5, 12, 44, 0.9)); border: 1.5px solid rgba(24, 82, 245, 0.5); color: #4b84ff; }
.icon-purple { background: radial-gradient(circle at 30% 30%, rgba(138, 43, 226, 0.25), rgba(5, 12, 44, 0.9)); border: 1.5px solid rgba(138, 43, 226, 0.5); color: #a855f7; }
.icon-text-custom { font-size: 0.8rem; font-weight: 700; }
.card-content { display: flex; flex-direction: column; width: 100%; }
.card-content h3 { font-size: 1.25rem; font-weight: 600; color: #ffffff; margin-bottom: 0.5rem; }
.card-desc { font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); margin-bottom: 1rem; }
.card-link { color: #4b84ff; text-decoration: none; font-size: 0.9rem; font-weight: 500; margin-bottom: 1.25rem; align-self: flex-start; }
.card-link:hover { color: #7b9df5; text-decoration: underline; }
.card-tag { align-self: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: #a3adc2; padding: 0.4rem 0.8rem; border-radius: 30px; font-size: 0.8rem; }

/* تعديل حجم اللوغوات باش يركبو وسط الدائرة */
.card-icon {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 150%;
}

/* =========================================
   📌 SECTION DOMAINES COUVERTS
   ========================================= */
.domaines-page {
    position: relative;
    overflow: hidden;
}

/* الضوء الأزرق في الخلفية على اليمين */
.glow-bg-right {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.2) 0%, transparent 70%);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

/* محاذاة العناوين لليسار */
.header-left {
    text-align: left;
    max-width: 600px;
    margin-left: 0;
    z-index: 1;
    position: relative;
}

.badge-domaines {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 112, 243, 0.15);
    color: #4da3ff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.domaines-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    max-width: 1000px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.domaine-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px 8px 8px;
    border-radius: 40px;
    border: 1px solid;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(5px);
}

.d-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.d-text {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 20px;
}

.d-icon {
    display: flex;
    align-items: center;
}

/* الأزرار المتاحة */
.domaine-pill.active {
    border-color: #0055ff;
    color: #ffffff;
}

.domaine-pill.active .d-num {
    background-color: rgba(0, 85, 255, 0.15);
    color: #4da3ff;
    border: 1px solid #0055ff;
}

.domaine-pill.active:hover {
    background-color: rgba(0, 85, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 85, 255, 0.2);
}

/* الأزرار المقفلة */
.domaine-pill.locked {
    border-color: #2a3143;
    color: #7a8296;
    cursor: not-allowed;
}

.domaine-pill.locked .d-num {
    background-color: #161b26;
    color: #7a8296;
    border: 1px solid #2a3143;
}

.domaine-pill.locked .d-icon {
    color: #5b6275;
}

/* =========================================
   📌 SECTION MÉTHODOLOGIE (NEW)
   ========================================= */
.methodologie-page {
    position: relative;
    overflow: hidden;
}

/* تأثير الإضاءة البنفسجية في الخلفية */
.glow-bg-right-purple {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.badge-methodologie {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(138, 43, 226, 0.12);
    color: #c084fc;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(138, 43, 226, 0.25);
}

.timeline-container {
    position: relative;
    margin-top: 60px;
    padding: 20px 0;
}

/* الخط الأفقي الرابط في الشاشات الكبيرة */
.timeline-line {
    position: absolute;
    top: 55px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, rgba(24, 82, 245, 0.05) 0%, rgba(24, 82, 245, 0.6) 50%, rgba(24, 82, 245, 0.05) 100%);
    z-index: 1;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    position: relative;
    z-index: 2;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* غلاف الأرقام العلوية */
.step-number-wrapper {
    width: 32px;
    height: 32px;
    background: #020512;
    border: 2px solid rgba(24, 82, 245, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 0 10px rgba(24, 82, 245, 0.2);
    transition: all 0.3s ease;
}

/* الخط العمودي الصغير الرابط بين الرقم والـ Icon */
.step-number-wrapper::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, rgba(24, 82, 245, 0.6) 0%, rgba(24, 82, 245, 0.05) 100%);
}

.step-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

/* دائرة الأيقونة */
.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(24, 82, 245, 0.15), rgba(10, 20, 60, 0.8));
    border: 1.5px solid rgba(24, 82, 245, 0.3);
    box-shadow: inset 0 0 10px rgba(24, 82, 245, 0.3), 0 0 15px rgba(24, 82, 245, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #7b9df5;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* حركة التفاعل Hover */
.timeline-step:hover .step-icon {
    transform: translateY(-5px) scale(1.05);
    border-color: #1852f5;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(24, 82, 245, 0.4), inset 0 0 15px rgba(24, 82, 245, 0.5);
}

.timeline-step.is-active .step-icon {
    transform: translateY(-5px) scale(1.05);
    border-color: #1852f5;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(24, 82, 245, 0.4), inset 0 0 15px rgba(24, 82, 245, 0.5);
}

.timeline-step:hover .step-number-wrapper {
    border-color: #1852f5;
    box-shadow: 0 0 15px rgba(24, 82, 245, 0.6);
}

.timeline-step.is-active .step-number-wrapper {
    border-color: #1852f5;
    box-shadow: 0 0 15px rgba(24, 82, 245, 0.6);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.step-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 0 5px;
}

/* --- RESPONSIVE شاشات العرض المتوسطة والصغيرة --- */
@media (max-width: 1200px) {
    .services-grid, .realisations-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3.5rem; }
    .sphere { width: 200px; height: 200px; }
    
    /* تقليل حجم شبكة المنهجية */
    .timeline-steps { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .timeline-line { display: none; } /* إخفاء الخط العرضي لتفادي التشوه */
}

@media (max-width: 992px) {
    .hero-section { flex-direction: column; text-align: center; }
    .hero-content { padding-right: 0; margin-bottom: 4rem; display: flex; flex-direction: column; align-items: center; }
    .nav-links { display: none; }
    
    /* تحويل المنهجية إلى خط عمودي متناسق للهواتف */
    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-left: 30px;
        border-left: 2px solid rgba(24, 82, 245, 0.2);
        margin-left: 15px;
    }

    .timeline-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }

    .step-number-wrapper {
        margin-bottom: 0;
        flex-shrink: 0;
        margin-left: -47px; /* تركيب الرقم فوق الخط العمودي مباشرة */
        background: var(--bg-dark);
        z-index: 5;
    }

    .step-number-wrapper::after {
        display: none;
    }

    .step-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
    }

    .step-text-content {
        display: flex;
        flex-direction: column;
    }

    .step-title {
        margin-bottom: 6px;
    }

    .step-desc {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .container, .header-container { padding: 0 2rem; }
    .services-grid, .realisations-grid { grid-template-columns: 1fr; }
    .hero-title, .page-title { font-size: 2.8rem; }
    .sphere { width: 160px; height: 160px; }
}/* =========================================
   📌 SECTION CONTACT (NEW)
   ========================================= */
.contact-page {
    position: relative;
    padding-bottom: 100px;
}

/* الإضاءة الزرقاء العلوية مطابقة للتصميم */
.glow-bg-top-center {
    position: absolute;
    top: 5%;
    left: 40%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
    max-width: 1050px;
}

.contact-card {
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
    background: rgba(10, 15, 30, 0.7);
    border-color: rgba(24, 82, 245, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(2, 5, 18, 0.6), 0 0 20px rgba(24, 82, 245, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(24, 82, 245, 0.2), rgba(10, 20, 60, 0.8));
    border: 1px solid rgba(24, 82, 245, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4b84ff;
    box-shadow: inset 0 0 10px rgba(24, 82, 245, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.contact-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.contact-info a, .contact-info p {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4b84ff;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.social-links a {
    margin-bottom: 0;
    font-weight: 500;
}

.separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.contact-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(24, 82, 245, 0.05);
    border: 1px solid rgba(24, 82, 245, 0.3);
    color: #7b9df5;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive التجاوب مع الشاشات */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}/* =========================================
   📌 SECTION CONTACT (CLEANED & CENTERED)
   ========================================= */
.contact-page {
    position: relative;
    padding-bottom: 100px;
}

/* الإضاءة الزرقاء العلوية في وسط الشاشة بالتدقيق */
.glow-bg-top-center {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* توسيط العنوان */
.contact-page .page-header {
    text-align: center;
    margin: 0 auto 4rem auto;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

/* تنظيم البطاقات في الوسط */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
    max-width: 1050px;
    margin: 0 auto; /* هذا السر اللي يسنتر البطاقات وما يخليهمش يهربو لليمين */
}

.contact-card {
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
    background: rgba(10, 15, 30, 0.7);
    border-color: rgba(24, 82, 245, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(2, 5, 18, 0.6), 0 0 20px rgba(24, 82, 245, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(24, 82, 245, 0.2), rgba(10, 20, 60, 0.8));
    border: 1px solid rgba(24, 82, 245, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4b84ff;
    box-shadow: inset 0 0 10px rgba(24, 82, 245, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.contact-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.contact-info a, .contact-info p {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4b84ff;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.social-links a {
    margin-bottom: 0;
    font-weight: 500;
}

.separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.contact-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(24, 82, 245, 0.05);
    border: 1px solid rgba(24, 82, 245, 0.3);
    color: #7b9df5;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive التجاوب مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}/* =========================================
   📌 SECTION MODAL / POPUP (NEW)
   ========================================= */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 18, 0.85); /* Nafs el fond mta3 NAC DEV */
    backdrop-filter: blur(10px); 
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: min(92vw, 1100px);
    max-width: 1100px;
    max-height: 90vh;
    padding: 0 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

#conceptionImage {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(24, 82, 245, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

.close-btn {
    position: absolute;
    top: -3rem;
    right: 1rem;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 2;
}

.close-btn:hover {
    color: var(--primary-blue);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 14, 36, 0.78);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    z-index: 2;
}

.modal-nav:hover {
    background: rgba(24, 82, 245, 0.9);
    border-color: rgba(123, 157, 245, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.modal-prev {
    left: 0;
}

.modal-next {
    right: 0;
}

@media (max-width: 768px) {
    .modal-container {
        width: min(94vw, 700px);
        padding: 0 3.25rem;
    }

    .modal-nav {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.4rem;
    }

    .close-btn {
        top: -2.5rem;
        right: 0.25rem;
        font-size: 2rem;
    }
}
