/* ================= CSS Variables ================= */
:root {
    --bg-color: #F9F9F9;
    --surface-color: #FFFFFF;
    --text-main: #0A1F44;
    --text-muted: #4A5568;
    --primary-color: #0088CC;
    --secondary-color: #0A1F44;
    --border-color: #E2E8F0;
    --btn-text: #FFFFFF;
}

/* ================= Global Styles ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}
a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-primary { color: var(--primary-color); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}
.btn-primary { background-color: var(--primary-color); color: var(--btn-text); border: 2px solid var(--primary-color); }
.btn-primary:hover { background-color: transparent; color: var(--primary-color); }
.btn-outline { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline:hover { background-color: var(--primary-color); color: var(--btn-text); }

/* Header & Navigation */
header { 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border-color); 
    background: var(--surface-color); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: 700; letter-spacing: 2px;}
.logo span { color: var(--primary-color); }
.header-logo { height: 45px; width: auto; display: block; transition: transform 0.3s ease; }
.header-logo:hover { transform: scale(1.05); }

/* Menu Styles */
.nav-list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list li a { color: var(--text-main); font-weight: 600; font-size: 15px; transition: color 0.3s ease; position: relative; }
.nav-list li a:hover { color: var(--primary-color); }
.nav-list li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--primary-color); transition: width 0.3s ease;
}
.nav-list li a:hover::after { width: 100%; }

/* ================= Animations & Image Effects ================= */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.hero-img, .product-image img {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 136, 204, 0.15));
}

/* Hero Section */
.hero, .product-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #E8F4FA 100%);
}
.hero { padding: 80px 0 60px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.badge { background-color: var(--surface-color); color: var(--primary-color); border: 1px solid var(--primary-color); padding: 6px 18px; border-radius: 50px; font-size: 12px; font-weight: 600; display: inline-block; margin-bottom: 20px; }
.hero h1 { font-size: 56px; font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; }
.hero ul { list-style: none; margin-bottom: 40px; }
.hero ul li { margin-bottom: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px;}
.hero-img { width: 100%; display: block; }

/* Single Product Page Hero */
.product-hero { padding: 100px 0 80px 0; }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.product-image-sticky { position: sticky; top: 100px; }

/* Sections */
.how-it-works, .products { padding: 80px 0; text-align: center; }
.section-title { font-size: 14px; color: var(--primary-color); text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display:block; }
h2 { font-size: 36px; margin-bottom: 50px; }
h2 span { color: var(--primary-color); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card, .product-card {
    background-color: var(--surface-color); border: 1px solid var(--border-color);
    padding: 40px 30px; border-radius: 12px; text-align: left; transition: transform 0.3s, border-color 0.3s;
}
.step-card:hover, .product-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.step-icon { font-size: 30px; color: var(--primary-color); margin-bottom: 20px; }
.step-card h3 { color: var(--text-muted); font-size: 32px; margin-bottom: 10px; opacity: 0.5;}
.step-card h4, .product-card h3 { font-size: 22px; margin-bottom: 15px; }
.step-card p, .product-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 20px;}

/* ================= Products Image Placeholder Fix ================= */
.product-img-placeholder {
    background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-img-placeholder img {
    width: 80%;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}
.product-card:hover .product-img-placeholder img {
    transform: scale(1.1) translateY(-5px);
}

/* FAQ Styles */
.faq-item { margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--surface-color); transition: 0.3s; }
.faq-item summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--text-main);}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: '+'; color: var(--primary-color); font-size: 24px; transition: 0.3s; }
.faq-item[open] summary:after { content: '-'; }
.faq-content { padding: 0 20px 20px 20px; color: var(--text-muted); line-height: 1.6; font-size: 15px;}

/* Logos Slider */
.logos-slider-wrapper { padding: 20px 0; overflow: hidden; }
.logosSwiper .swiper-slide { display: flex; justify-content: center; align-items: center; }
.logosSwiper img { max-width: 140px; max-height: 50px; width: auto; object-fit: contain; opacity: 1; transition: transform 0.3s ease; }
.logosSwiper img:hover { transform: scale(1.15); }

