/* ==========================================================================
   المتغيرات والألوان 
   ========================================================================== */
:root {
    --color-primary: #0A192F;       
    --color-secondary: #112240;     
    --color-cyan: #00B4D8;          /* السماوي التقني الفخم */
    --color-gold: #FFD700;          
    --color-gold-hover: #F2C900;
    --color-text-dark: #233554;     
    --color-text-light: #8892B0;    
    --color-white: #FFFFFF;
    --color-bg-light: #F4F7FB;      
    
    --shadow-light: 0 10px 30px -15px rgba(2, 12, 27, 0.1);
    --shadow-heavy: 0 20px 40px -15px rgba(2, 12, 27, 0.5);
    
    --transition-fast: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ==========================================================================
   إعدادات عامة 
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', 'Cairo', sans-serif; }
html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100vw; overflow-x: hidden !important; background-color: var(--color-bg-light); color: var(--color-text-dark); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

/* ==========================================================================
   الأزرار العامة
   ========================================================================== */
.btn-solid-gold, .btn-outline-white, .btn-outline-cyan { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 1.1rem; text-decoration: none; transition: var(--transition-fast); cursor: pointer; border: 2px solid transparent; }
.btn-solid-gold { background-color: var(--color-gold); color: var(--color-primary); box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2); }
.btn-solid-gold:hover { background-color: var(--color-gold-hover); transform: translateY(-3px); box-shadow: 0 15px 25px rgba(255, 215, 0, 0.4); }
.btn-outline-white { background-color: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline-white:hover { background-color: var(--color-white); color: var(--color-primary); }
.btn-outline-cyan { background-color: transparent; color: var(--color-cyan); border-color: var(--color-cyan); padding: 10px 22px; }
.btn-outline-cyan:hover { background-color: var(--color-cyan); color: var(--color-white); box-shadow: 0 0 15px rgba(0, 180, 216, 0.4); }

/* ==========================================================================
   الأزرار العائمة
   ========================================================================== */
.floating-actions { position: fixed; bottom: 30px; left: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
.float-btn { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--color-white); text-decoration: none; box-shadow: 0 5px 20px rgba(0,0,0,0.3); transition: var(--transition-fast); position: relative; }
.phone-btn { background-color: var(--color-primary); border: 2px solid var(--color-cyan); }
.wa-btn { background-color: #25D366; }
.float-btn:hover { transform: scale(1.15) rotate(-5deg); }

/* ==========================================================================
   النافبار
   ========================================================================== */
.main-header { position: fixed; top: 0; width: 100%; background-color: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 180, 216, 0.2); z-index: 1000; padding: 15px 0; transition: var(--transition-fast); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-area a { text-decoration: none; }
.logo-area h1 { color: var(--color-white); font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 5px; }
.logo-area .dot { color: var(--color-cyan); }
.logo-slogan { color: var(--color-gold); font-size: 0.95rem; font-weight: 600; letter-spacing: 1px; }
.nav-list { display: flex; list-style: none; gap: 25px; }
.nav-list a { color: var(--color-white); text-decoration: none; font-size: 1.05rem; font-weight: 600; transition: var(--transition-fast); }
.nav-list a:hover, .nav-list a.active { color: var(--color-cyan); }
.mobile-toggle { display: none; background: transparent; border: none; color: var(--color-cyan); font-size: 30px; cursor: pointer; }

/* ==========================================================================
   الهيرو (القسم الرئيسي)
   ========================================================================== */
.hero-section { position: relative; width: 100%; min-height: 100vh; background: url('assets/hero-bg.jpg') center/cover no-repeat; display: flex; align-items: center; padding-top: 100px; overflow: hidden; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 25, 47, 0.4); z-index: 1; }

.glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.7; animation: floatOrb 10s infinite alternate ease-in-out; z-index: 1; }
.orb-1 { width: 300px; height: 300px; background: var(--color-cyan); top: -50px; left: -50px; }
.orb-2 { width: 250px; height: 250px; background: var(--color-gold); bottom: 10%; right: -50px; animation-delay: -5s; }
@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(80px, 50px) scale(1.2); } }

