/* --- 1. Variables & Reset --- */
:root {
    --bg-dark: #020617;       
    --bg-card: #0f172a;       
    --bg-light: #1e293b;      
    
    --accent-gold: #fbbf24;   
    --accent-gold-dim: rgba(251, 191, 36, 0.15);
    --accent-blue: #3b82f6;   
    
    --text-main: #f8fafc;     
    --text-muted: #94a3b8;    
    
    --font-en: 'Plus Jakarta Sans', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --radius-lg: 24px;
    --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Arabic RTL Support */
html[lang="ar"] { direction: rtl; }
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] .link-arrow { transform: scaleX(-1); display: inline-block; }
html[lang="ar"] .service-card:hover .link-arrow { padding-left: 0; padding-right: 5px; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* --- 2. Utilities --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 120px 0; }
.bg-dark { background-color: #01040f; }
.overflow-hidden { overflow: hidden; }

.icon-svg { width: 32px; height: 32px; color: var(--accent-gold); }

.reveal, .reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active, .reveal-text.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- 3. Header & Nav --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: 0.3s;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-symbol {
    width: 44px; height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-light);
}

.logo-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; color: var(--text-main); font-size: 18px; letter-spacing: -0.5px; }
.brand-sub { font-size: 10px; color: var(--accent-gold); letter-spacing: 2px; text-transform: uppercase; }

.nav-menu { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-link { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
    transition: 0.3s; 
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-main); }

.nav-actions { display: flex; align-items: center; gap: 20px; }

/* Language Toggle */
.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: 0.3s;
}
.lang-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.lang-icon { width: 16px; height: 16px; }

.btn-nav {
    padding: 12px 24px;
    background: var(--text-main);
    color: var(--bg-dark);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}
.btn-nav:hover { background: var(--accent-gold); transform: translateY(-2px); }

/* --- 4. Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 80px;
}

.hero-bg-glow {
    position: absolute;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1; filter: blur(100px);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    background: rgba(251, 191, 36, 0.05);
}

.hero-title {
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 40%, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}
/* --- أضف هذا الكود في قسم Hero --- */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* خلف المحتوى */
    pointer-events: none; /* لضمان عدم تأثيره على الأزرار */
}

/* تأكد أن المحتوى فوق الكانفاس */
.hero-content {
    position: relative;
    z-index: 2;
}

/* تعديل الخلفية المتوهجة لتكون خلف النقاط */
.hero-bg-glow {
    z-index: -1;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; }

