@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Tajawal:wght@400;500;700&display=swap');

/* =======================================
   1. إعدادات عامة (Global, Variables, Fonts)
   ======================================= */
/* خلفية الـ Particles التفاعلية */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -10; /* لازم يكون بالسالب عشان يرجع ورا خالص */
    background-color: var(--color-bg); /* لون الخلفية يبقى جوه العنصر ده */
}
:root {
    /* --- ألوان Endless Dots الهوية البصرية --- */
    --color-bg: #050505;
    --color-bg-darker: #00000047;
    --color-primary: #DC1414;
    --color-secondary: #990000;
    --color-accent: #E0E0E0;
    --color-text-main: #FFFFFF;
    --color-text-muted: #B0B0B0;
    --color-glass-bg: rgba(20, 20, 20, 0.218);
    --color-glass-border: rgba(220, 20, 20, 0.2);
    --font-heading: 'Bebas Neue', sans-serif;
    --font-main: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main); 
    color: var(--color-text-main);
    background-color: var(--color-bg);
    background-attachment: fixed; 
    background-size: cover;
    min-height: 100vh;
    direction: rtl; 
    padding-top: 80px; 
}

/* خلفية الـ Particles التفاعلية */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -10;
}



.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* التنسيق الافتراضي للعناوين */
.section-title {
    font-family: var(--font-heading);
    font-size: 60px;
    text-align: center;
    color: var(--color-text-main);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.section-subtitle {
    font-family: var(--font-main);
    font-size: 18px;
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 50px;
}

/* ==============================
   2. القسم الترحيبي (Hero Section)
   ============================= */

.hero-container {
    height: 100vh; 
    width: 100%;
    display: flex;
    flex-direction: column; 
    background-color: transparent;
    position: relative; 
    margin-top: -80px;
}

.hero-content {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    color: var(--color-text-main);
    padding: 20px;
}

.hero-headline {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 80px;
    letter-spacing: 1px;
    line-height: 1.3;
    color: var(--color-primary); 
    animation: fadeInHero 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subheadline {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 20px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-top: 10px;
    line-height: 1.6;
}

.scroll-down-link {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--color-text-main);
    text-decoration: none;
    margin-top: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.scroll-down-link:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--color-text-main); }
.scroll-down-link i { margin-right: 10px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-4px); } }

/* =======================================
   3. الهيدر والـ Navbar (Header & Navigation)
   ======================================= */

.page-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; 
    background: var(--color-glass-bg); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-glass-border);
    transition: background 0.3s ease; 
}

.navbar-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 0; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header .logo { display: flex; align-items: center; gap: 15px; }
.page-header .logo span { font-family: var(--font-heading); font-size: 28px; color: var(--color-text-main); }
.page-header .social-icons { display: flex; gap: 20px; }
.page-header .social-icons a { color: var(--color-text-main); font-size: 18px; text-decoration: none; transition: color 0.3s ease; }
.page-header .social-icons a:hover { color: var(--color-primary); } 

.main-nav ul { list-style: none; display: flex; gap: 35px; }
.main-nav ul li a {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px; 
    transition: color 0.3s ease;
}
.main-nav ul li a:hover { color: var(--color-text-main); }
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}
.main-nav ul li a:hover::after { width: 100%; }

/* =========================================================
   4. قسم الباقات (Pricing) - التصميم الزجاجي والكلمة العملاقة
   ========================================================= */

.pricing-container {
    position: relative; 
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 0 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
}

/* الكلمة العملاقة في الخلفية */
.pricing-container .main-title {
    position: absolute;
    top:1010px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 0; 
    font-family: var(--font-heading);
    font-size: 250px; 
    font-weight: 700;
    letter-spacing: 60px;
    color: #FFFFFF;
    opacity: 1; 
    margin: 0;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

/* غلاف الكروت */
.plans-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: stretch; 
    flex-wrap: wrap; 
    gap: 30px; 
    margin-top: 150px;
}

/* الكروت الزجاجية */
.plan-card {
    width: 360px;
    border-radius: 25px; 
    padding: 30px;
    background: var(--color-glass-bg); 
    /* 👇👇 دول السطرين السحريين اللي بيعملوا البلور 👇👇 */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* عشان يشتغل على الأيفون وسفاري */

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column; 
    transition: all 0.3s ease;
    position: relative;
    z-index: 2; 
}
.plan-card:hover {
    transform: translateY(-10px);
    background-color: rgba(5, 5, 5, 0.55); 
    border-color: var(--color-primary); 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(220, 20, 20, 0.2); 
}

/* الكارت المميز */
.plan-card.highlighted {
    position: relative; 
    transform: scale(1.05); 
    z-index: 12;
    background-color: rgba(5, 5, 5, 0.5);
    border: 2px solid var(--color-primary); 
    backdrop-filter: blur(80px); 
    -webkit-backdrop-filter: blur(80px);
    box-shadow: 0 0 40px rgba(220, 20, 20, 0.3), 
                0 0 60px rgba(0, 0, 0, 0.5);
}
.plan-card.highlighted:hover { transform: scale(1.08) translateY(-10px); }

