/* ==========================================================================
   1. إعدادات أساسية ومتغيرات الألوان (VARIABLES & RESET)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #6C63FF;       /* اللون البنفسجي الرئيسي */
    --secondary: #ff007a;     /* اللون الوردي الثانوي */
    --bg-dark: #0f0c29;       /* خلفية الموقع */
    --bg-card: rgba(255, 255, 255, 0.03); /* لون البطاقات الزجاجي */
    --border-light: rgba(255, 255, 255, 0.1); /* لون الحدود الشفافة */
    --text-grey: #b3b3b3;     /* لون النصوص الفرعية */
    --footer-bg: #050510;     /* لون خلفية الفوتر */
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; }
html { scroll-behavior: smooth; }
body { background: #0f0c29; color: white; min-height: 100vh; overflow-x: hidden; direction: ltr; text-align: left; }

/* شريط التمرير (Scrollbar) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0f0c29; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================================================
   2. الخلفية المتحركة (BACKGROUND ANIMATION)
   ========================================================================== */
.background-shapes div { position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; animation: floatShape 10s infinite alternate; }
.shape1 { width: 400px; height: 400px; background: var(--primary); top: -10%; left: -10%; opacity: 0.4; }
.shape2 { width: 500px; height: 500px; background: var(--secondary); bottom: -10%; right: -10%; animation-delay: -5s; opacity: 0.3; }
.shape3 { width: 300px; height: 300px; background: #00d2ff; top: 40%; left: 30%; animation-delay: -2s; opacity: 0.2; }
@keyframes floatShape { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 50px); } }

/* ==========================================================================
   3. الهيدر والقائمة (HEADER & NAVIGATION)
   ========================================================================== */
header { padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(20px); background: rgba(15, 12, 41, 0.7); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-light); }
.logo { font-size: 1.8rem; font-weight: 800; background: linear-gradient(to right, #fff, var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 1px; }
.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu a { color: #fff; text-decoration: none; font-weight: 500; transition: 0.3s; font-size: 1.05rem; position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: var(--secondary); }
.nav-menu a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--secondary); transition: 0.3s; }
.nav-menu a:hover::after { width: 100%; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* ==========================================================================
   4. الأزرار والعناصر العامة (BUTTONS & GLOBAL UI)
   ========================================================================== */
.btn-main { padding: 12px 30px; background: var(--gradient-main); border: none; border-radius: 50px; color: white; font-weight: bold; cursor: pointer; transition: 0.3s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3); white-space: nowrap; }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 0, 122, 0.5); }

.btn-outline { padding: 12px 30px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; color: white; text-decoration: none; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.btn-outline:hover { border-color: var(--primary); background: rgba(255,255,255,0.05); }

.btn-white { background: #fff; color: var(--primary); padding: 15px 40px; border-radius: 50px; font-weight: 800; text-decoration: none; transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 2; display: inline-flex; align-items: center; gap: 10px; }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

.badge-pill { display: inline-block; padding: 5px 15px; background: rgba(255,255,255,0.1); border-radius: 20px; font-size: 0.9rem; margin-bottom: 20px; border: 1px solid var(--border-light); color: var(--secondary); font-weight: bold; }
.text-center { text-align: center; }
.mb-60 { margin-bottom: 60px; }
.section-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; }
.section-title span { background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub-text { color: var(--text-grey); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* رؤوس الصفحات الفرعية */
.page-header { padding: 120px 10% 60px; text-align: center; }
.page-header h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
.page-header p { font-size: 1.2rem; color: var(--text-grey); max-width: 700px; margin: 0 auto; }

/* ==========================================================================
   5. الصفحة الرئيسية (HOME PAGE COMPONENTS)
   ========================================================================== */
/* Hero Section */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 140px 10% 80px; min-height: 90vh; }
.hero-text { max-width: 600px; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; font-weight: 900; }
.hero p { font-size: 1.15rem; color: var(--text-grey); margin-bottom: 20px; line-height: 1.7; }
.typewriter-text { color: var(--primary); }
.cursor { color: var(--secondary); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-buttons { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-top: 30px; }

/* Floating 3D Card */
.floating-card { width: 340px; padding: 40px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-light); border-radius: 25px; backdrop-filter: blur(25px); display: flex; flex-direction: column; align-items: center; transform: rotate(-5deg) perspective(1000px); animation: floatCard 6s infinite ease-in-out; position: relative; overflow: hidden; }
.glow-effect { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%); animation: rotateGlow 10s linear infinite; }
@keyframes rotateGlow { 100% { transform: rotate(360deg); } }
.icon-circle { width: 80px; height: 80px; background: var(--gradient-main); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-bottom: 20px; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.floating-card h2 { font-size: 1.5rem; margin-bottom: 20px; z-index: 2; }
.stats-row { display: flex; justify-content: space-between; width: 100%; border-top: 1px solid var(--border-light); padding-top: 20px; z-index: 2; }
.stats-row div { text-align: center; }
.stats-row strong { display: block; font-size: 1.2rem; color: var(--primary); }
@keyframes floatCard { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-20px); } }