.btn-primary {
    padding: 16px 32px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.btn-primary:hover { background: #eab308; }

.btn-secondary {
    padding: 16px 32px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-secondary:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }

/* --- 5. Bento Split (Vision) --- */
.bento-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.section-title { font-size: 48px; font-weight: 700; letter-spacing: -1px; margin-bottom: 20px; line-height: 1.1; }
.gold-separator { width: 80px; height: 3px; background: var(--accent-gold); margin-bottom: 20px; }
.section-text { color: var(--text-muted); margin-bottom: 40px; font-size: 16px; }

.stats-row { display: flex; gap: 60px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.stat-item h3 { font-size: 36px; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }
.stat-item p { font-size: 13px; color: var(--accent-gold); text-transform: uppercase; }

.glass-card-vision {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-light));
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.vision-icon { margin-bottom: 24px; }
.vision-icon .icon-svg { width: 56px; height: 56px; }

/* --- 6. Bento Grid Services --- */
.section-header { text-align: center; margin-bottom: 80px; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

/* Large item spans 2 columns */
.bento-large {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, #1e293b 100%);
}

.card-icon-box {
    width: 64px; height: 64px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.bento-item h3 { font-size: 24px; margin-bottom: 16px; }
.bento-item p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* --- 7. Carousel --- */
.carousel-container { perspective: 1200px; display: flex; flex-direction: column; align-items: center; padding: 40px 0; }
.carousel-3d { width: 100%; height: 550px; position: relative; transform-style: preserve-3d; }

.carousel-item {
    position: absolute;
    width: 400px; height: 520px;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: flex; flex-direction: column;
}

.carousel-item img { width: 100%; height: 260px; object-fit: cover; }
.carousel-item .c-content { padding: 30px; }
.carousel-item h3 { font-size: 22px; margin-bottom: 12px; }
.carousel-item p { font-size: 15px; color: var(--text-muted); }

.carousel-controls { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
.c-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    transition: 0.3s;
    font-size: 20px;
}
.c-btn:hover { background: var(--accent-gold); color: var(--bg-dark); }

/* --- 8. Contact & Footer --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.contact-details { margin-top: 50px; }

.cd-item { 
    display: flex; align-items: center; gap: 24px; 
    margin-bottom: 24px; padding: 24px; 
    background: var(--bg-light); 
    border-radius: var(--radius-sm); 
    border: 1px solid transparent; 
    transition: 0.3s; 
}
.cd-item:hover { border-color: var(--accent-gold); transform: translateX(10px); }
/* In RTL mode, flip the hover effect direction */
html[lang="ar"] .cd-item:hover { transform: translateX(-10px); }

.cd-icon { width: 48px; height: 48px; background: var(--bg-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-gold); }

.contact-form-box { background: var(--bg-card); padding: 50px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.input-group { margin-bottom: 24px; }
.input-group label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 14px 18px;
    background: var(--bg-dark); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-main);
    font-family: inherit;
}
.input-group input:focus { outline: none; border-color: var(--accent-blue); }
.btn-submit { width: 100%; padding: 18px; background: var(--accent-gold); border: none; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: 0.3s; }

.footer { border-top: 1px solid var(--border-color); padding: 80px 0 30px; background: #01040f; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; flex-wrap: wrap; gap: 30px; }
.footer-links a { color: var(--text-muted); text-decoration: none; margin-left: 40px; transition: 0.3s; }
html[lang="ar"] .footer-links a { margin-left: 0; margin-right: 40px; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-copy { text-align: center; color: #475569; font-size: 14px; }

/* Loader */
.loader { position: fixed; inset: 0; background: var(--bg-dark); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: 0.5s; }
.loader.hidden { opacity: 0; pointer-events: none; }
.loader-spinner { width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.1); border-top-color: var(--accent-gold); border-radius: 50%; animation: spin 1s infinite linear; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 992px) {
    .bento-split, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
    .hero-title { font-size: 48px; }
}
@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 76px; left: -100%; width: 100%; background: var(--bg-card); flex-direction: column; padding: 40px; transition: 0.3s; height: calc(100vh - 76px); justify-content: flex-start; }
    /* Flip nav menu slide for RTL */
    html[lang="ar"] .nav-menu { left: auto; right: -100%; }
    html[lang="ar"] .nav-menu.active { right: 0; }
    .nav-menu.active { left: 0; }
    
    .menu-toggle { display: block; width: 30px; height: 20px; position: relative; cursor: pointer; }
    .menu-toggle span { display: block; height: 2px; width: 100%; background: var(--text-main); margin-bottom: 6px; }
    .btn-nav { display: none; }
    .carousel-item { width: 280px; height: 420px; }
}

.my-custom-logo {
    height: 70px;         /* Adjust this number to make it bigger/smaller */
    width: auto;          /* Maintains aspect ratio */
    margin-right: -14px;   /* Space between image and text */
    object-fit: contain;
}

/* RTL Support for Arabic (Flips the margin) */
html[lang="ar"] .my-custom-logo {
    margin-right: 0;
    margin-left: -20px;
}

.my-custom-logo1 {
    height: 45px;         /* Adjust this number to make it bigger/smaller */
    width: auto;          /* Maintains aspect ratio */
    margin-right: -20px;   /* Space between image and text */
    margin-left: -20px;
    object-fit: contain;
}

/* RTL Support for Arabic (Flips the margin) */
html[lang="ar"] .my-custom-logo1 {
    margin-right: 0;
    margin-left: -20px;
}

/* --- Social Media Icons in Footer --- */
.social-links {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 10px; /* مسافة صغيرة إذا تم وضعها تحت اللوجو */
}

/* في الشاشات الكبيرة نضعها في المنتصف أو بجانب الروابط */
@media (min-width: 768px) {
    .social-links { margin-top: 0; }
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* شكل دائري */
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark); /* لون الأيقونة يصبح داكن عند التحويم */
    border-color: var(--accent-gold);
    transform: translateY(-3px); /* حركة خفيفة للأعلى */
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.2);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor; /* لضمان تلوين الأيقونة حسب لون النص */
}

/* =========================================
   RESPONSIVE & PERSPECTIVE FIXES
   ========================================= */

/* --- أجهزة التابلت واللابتوب الصغير (أقل من 992px) --- */
@media (max-width: 992px) {
    /* جعل الأقسام المنقسمة تظهر تحت بعضها */
    .bento-split, 
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center; /* توسيط النصوص */
    }

    /* توسيط الإحصائيات */
    .stats-row {
        justify-content: center;
    }

    /* جعل شبكة الخدمات عمودين بدلاً من 3 */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* العنصر الكبير يأخذ العرض كامل */
    .bento-large {
        grid-column: span 2;
    }

    /* ضبط حجم التايتل */
    .hero-title {
        font-size: 60px;
    }
}