/* تفاصيل الكروت الداخلية */
.plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.plan-title { font-family: var(--font-heading); font-size: 40px; color: var(--color-text-main); }
.plan-pieces {
    font-family: var(--font-main); 
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 12px;
    border-radius: 8px;
}
.plan-price { font-family: var(--font-heading); font-size: 70px; color: var(--color-text-main); margin-bottom: 25px; }

.plan-card .plan-price.bundle-price { line-height: 1.2; }
.plan-card .bundle-price .old-price { font-family: var(--font-heading); font-size: 24px; color: #777; text-decoration: line-through; display: block; }
.plan-card .bundle-price .new-price { font-size: 60px; color: var(--color-text-main); text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.plan-pieces .piece-count {
    font-family: var(--font-heading); 
    font-size: 22px;
    margin-left: 5px;
    color: var(--color-accent);
}

.plan-features { list-style: none; margin-bottom: 25px; font-size: 15px; line-height: 1.7; text-align: right; }
.plan-features li { margin-bottom: 10px; padding-right: 28px; position: relative; }
.plan-features li::before {
    content: '✓';
    color: var(--color-primary);
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 18px;
    font-weight: bold;
}

.plan-details { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 20px; margin-top: auto; }
.plan-details h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.plan-details p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 15px; }

.cta-button {
    display: block; 
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--color-text-main);
    background-color: var(--color-primary); 
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 20, 20, 0.6);
}
.cta-button:disabled { background: #555; cursor: not-allowed; }
.crown-icon { position: absolute; top: -35px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; z-index: 20; }
.crown-icon img { width: 100%; }

/* =======================================
   5. أقسام أعمالنا وآراء العملاء (السكرول الأفقي)
   ======================================= */

.portfolio-section {
    padding: 80px 0;
    background-color: var(--color-bg); 
    width: 100%;
}

.testimonials-section {
    padding: 80px 0;
    background-color: var(--color-bg);
}

/* إعدادات السكرول الأفقي */
.category-grid, 
.testimonials-grid {
    display: flex !important;
    overflow-x: auto;
    gap: 20px;
    padding: 15px 10px 30px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* إخفاء سكرول بار */
.category-grid::-webkit-scrollbar,
.testimonials-grid::-webkit-scrollbar {
    display: none;
}

/* تثبيت حجم الكروت */
.category-card,
.testimonial-card {
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* في الشاشات الكبيرة */
/* في الشاشات الكبيرة */
@media (min-width: 769px) {
    .category-grid,
    .testimonials-grid {
        display: flex;             /* تأكيد الفليكس */
        justify-content: flex-start; /* يبدأ من اليمين للشمال */
        flex-wrap: nowrap;         /* ده السطر السحري: ممنوع ينزل سطر جديد */
        overflow-x: auto;          /* السماح بالسكرول الأفقي */
        padding: 20px 0 40px 0;
        scroll-snap-type: x mandatory; /* عشان يقف على الكارت بالضبط */
    }
    
    /* توسيط العناصر لو عددهم قليل (أقل من حجم الشاشة) */
    .category-grid.centered,
    .testimonials-grid.centered {
        justify-content: center;
    }

    .category-card,
    .testimonial-card {
        min-width: 350px;    /* عرض ثابت للكارت */
        flex: 0 0 auto;      /* ممنوع الكارت يصغر أو يكبر */
        margin: 0 15px;      /* مسافات بين الكروت */
        scroll-snap-align: center; /* لما تقف سكرول يقف في نص الكارت */
    }
}

/* تنسيق للزراير عشان تبقى ظاهرة وشكلها حلو */
.scroll-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.scroll-btn {
    background: transparent;
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* كروت أعمالنا */
.category-card {
    display: block;
    text-decoration: none;
    color: var(--color-text-main);
    padding: 30px;
    border-radius: 15px;
    background: var(--color-glass-bg); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-glass-border); 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(220, 20, 20, 0.3);
}

.category-card i {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.category-card h3 { font-family: var(--font-heading); font-size: 28px; margin-bottom: 10px; }
.category-card p {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 75px;
}

.category-card span {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-accent);
    transition: all 0.3s ease;
}
.category-card:hover span { color: var(--color-text-main); padding-right: 10px; }
.category-card span i { font-size: 16px; margin-right: 5px; transition: transform 0.3s ease; }
.category-card:hover span i { transform: translateX(-5px); }

/* كروت آراء العملاء */
.testimonial-card {
    background: var(--color-glass-bg); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-glass-border); 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.testimonial-card i.fa-quote-left {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.quote {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-style: italic; 
    flex-grow: 1; 
    margin-bottom: 20px;
}
.client-name { font-family: var(--font-heading); font-size: 20px; color: var(--color-text-main); letter-spacing: 1px; }

/* مؤشر السكرول */
.scroll-indicator {
    text-align: center;
    margin-top: 10px;
    color: var(--color-text-muted);
    font-size: 14px;
    animation: bounce 2s infinite;
}

/* ============================
   6. قسم تواصل معنا
   ============================ */

.contact-section {
    padding: 100px 0;
    background-color: var(--color-bg);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
}

/* كروت المعلومات */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--color-glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-glass-border);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(220, 20, 20, 0.2);
}

.contact-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(220, 20, 20, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-card .card-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text-main);
    margin-bottom: 5px;
}

.contact-card .card-content p {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.contact-card .card-content p a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card .card-content p a:hover {
    color: var(--color-primary);
}

/* الخريطة */
.map-container {
    width: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--color-glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.map-container iframe {
    filter: grayscale(100%) invert(92%) contrast(83%);
    transition: filter 0.5s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

/* ============================
   7. قسم عن الاستوديو
   ============================ */

.about-section {
    padding: 80px 0;
    background-color: var(--color-bg-darker);
    overflow: hidden; 
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-content h2.section-title { text-align: right; margin-bottom: 20px; }
.about-text {
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    text-align: right;
}
.about-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-accent);
    margin-bottom: 15px;
}
.why-choose-us { list-style: none; padding-right: 0; text-align: right; }
.why-choose-us li {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    padding-right: 28px;
    position: relative;
}
.why-choose-us li::before {
    content: '✓';
    color: var(--color-primary);
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 18px;
    font-weight: bold;
}
/* =======================================
   تعديلات قسم About Logo
   ======================================= */

/* تنسيق الحاوية الجديدة للصورة */
.about-logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* توسيط أفقي */
    align-items: center;     /* توسيط رأسي */
    padding: 20px;
}

/* تنسيق الصورة نفسها */
.about-logo-container img {
    max-width: 100%;       /* عشان متخرجش بره حدودها */
    max-height: 400px;     /* أقصى ارتفاع عشان متبقاش عملاقة أوي */
    object-fit: contain;   /* تحافظ على أبعادها */
    
    /* لمسة جمالية: ظل خفيف أحمر يتماشى مع الهوية */
    filter: drop-shadow(0 0 30px rgba(220, 20, 20, 0.15));
    
    /* أنيميشن بسيط يخليها تظهر بشكل ناعم */
    animation: fadeInLogo 2s ease-out;
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- تعديلات الموبايل عشان الصورة تنزل تحت الكلام --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr; /* تحويل لعمود واحد */
        text-align: center;
    }
    
    .about-logo-container {
        margin-top: 40px;
        order: 1; /* يخلي الصورة تظهر بعد الكلام */
    }
    
    .about-logo-container img {
        max-height: 250px; /* تصغير الصورة شوية عالموبايل */
    }
}

/* =========================
   8. الفوتر (Footer)
   ========================= */

.page-footer {
    padding-top: 60px; 
    background-color: var(--color-bg-darker);
    border-top: 1px solid var(--color-glass-border);
}

.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-col { padding: 10px; }
.footer-col#footer-about .logo { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.footer-col#footer-about .logo span { font-family: var(--font-heading); font-size: 28px; color: var(--color-text-main); }
.footer-col#footer-about p { font-size: 15px; line-height: 1.7; color: var(--color-text-muted); max-width: 300px; }

.footer-col h3 { font-family: var(--font-heading); font-size: 24px; color: var(--color-text-main); margin-bottom: 25px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links li a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}
.footer-links li a:hover {
    color: var(--color-primary);
    padding-right: 10px; 
}

.footer-col .footer-contact {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-accent);
    margin-top: 20px;
    margin-bottom: 25px;
    direction: ltr; 
    text-align: right;
}
.footer-col .social-icons { display: flex; gap: 20px; }
.footer-col .social-icons a { color: var(--color-text-main); font-size: 20px; text-decoration: none; transition: color 0.3s ease; }
.footer-col .social-icons a:hover { color: var(--color-primary); }

