html {
    scroll-behavior: smooth;
}

/* =================================================== */
/* 🎨 الألوان الأساسية - ثيم فاتح بألوان الشعار (أزرق + برتقالي) 🎨 */
/* =================================================== */
:root {
  --blue: #1B7FB8;
  --blue2: #2BA9DE;
  --orange: #F5A623;
  --orange2: #FB8C2E;
  --dark: #FFFFFF;
  --darker: #F7FAFC;
  --card: #FFFFFF;
  --border: rgba(27, 127, 184, 0.15);
  --text: #1A2733;
  --muted: rgba(26, 39, 51, 0.55);
  --glow: 0 10px 35px rgba(27, 127, 184, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--darker);
  background-image:
    linear-gradient(rgba(27, 127, 184, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 127, 184, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--text);
  overflow-x: hidden;
}

/* ⏳ شاشة التحميل */
#loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--darker); display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.loader-logo { font-family: 'Orbitron'; font-size: 2.2rem; color: var(--blue); font-weight: 900; letter-spacing: 4px; }
.loader-logo-img {
  width: min(380px, 78vw);
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(14, 111, 168, 0.22);
}
.loader-bar { width: 250px; height: 3px; background: rgba(27, 127, 184, 0.08); border-radius: 4px; overflow: hidden; margin-top: 15px; }
.loader-fill { width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--orange), transparent); animation: load 1.2s infinite ease-in-out; }
.loader-text { color: var(--muted); }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

#neural-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.15; }

/* 🌐 شريط التنقل العلوي */
nav, #nav {
  position: fixed; top: 20px; left: 5%; right: 5%; z-index: 9999;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(27, 127, 184, 0.12); padding: 12px 40px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(27, 127, 184, 0.08);
}
.nav-c { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.logo-en { font-family: 'Orbitron'; font-weight: 900; font-size: 1.4rem; color: var(--blue); letter-spacing: 1px; }
.logo-en span { color: var(--orange); }
.site-logo-img {
  width: 196px;
  max-width: 34vw;
  height: 52px;
  object-fit: cover;
  object-position: right center;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(14, 111, 168, 0.12);
}

html[dir="ltr"] .site-logo-img { object-position: left center; }
.menu { display: flex; gap: 30px; align-items: center; }
.menu a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 700; transition: 0.3s; }
.menu a:hover { color: var(--orange); }
.nav-cta { background: rgba(245, 166, 35, 0.08); border: 1px solid var(--orange) !important; padding: 10px 24px; border-radius: 6px; color: var(--orange) !important; font-weight: bold; transition: 0.3s; }
.nav-cta:hover { background: var(--orange) !important; color: #fff !important; box-shadow: 0 5px 20px rgba(245,166,35,0.35); }

/* زر الهامبرغر */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: 0.3s; }

/* قائمة الجوال */
.mobile-menu {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9998;
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); font-size: 1.4rem; text-decoration: none; font-weight: 700; transition: color 0.3s; }
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu-close { position: absolute; top: 20px; left: 20px; background: none; border: none; color: var(--orange); font-size: 2rem; cursor: pointer; }

@media (min-width: 769px) {
    .nav-hamburger { display: none !important; }
    .mobile-menu { display: none !important; }
}

main { padding-top: 80px; }

/* =================================================== */
/* 🚀 الهيرو 🚀 */
/* =================================================== */
.hero { min-height: auto; display: flex; align-items: center; padding: 110px 8% 60px; position: relative; }
.hero-inner { padding-top: 0; display: flex; align-items: center; justify-content: space-between; }

.cyber-hero-layout {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 60px !important;
    flex-wrap: wrap !important;
    width: 100%;
}

.hero-content { flex: 1.2 !important; min-width: 450px !important; text-align: right; }

.hero-tag { font-family: 'Orbitron'; font-size: 0.8rem; color: var(--blue); background: rgba(27, 127, 184, 0.06); padding: 6px 14px; border-radius: 30px; border: 1px solid rgba(27, 127, 184, 0.2); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; }
.tag-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; animation: pulse 1.5s infinite alternate; }
@keyframes pulse { 0% { opacity: 0.4; } 100% { opacity: 1; } }

.hero h1 { font-size: 4.2rem; font-weight: 900; line-height: 1.15; margin-bottom: 25px; letter-spacing: -1px; color: var(--text); }
.hero h1 .line2 { background: linear-gradient(45deg, var(--orange), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--muted); max-width: 650px; margin-bottom: 40px; font-size: 1.2rem; line-height: 1.8; }
.hero-btns { display: flex; gap: 20px; }

.hero-visual { flex: 1 !important; min-width: 380px !important; display: flex !important; justify-content: center !important; align-items: center !important; position: relative !important; }
.cyber-matrix-wrap { position: relative !important; width: 100% !important; max-width: 420px !important; aspect-ratio: 1/1 !important; display: flex !important; justify-content: center !important; align-items: center !important; }

.nebula-glow {
    position: absolute !important; width: 280px !important; height: 280px !important;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.18) 0%, rgba(27, 127, 184, 0.1) 50%, transparent 70%) !important;
    filter: blur(30px) !important; z-index: 1 !important; pointer-events: none !important;
    animation: nebulaPulse 6s infinite ease-in-out alternate !important;
}
.cyber-svg-mesh { width: 100% !important; height: auto !important; z-index: 2 !important; filter: drop-shadow(0 0 12px rgba(27, 127, 184, 0.15)) !important; }