.tech-grid-bg { position: absolute; top: 0; left: 0; width: 200%; height: 200%; background-image: linear-gradient(rgba(0, 180, 216, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 180, 216, 0.1) 1px, transparent 1px); background-size: 40px 40px; z-index: 1; animation: panBg 30s linear infinite; pointer-events: none; }
@keyframes panBg { 0% { transform: translate(0,0); } 100% { transform: translate(-50px, -50px); } }

.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-badge { display: inline-block; background: rgba(0, 180, 216, 0.15); color: var(--color-cyan); border: 1px solid var(--color-cyan); padding: 8px 20px; border-radius: 30px; font-weight: 700; margin-bottom: 25px; font-size: 1rem; }
.hero-title { font-size: 3.5rem; color: var(--color-white); font-weight: 900; line-height: 1.3; margin-bottom: 25px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.highlight-gold { color: var(--color-gold); }
.hero-desc { font-size: 1.25rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; max-width: 800px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   شريط الماركات
   ========================================================================== */
.brands-section { background-color: var(--color-primary); padding: 20px 0; border-bottom: 3px solid var(--color-cyan); }
.brands-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.brands-title { color: var(--color-white); font-weight: 700; margin: 0; }
.brands-grid { display: flex; gap: 30px; flex-wrap: wrap; }
.brand-item { color: rgba(255,255,255,0.7); font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   عناوين الأقسام المشتركة
   ========================================================================== */
.section-title-center { text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; position: relative; z-index: 5; }
.sub-heading { color: var(--color-gold); font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.main-heading { font-size: 2.5rem; color: var(--color-primary); font-weight: 900; margin-bottom: 20px; }
.main-heading.text-white { color: var(--color-white); }
.heading-desc { font-size: 1.15rem; color: var(--color-text-light); }
.heading-desc.text-light { color: rgba(255,255,255,0.7); }

/* ==========================================================================
   الخدمات والآراء (الموشن جرافيك السحري في الخلفية البيضاء - تم التوضيح)
   ========================================================================== */
.services-section, .reviews-section { 
    padding: 100px 0; 
    background-color: var(--color-white); 
    position: relative; 
    overflow: hidden; 
}

/* خلفية الموشن التكنولوجي (تم زيادة الوضوح وتسريع الحركة) */
.services-section::before, .reviews-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; 
    width: 200%; height: 200%;
    /* تم رفع الشفافية لـ 15% عشان تظهر بوضوح */
    background-image: 
        linear-gradient(rgba(0, 180, 216, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.15) 1px, transparent 1px);
    background-size: 40px 40px; /* تصغير المربعات لشكل هندسي أفضل */
    z-index: 1; /* عشان تكون فوق الخلفية البيضاء مباشرة */
    animation: panGridLight 20s linear infinite; /* حركة أسرع لتلفت الانتباه */
    pointer-events: none; 
}
@keyframes panGridLight {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -40px); }
}

/* رفع مستوى المحتوى عشان ما يتغطاش بالشبكة */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; position: relative; z-index: 5; }

.service-card { background: var(--color-white); border-radius: 12px; box-shadow: var(--shadow-light); transition: var(--transition-fast); border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: visible; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-heavy); border-color: var(--color-cyan); }
.card-image-wrapper { position: relative; height: 220px; overflow: visible; }
.img-box { width: 100%; height: 100%; overflow: hidden; border-radius: 12px 12px 0 0; }
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-img { transform: scale(1.1); }
.icon-floating { position: absolute; bottom: -32px; right: 30px; width: 65px; height: 65px; background-color: var(--color-primary); color: var(--color-cyan); display: flex; justify-content: center; align-items: center; font-size: 26px; border-radius: 12px; border: 4px solid var(--color-white); z-index: 10; }
.card-body { padding: 45px 30px 30px; flex-grow: 1; }
.card-body h3 { font-size: 1.4rem; color: var(--color-primary); font-weight: 800; margin-bottom: 15px; }
.service-details { color: var(--color-text-light); font-size: 1rem; line-height: 1.8; }

/* ==========================================================================
   مناطق التغطية
   ========================================================================== */