.footer-bottom-bar {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--color-glass-border);
    background-color: rgba(0, 0, 0, 0.1);
}
.footer-bottom-bar p { font-size: 14px; color: #777; }

/* توسيط أعمدة الفوتر */
.footer-col:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col:last-child .social-icons {
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

.footer-col .footer-contact {
    text-align: center !important;
    direction: ltr;
    margin-top: 10px;
    font-size: 24px;
    letter-spacing: 1px;
}

#footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#footer-about .logo {
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

#footer-about p {
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==================================
   9. النافذة المنبثقة (Modal / Form)
   ================================== */

.modal-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px; 
    padding: 40px;
    border-radius: 20px;
    background: var(--color-glass-bg); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border); 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
    direction: rtl; 
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}
.modal-overlay.show .modal-content { transform: translateY(0); }

.modal-close { position: absolute; top: 15px; left: 20px; font-size: 30px; color: var(--color-text-main); cursor: pointer; line-height: 1; }
.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-accent);
    margin-bottom: 10px;
}
.modal-content p {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.form-group { margin-bottom: 20px; text-align: right; }
.form-group label { display: block; font-family: var(--font-main); font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    color: var(--color-text-main);
    font-family: var(--font-main);
    font-size: 16px;
    direction: ltr; 
    text-align: right; 
}
.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* =======================================
   12. تصميم باقة التأسيس وكروت العروض
   ======================================= */

.foundation-promo {
    /* الخلفية الأصلية بتاعتك زي ما هي بالظبط */

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* هنا شيلنا الخط الأحمر (الحدود) */
    border: none; 
    
    /* باقي التنسيقات زي ما هي */
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}
.foundation-title {
    font-family: var(--font-heading);
    font-size: 40px;
    color: var(--color-accent);
    margin-bottom: 10px;
}
.foundation-subtitle {
    font-family: var(--font-main);
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 20px auto;
}
.foundation-details {display: flex;justify-content: center;gap: 20px;FONT-VARIANT: JIS78;font-size: 16px;margin-bottom: 80px;align-items: center;}
.foundation-details i { color: var(--color-primary); }
.foundation-price { font-family: var(--font-heading); font-size: 20px; margin-bottom: 25px; }
/* =======================================
   تعديل مكان الخط الفاصل
   ======================================= */

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-primary) 50%, 
        transparent 100%);
    
    /* هنا التعديل: بنرفعه لفوق بمسافة سالبة */
    margin-top: -80px;  /* جرب الرقم ده، لو عايزه يعلى أكتر خليه -70px مثلاً */
    margin-bottom: 50px;
    
    position: relative;
    z-index: 5; /* عشان نتأكد إنه يظهر فوق أي حاجة لو حصل تداخل */
}
.foundation-details-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: right;
    margin: 30px 0;
}