.rotator-clockwise { transform-origin: 200px 200px !important; animation: rotateCW 25s infinite linear !important; }
.rotator-counter { transform-origin: 200px 200px !important; animation: rotateCCW 20s infinite linear !important; }
.pulse-node { animation: nodeGlow 2s infinite ease-in-out !important; }
.core-pulse { animation: coreGlow 3s infinite ease-in-out alternate !important; transform-origin: 200px 200px !important; }

.floating-tech-card {
    position: absolute !important; background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(27, 127, 184, 0.15) !important;
    padding: 12px 18px !important; border-radius: 12px !important;
    display: flex !important; align-items: center !important; gap: 12px !important; z-index: 3 !important;
    box-shadow: 0 10px 25px rgba(27, 127, 184, 0.1) !important;
    animation: floatEffect 4s infinite ease-in-out !important;
}
.ftc-1 { top: 15% !important; right: -10px !important; }
.ftc-2 { bottom: 15% !important; left: -10px !important; animation-delay: -2s !important; }
.ftc-icon { font-size: 1.3rem !important; }
.ftc-info h5 { color: var(--text) !important; font-size: 0.95rem !important; margin: 0 !important; font-family: 'Orbitron', sans-serif; font-weight: 700; }
.ftc-info p { color: var(--muted) !important; font-size: 0.75rem !important; margin: 0 !important; }

.btn-glow { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; padding: 15px 35px; border-radius: 6px; text-decoration: none; font-weight: 900; box-shadow: 0 8px 25px rgba(245,166,35,0.3); transition: 0.4s ease; display: inline-block; }
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(245,166,35,0.45); }
.btn-ghost { border: 1px solid rgba(27,127,184,0.25); background: rgba(27,127,184,0.04); backdrop-filter: blur(5px); color: var(--text); padding: 15px 35px; border-radius: 6px; text-decoration: none; font-weight: 700; transition: 0.3s; display: inline-block; }
.btn-ghost:hover { background: rgba(27,127,184,0.1); }

/* 🏛️ الأقسام والكروت */
.section { padding: 120px 8%; width: 100% !important; max-width: 1500px; margin: 0 auto; position: relative; box-sizing: border-box !important; }
.sec-head { margin-bottom: 60px; width: 100% !important; }
.sec-head.center { text-align: center; }
.sec-tag { font-family: 'Orbitron'; font-size: 0.85rem; color: var(--orange); font-weight: bold; letter-spacing: 2px; display: block; margin-bottom: 12px; }
.sec-title { font-size: 2.8rem; font-weight: 900; color: var(--text); }
.sec-title em { font-style: normal; background: linear-gradient(to left, var(--blue), var(--orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sec-sub { color: var(--muted); margin-top: 15px; font-size: 1.1rem; }

.svc-grid, .tech-grid, .works-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}
.svc-card, .work-card, .tech-card {
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    padding: 35px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(27,127,184,0.06) !important;
    position: relative; overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.svc-card::before, .work-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(27,127,184,0.05), transparent 40%);
  z-index: -1; pointer-events: none;
}
.svc-card:hover, .work-card:hover, .tech-card:hover {
    border-color: rgba(245,166,35,0.4) !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(245,166,35,0.12) !important;
}
.svc-icon-wrap { font-size: 2.5rem; margin-bottom: 25px; display: inline-block; }
.svc-card h3, .work-card h3, .tech-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; color: var(--text); }
.svc-card p, .work-card p, .tech-card p, .tech-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 25px; }
.svc-chip, .spec-tag, .p-chip { font-family: 'Orbitron'; font-size: 0.75rem; color: var(--blue); background: rgba(27,127,184,0.07); border: 1px solid rgba(27,127,184,0.2); padding: 5px 12px; border-radius: 4px; display: inline-block; font-weight: bold; }

.tech-card { flex-direction: column !important; justify-content: space-between !important; display: flex !important; }
.tech-card .content { flex: 1; }
.tech-card .icon-or-model { width: 80px; flex-shrink: 0; }
.tech-icon-box { font-size: 2rem; margin-bottom: 15px; }
.tech-specs-box { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

@media (min-width: 769px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 1000px !important; margin: 40px auto !important; }
}

/* ===== شركاء (تم إخفاء القسم - احتياطي إن استُخدم) ===== */
#clients { display: block !important; }

.work-card-cta {
  width: 100%;
  margin-top: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(14, 111, 168, 0.2);
  background: linear-gradient(135deg, rgba(14, 111, 168, 0.08), rgba(242, 135, 27, 0.08));
  color: var(--blue);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.work-card:hover .work-card-cta {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--orange));
}

.work-card-cta.muted {
  color: var(--muted);
  background: rgba(14, 111, 168, 0.05);
}

.work-card-cta-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  flex: 0 0 26px;
  font-weight: 900;
}

.clients-showcase {
  padding-top: 70px;
  padding-bottom: 90px;
}