/* --- أجهزة الموبايل (أقل من 768px) --- */
@media (max-width: 768px) {
    
    /* 1. ضبط النصوص والمسافات */
    .section-padding { padding: 60px 0; }
    .hero-title { font-size: 40px; margin-bottom: 16px; }
    .hero-desc { font-size: 16px; padding: 0 15px; }
    .section-title { font-size: 32px; }
    
    /* 2. شبكة الخدمات تصبح عمود واحد */
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }

    /* 3. تعديل الفوتر ليكون العناصر تحت بعض */
    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    /* إصلاح مسافات الروابط في الفوتر */
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .footer-links a { margin: 0 !important; } /* إلغاء الهوامش الجانبية */

    /* توسيط أيقونات السوشيال ميديا */
    .social-links {
        justify-content: center;
        margin-top: 15px;
    }

    /* 4. تعديل نموذج التواصل */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-box { padding: 30px 20px; }

    /* 5. إصلاح منظور السلايدر (Carousel) */
    .carousel-container {
        perspective: 800px; /* تقليل المنظور للشاشات الصغيرة */
        padding: 20px 0;
    }
    .carousel-3d {
        height: 400px; /* تقليل الارتفاع */
    }
    .carousel-item {
        width: 260px; /* عرض أصغر للكارت */
        height: 380px;
    }
    .carousel-item img {
        height: 180px;
    }
    
    /* 6. القائمة (Navbar) */
    .logo-symbol { width: 36px; height: 36px; }
    .brand-name { font-size: 16px; }
    
    /* جعل زر القائمة أوضح */
    .menu-toggle {
        padding: 10px;
        margin-left: 10px;
    }
    
    /* دعم اللغة العربية للموبايل */
    html[lang="ar"] .menu-toggle { margin-left: 0; margin-right: 10px; }
}

/* --- الهواتف الصغيرة جداً (أقل من 480px) --- */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        display: block;
        text-align: center;
    }
}
/* =========================================
   MOBILE MENU & LAYOUT FIXES (منظور الهاتف)
   ========================================= */