.detail-item h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-accent);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 5px;
}
.detail-item ul { list-style: none; padding-right: 0; }
.detail-item ul li {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.offer-hook-button {
    display: inline-block;
    background-color: var(--color-primary); 
    color: #fff;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 18px;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(220, 20, 20, 0.4);
    transition: all 0.3s ease;
}
.offer-hook-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(220, 20, 20, 0.6);
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-primary) 50%, 
        transparent 100%);
    margin-bottom: 50px;
}

/* =======================================
   13. تنسيقات الموبايل (Mobile Responsive)
   ======================================= */

/* إخفاء زرار القائمة في الشاشات الكبيرة */
.hamburger-menu {
    display: none;
    font-size: 28px;
    color: var(--color-text-main);
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    left: 20px;
    top: 25px;
}

/* --- تعديلات للشاشات الصغيرة (أقل من 992px) --- */
@media (max-width: 992px) {
    /* 1. إظهار زرار القائمة وإخفاء القائمة العادية */
    .hamburger-menu {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .page-header .social-icons {
        display: none;
    }

    .navbar-container {
        justify-content: center;
        position: relative;
    }

    /* 2. تحسين القسم الترحيبي */
    .hero-headline {
        font-size: 42px;
        line-height: 1.2;
        padding: 0 20px;
    }
    
    .hero-subheadline {
        font-size: 16px;
        padding: 0 25px;
    }

    /* 3. تحسين قسم الباقات */
    .plans-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .plan-card {
        width: 90%;
        max-width: 400px;
    }

    .plan-card.highlighted {
        transform: scale(1);
        margin-top: 0;
    }
}

/* --- تعديلات للشاشات الأصغر (أقل من 768px) --- */
@media (max-width: 768px) {
    /* 1. تحسين القائمة الجانبية */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .main-nav ul li a {
        font-size: 24px;
        font-weight: 700;
    }

    /* 2. تحسين النصوص الكبيرة */
    .hero-headline {
        font-size: 36px !important;
    }
    
    .hero-subheadline {
        font-size: 15px;
    }

    .pricing-container .main-title {
        font-size: 80px !important;
        top: 150px !important;
        letter-spacing: 10px !important;
        opacity: 0.3;
    }

    /* 3. تحسين الباقات */
    .plan-card {
        width: 95% !important;
    }

    .plan-title {
        font-size: 32px;
    }

    .plan-price {
        font-size: 55px;
    }

    /* 4. تحسين قسم تواصل معنا */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .map-container {
        height: 300px;
    }

    /* 5. تحسين الفوتر */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* 6. تحسين باقة التأسيس */
    .foundation-details-list {
        grid-template-columns: 1fr;
    }

    /* 7. تحسين قسم عنا */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        text-align: center;
        font-size: 16px;
    }

    .about-content h2.section-title {
        text-align: center;
    }

    .why-choose-us {
        text-align: center;
        padding-right: 0;
    }

    .why-choose-us li {
        padding-right: 0;
        margin-bottom: 10px;
    }

    .why-choose-us li::before {
        position: relative;
        right: auto;
        margin-left: 10px;
    }
}

/* --- تعديلات للشاشات الصغيرة جداً (أقل من 480px) --- */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 28px !important;
    }

    .pricing-container .main-title {
        font-size: 60px !important;
        top: 120px !important;
        letter-spacing: 5px !important;
    }

    .section-title {
        font-size: 40px !important;
    }

    .plan-card {
        padding: 20px;
    }

    .category-card,
    .testimonial-card {
        min-width: 260px;
        max-width: 260px;
        padding: 25px;
    }

    .contact-card {
        padding: 15px;
    }

    .map-container {
        height: 200px;
    }
}
/* =======================================
   تنسيق العنوان مع الأسهم (شكل جديد)
   ======================================= */

.title-with-arrows {
    display: flex;
    align-items: center;     /* يخلي الأسهم والعنوان على خط واحد */
    justify-content: center; /* يخلي المجموعة كلها في نص الشاشة */
    gap: 40px;              /* المسافة بين السهم والكلام */
    margin-bottom: 50px;
    position: relative;
}

.section-header-text {
    text-align: center;
}