/* Services Grid (General) */
.section-container { padding: 100px 10%; position: relative; z-index: 2; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: var(--bg-card); backdrop-filter: blur(20px); padding: 40px 30px; border-radius: 24px; border: 1px solid var(--border-light); transition: 0.4s; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); background: rgba(255,255,255,0.06); }
.card-bg-icon { position: absolute; right: -20px; bottom: -20px; font-size: 8rem; opacity: 0.05; transform: rotate(-15deg); transition: 0.4s; }
.feature-card:hover .card-bg-icon { transform: rotate(0) scale(1.1); opacity: 0.1; }
.icon-box { width: 60px; height: 60px; background: rgba(108, 99, 255, 0.1); color: var(--primary); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 25px; border: 1px solid rgba(108, 99, 255, 0.2); }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.feature-card p { color: var(--text-grey); line-height: 1.6; }

/* Process Section */
.process-section { position: relative; padding: 100px 10%; overflow: hidden; }
.process-line-bg { position: absolute; top: 55%; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent); z-index: 0; opacity: 0.3; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; position: relative; z-index: 2; }
.process-step { background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: 24px; padding: 40px 30px; text-align: left; transition: 0.4s; position: relative; overflow: hidden; }
.process-step:hover { transform: translateY(-15px); border-color: var(--secondary); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.step-number-bg { position: absolute; top: -10px; right: -10px; font-size: 8rem; font-weight: 900; color: rgba(255, 255, 255, 0.03); line-height: 1; transition: 0.3s; }
.process-step:hover .step-number-bg { color: rgba(255, 255, 255, 0.08); transform: scale(1.1); }
.step-icon-modern { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary), #2a2a72); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: white; margin-bottom: 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); position: relative; z-index: 2; }

/* ==========================================================================
   6. الفوتر والبطاقة العائمة (FOOTER & FLOATING CTA) - تم الإصلاح
   ========================================================================== */
/* غلاف الفوتر */
.footer-wrapper { 
    margin-top: 220px; /* مساحة لرفع البطاقة */
    background: var(--footer-bg); 
    position: relative; 
    padding-top: 0;
    
    /* للكمبيوتر: نستخدم Flexbox لضبط التمركز */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-wrapper.no-margin-top { margin-top: 0; } 

/* 🔥 البطاقة العائمة (The Floating Card) - Desktop Config 🔥 */
@media (min-width: 993px) {
    .footer-cta-box { 
        position: relative; /* نسبي ليدفع الفوتر للأسفل */
        width: 85%; 
        max-width: 900px;
        background: var(--gradient-main); 
        border-radius: 30px; 
        padding: 60px 80px; /* حشوة كبيرة */
        
        margin: 0 auto; /* توسيط أفقي */
        margin-top: -150px; /* سحب للأعلى لعمل تأثير الطفو */
        margin-bottom: 80px; /* دفع الفوتر للأسفل */
        
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        box-shadow: 0 20px 60px rgba(108, 99, 255, 0.4); 
        z-index: 10; 
        height: auto; 
    }
}

/* محتوى البطاقة العائمة */
.footer-cta-box .cta-content { width: 100%; max-width: 100%; margin: 0 auto; }

/* تنسيق النصوص داخل البطاقة */
.footer-cta-box .cta-content h2 { 
    margin-bottom: 25px !important; 
    line-height: 1.3; 
    color: white; 
    /* حجم خط ذكي يتغير حسب الشاشة */
    font-size: clamp(2rem, 3.5vw, 2.8rem); 
    word-wrap: break-word; 
}

.footer-cta-box .cta-content p { 
    margin-bottom: 35px !important; 
    line-height: 1.6; 
    font-size: clamp(1rem, 1.5vw, 1.2rem); 
    color: rgba(255,255,255,0.95); 
    word-wrap: break-word; 
}

.cta-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%); pointer-events: none; }