@media (max-width: 768px) {
    
    /* 1. ضبط الحاوية العلوية (Header) */
    .header {
        padding: 12px 0; /* تقليل ارتفاع الهيدر */
    }
    
    .nav-container {
        padding: 0 20px; /* هوامش جانبية مريحة */
        justify-content: space-between; /* توزيع العناصر */
    }

    /* 2. تصميم القائمة المنزلقة (The Menu) */
    .nav-menu {
        position: fixed;
        top: 70px; /* تظهر أسفل الهيدر مباشرة */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px); /* تغطي باقي الشاشة */
        background-color: var(--bg-dark); /* خلفية داكنة صلبة */
        
        display: flex;
        flex-direction: column; /* ترتيب العناصر عمودياً */
        align-items: center;    /* توسيط العناصر أفقياً */
        justify-content: flex-start; /* البدء من الأعلى */
        padding-top: 40px;
        gap: 30px; /* مسافة بين الروابط */
        
        /* تأثير الحركة (Animation) */
        transform: translateX(-100%); /* مخفية لليسار */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    /* عند تفعيل القائمة */
    .nav-menu.active {
        transform: translateX(0); /* تظهر في الشاشة */
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    /* 3. تنسيق روابط القائمة */
    .nav-link {
        font-size: 18px; /* تكبير الخط للموبايل */
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.03); /* خط فاصل خفيف */
    }

    /* 4. دعم اللغة العربية (RTL) */
    html[lang="ar"] .nav-menu {
        left: auto;
        right: 0;
        transform: translateX(100%); /* مخفية لليمين */
    }
    
    html[lang="ar"] .nav-menu.active {
        transform: translateX(0);
    }

    /* 5. إخفاء العناصر غير الضرورية في الموبايل */
    .btn-nav { display: none; } /* إخفاء زر الاستشارة */
    .brand-sub { display: none; } /* إخفاء النص الفرعي للوجو */
    
    /* 6. تنسيق زر القائمة (Hamburger Icon) */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--accent-gold); /* لون ذهبي */
        border-radius: 2px;
        transition: 0.3s;
    }

    /* حركة زر القائمة عند الفتح (X Shape) */
    .nav-menu.active + .nav-actions .menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .nav-menu.active + .nav-actions .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-menu.active + .nav-actions .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* 7. تصغير اللوجو ليناسب الموبايل */
    .my-custom-logo {
        height: 50px; /* تصغير اللوجو */
        width: auto;
        margin: 0;
    }
    .logo { gap: 8px; }
}
/* =========================================
   MOBILE HEADER CLEANUP (تنظيف الهيدر للموبايل)
   ========================================= */