/* عشان نضمن إن المسافات في العنوان مظبوطة */
.section-header-text .section-title {
    margin-bottom: 5px; /* تقليل المسافة تحت العنوان الرئيسي */
}

/* تنسيق خاص للزراير الجانبية */
.scroll-btn.arrow-side {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* خلفية شفافة خفيفة */
    border: 1px solid var(--color-glass-border);
    color: var(--color-primary); /* لون السهم أحمر */
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn.arrow-side:hover {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(220, 20, 20, 0.5);
}

/* --- تعديلات الموبايل --- */
@media (max-width: 768px) {
    .title-with-arrows {
        gap: 15px; /* تقليل المسافة عالموبايل */
    }
    
    .scroll-btn.arrow-side {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px !important; /* تصغير الخط شوية عشان يساعي الزراير */
    }
}
/* =======================================
   تعديل العداد وباقة التأسيس (Final Fix)
   ======================================= */

.foundation-promo {
    /* الخلفية الأصلية بتاعتك زي ما هي بالظبط */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* هنا شيلنا الخط الأحمر (الحدود) */
    border: none; 
    
    /* باقي التنسيقات زي ما هي */
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

/* =======================================
   تنسيق عداد العرض (التعديل النهائي للوسطنة والحجم)
   ======================================= */

.offer-countdown {
    width: 100%; /* عشان نضمن إنه واخد عرض المكان كله ونعرف نسنتر جواه */
    display: flex;
    flex-direction: column;
    align-items: center; /* ده اللي بيجيب العناصر في النص */
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

/* تنسيق المربع الأحمر (ينتهي العرض خلال) */
.countdown-text {
    width: fit-content; /* <--- ده الأمر السحري: بيخلي المربع على قد الكلام بس */
    display: inline-block;
    
    font-family: var(--font-main);
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    
    /* التنسيق الجمالي */
    background: rgba(220, 20, 20, 0.2);
    padding: 8px 30px; /* حواشي يمين وشمال عشان الكلام ميبقاش مخنوق */
    border-radius: 50px; /* تدويرة كاملة أشيك */
    border: 1px solid var(--color-primary);
    
    /* عشان نضمن إنه ييجي في النص بالظبط */
    margin-left: auto;
    margin-right: auto;
    
    animation: pulseRed 2s infinite;
}

/* حاوية الأرقام */
.timer-box {
    display: flex;
    justify-content: center; /* <--- ده اللي بيجيب الساعة في النص */
    align-items: center;
    gap: 20px; 
    font-family: var(--font-heading);
    color: var(--color-primary);
    direction: ltr; 
    width: 100%; /* عشان يتأكد إنه واخد راحته في التوسطن */
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* الأرقام (دقائق وثواني) */
.time-unit span {
    font-size: 100px;
    line-height: 0.9;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(220, 20, 20, 0.8);
}

/* الساعة (الضخمة) */
#hours {
    font-size: 160px;
    color: #FFFFFF;  
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

.time-unit small {
    font-family: var(--font-main);
    font-size: 18px;
    color: var(--color-text-muted);
    margin-top: 10px;
}

/* النقطتين */
.dots {
    font-size: 80px;
    color: #fff;
    margin-top: -40px; 
    opacity: 0.5;
}

/* الموبايل */
@media (max-width: 768px) {
    .time-unit span { font-size: 60px; }
    #hours { font-size: 90px; }
    .dots { font-size: 50px; margin-top: -20px; }
    .timer-box { gap: 10px; }
    .countdown-text { font-size: 16px; padding: 5px 20px; }
}

/* =======================================
   إضافات التنسيق الجديدة (Matching the New Layout)
   ======================================= */

/* 1. تنسيق قسم كلمة المؤسس */
.intro-split-section {
    padding: 80px 0;
}

.split-row {
    display: flex;
    gap: 40px;
    align-items: center;
}

.split-col {
    flex: 1;
}

.glass-effect {
    background: var(--color-glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-glass-border);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.section-subtitle-red {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-title-small {
    font-family: var(--font-main);
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.text-box p {
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

.read-more-btn {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}
.read-more-btn:hover {
    color: #fff;
    padding-right: 10px;
}

.graphic-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--color-glass-border);
    border-radius: 20px;
    height: 100%;
}
.big-icon {
    font-size: 60px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* 2. تنسيق المهمة والرؤية */
.mission-vision-section {
    padding-bottom: 80px;
}
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.mv-card {
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.mv-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}
.icon-header {
    width: 70px;
    height: 70px;
    background: rgba(220, 20, 20, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--color-primary);
}
.mv-card h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 15px;
}
.mv-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* 3. تنسيق شبكة الخدمات (Grid) */
.services-grid-section {
    padding: 80px 0;
    background-color: var(--color-bg-darker);
}
.services-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة للشاشات الكبيرة */
    gap: 25px;
    margin-top: 50px;
}
.service-box {
    background: var(--color-glass-bg);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}
.service-box:hover {
    border-color: var(--color-primary);
    background: rgba(5,5,5,0.8);
    transform: scale(1.05);
}
.service-box i {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.service-box h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-text-main);
}
.service-box p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* 4. تنسيق الشركاء */
.partners-section {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
    margin: 60px 0;
    background: rgba(0,0,0,0.2);
}
.partners-title {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 30px;
    letter-spacing: 2px;
}
.partners-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}
/* =======================================
   تعديل حجم لوجوهات الشركاء (تكبير)
   ======================================= */

.partners-logos img {
    height: 200px;      /* 👈 هنا التحكم في الحجم (كان 60 خليناه 120) */
    width: auto;        /* العرض يظبط لوحده حسب الطول */
    margin: 15px 30px;  /* زودنا المسافات بين اللوجوهات عشان ميتلزقوش */
    object-fit: contain; /* بيحافظ على أبعاد اللوجو عشان ميمطش */
    
    /* التأثيرات الجمالية زي ما هي */
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    cursor: pointer;
}

/* لما الماوس يجي عليها تكبر سنة وتتلون */
.partners-logos img:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1); /* تكبير إضافي بسيط عند اللمس */
}

/* --- تظبيط للموبايل (عشان متبقاش عملاقة أوي في الشاشات الصغيرة) --- */
@media (max-width: 768px) {
    .partners-logos img {
        height: 90px; /* في الموبايل نخليها وسط (90px) */
        margin: 10px 15px;
    }
}

.partners-logos img:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Responsive التعديلات للموبايل */
@media (max-width: 992px) {
    .split-row {
        flex-direction: column;
    }
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr); /* عمودين في التابلت */
    }
}