.clients-marquee {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  padding: 10px 0 18px;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.clients-track {
  width: max-content;
  display: flex;
  align-items: stretch;
  gap: 18px;
  animation: clientsMarquee 28s linear infinite;
  will-change: transform;
}

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

@keyframes clientsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-logo-card {
  width: 190px;
  min-height: 138px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  text-align: center;
  color: var(--text);
  direction: rtl;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(14, 111, 168, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.client-logo-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 18px 38px rgba(242, 135, 27, 0.14);
}

.client-logo-card img {
  width: min(132px, 82%);
  height: 58px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.client-logo-card:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

.client-logo-card span {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

/* ✨ تأثيرات الظهور */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1); }
.reveal.on { opacity: 1; transform: translateY(0); }

/* =================================================== */
/* 📰 صفحة تفاصيل المدونة 📰 */
/* =================================================== */
.blog-post-header, .isolated-blog-header {
    padding: 160px 8% 60px !important;
    text-align: right;
    background: linear-gradient(180deg, rgba(27,127,184,0.04) 0%, var(--darker) 100%) !important;
    border-bottom: 1px solid var(--border);
}
.blog-header-inner, .isolated-blog-container { max-width: 1200px; margin: 0 auto; }
.blog-post-meta { display: flex; gap: 15px; font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.blog-meta-badge { color: var(--blue); font-weight: bold; }
.blog-post-header h1, .isolated-blog-title { font-size: 3rem; font-weight: 800; line-height: 1.3; margin-bottom: 20px; color: var(--text); }
.blog-lead-text { font-size: 1.2rem; color: var(--muted); line-height: 1.8; max-width: 800px; }
.blog-body-sec { padding-top: 60px !important; }
.blog-body-grid { display: grid !important; grid-template-columns: 1fr 320px !important; gap: 50px !important; direction: rtl; }
.blog-rich-text { text-align: right; }
.blog-main-cover { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 40px; box-shadow: var(--glow); }
.blog-main-cover img { width: 100%; height: auto; display: block; }
.article-paragraph { margin-bottom: 30px; }
.article-paragraph h3 { font-size: 1.6rem; color: var(--text); margin-bottom: 15px; font-weight: 700; }
.article-paragraph p { font-size: 1.1rem; color: var(--text); line-height: 1.9; }
.tech-blockquote { border-right: 4px solid var(--orange); padding: 20px; background: rgba(245,166,35,0.05); margin: 40px 0; font-size: 1.2rem; font-style: italic; color: var(--blue); line-height: 1.8; }
.article-cta-box { background: #fff; border: 1px solid var(--border); padding: 35px; border-radius: 12px; margin-top: 50px; box-shadow: var(--glow); }
.article-cta-box h4 { font-size: 1.4rem; color: var(--text); margin-bottom: 10px; }
.article-cta-box p { color: var(--muted); margin-bottom: 20px; }
.blog-sidebar { display: flex; flex-direction: column; gap: 30px; }
.sidebar-widget { background: #fff; border: 1px solid var(--border); padding: 25px; border-radius: 12px; }
.author-widget { text-align: center; }
.author-avatar { font-size: 3rem; margin-bottom: 15px; }
.sidebar-widget h4 { color: var(--text); font-size: 1.15rem; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.popular-posts-list { list-style: none; }
.popular-posts-list li { margin-bottom: 15px; }
.popular-posts-list a { color: var(--text); text-decoration: none; font-size: 0.95rem; line-height: 1.5; display: flex; gap: 10px; transition: color 0.3s; }
.popular-posts-list a:hover { color: var(--orange); }

/* =================================================== */
/* 📰 شبكة المدونة الرئيسية 📰 */
/* =================================================== */
.blog-modern-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important; gap: 35px !important; width: 100% !important; margin-top: 40px !important; }
.blog-modern-card {
    background: #FFFFFF !important; border: 1px solid var(--border) !important; border-radius: 16px !important;
    overflow: hidden !important; display: flex !important; flex-direction: column !important;
    box-shadow: 0 4px 20px rgba(27,127,184,0.06) !important;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.blog-img-box { width: 100% !important; height: 230px !important; overflow: hidden !important; position: relative !important; border-bottom: 1px solid var(--border) !important; }
.blog-img-box img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 0.5s ease !important; }
.blog-modern-badge { position: absolute !important; bottom: 15px !important; right: 15px !important; font-family: 'Orbitron', sans-serif !important; font-size: 0.72rem !important; font-weight: 700 !important; color: #fff !important; background: var(--orange) !important; border: 1px solid var(--orange) !important; padding: 5px 12px !important; border-radius: 5px !important; }
.blog-modern-content { padding: 25px !important; display: flex !important; flex-direction: column !important; flex-grow: 1 !important; text-align: right !important; }
.blog-modern-meta { display: flex !important; gap: 12px !important; font-size: 0.8rem !important; color: var(--muted) !important; margin-bottom: 12px !important; align-items: center !important; }
.blog-modern-content h3 { font-size: 1.35rem !important; color: var(--text) !important; font-weight: 700 !important; line-height: 1.5 !important; margin-bottom: 12px !important; transition: color 0.3s ease !important; }
.blog-modern-content p { color: var(--muted) !important; font-size: 0.95rem !important; line-height: 1.6 !important; margin-bottom: 20px !important; flex-grow: 1 !important; }
.blog-modern-link { text-decoration: none !important; color: var(--blue) !important; font-weight: bold !important; font-size: 0.9rem !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; transition: color 0.3s ease !important; }
.blog-modern-card:hover { transform: translateY(-6px) !important; border-color: rgba(245,166,35,0.4) !important; box-shadow: 0 15px 35px rgba(245,166,35,0.12) !important; }
.blog-modern-card:hover .blog-img-box img { transform: scale(1.04) !important; }
.blog-modern-card:hover h3 { color: var(--orange) !important; }

/* 🛠️ قسم التواصل */
.contact-inner { display: flex !important; flex-direction: row-reverse !important; gap: 50px !important; align-items: flex-start !important; width: 100% !important; max-width: 1100px !important; margin: 0 auto !important; padding: 50px 20px !important; }
.contact-info { flex: 1 1 50% !important; width: 100% !important; text-align: right !important; }
.contact-info p { color: var(--muted) !important; }
.form-box { flex: 1 1 50% !important; background: #FFFFFF !important; border: 1px solid var(--border) !important; padding: 40px !important; border-radius: 14px !important; box-shadow: 0 4px 20px rgba(27,127,184,0.06) !important; width: 100% !important; }
.fg { display: flex !important; flex-direction: column !important; margin-bottom: 20px !important; text-align: right !important; width: 100% !important; }
.fg label { color: var(--text) !important; font-size: 0.9rem !important; margin-bottom: 8px !important; font-weight: 600 !important; }
.fg input, .fg textarea, .fg select { background: #FFFFFF !important; border: 1px solid var(--border) !important; padding: 12px 16px !important; color: var(--text) !important; font-family: 'Cairo', sans-serif !important; border-radius: 6px !important; outline: none !important; transition: border-color 0.3s !important; width: 100% !important; }
.fg select { cursor: pointer !important; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%) !important; background-position: 18px 50%, 12px 50% !important; background-size: 6px 6px, 6px 6px !important; background-repeat: no-repeat !important; padding-left: 36px !important; }
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--orange) !important; box-shadow: 0 0 10px rgba(245,166,35,0.15) !important; }

.sbtn { width: 100% !important; background: linear-gradient(135deg, var(--orange), var(--orange2)) !important; color: #fff !important; border: none !important; padding: 14px !important; font-weight: 900 !important; font-family: 'Cairo', sans-serif !important; font-size: 1rem !important; border-radius: 6px !important; cursor: pointer !important; transition: 0.3s !important; }
.sbtn:hover { transform: translateY(-2px) !important; box-shadow: 0 5px 20px rgba(245,166,35,0.35) !important; }

/* =================================================== */
/* 💎 الفوتر 💎 */
/* =================================================== */
.cyber-footer {
    background: #FFFFFF !important;
    border-top: 1px solid var(--border) !important;
    padding: 70px 0 20px 0 !important;
    position: relative !important;
    z-index: 10 !important;
    margin-top: 50px !important;
    width: 100% !important;
}
.footer-core-grid, .footer-container {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 50px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
    direction: rtl !important;
    text-align: right !important;
}
.footer-brand .f-logo, .f-logo { font-family: 'Orbitron', sans-serif !important; font-weight: 900 !important; font-size: 1.6rem !important; color: var(--blue) !important; margin-bottom: 20px !important; }
.footer-brand .f-logo span, .f-logo span { color: var(--orange) !important; }
.footer-logo-img {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(14, 111, 168, 0.14);
}
.footer-brand p { color: var(--muted) !important; font-size: 0.95rem !important; line-height: 1.8 !important; max-width: 450px; }

.footer-links-group h4, .footer-col h4 { color: var(--orange) !important; font-size: 1.1rem !important; margin-bottom: 25px !important; font-weight: 700 !important; font-family: 'Orbitron'; }
.footer-links-group ul, .footer-col ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-links-group ul li, .footer-col ul li { margin-bottom: 14px !important; }
.footer-links-group ul li a, .footer-col ul li a { color: var(--muted) !important; text-decoration: none !important; font-size: 0.95rem !important; display: flex !important; align-items: center !important; gap: 10px !important; transition: color 0.3s ease !important; }
.footer-links-group ul li a:hover, .footer-col ul li a:hover { color: var(--orange) !important; }

.link-bullet { width: 6px !important; height: 6px !important; background: rgba(26,39,51,0.3) !important; border-radius: 50% !important; transition: background 0.3s ease !important; }
.footer-links-group ul li a:hover .link-bullet { background: var(--orange) !important; }

.f-mail { color: var(--blue) !important; font-weight: bold; text-decoration: none; }

.footer-bottom { width: 100% !important; border-top: 1px solid var(--border) !important; margin-top: 50px !important; padding-top: 20px !important; }
.bottom-flex { display: flex !important; justify-content: space-between !important; align-items: center !important; color: var(--muted) !important; font-size: 0.85rem !important; font-family: 'Orbitron', sans-serif !important; padding: 0 30px; }

/* =================================================== */
/* 📱 التجاوب الشامل للجوال 📱 */
/* =================================================== */
@media (max-width: 991px) {
    .cyber-hero-layout { flex-direction: column !important; text-align: center !important; gap: 40px !important; }
    .hero-content { min-width: 100% !important; text-align: center; }
    .hero-visual { width: 100% !important; min-width: 100% !important; }
    .contact-inner { flex-direction: column !important; gap: 40px !important; }
    .footer-core-grid, .footer-container { grid-template-columns: 1fr !important; text-align: center !important; gap: 40px !important; }
    .footer-links-group ul li a { justify-content: center !important; }
    .bottom-flex { flex-direction: column !important; gap: 12px !important; text-align: center !important; }
    .blog-body-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

@media (max-width: 768px) {
    nav, #nav { top: 10px !important; left: 3% !important; right: 3% !important; padding: 10px 16px !important; }
    .logo-en { font-size: 1.1rem !important; }
    .site-logo-img { width: 142px !important; height: 40px !important; max-width: 48vw !important; }
    .loader-logo-img { width: min(260px, 78vw) !important; }
    .footer-logo-img { width: 190px !important; margin-left: auto !important; margin-right: auto !important; }
    .menu { display: none !important; }
    .nav-hamburger { display: flex !important; }

    .hero { padding: 90px 20px 50px !important; min-height: auto !important; }
    .hero h1 { font-size: 2rem !important; line-height: 1.4 !important; }
    .hero h1 .line1 { font-size: 1.4rem !important; }
    .hero-sub { font-size: 1rem !important; }
    .hero-btns { flex-direction: column !important; align-items: center !important; gap: 12px !important; width: 100% !important; max-width: 320px !important; margin: 30px auto 0 !important; }
    .btn-glow, .btn-ghost { width: 100% !important; text-align: center !important; padding: 14px 20px !important; }
    .hero-visual { display: none !important; }

    .stats-bar-grid { grid-template-columns: repeat(2, 1fr) !important; display: grid !important; }
    .stat-item:not(:last-child)::after { display: none !important; }
    .stat-item { border-bottom: 1px solid var(--border) !important; padding: 16px 10px !important; }
    .stat-num { font-size: 1.8rem !important; }

    .svc-grid, .tech-grid, .works-grid, .blog-modern-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .svc-card, .tech-card, .work-card { padding: 25px !important; }
    .blog-img-box { height: 180px !important; }

    .roadmap-container { flex-direction: column !important; align-items: center !important; gap: 16px !important; padding: 20px !important; }
    .flip-card { width: 100% !important; max-width: 340px !important; height: 160px !important; }

    .faq-question { padding: 16px !important; }
    .faq-question span { font-size: 0.92rem !important; }
    .faq-answer { padding: 0 16px !important; }
    .faq-item.open .faq-answer { padding: 0 16px 16px !important; }

    .contact-inner { flex-direction: column !important; padding: 20px !important; gap: 30px !important; }
    .form-box { padding: 24px !important; }
    .contact-info { text-align: center !important; }
    .sec-title { font-size: 1.8rem !important; }

    .footer-core-grid, .footer-container { grid-template-columns: 1fr !important; text-align: center !important; gap: 30px !important; padding: 0 20px !important; }
    .footer-links-group ul li a { justify-content: center !important; }
    .bottom-flex { flex-direction: column !important; gap: 10px !important; text-align: center !important; }

    .section { padding: 60px 20px !important; }
    .sec-sub { font-size: 0.95rem !important; }
    .sec-head { margin-bottom: 35px !important; }

    .blog-post-header h1, .isolated-blog-title { font-size: 1.8rem !important; }
    .blog-post-header, .isolated-blog-header { padding: 120px 20px 40px !important; }
    .isolated-blog-grid { flex-direction: column !important; padding: 30px 20px !important; }
    .isolated-blog-sidebar { width: 100% !important; }

    .project-hero h1 { font-size: 1.9rem !important; }
    .project-hero { padding: 120px 20px 50px !important; }
    .project-stats-grid { grid-template-columns: 1fr !important; gap: 12px !important; max-width: 100% !important; }
    .project-body-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .project-mockup-row { grid-template-columns: 1fr !important; }
    .mockup-placeholder { height: 160px !important; }
    .tech-spec-card { position: static !important; }

    .blog-body-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
}

@media (max-width: 500px) {
    .wa-float { padding: 14px !important; border-radius: 50% !important; bottom: 20px !important; left: 20px !important; }
    .wa-label { display: none !important; }
    #scrollTop { bottom: 20px !important; right: 20px !important; width: 40px !important; height: 40px !important; }
}

@media (max-width: 480px) {
    .cyber-chatbot-container { bottom: 20px !important; right: 20px !important; }
    .cyber-chat-window { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100dvh !important; border-radius: 0 !important; bottom: 0 !important; right: 0 !important; }
    .chat-messages { height: calc(100dvh - 145px) !important; }
}

/* 🎬 الأنيميشن */
@keyframes rotateCW { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes rotateCCW { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
@keyframes floatEffect { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes nebulaPulse { 0% { opacity: 0.7; } 100% { opacity: 1; } }
@keyframes nodeGlow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes coreGlow { 0% { opacity: 0.6; } 100% { opacity: 1; } }

/* 🌌 صفحات المشاريع الداخلية 🌌 */
.project-hero { background: linear-gradient(180deg, rgba(27,127,184,0.04) 0%, var(--darker) 100%) !important; padding: 140px 20px 80px !important; text-align: center !important; border-bottom: 1px solid var(--border) !important; }
.project-hero-inner { max-width: 900px !important; margin: 0 auto !important; }
.project-meta-tag { display: flex !important; justify-content: center !important; gap: 15px !important; margin-bottom: 20px !important; font-size: 0.8rem !important; }
.tag-status { background: rgba(27,127,184,0.08) !important; color: var(--blue) !important; border: 1px solid rgba(27,127,184,0.25) !important; padding: 4px 12px !important; border-radius: 20px !important; font-weight: bold !important; }
.project-hero h1 { font-size: 3.5rem !important; font-weight: 800 !important; color: var(--text) !important; margin-bottom: 20px !important; }
.neon-text { color: var(--orange) !important; }
.project-stats-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; max-width: 600px !important; margin: 0 auto !important; }
.p-stat-card { background: #fff !important; border: 1px solid var(--border) !important; padding: 15px !important; border-radius: 12px !important; }
.p-stat-num { display: block !important; font-size: 2rem !important; font-weight: bold !important; color: var(--text) !important; }
.p-stat-lbl { color: var(--muted) !important; }
.project-body-grid { display: grid !important; grid-template-columns: 2fr 1fr !important; gap: 40px !important; max-width: 1200px !important; margin: 0 auto !important; }
.content-block { background: #fff !important; border: 1px solid var(--border) !important; padding: 30px !important; border-radius: 16px !important; margin-bottom: 30px !important; box-shadow: 0 4px 20px rgba(27,127,184,0.06) !important; }
.content-block p { color: var(--muted) !important; }
.block-title { color: var(--text) !important; }
.mockup-placeholder { background: rgba(27,127,184,0.03) !important; border: 1px dashed rgba(27,127,184,0.25) !important; height: 240px !important; border-radius: 10px !important; display: flex !important; align-items: center !important; justify-content: center !important; color: var(--blue) !important; }
.tech-spec-card { background: #fff !important; border: 1px solid var(--border) !important; padding: 30px !important; border-radius: 16px !important; position: sticky !important; top: 100px !important; box-shadow: 0 4px 20px rgba(27,127,184,0.06) !important; }
.tech-spec-card h4 { color: var(--text) !important; border-bottom: 1px solid var(--border) !important; padding-bottom: 10px; margin-bottom: 25px; }
.spec-label { color: var(--muted) !important; display: block; margin-bottom: 8px; font-size: 0.8rem; }
.spec-chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.project-features-list { list-style: none; padding: 0; }
.project-features-list li { color: var(--muted) !important; line-height: 1.8; margin-bottom: 15px; position: relative; padding-right: 25px; }
.project-features-list li::before { content: "⚡"; position: absolute; right: 0; top: 0; }
.project-mockup-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
@media (max-width: 768px) { .project-body-grid { grid-template-columns: 1fr !important; } .project-mockup-row { grid-template-columns: 1fr !important; } }

/* =================================================== */
/* 🤖 الشات بوت 🤖 */
/* =================================================== */
.cyber-chatbot-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; direction: rtl; font-family: 'Cairo', sans-serif; }

.cyber-chat-toggle {
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    border: none; border-radius: 50%; width: 65px; height: 65px; cursor: pointer;
    box-shadow: 0 5px 20px rgba(245,166,35,0.35);
    position: relative; transition: transform 0.3s ease;
    display: flex; align-items: center; justify-content: center; outline: none;
}
.cyber-chat-toggle:hover { transform: scale(1.1); }
.robot-icon { font-size: 2.2rem; z-index: 2; }
.pulse-ring { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--orange); animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; z-index: 1; }
@keyframes ping { 75%, 100% { transform: scale(1.6); opacity: 0; } }

.cyber-chat-window {
    position: absolute; bottom: 90px; right: 0; width: 350px;
    background: #FFFFFF; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 15px 40px rgba(27,127,184,0.15);
    overflow: hidden; display: none; flex-direction: column;
    transform-origin: bottom right; animation: chatPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cyber-chat-window.active { display: flex; }
@keyframes chatPop { 0% { opacity: 0; transform: scale(0.5) translateY(50px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

.chat-header { background: #F7FAFC; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.bot-info { display: flex; align-items: center; gap: 12px; }
.bot-avatar { font-size: 1.8rem; background: rgba(245,166,35,0.1); padding: 5px; border-radius: 50%; border: 1px solid rgba(245,166,35,0.3); }
.bot-info h4 { color: var(--text); margin: 0 0 5px 0; font-size: 1.1rem; font-family: 'Orbitron', 'Cairo', sans-serif; }
.online-status { color: #2BA84C; font-size: 0.8rem; display: flex; align-items: center; gap: 5px; font-weight: bold; }
.online-status::before { content: ''; width: 8px; height: 8px; background: #2BA84C; border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.close-chat { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.close-chat:hover { color: #ff4757; transform: rotate(90deg); }

.chat-messages { height: 320px; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: rgba(27,127,184,0.05); }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(27,127,184,0.4); border-radius: 10px; }

.message { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; line-height: 1.6; animation: msgFadeIn 0.3s ease; }
@keyframes msgFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.bot-message { background: rgba(27,127,184,0.06); border: 1px solid rgba(27,127,184,0.15); color: var(--text); align-self: flex-start; border-bottom-right-radius: 2px; }
.user-message { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; font-weight: 700; align-self: flex-end; border-bottom-left-radius: 2px; box-shadow: 0 5px 15px rgba(245,166,35,0.25); }
.bot-message a { color: var(--blue); font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(27,127,184,0.3); }
.bot-message a:hover { color: var(--orange); border-color: var(--orange); }
.typing-message { color: var(--muted); font-size: 0.85rem; }

.chat-quick-replies {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 15px 14px;
    background: #F7FAFC;
}
.chat-quick-replies[hidden] { display: none !important; }
.chat-quick-replies button {
    border: 1px solid rgba(27,127,184,0.18);
    background: #FFFFFF;
    color: var(--blue);
    border-radius: 999px;
    padding: 8px 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chat-quick-replies button:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

.chat-input-area { display: flex; padding: 15px; background: #F7FAFC; border-top: 1px solid var(--border); gap: 10px; }
.chat-input-area input { flex: 1; background: #FFFFFF; border: 1px solid var(--border); padding: 12px 15px; border-radius: 8px; color: var(--text); font-family: 'Cairo', sans-serif; outline: none; transition: 0.3s; }
.chat-input-area input:focus { border-color: var(--orange); box-shadow: inset 0 0 10px rgba(245,166,35,0.08); }
.send-btn { background: var(--orange); color: #fff; border: none; border-radius: 8px; width: 50px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.send-btn:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(245,166,35,0.35); }

/* =================================================== */
/* 💬 خطوات العمل (Flip Cards) 💬 */
/* =================================================== */
.roadmap-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 0 20px; }
.flip-card { background-color: transparent; width: 220px; height: 200px; perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    border-radius: 15px; border: 1px solid var(--border); display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 20px;
}
.flip-card-front { background: #FFFFFF; box-shadow: 0 4px 15px rgba(27,127,184,0.06); transform: rotateY(0deg); }
.flip-card-front h3 { color: var(--text); }
.flip-card-back { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; transform: rotateY(180deg); }
.rm-dot { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--orange); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; font-weight: 900; color: var(--orange); }

/* =================================================== */
/* ☎️ مودالات الطلب (الأزرار العائمة لطلب عرض السعر) ☎️ */
/* =================================================== */
.cta-section { background: linear-gradient(135deg, #FFF7EE 0%, #F7FAFC 100%); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; text-align: center; }
.cta-title, .article-cta-box h4 { color: var(--text); }
.cta-sub, .article-cta-box p { color: var(--muted); }
.cta-btn, .modal-submit, .submit-btn {
    background: linear-gradient(135deg, var(--orange), var(--orange2)) !important;
    color: #fff !important; border: none; padding: 12px 32px; border-radius: 8px;
    font-weight: 700; cursor: pointer; transition: opacity 0.2s, transform 0.1s;
}
.cta-btn:hover, .modal-submit:hover, .submit-btn:hover { opacity: 0.9; }

.overlay, .modal-box {
    background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 15px 40px rgba(27,127,184,0.15);
}
.form-title, .modal-title { color: var(--text); }
.modal-sub { color: var(--muted); }
.close-btn, .modal-close {
    background: rgba(27,127,184,0.06); border: 1px solid var(--border);
    color: var(--muted); width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.field label, .modal-field label { color: var(--blue); font-weight: 600; font-size: 0.85rem; }
.field input, .field textarea, .modal-field input, .modal-field textarea {
    width: 100%; background: #F7FAFC; border: 1px solid var(--border);
    border-radius: 8px; padding: 12px 14px; color: var(--text);
    font-family: inherit; outline: none; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .modal-field input:focus, .modal-field textarea:focus { border-color: var(--orange); }
.success-msg, .modal-success { text-align: center; color: var(--text); }
.success-icon, .modal-success .s-icon { color: var(--orange); font-size: 3rem; }

/* =================================================== */
/* 📊 Stats Bar 📊 */
/* =================================================== */
.stats-bar { padding: 50px 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #FFFFFF; }
.stats-bar-grid { display: flex; justify-content: center; align-items: center; gap: 0; max-width: 900px; margin: 0 auto; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 160px; text-align: center; padding: 20px; position: relative; }
.stat-item:not(:last-child)::after { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--border); }
.stat-num { display: block; font-family: 'Orbitron', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.stat-lbl { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.5px; }

/* =================================================== */
/* ❓ FAQ ❓ */
/* =================================================== */
.faq-wrap { max-width: 800px; margin: 0 auto; direction: rtl; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #FFFFFF; box-shadow: 0 4px 20px rgba(27,127,184,0.06); transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(245,166,35,0.3); }
.faq-question { width: 100%; background: none; border: none; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: right; gap: 15px; }
.faq-question span { font-size: 1rem; color: var(--text); font-weight: 500; line-height: 1.5; }
.faq-icon { font-size: 1.4rem; color: var(--orange); font-weight: 300; flex-shrink: 0; transition: transform 0.3s; font-style: normal; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s; padding: 0 25px; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 25px 20px; }
.faq-answer p { color: var(--muted); line-height: 1.8; font-size: 0.95rem; border-right: 2px solid rgba(245,166,35,0.4); padding-right: 15px; }

/* =================================================== */
/* 📲 واتساب العائم وزر الأعلى 📲 */
/* =================================================== */
.wa-float {
    position: fixed; bottom: 30px; left: 30px; z-index: 9999;
    display: flex; align-items: center; gap: 10px;
    background: #25D366; color: #fff; padding: 13px 20px 13px 16px; border-radius: 50px;
    text-decoration: none; font-size: 0.9rem; font-weight: 600;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.2s, box-shadow 0.2s; animation: waPulse 2.5s infinite; direction: rtl;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,0.55); animation: none; }
.wa-float svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); } }

#scrollTop {
    position: fixed; bottom: 110px; right: 40px; z-index: 9999;
    width: 44px; height: 44px; background: #FFFFFF;
    border: 1px solid rgba(27,127,184,0.25); border-radius: 10px;
    color: var(--blue); font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: 0 4px 15px rgba(27,127,184,0.1);
}
#scrollTop.show { opacity: 1; pointer-events: all; }
#scrollTop:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--orange); }

@media (max-width: 500px) {
  #scrollTop { bottom: 92px !important; right: 28px !important; }
}


/* =================================================== */
/* 🔥 دفعة تحسين: تباين أقوى + ألوان أكثر حيوية         */
/* أضف هذا الكود في آخر ملف app.css (بعد كل شيء آخر)    */
/* =================================================== */

:root {
  /* ألوان أقوى وأكثر تشبعاً */
  --blue: #0E6FA8;
  --blue2: #1B8FD4;
  --orange: #F2871B;
  --orange2: #E85D04;
  --darker: #EEF3F7;     /* خلفية الصفحة - رمادي أزرق فاتح أوضح بدل الأبيض الباهت */
  --border: rgba(14, 111, 168, 0.22);
  --text: #14202B;
  --muted: rgba(20, 32, 43, 0.62);
}

/* ===== خلفية أقوى تباين مع الكروت ===== */
body {
  background-color: var(--darker) !important;
  background-image:
    linear-gradient(rgba(14, 111, 168, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 111, 168, 0.04) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
}

/* ===== الكروت: أبيض نقي + ظل واضح + حد أقوى ===== */
.svc-card, .work-card, .tech-card, .blog-modern-card, .content-block,
.faq-item, .form-box, .tech-spec-card, .isolated-widget, .p-stat-card,
.flip-card-front, .sidebar-widget, .stats-bar {
  background: #FFFFFF !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: 0 6px 24px rgba(14, 111, 168, 0.1) !important;
}
.svc-card:hover, .work-card:hover, .tech-card:hover, .blog-modern-card:hover {
  border-color: var(--orange) !important;
  box-shadow: 0 18px 40px rgba(242, 135, 27, 0.18) !important;
}

/* ===== الناف بار: تباين أوضح عن خلفية الصفحة ===== */
nav, #nav {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: 0 10px 35px rgba(14, 111, 168, 0.12) !important;
}

/* ===== الأزرار: ألوان أكثر حيوية وتشبع ===== */
.btn-glow {
  background: linear-gradient(135deg, var(--orange), var(--orange2)) !important;
  box-shadow: 0 8px 28px rgba(242, 135, 27, 0.4) !important;
}
.btn-glow:hover { box-shadow: 0 12px 38px rgba(242, 135, 27, 0.55) !important; }

.btn-ghost {
  border: 1.5px solid var(--blue) !important;
  background: rgba(14, 111, 168, 0.06) !important;
  color: var(--blue) !important;
  font-weight: 700 !important;
}
.btn-ghost:hover { background: var(--blue) !important; color: #fff !important; }

/* ===== Stats Bar: إصلاح بقايا الأزرق النيون القديم ===== */
.stat-num {
  color: var(--orange) !important;
  font-weight: 900 !important;
}
.stats-bar { background: #FFFFFF !important; border-top: 1.5px solid var(--border) !important; border-bottom: 1.5px solid var(--border) !important; }

/* ===== FAQ: حل مشكلة الشفافية الرمادية الباهتة ===== */
.faq-item {
  background: #FFFFFF !important;
  opacity: 1 !important;
}
.faq-question span {
  color: var(--text) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
.faq-answer p {
  color: var(--muted) !important;
  opacity: 1 !important;
}
.faq-item.open {
  border-color: var(--orange) !important;
  box-shadow: 0 10px 30px rgba(242, 135, 27, 0.15) !important;
}
.faq-icon { color: var(--orange) !important; font-weight: 700 !important; }

/* تأكيد ظهور المحتوى (حل أي مشكلة reveal/opacity متبقية) */
.faq-wrap.reveal, .faq-item, .reveal.on { opacity: 1 !important; }

/* ===== العناوين: تباين أقوى وألوان أوضح ===== */
.sec-title { color: var(--text) !important; font-weight: 900 !important; }
.sec-title em {
  background: linear-gradient(to left, var(--blue), var(--orange)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.sec-tag {
  color: var(--orange) !important;
  font-weight: 800 !important;
}

/* ===== الهيرو: نص أوضح وأزرار أكثر بروزاً ===== */
.hero h1 { color: var(--text) !important; }
.hero-sub { color: var(--muted) !important; font-weight: 500 !important; }
.hero-tag {
  color: var(--blue) !important;
  background: #FFFFFF !important;
  border: 1.5px solid var(--blue) !important;
  font-weight: 700 !important;
}
.tag-dot { background: var(--orange) !important; }

/* ===== شريحة "Secure Cloud" والبطاقات العائمة في الهيرو ===== */
.floating-tech-card {
  background: #FFFFFF !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: 0 12px 30px rgba(14, 111, 168, 0.15) !important;
}
.ftc-info h5 { color: var(--text) !important; font-weight: 800 !important; }

/* ===== الشريحة البرتقالية (svc-chip, p-chip) ===== */
.svc-chip, .spec-tag, .p-chip {
  color: var(--blue) !important;
  background: rgba(14, 111, 168, 0.1) !important;
  border: 1.5px solid var(--blue) !important;
  font-weight: 700 !important;
}

/* ===== الفوتر: تباين أوضح عن خلفية الصفحة ===== */
.cyber-footer {
  background: #FFFFFF !important;
  border-top: 1.5px solid var(--border) !important;
}
.footer-brand .f-logo, .f-logo { color: var(--blue) !important; }
.footer-links-group h4, .footer-col h4 { color: var(--orange) !important; font-weight: 800 !important; }

/* ===== الشات بوت: ألوان أقوى ===== */
.cyber-chat-toggle {
  background: linear-gradient(135deg, var(--orange), var(--orange2)) !important;
  box-shadow: 0 8px 25px rgba(242, 135, 27, 0.45) !important;
}
.message.user-message {
  background: linear-gradient(135deg, var(--orange), var(--orange2)) !important;
}

/* ===== واتساب وزر الأعلى ===== */
#scrollTop {
  border: 1.5px solid var(--blue) !important;
  color: var(--blue) !important;
}
#scrollTop:hover { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; }

/* ===== خطوات العمل: حدود وظل أوضح ===== */
.flip-card-front { border: 1.5px solid var(--border) !important; }
.flip-card-back { background: linear-gradient(135deg, var(--orange), var(--orange2)) !important; }
.rm-dot { border: 2.5px solid var(--orange) !important; color: var(--orange) !important; font-weight: 900 !important; }

/* ===== نموذج التواصل: تباين واضح للحقول ===== */
.fg input, .fg textarea, .fg select {
  background: #F7FAFC !important;
  border: 1.5px solid var(--border) !important;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(242, 135, 27, 0.12) !important;
}
.sbtn { background: linear-gradient(135deg, var(--orange), var(--orange2)) !important; font-weight: 800 !important; }

.svc-icon-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 24px !important;
    min-height: 120px !important;
}

.svc-icon-wrap img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
  .work-card-cta {
    min-height: 44px;
    font-size: 0.9rem;
    padding: 11px 14px;
  }

  .clients-showcase {
    padding-top: 56px !important;
    padding-bottom: 70px !important;
  }

  .clients-marquee {
    max-width: 100%;
    padding-bottom: 12px;
  }

  .client-logo-card {
    width: 156px;
    min-height: 122px;
    padding: 18px 12px;
    border-radius: 14px;
  }

  .client-logo-card img {
    height: 48px;
  }
}