.coverage-section { padding: 100px 0; background-color: var(--color-primary); position: relative; overflow: hidden; }
.coverage-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 5; }
.cities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-top: 30px; }
.city-item { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(0, 180, 216, 0.2); padding: 15px; border-radius: 8px; color: var(--color-white); font-weight: 700; display: flex; align-items: center; gap: 10px; transition: var(--transition-fast); }
.city-item i { color: var(--color-cyan); }
.city-item:hover { background: rgba(0, 180, 216, 0.15); transform: translateY(-3px); }
.mt-4 { margin-top: 30px; }

/* الرادار */
.coverage-graphics { display: flex; justify-content: center; align-items: center; }
.radar-box { position: relative; width: 300px; height: 300px; display: flex; justify-content: center; align-items: center; }
.radar-icon { font-size: 60px; color: var(--color-cyan); z-index: 10; }
.radar-wave { position: absolute; width: 100px; height: 100px; border: 2px solid var(--color-cyan); border-radius: 50%; animation: radar-ping 3s infinite linear; opacity: 0; }
.radar-wave.delay-1 { animation-delay: 1s; }
.radar-wave.delay-2 { animation-delay: 2s; }
@keyframes radar-ping { 0% { width: 100px; height: 100px; opacity: 1; } 100% { width: 400px; height: 400px; opacity: 0; } }

/* ==========================================================================
   آراء العملاء
   ========================================================================== */
.reviews-section { background-color: var(--color-bg-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; position: relative; z-index: 5; }
.review-card { background: var(--color-white); padding: 40px; border-radius: 12px; box-shadow: var(--shadow-light); position: relative; border-top: 4px solid var(--color-gold); }
.quote-icon { position: absolute; top: 30px; left: 30px; font-size: 40px; color: rgba(255, 215, 0, 0.2); }
.review-text { font-size: 1.1rem; color: var(--color-text-dark); font-style: italic; margin-bottom: 30px; line-height: 1.8; position: relative; z-index: 2; }
.client-info { display: flex; align-items: center; gap: 15px; border-top: 1px solid #eee; padding-top: 20px; }
.client-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-cyan); }
.client-details h4 { color: var(--color-primary); font-size: 1.1rem; font-weight: 800; margin-bottom: 3px; }
.client-details span { color: var(--color-text-light); font-size: 0.9rem; }

/* ==========================================================================
   الفوتر
   ========================================================================== */
.main-footer { background-color: #061124; color: var(--color-text-light); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.footer-brand h2 { color: var(--color-white); font-size: 2.2rem; margin-bottom: 20px; }
.footer-desc { margin-bottom: 25px; line-height: 1.8; }
.social-links { display: flex; gap: 15px; }
.social-links a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: rgba(255,255,255,0.05); color: var(--color-white); border-radius: 50%; text-decoration: none; transition: var(--transition-fast); }
.social-links a:hover { background: var(--color-cyan); color: var(--color-primary); }
.footer-links h3, .footer-contact h3 { color: var(--color-white); margin-bottom: 25px; font-size: 1.3rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--color-text-light); text-decoration: none; transition: var(--transition-fast); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--color-cyan); padding-right: 5px; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: var(--color-white); }
.contact-item i { color: var(--color-cyan); font-size: 1.2rem; }
.footer-bottom { background-color: #030914; padding: 20px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }

/* ==========================================================================
   تظبيط الموبايل (مقفول بقوة لمنع الكسر)
   ========================================================================== */
@media screen and (max-width: 991px) {
    .nav-list, .nav-contact-btn { display: none; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons a { width: 100%; }
    .coverage-layout, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .coverage-content { text-align: center; }
    .brands-container { justify-content: center; text-align: center; }
}

@media screen and (max-width: 767px) {
    body { padding-right: 0 !important; overflow-x: hidden !important; }
    .hero-section { padding-top: 120px; padding-bottom: 50px; text-align: center; }
    .hero-title { font-size: 2rem; }
    
    .floating-actions { left: 15px; bottom: 15px; gap: 10px; }
    .float-btn { width: 60px; height: 60px; font-size: 26px; }
    
    .section-title-center { margin-bottom: 40px; }
    .main-heading { font-size: 2rem; }
    
    .services-grid, .reviews-grid, .cities-grid { grid-template-columns: 1fr; }
    
    .footer-grid { text-align: center; }
    .footer-links a { justify-content: center; }
    .contact-item { justify-content: center; flex-direction: column; gap: 5px; text-align: center; }
}