@media (max-width: 576px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }
    .services-wrapper {
        grid-template-columns: 1fr; /* عمود واحد في الموبايل */
    }
    .intro-split-section, .services-grid-section {
        padding: 40px 0;
    }
}
/* =======================================
   إضافات التنسيق الجديدة (Matching the New Layout)
   ======================================= */

/* 1. تنسيق قسم كلمة المؤسس */
.intro-split-section { padding: 80px 0; }
.split-row { display: flex; gap: 40px; align-items: center; }
.split-col { flex: 1; }

.section-subtitle-red {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.section-title-small {
    font-family: var(--font-main);
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-text-main);
}
.read-more-btn {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}
.read-more-btn:hover { color: #fff; padding-right: 10px; }

.graphic-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    border-radius: 20px;
}
.big-icon { font-size: 60px; color: var(--color-text-muted); margin-bottom: 20px; }

/* 2. تنسيق المهمة والرؤية */
.mission-vision-section { padding-bottom: 80px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mv-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.mv-card:hover { transform: translateY(-10px); border-color: var(--color-primary); }
.icon-header {
    width: 70px; height: 70px;
    background: rgba(220, 20, 20, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px; color: var(--color-primary);
}

.service-box {
    background: var(--color-glass-bg);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;

    /* 👇👇 دول السطرين السحريين اللي بيعملوا البلور 👇👇 */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* عشان يشتغل على الأيفون وسفاري */
}
.service-box:hover {
    border-color: var(--color-primary);
    background: rgba(5,5,5,0.8);
    transform: scale(1.05);
}
.service-box i { font-size: 40px; color: var(--color-primary); margin-bottom: 20px; }
.service-box h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-text-main);
}
.service-box p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

/* 4. تنسيق الشركاء */
.partners-section {
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
    margin: 60px 0;
    background: rgba(0,0,0,0.2);
}
.partners-title { font-family: var(--font-heading); color: var(--color-accent); margin-bottom: 30px; letter-spacing: 2px; }
.partners-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center; }
.partners-logos i { transition: all 0.3s; opacity: 0.6; }
.partners-logos i:hover { opacity: 1; transform: scale(1.1); color: var(--color-primary) !important; }