/* New Grids for Features & Use Cases */
.use-cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-box { padding: 30px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-color); height: 100%; transition: 0.3s; }
.feature-box:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.feature-box i { font-size: 35px; color: var(--primary-color); margin-bottom: 20px; display: block; }
.benefits-list { list-style: none; padding: 0; }
.benefits-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text-muted); }
.benefits-list i { color: #25d366; font-size: 20px; }

/* Packages Grid */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.package-option input { display: none; }
.package-box { border: 2px solid var(--border-color); border-radius: 10px; padding: 12px 5px; text-align: center; cursor: pointer; transition: 0.3s; background: var(--surface-color); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.package-box h4 { margin-bottom: 2px; font-size: 15px; }
.package-box .price { font-size: 18px; font-weight: bold; color: var(--text-main); transition: 0.3s;}
.package-box .old-price { text-decoration: line-through; color: var(--text-muted); font-size: 12px; margin-right: 4px; font-weight: 400;}
.package-box .saving { font-size: 11px; color: #25d366; margin-top: 2px; font-weight: 600;}
.package-option input:checked + .package-box { border-color: var(--primary-color); background: rgba(0, 136, 204, 0.05); }
.package-option input:checked + .package-box .price { color: var(--primary-color); }

/* Swiper Hero Fixes */
.hero-slider-wrapper { background-color: transparent; position: relative; width: 100%; padding-bottom: 40px;}
.swiper { width: 100%; height: 100%; }
.swiper-wrapper { display: flex; }
.swiper-slide { flex-shrink: 0; width: 100%; height: 100%; }
.swiper-pagination { position: absolute; bottom: 0px !important; left: 0; width: 100%; text-align: center; z-index: 10 !important; }
.swiper-pagination-bullet { background: var(--border-color) !important; opacity: 1 !important; width: 12px !important; height: 12px !important; margin: 0 6px !important; display: inline-block; border-radius: 50%; cursor: pointer; }
.swiper-pagination-bullet-active { background: var(--primary-color) !important; opacity: 1 !important; width: 35px !important; border-radius: 6px !important; transition: all 0.3s ease; }

/* Floating WhatsApp Button */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 35px; box-shadow: 2px 2px 15px rgba(0,0,0,0.2); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, background-color 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); background-color: #1ebe57; }

/* Footer */
footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); margin-top: 50px;}
footer p { color: var(--text-muted); font-size: 14px; }

