
    :root {
      --primary:    #0a3d6b;
      --accent:     #f0a500;
      --accent2:    #00b4d8;
      --dark:       #061e35;
      --light:      #f4f8ff;
      --text:       #1a1a2e;
      --muted:      #4a6080;
      --white:      #ffffff;
      --gradient:   linear-gradient(135deg, #0a3d6b 0%, #00b4d8 100%);
      --card-shadow: 0 8px 32px rgba(10,61,107,0.13);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Cairo', 'Tajawal', sans-serif;
      color: var(--text);
      background: var(--light);
      direction: rtl;
    }

    /* ───── NAVBAR ───── */
    .navbar {
      background: var(--dark) !important;
      padding: 14px 0;
      box-shadow: 0 2px 20px rgba(0,0,0,0.3);
      position: sticky;
      top: 0;
      z-index: 1000;
    }
    .navbar-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--white) !important;
      font-family: 'Tajawal', sans-serif;
      font-size: 1.3rem;
      font-weight: 900;
    }
    .brand-icon {
      width: 46px; height: 46px;
      background: var(--gradient);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
      color: var(--white);
      flex-shrink: 0;
    }
    .brand-sub { font-size: .72rem; color: var(--accent2); display: block; font-weight: 400; }
    .nav-link {
      color: rgba(255,255,255,0.85) !important;
      font-weight: 600;
      font-size: .95rem;
      padding: 6px 14px !important;
      transition: color .2s;
    }
    .nav-link:hover, .nav-link.active { color: var(--accent) !important; }
    .navbar-toggler { border-color: rgba(255,255,255,0.3); }
    .navbar-toggler-icon { filter: invert(1); }

    .top-bar {
      background: var(--primary);
      color: var(--white);
      font-size: .82rem;
      padding: 6px 0;
    }
    .top-bar a { color: var(--accent); text-decoration: none; }
    .top-bar a:hover { color: var(--white); }

    /* ───── HERO ───── */
    #home {
      background: var(--dark);
      position: relative;
      overflow: hidden;
      min-height: 92vh;
      display: flex;
      align-items: center;
    }
    .hero-bg {
      position: absolute; inset: 0;
      background: linear-gradient(135deg, #061e35 0%, #0a3d6b 60%, #00b4d8 120%);
      opacity: 1;
    }
    .hero-pattern {
      position: absolute; inset: 0;
      background-image: radial-gradient(circle at 20% 50%, rgba(0,180,216,.18) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(240,165,0,.12) 0%, transparent 40%);
    }
    .hero-content { position: relative; z-index: 2; }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(240,165,0,.15);
      border: 1px solid rgba(240,165,0,.4);
      color: var(--accent);
      padding: 6px 18px;
      border-radius: 30px;
      font-size: .85rem;
      font-weight: 700;
      margin-bottom: 22px;
    }
    .hero-title {
      font-family: 'Tajawal', sans-serif;
      font-size: clamp(2rem, 5vw, 3.6rem);
      font-weight: 900;
      color: var(--white);
      line-height: 1.25;
      margin-bottom: 18px;
    }
    .hero-title span { color: var(--accent); }
    .hero-desc {
      color: rgba(255,255,255,0.88);
      font-size: 1.05rem;
      line-height: 1.8;
      margin-bottom: 36px;
    }
    .btn-hero-primary {
      background: var(--accent);
      color: var(--dark);
      border: none;
      padding: 13px 34px;
      border-radius: 40px;
      font-weight: 900;
      font-size: 1rem;
      text-decoration: none;
      display: inline-flex; align-items: center; gap: 8px;
      transition: transform .2s, box-shadow .2s;
      box-shadow: 0 4px 20px rgba(240,165,0,.35);
    }
    .btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(240,165,0,.45); color: var(--dark); }
    .btn-hero-outline {
      background: transparent;
      color: var(--white);
      border: 2px solid rgba(255,255,255,.4);
      padding: 12px 30px;
      border-radius: 40px;
      font-weight: 700;
      font-size: 1rem;
      text-decoration: none;
      display: inline-flex; align-items: center; gap: 8px;
      transition: all .2s;
    }
    .btn-hero-outline:hover { border-color: var(--accent2); color: var(--accent2); }

    .hero-stats {
      display: flex; gap: 32px;
      margin-top: 50px;
      flex-wrap: wrap;
    }
    .stat-item { text-align: center; }
    .stat-num {
      font-family: 'Tajawal', sans-serif;
      font-size: 2.2rem;
      font-weight: 900;
      color: var(--accent);
      line-height: 1;
    }
    .stat-label { color: rgba(255,255,255,.75); font-size: .82rem; margin-top: 4px; }

    .hero-visual {
      position: relative; z-index: 2;
      display: flex; flex-direction: column; gap: 18px;
      align-items: center;
    }
    .hero-card {
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 18px;
      padding: 22px 28px;
      backdrop-filter: blur(10px);
      width: 100%;
      max-width: 340px;
      display: flex; align-items: center; gap: 16px;
      animation: float 4s ease-in-out infinite;
    }
    .hero-card:nth-child(2) { animation-delay: 2s; }
    @keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
    .hero-card-icon {
      width: 52px; height: 52px;
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem;
      flex-shrink: 0;
    }
    .icon-blue  { background: rgba(0,180,216,.25); color: var(--accent2); }
    .icon-gold  { background: rgba(240,165,0,.25); color: var(--accent); }
    .icon-green { background: rgba(0,200,120,.25); color: #00c878; }
    .hero-card-text { color: var(--white); }
    .hero-card-text strong { display: block; font-size: 1rem; font-weight: 700; }
    .hero-card-text span { font-size: .8rem; color: rgba(255,255,255,.65); }

    /* ───── SECTIONS COMMON ───── */
    section { padding: 90px 0; }
    .section-label {
      display: inline-flex; align-items: center; gap: 8px;
      color: var(--accent);
      font-size: .82rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 12px;
    }
    .section-title {
      font-family: 'Tajawal', sans-serif;
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      font-weight: 900;
      color: var(--text);
      line-height: 1.3;
      margin-bottom: 16px;
    }
    .section-title span { color: var(--primary); }
    .section-desc { color: var(--muted); font-size: 1rem; line-height: 1.85; max-width: 600px; }
    .divider {
      width: 60px; height: 4px;
      background: var(--gradient);
      border-radius: 4px;
      margin: 16px 0 28px;
    }

    /* ───── ABOUT ───── */
    #about { background: var(--white); }
    .about-img-wrap {
      position: relative;
      border-radius: 22px;
      overflow: hidden;
      box-shadow: var(--card-shadow);
    }
    .about-img-placeholder {
      background: var(--gradient);
      height: 500px;
      display: flex; align-items: center; justify-content: center;
      font-size: 5rem;
      color: rgba(255,255,255,.25);
    }
    .about-badge {
      position: absolute; bottom: 24px; right: 24px;
      background: var(--accent);
      color: var(--dark);
      padding: 12px 20px;
      border-radius: 14px;
      font-weight: 900;
      font-size: .9rem;
      display: flex; align-items: center; gap: 8px;
      box-shadow: 0 4px 20px rgba(240,165,0,.35);
    }
    .about-feature {
      display: flex; align-items: flex-start; gap: 14px;
      margin-bottom: 22px;
    }
    .about-feature-icon {
      width: 44px; height: 44px;
      border-radius: 12px;
      background: rgba(10,61,107,.08);
      color: var(--primary);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.15rem;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .about-feature h6 { font-weight: 700; margin-bottom: 4px; color: var(--text); }
    .about-feature p { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.6; }

    /* ───── SERVICES ───── */
    #services { background: var(--light); }
    .service-card {
      background: var(--white);
      border-radius: 20px;
      padding: 32px 24px;
      box-shadow: var(--card-shadow);
      transition: transform .3s, box-shadow .3s;
      height: 100%;
      position: relative;
      overflow: hidden;
    }
    .service-card::before {
      content: '';
      position: absolute; top: 0; right: 0; left: 0;
      height: 4px;
      background: var(--gradient);
      transform: scaleX(0);
      transition: transform .3s;
      transform-origin: right;
    }
    .service-card:hover::before { transform: scaleX(1); }
    .service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(10,61,107,.18); }
    .service-icon {
      width: 64px; height: 64px;
      border-radius: 18px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.7rem;
      margin-bottom: 20px;
    }
    .s1 { background: rgba(0,180,216,.1); color: var(--accent2); }
    .s2 { background: rgba(240,165,0,.1); color: var(--accent); }
    .s3 { background: rgba(10,61,107,.1); color: var(--primary); }
    .s4 { background: rgba(0,200,120,.1); color: #00c878; }
    .s5 { background: rgba(220,53,69,.1); color: #dc3545; }
    .s6 { background: rgba(111,66,193,.1); color: #6f42c1; }
    .service-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; color: var(--text); }
    .service-card p { color: var(--muted); font-size: .88rem; line-height: 1.7; margin: 0; }
    .service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
    .service-tag {
      background: var(--light);
      color: var(--primary);
      font-size: .73rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
      border: 1px solid rgba(10,61,107,.12);
    }

    /* ───── WORKS ───── */
    
    /* --- تحسينات CSS للقسم --- */
    #works { background: var(--white); padding: 80px 0; } /* إضافة بادنج للقسم */
    
    .works-tabs { 
      display: flex; 
      gap: 8px; 
      flex-wrap: wrap; 
      margin-bottom: 36px; 
      justify-content: center; /* توسيط التبويبات */
    }
    
    .works-tab {
      background: var(--light);
      color: var(--muted);
      border: 1.5px solid transparent;
      padding: 8px 20px;
      border-radius: 30px;
      font-weight: 700;
      font-size: .87rem;
      cursor: pointer;
      transition: all .2s;
    }
    .works-tab.active, .works-tab:hover {
      background: var(--primary);
      color: var(--white);
      border-color: var(--primary);}
    
    .work-item {
      border-radius: 16px;
      overflow: hidden; /* لمنع الصور من الخروج عن الحواف الدائرية */
      box-shadow: var(--card-shadow);
      position: relative;
      background: var(--dark);
      height: 100%; /* لضمان أن جميع الكروت في نفس الصف لها نفس الطول */
    }
    
    .work-placeholder {
      height: 240px; /* زيادة الارتفاع قليلاً لظهور الصورة بشكل أفضل */
      width: 100%;
      display: flex; 
      align-items: center; 
      justify-content: center;
      position: relative;
      overflow: hidden; /* مهم جداً لعمل object-fit */
    }
    
    /* تنسيق خاص للصور لضبط الأبعاد */
    .work-placeholder img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* هذه الخاصية تجعل الصورة تملأ المكان دون تمويه */
      transition: transform 0.4s ease;
    }
    
    /* تأثير حركة بسيط عند الوقوف بالماوس */
    .work-item:hover .work-placeholder img {
      transform: scale(1.05);
    }
    
    /* تنسيق الفيديو (الخلفية والأيقونة) */
    .work-vid { 
      background: linear-gradient(135deg, #061e35, #0a3d6b); 
    }
    .work-vid i {
      font-size: 3.5rem;
      color: rgba(255,255,255,.4);
      z-index: 1;
    }

    .work-overlay {
      position: absolute; 
      inset: 0;
      background: rgba(0,0,0,0);
      display: flex; 
      align-items: center; 
      justify-content: center;
      transition: background .3s;
      z-index: 2; /* ليكون فوق الصورة */
    }
    .work-item:hover .work-overlay { background: rgba(0,0,0,.45); }
    
    .work-overlay-btn {
      background: var(--white);
      color: var(--primary);
      border: none;
      width: 52px; 
      height: 52px;
      border-radius: 50%;
      font-size: 1.3rem;
      display: flex; 
      align-items: center; 
      justify-content: center;
      opacity: 0;
      transform: scale(.7);
      transition: all .3s;
      text-decoration: none;
      z-index: 3;
    }
    .work-item:hover .work-overlay-btn { opacity: 1; transform: scale(1); }
    
    .work-label {
      position: absolute; 
      bottom: 0; 
      right: 0; 
      left: 0;
      background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
      padding: 24px 16px 12px;
      color: var(--white);
      font-size: .9rem;
      font-weight: 700;
      z-index: 4; /* ليكون النص فوق كل شيء */
    }
    .work-label span { 
      font-size: .75rem; 
      color: var(--accent2); 
      display: block; 
      font-weight: 400; 
      margin-top: 4px;
    }
  
    /* ───── ARTICLE ───── */
    #article { background: var(--light); }
    .article-main {
      background: var(--white);
      border-radius: 22px;
      overflow: hidden;
      box-shadow: var(--card-shadow);
    }
    .article-hero-img {
      background: var(--gradient);
      height: 240px;
      display: flex; align-items: center; justify-content: center;
      font-size: 4rem;
      color: rgba(255,255,255,.3);
    }
    .article-body { padding: 36px; }
    .article-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
    .meta-item { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .83rem; }
    .meta-item i { color: var(--accent); }
    .article-body h3 { font-family: 'Tajawal', sans-serif; font-size: 1.5rem; font-weight: 900; margin-bottom: 16px; color: var(--text); }
    .article-body p { color: var(--muted); line-height: 1.9; margin-bottom: 16px; font-size: .95rem; }
    .article-tip {
      background: rgba(10,61,107,.05);
      border-right: 4px solid var(--primary);
      border-radius: 0 12px 12px 0;
      padding: 16px 20px;
      margin: 20px 0;
      display: flex; gap: 12px;
    }
    .article-tip i { color: var(--accent); font-size: 1.2rem; margin-top: 2px; }
    .article-tip p { margin: 0; color: var(--text); font-size: .9rem; }
    .article-side .tip-card {
      background: var(--white);
      border-radius: 16px;
      padding: 22px;
      box-shadow: var(--card-shadow);
      margin-bottom: 20px;
    }
    .tip-card h6 { font-weight: 700; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
    .tip-card ul { list-style: none; padding: 0; margin: 0; }
    .tip-card ul li {
      padding: 7px 0;
      border-bottom: 1px solid var(--light);
      color: var(--muted);
      font-size: .87rem;
      display: flex; align-items: center; gap: 10px;
    }
    .tip-card ul li:last-child { border: none; }
    .tip-card ul li i { color: var(--accent2); font-size: .75rem; }

    /* ───── FOOTER ───── */
    #footer { background: var(--dark); color: var(--white); padding: 70px 0 0; }
    .footer-logo-text {
      font-family: 'Tajawal', sans-serif;
      font-size: 1.4rem;
      font-weight: 900;
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 16px;
    }
    .footer-desc { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.8; margin-bottom: 22px; }
    .footer-social { display: flex; gap: 10px; }
    .social-btn {
      width: 38px; height: 38px;
      border-radius: 50%;
      background: rgba(255,255,255,.08);
      color: var(--white);
      display: flex; align-items: center; justify-content: center;
      text-decoration: none;
      font-size: .9rem;
      transition: background .2s, color .2s;
    }
    .social-btn:hover { background: var(--accent); color: var(--dark); }
    .footer-title {
      font-family: 'Tajawal', sans-serif;
      font-size: 1.05rem;
      font-weight: 900;
      color: var(--accent);
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .footer-links { list-style: none; padding: 0; margin: 0; }
    .footer-links li { margin-bottom: 10px; }
    .footer-links a {
      color: rgba(255,255,255,.65);
      text-decoration: none;
      font-size: .9rem;
      display: flex; align-items: center; gap: 8px;
      transition: color .2s, padding-right .2s;
    }
    .footer-links a i { color: var(--accent2); font-size: .75rem; }
    .footer-links a:hover { color: var(--accent); padding-right: 4px; }
    .footer-contact-item {
      display: flex; align-items: flex-start; gap: 12px;
      margin-bottom: 16px;
      color: rgba(255,255,255,.7);
      font-size: .88rem;
    }
    .footer-contact-item i { color: var(--accent); font-size: 1rem; margin-top: 2px; }
    .footer-contact-item a { color: rgba(255,255,255,.7); text-decoration: none; }
    .footer-contact-item a:hover { color: var(--accent); }
    .footer-bottom {
      background: rgba(0,0,0,.3);
      padding: 16px 0;
      margin-top: 50px;
      text-align: center;
      font-size: .83rem;
      color: rgba(255,255,255,.45);
    }
    .footer-bottom a { color: var(--accent); text-decoration: none; font-weight: 700; }
    .footer-bottom a:hover { color: var(--white); }

    /* ───── WHATSAPP FLOAT ───── */
    .wa-float {
      position: fixed; bottom: 26px; left: 26px;
      width: 58px; height: 58px;
      background: #25d366;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--white);
      font-size: 1.6rem;
      box-shadow: 0 4px 20px rgba(37,211,102,.45);
      text-decoration: none;
      z-index: 999;
      animation: pulse 2.5s infinite;
    }
    @keyframes pulse {
      0%,100%{box-shadow:0 4px 20px rgba(37,211,102,.45)}
      50%{box-shadow:0 4px 32px rgba(37,211,102,.75)}
    }

    /* ───── PHONE FLOAT ───── */
    .phone-float {
      position: fixed; bottom: 26px; right: 26px;
      width: 58px; height: 58px;
      background: var(--primary);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--white);
      font-size: 1.4rem;
      box-shadow: 0 4px 20px rgba(10,61,107,.45);
      text-decoration: none;
      z-index: 999;
    }
    .phone-float:hover { background: var(--accent2); color: var(--white); }

    /* ───── SCROLL TOP ───── */
    #scrollTop {
      position: fixed; bottom: 98px; right: 26px;
      width: 44px; height: 44px;
      background: rgba(255,255,255,.9);
      border: 2px solid var(--primary);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--primary);
      font-size: 1rem;
      cursor: pointer;
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s;
    }
    #scrollTop.show { opacity: 1; pointer-events: auto; }
    #scrollTop:hover { background: var(--primary); color: var(--white); }

    /* ───── EMERGENCY BANNER ───── */
    .emergency-bar {
      background: linear-gradient(90deg, var(--accent) 0%, #e09000 100%);
      color: var(--dark);
      text-align: center;
      padding: 10px 0;
      font-weight: 700;
      font-size: .9rem;
    }
    .emergency-bar a { color: var(--dark); font-weight: 900; }

    /* ───── FEATURE STRIP ───── */
    .feature-strip {
      background: var(--primary);
      padding: 28px 0;
    }
    .feat-item {
      display: flex; align-items: center; gap: 14px;
      color: var(--white);
    }
    .feat-item i { font-size: 1.8rem; color: var(--accent); }
    .feat-item strong { display: block; font-size: .95rem; }
    .feat-item span { font-size: .78rem; color: rgba(255,255,255,.65); }

    /* ───── RESPONSIVE ───── */
    @media (max-width: 767px) {
      section { padding: 60px 0; }
      .hero-stats { gap: 20px; }
      .hero-card { max-width: 100%; }
      .article-body { padding: 22px; }
      .feat-item { margin-bottom: 12px; }
    }
  