/* Responsive */
@media (max-width: 992px) {
    .split-row { flex-direction: column; }
    .services-wrapper { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .mv-grid { grid-template-columns: 1fr; }
    .services-wrapper { grid-template-columns: 1fr; }
}

/* =======================================
   تنسيق قسم Why Choose Us (الجديد)
   ======================================= */

.why-us-section {
    padding: 80px 0;
    background-color: var(--color-bg); /* نفس خلفية الموقع */
    overflow: hidden;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* مساحة للكلام أكبر شوية من الصورة */
    gap: 50px;
    align-items: center;
}

/* تنسيق النصوص */
.why-us-content {
    text-align: right; /* عشان الموقع عربي، لو عايزه إنجليزي خليه left */
}

.section-subtitle-red {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title-medium {
    font-family: var(--font-heading);
    font-size: 48px; /* حجم كبير زي الصورة */
    color: var(--color-text-main);
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.why-us-content .description {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    border-right: 3px solid var(--color-primary); /* خط ديكور جنب الكلام */
    padding-right: 15px;
}

/* قائمة المميزات */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item h5 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-text-main);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.feature-item p {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

/* تنسيق الصورة */
.why-us-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.why-us-image-container img {
    max-width: 80%;
    height: auto;
    max-height: 450px; /* عشان الصورة متكبرش زيادة عن اللزوم */
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(220, 20, 20, 0.2)); /* ظل أحمر خفيف */
}

/* أنيميشن بسيط للصورة (بتتحرك فوق وتحت ببطء) */
.floating-image {
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* --- تعديلات الموبايل --- */
@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: 1fr; /* عمود واحد */
        text-align: center;
    }

    .why-us-content {
        text-align: center;
        order: 2; /* نخلي الكلام تحت الصورة في الموبايل */
    }
    
    .why-us-content .description {
        border-right: none; /* نشيل الخط الجانبي في الموبايل */
        padding-right: 0;
    }

    .why-us-image-container {
        order: 1; /* الصورة فوق */
        margin-bottom: 30px;
    }
    
    .section-title-medium {
        font-size: 36px;
    }
}

/* =======================================
   تعديل محاذاة قسم Who We Are (Left Align)
   ======================================= */

/* 1. إجبار النصوص والعناوين تروح شمال */
.left-aligned-content {
    text-align: left !important; 
    direction: ltr; /* اتجاه البوكس إنجليزي عشان المحاذاة تظبط */
}

/* 2. تعديل مكان الخط الأحمر ووصف النص */
.left-aligned-content .description {
    border-right: none;          /* شيلنا الخط من اليمين */
    border-left: 3px solid var(--color-primary); /* حطيناه شمال */
    padding-right: 0;
    padding-left: 15px;          /* بادينج من الشمال */
    
    direction: rtl;              /* النص العربي نفسه يفضل اتجاهه صح */
    text-align: left;            /* بس يبدأ سطوره من الشمال */
}

/* =======================================
   تحديثات الترتيب والمحاذاة (Zig-Zag Fixed)
   ======================================= */

/* 1. تنسيق الزرار الصغير */
.read-more-btn-small {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 16px;
    color: #fff;
    background-color: var(--color-primary);
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    margin-top: 10px;
    letter-spacing: 1px;
}
.read-more-btn-small:hover {
    background-color: #b30000;
    transform: translateY(-3px);
}

/* 2. كلاس المحاذاة لليسار (للجزء بتاع Who We Are) */
.text-left-align {
    text-align: left !important; /* يجبر العناوين تروح شمال */
    direction: ltr; /* يخلي اتجاه البوكس إنجليزي عشان العناوين تنضبط */
}

/* ظبط الفقرة العربي جوه البوكس الإنجليزي */
.text-left-align .description {
    direction: rtl; /* نرجع الفقرة عربي عشان القراءة */
    text-align: left; /* بس نخلي بدايتها من الشمال */
    border-right: none; /* نشيل الخط من اليمين */
    border-left: 3px solid var(--color-primary); /* نحط الخط شمال */
    padding-right: 0;
    padding-left: 15px;
}

/* 3. تعديلات الموبايل (عشان يرجعوا تحت بعض طبيعي) */
@media (max-width: 992px) {
    .why-us-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 40px;
    }

    /* نرجع ترتيب الصورة والكلام في الموبايل */
    .why-us-grid .why-us-image-container {
        order: 1; /* الصورة فوق */
    }
    .why-us-grid .why-us-content {
        order: 2; /* الكلام تحت */
        text-align: center !important; /* توسيط الكلام */
    }

    /* إلغاء المحاذاة الشمال في الموبايل */
    .text-left-align {
        text-align: center !important;
        direction: rtl;
    }
    .text-left-align .description {
        text-align: center;
        border: none;
        padding: 0;
    }
}
/* 3. تعديل للموبايل عشان يرجع سنتر */
@media (max-width: 992px) {
    .left-aligned-content {
        text-align: center !important;
        direction: rtl;
    }
    .left-aligned-content .description {
        text-align: center;
        border: none; /* شيل الخطوط في الموبايل */
        padding: 0;
    }
}
/* =======================================
   تحديث الفوتر (4 أعمدة + تفاصيل التواصل)
   ======================================= */

.footer-grid {
    display: grid;
    /* التغيير هنا: 4 أعمدة بدل 3 */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    margin-bottom: 50px;
    text-align: left; /* محاذاة لليسار عشان الإنجليزي */
    direction: ltr;   /* اتجاه إنجليزي */
}

/* تنسيق العناوين في الفوتر */
.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text-main);
    margin-bottom: 25px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* خط صغير أحمر تحت العناوين (لمسة جمالية) */
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

/* تنسيق قائمة التواصل المفصلة (Get In Touch) */
.contact-list-detailed {
    list-style: none;
    padding: 0;
}

.contact-list-detailed li {
    display: flex;
    align-items: flex-start; /* الأيقونة مع أول الكلام */
    gap: 15px;
    margin-bottom: 20px;
}

.contact-list-detailed li i {
    font-size: 20px;
    color: var(--color-primary);
    margin-top: 5px; /* تظبيط مكان الأيقونة */
}

.contact-list-detailed .info span {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: bold;
    margin-bottom: 3px;
    letter-spacing: 1px;
}

.contact-list-detailed .info p {
    font-size: 15px;
    color: var(--color-text-main);
    margin: 0;
}

/* تعديل السوشيال ميديا */
.footer-col .social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}
.footer-col .social-icons a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* --- تعديلات الموبايل --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين في التابلت */
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* عمود واحد في الموبايل */
        text-align: center; /* توسيط الكلام */
        direction: rtl; /* نرجعه عربي للموبايل لو حابب، أو خليه ltr زي ما هو */
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%); /* توسيط الخط الأحمر */
    }

    .contact-list-detailed li {
        flex-direction: column; /* الأيقونة فوق الكلام */
        align-items: center;
        text-align: center;
    }
    
    .footer-col .social-icons {
        justify-content: center !important;
    }
}
/* =======================================
   تعديل مكان Mission & Vision (نزول لتحت)
   ======================================= */