/* Checkout Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea { padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--surface-color); color: var(--text-main); font-family: inherit; font-size: 14px; outline: none; transition: 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }

.summary-box { background: var(--surface-color); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); position: sticky; top: 100px; box-shadow: 0 5px 20px rgba(0,0,0,0.02); }
.summary-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.summary-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; font-size: 18px; font-weight: bold; }
.summary-total strong { font-size: 28px; color: var(--primary-color); }

.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-option { display: block; }
.payment-option input { display: none; }
.payment-box { padding: 18px 20px; border: 2px solid var(--border-color); border-radius: 8px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.3s; background: var(--bg-color); }
.payment-box i { font-size: 24px; color: var(--text-muted); transition: 0.3s;}
.payment-info strong { display: block; font-size: 15px; color: var(--text-main); }
.payment-option input:checked + .payment-box { border-color: var(--primary-color); background: rgba(0, 136, 204, 0.05); }
.payment-option input:checked + .payment-box i { color: var(--primary-color); }

/* ================= Desktop Responsiveness ================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 46px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================= Mobile Conversion Optimization ================= */
@media (max-width: 768px) {
    /* Global Mobile Nav Fix */
    .header-logo { height: 35px; }
    .nav-list { display: none; }

    /* ----- FRONT PAGE ISOLATED STYLES (.home) ----- */
    
    /* 1. Hero Section: Image First -> Title -> Text -> Button */
    .home .hero { padding: 20px 0 40px 0 !important; }
    
    .home .hero-grid { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important;
        text-align: center; 
        gap: 15px !important; 
    }
    
    /* Unwrap the content container to flex children directly */
    .home .hero-content { display: contents !important; }
    
    /* Image comes FIRST */
    .home .hero-image-wrapper { 
        order: 1 !important; 
        /* ======== هنا سر التداخل! غير الرقم السالب لتزيد أو تنقص تداخل الصورة مع الكلام ======== */
        margin: -60px 0 -50px 0 !important; 
        /* ===================================================================================== */
        width: 100%;
        display: flex;
        justify-content: center;
        position: relative;
        z-index: 1;
    }
    .home .hero-img { 
        width: 85% !important; 
        max-width: 280px !important; 
        margin: 0 auto !important; 
        animation: none !important; 
        transform: none !important;
    }

    /* Badge & Title come SECOND */
    /* Hide Badge on Mobile */
    .home .hero .badge { 
        display: none !important; 
    }
    .home .hero h1 { 
        order: 3 !important; 
        font-size: 32px !important; 
        margin-bottom: 10px !important; 
        line-height: 1.2 !important;
        position: relative;
        z-index: 2;
    }
    
    /* Text & Bullets come THIRD */
    .home .hero p { 
        order: 4 !important; 
        font-size: 14px !important; 
        color: var(--text-muted) !important;
        margin-bottom: 15px !important;
        position: static !important; width: auto !important; height: auto !important; clip: auto !important; white-space: normal !important;
    }
    .home .hero ul { 
        order: 5 !important; 
        margin-bottom: 25px !important; 
        width: 100%;
        position: static !important; width: auto !important; height: auto !important; clip: auto !important; white-space: normal !important;
    }
    .home .hero ul li { 
        font-size: 14px !important; 
        margin-bottom: 0px !important; 
        justify-content: center; 
    }

    /* CTA Button comes LAST */
    .home .hero-actions { 
        order: 6 !important; 
        display: flex !important; 
        justify-content: center !important;
        width: 100% !important; 
        margin-bottom: 0 !important;
    }
    .home .hero-actions .btn { 
        width: 100% !important; 
        max-width: 300px !important;
        padding: 16px 30px !important; 
        font-size: 16px !important; 
        border-radius: 50px !important;
        box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3); 
    }

    /* 2. Compact Grid Cards (How it works & Features) */
    .home .how-it-works .steps-grid { 
        grid-template-columns: 1fr !important; 
        gap: 15px !important; 
    }
    .home .how-it-works .step-card {
        padding: 15px !important;
        display: grid !important;
        grid-template-columns: 50px 1fr !important;
        gap: 15px !important;
        text-align: left !important;
        align-items: center !important;
    }
    .home .how-it-works .step-card .step-icon {
        font-size: 35px !important;
        margin-bottom: 0 !important;
        grid-row: span 2;
    }
    .home .how-it-works .step-card h3 { display: none !important; }
    .home .how-it-works .step-card h4 {
        font-size: 18px !important;
        margin-bottom: 5px !important;
        margin-top: 0 !important;
    }
    .home .how-it-works .step-card p {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }

    /* 3. Products Section - Horizontal Scroll (Swipeable Row) */
    .home .products .steps-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
        padding-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .home .products .product-card {
        min-width: 65% !important;
        max-width: 260px !important;
        scroll-snap-align: center;
        flex: 0 0 auto;
        text-align: center;
        padding: 20px 15px !important;
    }
    .home .products .steps-grid::-webkit-scrollbar {
        display: none;
    }
    .home .products .product-card h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    .home .products .product-card p {
        font-size: 13px !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }
    .home .products .product-img-placeholder {
        padding: 20px 10px !important;
        margin-bottom: 15px !important;
    }
    .home .products .product-img-placeholder img {
        width: 60% !important; 
        max-width: 120px !important;
    }
    .home .products .product-card .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    /* ----- GLOBAL MOBILE ELEMENTS ----- */
    
    /* Bottom Floating Navigation Bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        z-index: 9999;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 10px 20px 15px;
        justify-content: space-between;
        align-items: center;
    }
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        gap: 5px;
        text-decoration: none;
    }
    .mobile-bottom-nav .nav-item.active,
    .mobile-bottom-nav .nav-item:hover {
        color: var(--primary-color);
    }
    .mobile-bottom-nav .nav-item i { font-size: 20px; }
    
    /* Center Floating WhatsApp Button */
    .mobile-bottom-nav .nav-item-center {
        position: relative;
        display: flex;
        justify-content: center;
        width: 60px;
    }
    .mobile-bottom-nav .whatsapp-diamond {
        position: absolute;
        bottom: -5px;
        width: 55px;
        height: 55px;
        background: linear-gradient(135deg, #25d366, #128c7e);
        border-radius: 15px;
        transform: rotate(45deg);
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
        border: 4px solid var(--bg-color);
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }
    .mobile-bottom-nav .whatsapp-diamond i {
        transform: rotate(-45deg);
        color: #fff;
        font-size: 30px;
    }

    /* Hide standard floating whatsapp and add body padding */
    .whatsapp-float { display: none !important; }
    body { padding-bottom: 75px !important; }
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav { display: none !important; }
}


/* =========================================================
   Global Fix: Clients Logos Slider (Full Width, No Gaps)
   ========================================================= */

/* إجبار الخانة (Slide) على توسيط اللوجو بداخلها */
.logosSwiper .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* تكبير اللوجوهات لتتوسع وتعبي الفراغ في الخانات */
.logosSwiper img {
    width: 100% !important;         /* إجبار الصورة على أخذ عرض الخانة */
    max-width: 200px !important;    /* حد أقصى عشان ما تنفجر وتصير عملاقة */
    height: auto !important;
    max-height: 130px !important;   /* ارتفاع ممتاز للوجوهات الدائرية والمربعة */
    object-fit: contain !important; /* الحفاظ على أبعاد اللوجو بدون تمطيط */
    
    /* إلغاء الفلتر الرمادي والشفافية */
    filter: none !important; 
    -webkit-filter: none !important;
    opacity: 1 !important; 
    
    transition: transform 0.3s ease !important;
    margin: 0 auto !important;
}

.logosSwiper img:hover {
    transform: scale(1.1) !important;
}

/* =========================================================
   Mobile Adjustments (Make them BIG and remove gaps)
   ========================================================= */
@media (max-width: 768px) {
    .logosSwiper img {
        max-width: 140px !important; 
        max-height: 100px !important; /* تكبير الارتفاع بشكل ملحوظ للموبايل */
    }
}