/* أزرار البطاقة */
.cta-buttons-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 10px; width: 100%; }
.cta-buttons-row .btn-store { background: #fff; color: #000; border: none; min-width: 180px; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.cta-buttons-row .btn-store:hover { background: #f0f0f0; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* محتويات الفوتر السفلية */
.footer-big-logo { position: absolute; bottom: 0; right: 5%; font-size: 15rem; font-weight: 900; color: rgba(255, 255, 255, 0.02); pointer-events: none; user-select: none; z-index: 0; }
.main-footer { padding: 0 10% 30px; position: relative; width: 100%; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-logo { font-size: 2rem; margin-bottom: 20px; display: inline-block; }
.footer-desc { opacity: 0.7; line-height: 1.8; margin-bottom: 25px; }
.social-icons-modern a { width: 45px; height: 45px; background: rgba(255,255,255,0.05); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 10px; color: white; transition: 0.3s; border: 1px solid var(--border-light); text-decoration: none; }
.social-icons-modern a:hover { background: var(--secondary); border-color: var(--secondary); transform: translateY(-5px); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #aaa; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--secondary); transform: translateX(5px); }
.contact-row { display: flex; align-items: center; margin-bottom: 18px; color: #ccc; gap: 15px; }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-light); padding-top: 25px; color: #666; font-size: 0.9rem; }

/* ==========================================================================
   7. واجهة المساعد الصوتي (AI VOICE AGENT)
   ========================================================================== */
.floating-mic { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--gradient-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; cursor: pointer; box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4); z-index: 2000; transition: 0.3s; animation: pulseMic 2s infinite; }
.floating-mic:hover { transform: scale(1.1) rotate(10deg); }
@keyframes pulseMic { 0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(108, 99, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); } }

.ai-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 5, 16, 0.85); backdrop-filter: blur(10px); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.4s; }
.ai-overlay.active { opacity: 1; pointer-events: all; }
.ai-box { background: var(--bg-dark); border: 1px solid var(--border-light); border-radius: 25px; padding: 40px; width: 90%; max-width: 400px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.5); transform: translateY(50px); transition: 0.4s; }
.ai-overlay.active .ai-box { transform: translateY(0); }
.ai-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.close-btn { background: none; border: none; color: var(--text-grey); font-size: 1.2rem; cursor: pointer; }
.ai-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; color: var(--text-grey); }
.status-dot { width: 10px; height: 10px; background: #555; border-radius: 50%; }
.status-dot.active { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.status-dot.error { background: #ff0055; }
.visualizer { display: flex; justify-content: center; align-items: center; gap: 5px; height: 60px; margin-bottom: 30px; }
.bar { width: 6px; height: 5px; background: var(--secondary); border-radius: 5px; transition: 0.1s; }
.btn-ai-action { width: 100%; }
.btn-ai-action.connected { background: #ff0055; box-shadow: none; }

/* ==========================================================================
   8. الصفحات القانونية (LEGAL PAGES)
   ========================================================================== */
.legal-container { padding: 0 10% 100px; max-width: 1200px; margin: 0 auto; }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-bottom: 30px; }
.legal-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: 20px; padding: 40px; transition: 0.3s; position: relative; overflow: hidden; }
.legal-card:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--primary); transform: translateY(-5px); }
.legal-card.full-width { margin-bottom: 30px; }
.legal-icon { width: 60px; height: 60px; background: rgba(108, 99, 255, 0.1); color: var(--primary); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 25px; border: 1px solid rgba(108, 99, 255, 0.2); }
.legal-card h2, .legal-card h3 { margin-bottom: 20px; color: #fff; }
.legal-text { color: #ccc; line-height: 1.8; font-size: 1rem; }
.legal-text p { margin-bottom: 15px; }
.legal-text ul { list-style: none; margin-top: 10px; }
.legal-text ul li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.legal-text ul li::before { content: "•"; color: var(--secondary); font-weight: bold; position: absolute; left: 0; }
.legal-text strong { color: white; }
.highlight-text { color: var(--secondary); font-weight: bold; margin-top: 20px; display: block; }
.small-note { font-size: 0.9rem; color: var(--text-grey); font-style: italic; margin-top: 15px; }
.check-list li::before { content: "\f00c" !important; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #00ff88 !important; }
.contact-list-legal { list-style: none; margin-top: 15px; }
.contact-list-legal li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; }
.contact-list-legal li i { color: var(--secondary); }
.contact-list-legal li a { color: white; text-decoration: none; transition: 0.3s; }
.contact-list-legal li a:hover { color: var(--primary); transform: translateX(5px); }
@media (min-width: 992px) { .columns-text { column-count: 2; column-gap: 40px; } }

/* ==========================================================================
   9. صفحة التواصل (CONTACT PAGE)
   ========================================================================== */
.contact-section { padding: 0 10% 100px; position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.contact-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: 20px; padding: 30px; margin-bottom: 25px; transition: 0.3s; }
.contact-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.contact-card h3 { font-size: 1.4rem; margin-bottom: 20px; border-bottom: 1px solid var(--border-light); padding-bottom: 15px; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.icon-circle-small { width: 45px; height: 45px; background: rgba(108, 99, 255, 0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.info-item span { display: block; font-size: 0.9rem; color: var(--text-grey); margin-bottom: 3px; }
.info-item a, .info-item p { color: white; font-weight: 500; text-decoration: none; font-size: 1.05rem; transition: 0.3s; }
.info-item a:hover { color: var(--secondary); }
.response-time { font-size: 0.85rem; color: #00ff88; margin-bottom: 20px; background: rgba(0, 255, 136, 0.1); padding: 5px 10px; border-radius: 10px; display: inline-block; }
.btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 10px; background: #25D366; color: white; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: bold; margin-top: 20px; transition: 0.3s; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background: #1ebc57; transform: translateY(-2px); }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #ccc; }
.hours-list li.highlight { color: white; font-weight: bold; }
.time-badge { color: var(--primary); }
.hours-list li.closed span:last-child { color: var(--secondary); }
.ai-promo-card { background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 0, 122, 0.1)); border: 1px solid var(--primary); text-align: center; position: relative; overflow: hidden; }
.ai-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%); animation: rotateGlow 5s linear infinite; }
.ai-icon { margin: 0 auto 15px; width: 50px; height: 50px; font-size: 1.2rem; z-index: 2; position: relative; }
.ai-promo-card h3, .ai-promo-card p, .ai-promo-card a { position: relative; z-index: 2; }
.ai-promo-card p { font-size: 0.9rem; margin-bottom: 20px; color: #ddd; }
.btn-small { padding: 8px 20px; font-size: 0.9rem; }
.glass-form { background: var(--bg-card); backdrop-filter: blur(25px); padding: 50px; border-radius: 30px; border: 1px solid var(--border-light); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.glass-form h2 { font-size: 2rem; margin-bottom: 10px; }
.glass-form p { color: var(--text-grey); margin-bottom: 40px; }
.input-group { position: relative; margin-bottom: 30px; }
.input-group input, .input-group textarea { width: 100%; padding: 15px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-light); border-radius: 12px; color: white; font-size: 1rem; transition: 0.3s; outline: none; }
.input-group textarea { resize: vertical; }
.input-group label { position: absolute; left: 15px; top: 15px; color: var(--text-grey); pointer-events: none; transition: 0.3s; background: transparent; }
.input-group input:focus, .input-group input:not(:placeholder-shown), .input-group textarea:focus, .input-group textarea:not(:placeholder-shown) { border-color: var(--primary); background: rgba(255,255,255,0.1); }
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label, .input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label { top: -12px; left: 10px; font-size: 0.8rem; color: var(--primary); background: var(--bg-dark); padding: 0 5px; border-radius: 5px; }
.full-width { width: 100%; }

/* ==========================================================================
   10. صفحات "عنا" و "الخدمات" (ABOUT & SERVICES)
   ========================================================================== */
.founder-section { padding: 0 10% 80px; display: flex; justify-content: center; }
.founder-card { background: var(--bg-card); backdrop-filter: blur(30px); border: 1px solid var(--border-light); border-radius: 30px; padding: 50px; width: 100%; max-width: 1100px; position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.founder-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.founder-image-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(108, 99, 255, 0.3); }
.founder-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: 0.5s; display: block; }
.founder-image-wrapper:hover .founder-img { transform: scale(1.05); }
.image-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, rgba(108, 99, 255, 0.3)); z-index: 2; pointer-events: none; }
.founder-badge { display: inline-block; background: var(--gradient-main); color: white; padding: 5px 15px; border-radius: 50px; font-size: 0.85rem; font-weight: bold; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.founder-content h2 { font-size: 2.5rem; margin-bottom: 25px; }
.quote-box { position: relative; padding-left: 30px; border-left: 3px solid var(--secondary); margin-bottom: 30px; }
.quote-icon { position: absolute; top: -10px; left: 10px; font-size: 1.5rem; color: rgba(255, 255, 255, 0.1); z-index: 0; }
.founder-story { font-style: italic; color: #ddd; line-height: 1.8; font-size: 1.1rem; position: relative; z-index: 1; }
.mv-section { padding: 0 10% 100px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mv-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-light); border-radius: 20px; padding: 40px; transition: 0.3s; display: flex; flex-direction: column; align-items: flex-start; }
.mv-card:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-5px); border-color: var(--primary); }
.mv-icon { width: 60px; height: 60px; background: var(--bg-dark); border: 1px solid var(--border-light); color: var(--secondary); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.mv-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.mv-card p { color: var(--text-grey); line-height: 1.7; }
.values-section { padding: 0 10% 100px; }

/* Services Page specific */
.services-container { padding: 0 10% 100px; }
.service-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: 24px; padding: 40px 30px; transition: 0.4s; position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); background: rgba(255, 255, 255, 0.05); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.service-icon { width: 70px; height: 70px; background: rgba(108, 99, 255, 0.1); color: var(--primary); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 25px; border: 1px solid rgba(108, 99, 255, 0.2); transition: 0.3s; }
.service-card:hover .service-icon { background: var(--primary); color: white; transform: scale(1.1) rotate(5deg); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-grey); line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.service-list { list-style: none; padding-top: 20px; border-top: 1px solid var(--border-light); }
.service-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.95rem; color: #ddd; }
.service-list li i { color: var(--secondary); font-size: 0.8rem; }
.ai-card { border: 1px solid var(--secondary); background: linear-gradient(145deg, rgba(255, 0, 122, 0.05), transparent); }
.ai-glow-icon { color: var(--secondary); background: rgba(255, 0, 122, 0.1); border-color: rgba(255, 0, 122, 0.3); box-shadow: 0 0 20px rgba(255, 0, 122, 0.2); }
.service-card:hover .ai-glow-icon { background: var(--secondary); box-shadow: 0 0 30px rgba(255, 0, 122, 0.6); }
.tech-stack-section { padding: 0 10% 120px; }
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tech-badge { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-light); padding: 12px 25px; border-radius: 50px; color: #ccc; font-weight: 500; display: flex; align-items: center; gap: 10px; transition: 0.3s; cursor: default; }
.tech-badge i { font-size: 1.2rem; color: var(--primary); }
.tech-badge:hover { background: rgba(255, 255, 255, 0.1); color: white; border-color: var(--secondary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* ==========================================================================
   11. صفحة المنتجات (PRODUCTS / APP PAGE)
   ========================================================================== */
.app-hero, .features-section, .showcase-section { padding-left: 10%; padding-right: 10%; position: relative; overflow: hidden; }
.app-hero { padding-top: 140px; padding-bottom: 60px; }
.app-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.highlight-neon { color: var(--secondary); text-shadow: 0 0 20px rgba(255, 0, 122, 0.4); }
.store-buttons { display: flex; gap: 20px; margin: 30px 0; flex-wrap: wrap; }
.btn-store { background: #000; border: 1px solid rgba(255,255,255,0.2); border-radius: 15px; padding: 12px 25px; display: flex; align-items: center; gap: 15px; color: white; text-decoration: none; transition: 0.3s; min-width: 170px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-store:hover { background: #1a1a1a; transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 15px 30px rgba(108, 99, 255, 0.2); }
.btn-store i { font-size: 2rem; }
.btn-store div { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store span { font-size: 0.7rem; opacity: 0.8; text-transform: uppercase; }
.btn-store strong { font-size: 1.1rem; }
.mini-stats { display: flex; align-items: center; gap: 25px; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); padding: 15px 30px; border-radius: 50px; display: inline-flex; border: 1px solid var(--border-light); margin-top: 20px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.2rem; color: white; }
.stat-item span { font-size: 0.8rem; color: var(--text-grey); }
.stat-divider { width: 1px; height: 30px; background: var(--border-light); }
.text-yellow { color: #FFD700; }

.app-visual { position: relative; display: flex; justify-content: center; align-items: center; height: auto; }
.app-icon-wrapper { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; z-index: 1; opacity: 0.1; filter: blur(5px); animation: floatIcon 8s infinite ease-in-out; }
.app-icon-img { width: 100%; height: 100%; border-radius: 80px; }
@keyframes floatIcon { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.05); } }

/* 🔥🔥 PHONE MOCKUP (FLEXIBLE HEIGHT FIX) 🔥🔥 */
.phone-mockup { 
    width: 290px; /* عرض ثابت */
    height: auto; /* الطول مرن حسب الصورة */
    
    position: relative; 
    z-index: 5; 
    background: #000; 
    border-radius: 40px; 
    padding: 8px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 2px solid #222;
    display: inline-block; 
    transition: 0.3s;
    box-sizing: content-box; 
    margin: 0 auto;
}

.phone-mockup img { 
    width: 100%; 
    height: auto; /* الصورة تأخذ طولها الطبيعي دون قص */
    display: block; 
    border-radius: 32px; 
}

.main-phone { transform: rotate(-5deg); animation: floatPhone 6s infinite ease-in-out; }
@keyframes floatPhone { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-20px); } }