.mission-vision-section {
    margin-top: 100px;  /* زود الرقم ده لو عايز تنزلهم أكتر */
    position: relative;
    z-index: 5;
}

/* لو عايز تزود مسافة كمان بين البوكسين نفسهم (اختياري) */
.mv-grid {
    margin-top: 20px;
}

/* =======================================
   تعديل الناف بار ليستوعب العناصر الكثيرة
   ======================================= */

.main-nav ul {
    gap: 15px; /* قللنا المسافة بين الكلمات كانت 35 */
}

.main-nav ul li a {
    font-size: 14px; /* صغرنا الخط سنة عشان يساعي */
    font-weight: bold;
}

/* إخفاء أيقونات السوشيال ميديا في الشاشات المتوسطة عشان توسع مكان للقائمة */
@media (max-width: 1300px) {
    .page-header .social-icons {
        display: none;
    }
}

/* تفعيل قائمة الموبايل بدري شوية (عند 1200px) لأن القائمة طويلة */
@media (max-width: 1200px) {
    .main-nav { display: none; }
    .hamburger-menu { display: block; }
}
/* ======================================================
   🔥 TORNADO MOBILE FIXES (تنسيقات الموبايل الشاملة) 🔥
   ====================================================== */

/* 1. تفعيل القائمة الجانبية (Hamburger) بدري شوية */
/* لأننا ضفنا لينكات كتير، لازم القائمة تظهر في التابلت واللابتوب الصغير */
@media (max-width: 1300px) {
    .main-nav { display: none; } /* إخفاء القائمة العادية */
    .hamburger-menu { display: block; } /* إظهار زرار الموبايل */
    .navbar-container { justify-content: space-between; padding: 0 20px; }
    .page-header .social-icons { display: none; } /* إخفاء السوشيال في الهيدر */
}

/* 2. تنسيقات التابلت والموبايل (أقل من 992px) */
@media (max-width: 992px) {
    
    /* --- العناوين والنصوص --- */
    .hero-headline { font-size: 45px !important; line-height: 1.2; }
    .section-title { font-size: 35px !important; }
    .section-title-medium { font-size: 28px !important; line-height: 1.3; }
    .main-title { font-size: 80px !important; top: 1150px !important; opacity: 0.1; } /* كلمة Pricing الخلفية */

    /* --- قسم المؤسس ومن نحن --- */
    .why-us-grid {
        grid-template-columns: 1fr !important; /* عمود واحد */
        gap: 30px;
        text-align: center; /* توسيط الكلام */
    }

    /* ترتيب العناصر: الصورة الأول وبعدين الكلام */
    .why-us-grid .why-us-image-container { order: 1; margin-bottom: 20px; }
    .why-us-grid .why-us-content { order: 2; padding: 0 10px; }

    /* إزالة المحاذاة الخاصة (Left Align) في الموبايل */
    .left-aligned-content { text-align: center !important; direction: rtl !important; }
    .left-aligned-content .description { 
        border: none !important; 
        padding: 0 !important; 
        text-align: center !important; 
    }
    .description { border: none !important; padding: 0 !important; }

    /* --- شبكة الخدمات (Services) --- */
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr); /* 2 في الصف للتابلت */
        gap: 15px;
    }

    /* --- المهمة والرؤية --- */
    .mv-grid { grid-template-columns: 1fr; gap: 20px; }

    /* --- الفوتر --- */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 في الصف للتابلت */
        text-align: center;
    }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); } /* توسيط الخط الأحمر */
    .contact-list-detailed li { flex-direction: column; align-items: center; text-align: center; }
    .footer-col .social-icons { justify-content: center !important; }
}

/* 3. تنسيقات الموبايل الصغير (أقل من 600px) */
@media (max-width: 600px) {
    
    /* --- الهيرو (الشاشة الأولى) --- */
    .hero-headline { font-size: 32px !important; }
    .hero-subheadline { font-size: 16px; padding: 0 10px; }
    
    /* --- شبكة الخدمات (تتحول لعمود واحد) --- */
    .services-wrapper { grid-template-columns: 1fr; }
    
    /* --- الفوتر (يتحول لعمود واحد) --- */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }

    /* --- الصور --- */
    .floating-image { max-height: 250px; } /* تصغير صور السكاشن */
    
    /* --- الباقات --- */
    .plan-card { width: 100% !important; margin: 0 auto; }
    .pricing-container { padding: 50px 0; }

    /* --- المسافات العامة --- */
    section { padding: 40px 0 !important; } /* تقليل المسافات بين الأقسام */
    .container { width: 95%; } /* استغلال عرض الشاشة بالكامل */
}

/* =======================================
   توسيع حروف عناوين الخدمات
   ======================================= */

.service-box h4 {
    letter-spacing: 3px; /* زود الرقم ده (مثلاً 4px أو 5px) لو عايز توسع أكتر */
}