/* ==========================================================================
   1. المتغيرات الأساسية والألوان الديناميكية (الوضع الداكن / المضيء 2026)
   ========================================================================== */
:root {
  /* ألوان الوضع الداكن الافتراضي المستقبلي */
  --bg-main: #06070a;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-card: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: #8f96a3;
  --neon-glow: 0 0 25px rgba(99, 102, 241, 0.4);
  --text-gradient: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  --mixed-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

body.light-mode {
  /* ألوان الوضع المضيء الرمادي الحريري البارد المعاصر */
  --bg-main: #e2e8f0;
  --bg-card: rgba(15, 23, 42, 0.04);
  --border-card: rgba(15, 23, 42, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --neon-glow: 0 10px 30px rgba(99, 102, 241, 0.15);
  --text-gradient: linear-gradient(135deg, #0f172a 40%, #1e293b 100%);
}

/* ==========================================================================
   2. إعادة تعيين الخصائص العامة وهوامش الصفحة الأساسية
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* إخفاء مؤشر الماوس الأصلي على شاشات الكمبيوتر لتفعيل الماوس الحديث */
@media (min-width: 993px) {
  html, body, a, button, input, label, textarea {
    cursor: none !important;
  }
}

/* ==========================================================================
   3. الأزرار العائمة التفاعلية (مؤشر الماوس، القمر، والواتساب النيوني)
   ========================================================================== */
.custom-cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background-color: #6366f1; border-radius: 50%; z-index: 100000;
  pointer-events: none; transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-circle {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px;
  border: 2px solid rgba(168, 85, 247, 0.4); border-radius: 50%;
  z-index: 99999; pointer-events: none; transform: translate(-50%, -50%);
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-hover-active .custom-cursor-circle {
  width: 60px; height: 60px; background-color: rgba(99, 102, 241, 0.05);
  border-color: #6366f1; box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.cursor-hover-active .custom-cursor-dot {
  background-color: #a855f7; width: 4px; height: 4px;
}

#theme-toggle { display: none; }

.theme-label {
  position: fixed; bottom: 30px; right: 30px; width: 55px; height: 55px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-card);
  border-radius: 50%; cursor: pointer; z-index: 9999; display: flex; align-items: center;
  justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: 0.3s;
}
.theme-label:hover { transform: scale(1.1); border-color: #6366f1; }
.theme-label::before { content: "🌙"; font-size: 22px; }
#theme-toggle:checked + .theme-label::before { content: "☀️"; }

.floating-whatsapp-2026 {
  position: fixed; bottom: 105px; right: 30px; width: 55px; height: 55px;
  background: #25d366; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #ffffff !important; font-size: 26px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); z-index: 9999;
  animation: whatsappPulse 2s infinite; text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-whatsapp-2026:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6); }

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.ambient-glow {
  position: fixed; width: 100vw; height: 100vh; top: 0; left: 0; z-index: -1;
  filter: blur(140px); opacity: 0.12; pointer-events: none;
}
.glow-1 { position: absolute; width: 450px; height: 450px; background: #6366f1; top: -10%; left: -10%; }
.glow-2 { position: absolute; width: 500px; height: 500px; background: #a855f7; bottom: -10%; right: -10%; }
/* ==========================================================================
   4. تنسيقات شريط التنقل العلوي الزجاجي العائم (DESKTOP & MOBILE NAVBAR)
   ========================================================================== */
.modern-header-2026 {
  position: fixed !important; top: 20px !important; left: 5% !important; width: 90% !important;
  padding: 12px 30px !important; display: flex !important; justify-content: space-between !important;
  align-items: center !important; z-index: 99999 !important; background: rgba(6, 7, 10, 0.5) !important;
  backdrop-filter: blur(15px) !important; -webkit-backdrop-filter: blur(15px) !important;
  border-radius: 50px !important; border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important; transition: all 0.5s ease;
}

/* ألوان شريط التنقل في الوضع المضيء */
body.light-mode .modern-header-2026 {
  background: rgba(226, 232, 240, 0.6) !important; 
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* تنسيق شعار لوجو الموقع */
.modern-header-2026 .logo-area img { 
  height: 38px !important; 
  width: auto !important; 
}

/* حاوية روابط الاتصال العلوية على الكمبيوتر */
.modern-header-2026 .top-contacts { 
  display: flex !important; 
  align-items: center !important; 
  gap: 25px !important; 
}

/* تنسيق الروابط والأيقونات داخل الناف بار */
.modern-header-2026 .contact-link-item {
  display: flex !important; align-items: center !important; gap: 8px !important;
  color: var(--text-primary) !important; text-decoration: none !important;
  font-size: 14px !important; font-weight: 500; transition: all 0.3s ease;
}
.modern-header-2026 .contact-link-item i { color: #6366f1 !important; font-size: 15px !important; transition: 0.3s; }
.modern-header-2026 .contact-link-item:hover { color: #a855f7 !important; }
.modern-header-2026 .contact-link-item:hover i { transform: rotate(15deg) scale(1.2) !important; color: #a855f7 !important; }
.modern-header-2026 .navbar-sep { color: rgba(255, 255, 255, 0.15) !important; }
body.light-mode .modern-header-2026 .navbar-sep { color: rgba(15, 23, 42, 0.15) !important; }

/* ==========================================================================
   5. سكشن الواجهة الرئيسية وأنيميشن الظهور التدريجي عند التمرير (HERO SECTION)
   ========================================================================== */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding: 140px 5% 60px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; width: 100%; }

/* تنسيق العنوان الرئيسي بتأثير التدرج اللوني */
.hero-content h1.modern-hero-title {
  font-size: 58px !important; font-weight: 900 !important; line-height: 1.15 !important;
  letter-spacing: -1.5px !important; margin-bottom: 25px !important;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 70%, #6366f1 100%) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important;
}

/* الكلمة المميزة بلون النيون داخل العنوان */
.hero-content h1.modern-hero-title span.highlight-neon {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important;
}

/* تنسيق الوصف أسفل العنوان */
.hero-content p.modern-hero-desc {
  color: #94a3b8 !important; font-size: 18px !important; line-height: 1.7 !important; max-width: 580px !important;
}

/* تنسيق حاوية العدادات الرقمية */
.hero-stats { display: flex; gap: 40px; }
.stat-box h3 { font-size: 32px; font-weight: 800; color: #6366f1; }
.stat-box p { font-size: 13px; color: var(--text-secondary); }

/* إعداد الأقسام لتظهر تدريجياً وتصعد للأعلى عند التمرير بالماوس */
.reveal-on-scroll {
  opacity: 0 !important; transform: translateY(30px) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.reveal-on-scroll.active { opacity: 1 !important; transform: translateY(0) !important; }

/* ==========================================================================
   6. شبكة بينتو للخدمات وتأثير هالة الضوء المتحرك داخل الكروت (BENTO GRID)
   ========================================================================== */
.section-title-wrap { text-align: center; padding: 80px 5% 40px; }
.section-title-wrap h2 { font-size: 38px; font-weight: 800; background: var(--text-gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bento-container { padding: 0 5% 60px; }
.bento-grid-2026 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

/* تنسيق كرت بينتو الزجاجي الضبابي */
.bento-card-2026 {
  background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 24px;
  padding: 30px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; overflow: hidden; transition: 0.4s ease-in-out;
}
.bento-card-2026:hover { border-color: #6366f1; transform: translateY(-5px); box-shadow: var(--neon-glow); }
.col-12 { grid-column: span 12; } .col-6 { grid-column: span 6; }
.bento-card-2026 h3 { font-size: 22px; color: var(--text-primary); margin-bottom: 12px; }
.bento-card-2026 p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* بقعة الإضاءة المتوهجة التفاعلية التي تتبع الماوس داخل الكروت */
.card-spotlight {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(300px circle at var(--x, 0px) var(--y, 0px), rgba(99, 102, 241, 0.12), transparent 80%);
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.bento-card-2026:hover .card-spotlight, .project-card-2026:hover .card-spotlight { opacity: 1; }
/* ==========================================================================
   7. شريط العملاء المتحرك تلقائياً (TOPKLANTEN HORIZONTAL MARQUEE SYSTEM)
   ========================================================================== */
.marquee-wrap-2026 { 
  overflow: hidden; 
  width: 100%; 
  padding: 20px 0; 
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); 
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); 
}

.marquee-track-2026 { 
  display: flex; 
  width: calc((260px + 30px) * 8); 
  animation: infiniteMarquee 24s linear infinite; 
}

.marquee-wrap-2026:hover .marquee-track-2026 { 
  animation-play-state: paused; 
}

.card-partner-2026 { 
  width: 260px; 
  margin-right: 30px; 
  flex-shrink: 0; 
  background: var(--bg-card); 
  border: 1px solid var(--border-card); 
  border-radius: 20px; 
  padding: 22px; 
  text-decoration: none; 
  transition: 0.3s; 
  display: block; 
}

.card-partner-2026:hover { 
  border-color: #6366f1; 
  box-shadow: var(--neon-glow); 
}

/* إطارات الصور داخل سكشن الشركاء لمنع التضخم وضبط الأبعاد */
.img-box-2026 { 
  height: 150px !important; 
  width: 100% !important; 
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  background: rgba(255, 255, 255, 0.01); 
  border-radius: 12px; 
  margin-bottom: 12px; 
  overflow: hidden !important; 
  padding: 12px !important; 
  box-sizing: border-box !important; 
}

.img-box-2026 img { 
  width: 100% !important; 
  height: 100% !important; 
  object-fit: contain !important; 
  border-radius: 8px !important; 
  transition: transform 0.4s ease !important; 
}

.card-partner-2026 h4 { 
  color: var(--text-primary); 
  font-size: 16px; 
  margin-bottom: 4px; 
}

.card-partner-2026 span { 
  color: #6366f1; 
  font-size: 13px; 
}

@keyframes infiniteMarquee { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(calc((-260px - 30px) * 4)); } 
}

/* ==========================================================================
   8. كروت معرض الأعمال والمشاريع الستة بالصور والزووم التفاعلي (OUR PROJECTS)
   ========================================================================== */
.projects-grid-2026 { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 25px; 
}

.project-card-2026 { 
  background: var(--bg-card); 
  border: 1px solid var(--border-card); 
  border-radius: 22px; 
  overflow: hidden; 
  transition: 0.4s; 
  display: flex; 
  flex-direction: column; 
}

.project-card-2026:hover { 
  border-color: #a855f7; 
  transform: translateY(-5px); 
  box-shadow: var(--neon-glow); 
}

/* صندوق صور المشاريع الكبيرة */
.project-img-2026 { 
  height: 200px !important; 
  background: rgba(255, 255, 255, 0.01) !important; 
  border-bottom: 1px solid var(--border-card); 
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  overflow: hidden !important; 
  position: relative !important; 
}

.project-img-2026 img { 
  width: 100% !important; 
  height: 100% !important; 
  object-fit: cover !important; 
  transition: transform 0.5s ease !important; 
}

.project-card-2026:hover .project-img-2026 img { 
  transform: scale(1.06) !important; 
}

.project-body-2026 { 
  padding: 25px; 
}

.project-body-2026 span { 
  color: #a855f7; 
  font-size: 12px; 
  text-transform: uppercase; 
  display: block; 
  margin-bottom: 8px; 
}

.project-body-2026 h3 { 
  font-size: 22px; 
  color: var(--text-primary); 
  margin-bottom: 10px; 
}

.project-body-2026 p { 
  color: var(--text-secondary); 
  font-size: 14px; 
  line-height: 1.5; 
  margin-bottom: 15px; 
}

.project-link-2026 { 
  color: #6366f1; 
  text-decoration: none; 
  font-size: 14px; 
  font-weight: 600; 
}
/* ==========================================================================
   9. نموذج الاتصال السريع والحالات التلقائية لزر الإرسال (CONTACT FORM & AJAX)
   ========================================================================== */
.contact-section { padding: 60px 5% 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info-box h3 { font-size: 32px; margin-bottom: 15px; background: var(--text-gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-info-box p { color: var(--text-secondary); margin-bottom: 30px; }
.info-item-with-icon { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.info-icon-box { width: 45px; height: 45px; background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #6366f1; font-size: 18px; transition: 0.3s; }
.info-item-with-icon:hover .info-icon-box { background: #6366f1; color: #fff; box-shadow: 0 0 15px rgba(99, 102, 241, 0.4); }

.modern-form { display: flex; flex-direction: column; gap: 20px; }
.form-group input, .modern-form textarea { width: 100%; padding: 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-card); border-radius: 12px; color: var(--text-primary); font-size: 15px; outline: none; transition: 0.3s; }
.form-group input:focus, .modern-form textarea:focus { border-color: #6366f1; background: rgba(255,255,255,0.05); box-shadow: var(--neon-glow); }

.submit-btn { background: var(--mixed-gradient); color: #fff; border: none; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: var(--neon-glow); }
.submit-btn.btn-loading { pointer-events: none; opacity: 0.8; }
.submit-btn.btn-success { background: #25d366 !important; box-shadow: 0 0 20px rgba(37, 211, 102, 0.4) !important; }

/* ==========================================================================
   10. النافذة المنبثقة الأوروبية لسياسة الخصوصية وشريط الكوكيز الزجاجي (GDPR SYSTEM)
   ========================================================================== */
.legal-modal-backdrop { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(6, 7, 10, 0.6) !important; backdrop-filter: blur(15px) !important; -webkit-backdrop-filter: blur(15px) !important; z-index: 999999 !important; display: flex !important; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.legal-modal-backdrop.modal-open { opacity: 1 !important; pointer-events: auto !important; }
.legal-modal-window { background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; width: 90%; max-width: 650px; max-height: 80vh; border-radius: 28px !important; padding: 35px !important; overflow-y: auto !important; position: relative; transform: translateY(30px); transition: transform 0.5s ease; }
.legal-modal-backdrop.modal-open .legal-modal-window { transform: translateY(0) !important; }
body.light-mode .legal-modal-window { background: rgba(226, 232, 240, 0.95) !important; border-color: rgba(15, 23, 42, 0.08) !important; }
.legal-close-btn { position: absolute; top: 20px; right: 25px; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; opacity: 0.6; }
.legal-close-btn:hover { opacity: 1; color: #a855f7; }
.footer-link-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 14px; transition: 0.3s; padding: 0; font-family: inherit; }
.footer-link-btn:hover { color: #6366f1; text-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }

.cookie-banner-2026 { position: fixed !important; bottom: 25px !important; left: 5% !important; width: 90%!important; max-width: 500px !important; background: rgba(6, 7, 10, 0.6) !important; backdrop-filter: blur(15px) !important; -webkit-backdrop-filter: blur(15px) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; border-radius: 20px !important; padding: 20px !important; z-index: 999999 !important; display: flex !important; flex-direction: column !important; gap: 15px !important; opacity: 0; transform: translateY(20px); transition: all 0.5s ease; pointer-events: none; }
.cookie-banner-2026.show-banner { opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto !important; }
body.light-mode .cookie-banner-2026 { background: rgba(226, 232, 240, 0.95) !important; border-color: rgba(15, 23, 42, 0.08) !important; }
.cookie-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.cookie-btns { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-btn { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.cookie-accept { background: var(--mixed-gradient); color: #fff; }
.cookie-decline { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid var(--border-card); }

/* ==========================================================================
   11. تصميم الفوتر الفاخر المدمج الجديد (ULTIMATE MODERN FOOTER RE-DESIGN)
   ========================================================================== */
.modern-footer { 
  padding: 40px 5% !important; 
  background: rgba(6, 7, 10, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-top: 1px solid var(--border-card) !important; 
  display: flex !important; 
  justify-content: space-between !important; 
  align-items: center !important; 
  font-size: 14px !important; 
  color: var(--text-secondary) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2) !important;
  margin-top: 40px !important;
  position: relative;
  z-index: 10;
}

body.light-mode .modern-footer {
  background: rgba(226, 232, 240, 0.5) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
}

/* ==========================================================================
   12. تهيئة وتجاوب الأبعاد مع شاشات الهواتف والأجهزة اللوحية (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
  .modern-header-2026 .top-contacts { display: none !important; }
  .modern-header-2026 { border-radius: 25px !important; padding: 10px 20px !important; }
  .modern-header-2026 .mobile-nav-actions { display: flex !important; align-items: center !important; gap: 12px !important; }
  .modern-header-2026 .mobile-action-btn { width: 38px !important; height: 38px !important; background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; color: var(--text-primary) !important; text-decoration: none !important; font-size: 14px; transition: 0.3s; }
  .modern-header-2026 .mobile-action-btn:active { background: #6366f1 !important; color: #fff !important; }
  .modern-header-2026 .mobile-action-btn.wa-btn { color: #25d366 !important; border-color: rgba(37, 211, 102, 0.2) !important; }
  .modern-header-2026 .mobile-action-btn.wa-btn:active { background: #25d366 !important; color: #fff !important; }
  
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .bento-grid-2026, .projects-grid-2026 { grid-template-columns: 1fr !important; gap: 16px !important; }
  .col-6, .col-12 { grid-column: span 12 !important; }
  .modern-hero-title { font-size: 36px !important; line-height: 1.2 !important; }
  .modern-hero-desc { font-size: 15px !important; }
  .section-title-wrap h2 { font-size: 28px !important; }
  .bento-card-2026, .project-card-2026 { padding: 20px !important; border-radius: 16px !important; }
  .project-img-2026 { height: 160px !important; }
  
  .card-partner-2026 { width: 200px !important; margin-right: 20px !important; padding: 15px !important; }
  .img-box-2026 { height: 110px !important; }
  .marquee-track-2026 { width: calc((200px + 20px) * 8) !important; animation: infiniteMarquee 15s linear infinite !important; }
  @keyframes infiniteMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc((-200px - 20px) * 4)); } }
  
  /* تعديل توزيع الفوتر بشكل رأسي منظم وأنيق في شاشات الجوال المحمول */
  .modern-footer { flex-direction: column !important; gap: 15px !important; text-align: center !important; padding: 25px 5% !important; }
  
  .theme-label { bottom: 20px !important; right: 20px !important; width: 48px !important; height: 48px !important; }
  .floating-whatsapp-2026 { bottom: 80px !important; right: 20px !important; width: 48px !important; height: 48px !important; font-size: 22px !important; }
}