.showcase-section { padding-bottom: 120px; }
.screenshots-scroller { display: flex; gap: 30px; overflow-x: auto; padding: 40px 20px; justify-content: center; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: flex-start; }
.screenshots-scroller::-webkit-scrollbar { display: none; }
.screenshot-item { text-align: center; flex-shrink: 0; transition: 0.3s; }
.screenshot-item h4 { margin-top: 15px; color: white; font-size: 1.1rem; }

/* ==========================================================================
   12. صفحة حذف الحساب (DELETE ACCOUNT PAGE)
   ========================================================================== */
.danger-zone { border: 1px solid rgba(255, 0, 85, 0.3); background: rgba(255, 0, 85, 0.05); }
.danger-zone h2 { color: #ff0055; }
.warning-text { color: #ff99bb; font-size: 0.95rem; margin-bottom: 25px; background: rgba(255, 0, 85, 0.1); padding: 15px; border-radius: 10px; line-height: 1.5; }
.success-msg { color: #00ff88; margin-top: 15px; padding: 15px; background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.2); border-radius: 12px; font-size: 0.9rem; }
.error-msg { color: #ff0055; margin-top: 15px; padding: 15px; background: rgba(255, 0, 85, 0.1); border: 1px solid rgba(255, 0, 85, 0.2); border-radius: 12px; font-size: 0.9rem; }
.btn-danger { background: linear-gradient(135deg, #ff0055, #cc0044); border: none; color: white; width: 100%; padding: 15px; border-radius: 12px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(255, 0, 85, 0.2); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-danger:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 0, 85, 0.4); background: linear-gradient(135deg, #ff3377, #e60033); }
.btn-danger:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ==========================================================================
   13. التصميم المتجاوب (RESPONSIVE DESIGN)
   ========================================================================== */

/* Tablets (992px) */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 120px; padding-bottom: 60px; }
    .hero-text { margin-bottom: 50px; width: 100%; }
    .hero-buttons { justify-content: center; }
    .process-line-bg, .footer-big-logo { display: none; }
    
    /* إلغاء رفع الفوتر في الموبايل */
    .footer-wrapper { margin-top: 0; padding-top: 0 !important; }
    
    /* 🔥 إصلاح البطاقة العائمة للموبايل (Relative & Spaced) 🔥 */
    .footer-cta-box { 
        position: relative; 
        top: auto; left: auto; transform: none;
        width: 90%; 
        margin: -60px auto 40px auto !important; 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
        padding: 40px 25px; 
    }
    .footer-cta-box h2 { font-size: 1.8rem; margin-bottom: 15px !important; }
    .footer-cta-box p { font-size: 1rem; margin-bottom: 25px !important; line-height: 1.5; }

    .contact-grid, .founder-grid, .app-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .contact-info-col { order: 2; } .contact-form-col { order: 1; }
    .founder-image-wrapper { max-width: 300px; margin: 0 auto; }
    .quote-box { padding-left: 0; border-left: none; border-top: 3px solid var(--secondary); padding-top: 20px; }
    .mv-grid { grid-template-columns: 1fr; }
    .store-buttons { justify-content: center; }
    .mini-stats { display: none; }
    .app-visual { height: auto; margin-top: 20px; display: block; }
    .app-icon-wrapper { width: 300px; height: 300px; top: 50%; opacity: 0.15; }
    .main-phone { transform: rotate(0); animation: none; margin: 0 auto; }

    /* 🔥 ضبط الهاتف في الموبايل 🔥 */
    .phone-mockup { 
        width: 260px; 
        height: auto; 
        padding: 6px; 
        border-radius: 28px; 
        box-sizing: content-box; 
        display: block; 
        margin: 0 auto; 
    }
    .phone-mockup img { 
        width: 100%; 
        height: auto; 
        display: block; 
        border-radius: 22px; 
        object-fit: contain; 
    }

    /* 🔥 إصلاح التمرير (Peek Effect) 🔥 */
    .screenshots-scroller { justify-content: flex-start; padding-left: 20px; scroll-snap-type: x mandatory; gap: 15px; padding-bottom: 40px; }
    .screenshot-item { width: 75vw; max-width: 280px; scroll-snap-align: center; }
    .screenshot-item .phone-mockup { width: 100%; padding: 6px; box-sizing: border-box; }
    
    .cta-buttons-row { flex-direction: column; width: 100%; }
    .cta-buttons-row .btn-store { width: 100%; }
}

/* Phones (768px) */
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(15, 12, 41, 0.98); padding: 30px; flex-direction: column; text-align: center; border-bottom: 1px solid var(--border-light); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    .nav-btn { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .floating-card { width: 100%; transform: none; animation: none; }
    .page-header h1 { font-size: 2.5rem; }
    .legal-card { padding: 30px 20px; }
    .columns-text { column-count: 1; }
    .tech-grid { gap: 10px; }
    .tech-badge { padding: 10px 15px; font-size: 0.9rem; }
}

/* Small Phones (480px) */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 15px; }
    .btn-main, .btn-outline { width: 100%; justify-content: center; padding: 15px; }
    .section-container, .hero { padding-left: 5%; padding-right: 5%; }
    .app-hero, .features-section, .showcase-section { padding-left: 20px; padding-right: 20px; }
}

/* =========================================
   🔥 FIX: توحيد هوامش الموبايل (Mobile Spacing Consistency) 🔥
   هذا الكود يضمن أن البطاقات والهيدر والفوتر جميعها لها نفس البعد عن الحافة
========================================= */

@media (max-width: 768px) {
    
    /* 1. ضبط الهيدر (الشريط العلوي) */
    header {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    /* 2. ضبط قسم التواصل (Contact Section) */
    .contact-section {
        padding-left: 25px !important;
        padding-right: 25px !important;
        width: 100%;
        box-sizing: border-box;
    }

    /* 3. ضبط البطاقات نفسها لتأخذ العرض المتاح مع احترام الهوامش */
    .contact-card, 
    .glass-form {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        
        /* تقليل الحشوة الداخلية للبطاقة قليلاً في الموبايل لتوفير مساحة للنص */
        padding: 25px !important; 
    }

    /* 4. ضبط الفوتر ليماثل البقية */
    .main-footer {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

/* =========================================
   🔥 FIX: استعادة لون خلفية البطاقة في الموبايل 🔥
========================================= */

@media (max-width: 992px) {
    .footer-cta-box {
        /* إعادة تعيين الخلفية المتدرجة */
        background: var(--gradient-main) !important;
        
        /* التأكد من وجود الظل والزوايا */
        border-radius: 30px;
        box-shadow: 0 10px 40px rgba(108, 99, 255, 0.4);
        
        /* ضمان أن النص أبيض */
        color: white;
        
        /* التأكد من أنها فوق الخلفية */
        z-index: 20; 
        opacity: 1;
    }
}

/* ==========================================================================
   FIX: إصلاح استجابة الجوال لصفحة التواصل
   ========================================================================== */
@media (max-width: 991px) {
    
    /* جعل الشبكة عموداً واحداً بدلاً من عمودين */
    .contact-grid {
        grid-template-columns: 1fr; /* عمود واحد يأخذ كامل المساحة */
        gap: 40px;
    }

    /* تعديل الهوامش الجانبية في الموبايل لتكون أقل حدة */
    /* كانت 10% وهذا كثير جداً على الموبايل، نجعلها 5% */
    .contact-section {
        padding: 0 5% 80px; 
    }

    /* إصلاح ترتيب العناصر (اختياري: إذا أردت الفورم أولاً أو المعلومات أولاً) */
    /* حالياً المعلومات تظهر أولاً، وهذا جيد */

    /* التأكد من أن النصوص لا تخرج عن الإطار */
    .contact-card, .glass-form {
        padding: 30px 20px; /* تقليل الحشوة الداخلية للبطاقات قليلاً */
    }
}

/* =========================================
   COMING SOON POPUP STYLES
========================================= */

.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 5, 16, 0.85); /* خلفية داكنة */
    backdrop-filter: blur(8px); /* تمويه الخلفية */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-box {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    color: var(--text-grey);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}
.popup-close:hover { color: white; transform: rotate(90deg); }

.popup-icon {
    width: 80px; height: 80px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
}

/* تأثير النبض للأيقونة */
.icon-glow-anim {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(108, 99, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}

.popup-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.popup-box p {
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 20px;
}