@media (max-width: 768px) {
    /* 1. تقليل ارتفاع الهيدر العام */
    .header {
        padding: 8px 0 !important; /* تقليل الحشوة العلوية والسفلية */
    }

    /* 2. تنظيف اللوجو */
    .logo-text {
        gap: 0; /* إلغاء المسافات الزائدة */
    }
    
    .brand-name {
        font-size: 15px !important; /* تصغير اسم الشركة قليلاً */
        white-space: nowrap; /* منع النص من النزول لسطرين */
    }

    .brand-sub {
        display: none !important; /* إخفاء النص الفرعي تماماً في الموبايل */
    }

    /* 3. تصغير زر اللغة (أيقونة فقط) */
    .lang-btn {
        padding: 6px !important; /* تصغير حجم الزر */
        border: none; /* إزالة الإطار ليكون أنظف */
    }
    
    .lang-text {
        display: none !important; /* إخفاء كلمة "العربية" أو "English" */
    }
    
    .lang-icon {
        width: 20px;
        height: 20px;
        margin: 0 !important; /* إلغاء الهوامش */
    }

    /* 4. ضبط أيقونة القائمة */
    .menu-toggle {
        margin-left: 10px;
    }
    html[lang="ar"] .menu-toggle {
        margin-left: 0;
        margin-right: 10px;
    }

    /* 5. تحسين عرض العناصر */
    .nav-container {
        padding: 0 15px !important; /* مسافة جانبية صغيرة */
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* جعل العناصر (زر اللغة والقائمة) بجانب بعضها بشكل مرتب */
    .nav-actions {
        gap: 8px !important; /* تقريب العناصر من بعضها */
    }
}
/* =========================================
   ULTIMATE MOBILE HEADER FIX (إصلاح نهائي لمنظور الهاتف)
   ========================================= */

@media (max-width: 768px) {
    /* 1. إخفاء جميع النصوص في اللوجو والإبقاء على الصورة فقط */
    .logo-text, 
    .brand-name, 
    .brand-sub {
        display: none !important;
    }

    /* 2. تنسيق أيقونة اللوجو فقط */
    .my-custom-logo {
        height: 40px !important; /* حجم مناسب للموبايل */
        margin: 0 !important;
    }

    /* 3. ضبط حاوية الهيدر لتكون رفيعة ومرتبة */
    .header {
        padding: 10px 0 !important;
        background: rgba(2, 6, 23, 0.95); /* خلفية داكنة أكثر وضوحاً */
        backdrop-filter: blur(10px);
    }

    .nav-container {
        padding: 0 20px !important;
        height: 50px; /* ارتفاع ثابت وصغير للشريط */
        display: flex;
        align-items: center;
        justify-content: space-between; /* اللوجو يسار والعناصر يمين */
    }

    /* 4. تنسيق المنطقة اليمنى (الأيقونات) */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 15px !important; /* مسافة مريحة بين الكرة الأرضية والقائمة */
    }

    /* 5. ضبط زر القائمة (Hamburger) ليظهر بوضوح */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 18px;
    }
    
    .menu-toggle span {
        background-color: var(--accent-gold) !important; /* لون ذهبي واضح */
        height: 2px;
        border-radius: 4px;
    }

    /* 6. تحسين حجم عنوان الهيرو في الموبايل (Business Excellence) */
    .hero-title {
        font-size: 36px !important; /* تصغير الخط قليلاً ليناسب الشاشة */
        line-height: 1.1;
        margin-top: 20px;
    }
}
/* === FIX MOBILE 100VH BUG === */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100svh - 60px);
    padding-top: 70px;
    padding-bottom: 40px;
  }
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 768px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}
/* Payment Button Style */
.btn-payment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(251, 191, 36, 0.1); /* Low opacity gold background */
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-payment:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.pay-icon {
    width: 18px;
    height: 18px;
}

/* Mobile Adjustments for Payment Button */
@media (max-width: 768px) {
    .btn-payment {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn-payment span {
        display: none; /* Hide text on mobile, show icon only to save space */
    }
    
    /* If you prefer to show text on mobile, remove the display:none above */
    
    .pay-icon {
        width: 20px;
        height: 20px;
    }
}
/* --- Payment Section Styles --- */
.payment-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(2, 6, 23, 0.9));
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.05);
}

/* Gold Glow Effect */
.payment-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.payment-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 60%;
}

.pay-icon-wrapper {
    width: 60px; height: 60px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--accent-gold);
}
.pay-shield-icon { width: 32px; height: 32px; }

.pay-text h2 {
    font-size: 32px;
    margin: 10px 0 15px;
    color: var(--text-main);
}
.pay-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Right Side Actions */
.payment-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align right for English */
    gap: 20px;
}

/* RTL Support for Arabic */
html[lang="ar"] .payment-action {
    align-items: flex-start; /* Align left for Arabic */
}

.btn-ziina {
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

.btn-ziina:hover {
    transform: translateY(-3px);
    background: #eab308;
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.3);
}

.arrow-icon { width: 20px; height: 20px; transition: 0.3s; }
.btn-ziina:hover .arrow-icon { transform: translateX(5px); }
html[lang="ar"] .btn-ziina:hover .arrow-icon { transform: translateX(-5px) scaleX(-1); }
html[lang="ar"] .arrow-icon { transform: scaleX(-1); }

/* Card Badges (Visa/Mastercard Text Look) */
.card-icons {
    display: flex;
    gap: 10px;
}
.c-icon {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 992px) {
    .payment-card {
        flex-direction: column;
        padding: 40px;
        text-align: center;
        gap: 40px;
    }
    
    .payment-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    
    .payment-action {
        align-items: center;
    }
    html[lang="ar"] .payment-action { align-items: center; }
}