from collections import OrderedDict
import re
from pathlib import Path

/* ===== الأنماط الأساسية ===== */
:root {
    --primary-color: #000000;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}



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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    /* يجعل الحشوة عمودية مرنة بحسب العرض مع حد أدنى وحد أقصى */
    padding: clamp(48px, 8vw, 100px) 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}
.logo-img {
  filter: brightness(0) invert(1); /* أبيض افتراضي */
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.logo-img:hover {
  filter: brightness(1) invert(0); /* يصير أسود عند اللمس */
  transform: scale(1.05); /* تكبير خفيف يعطي لمسة احترافية */
}


.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(255,255,255,0));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== زر الدعوة للعمل ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}









.navbar.scrolled {
    padding: 15px 0;
    background: transparent !important;
    box-shadow: none !important;
}


.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
}

.nav-menu ul {
    display: flex;
}

.nav-menu ul li {
    margin: 0 15px;
}

.nav-menu ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--text-color);
    bottom: 0;
    right: 0;
    transition: var(--transition);
}

.nav-menu ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ===== القائمة المنسدلة للجوال ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-container {
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-cta {
    margin-top: 5px;
}

/* ===== قسم الرئيسية (Hero) ===== */
.hero-section {
    height: 505vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    max-width: 770px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-effects .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: 10%;
    animation: float 8s infinite ease-in-out;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 5%;
    animation: float 12s infinite ease-in-out;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 15%;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* ===== قسم من نحن ===== */
/* === بطاقات Uiverse (Namespaced) === */
.value-item {
  display: flex;
  justify-content: center; 
}


.u-card {
  position: relative;
  width: 280px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}


/* موجات الخلفية */
.u-wave {
  position: absolute;
  width: 520px;
  height: 680px;
  opacity: 0.55;
  left: 0;
  top: 0;
  margin-left: -50%;
  margin-top: -70%;
  background: linear-gradient(744deg, #af40ff, #5b42f3 60%, #00ddeb);
  border-radius: 40%;
  animation: u-wave 55s infinite linear;
}

/* تسريع عند إضافة playing (نفس فكرة المثال) */
.playing .u-wave { animation-duration: 3000ms; }
.playing .u-wave:nth-child(2) { animation-duration: 4000ms; }
.playing .u-wave:nth-child(3) { animation-duration: 5000ms; }

.u-wave:nth-child(2),
.u-wave:nth-child(3) {
  top: 210px;
}

/* ===== توسيط مثالي من الصفر ===== */

/* البطاقة نفسها: إزالة أي padding يرفع المحتوى */
.u-card {
  position: relative ! important;
  width: 280px !important;
  height: 220px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* المحتوى: توسيط حقيقي من الصفر */
.u-info {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
  color: #fff !important;
  backdrop-filter: blur(4px) !important;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.45)) !important;
  padding: 20px !important;
  margin: 0 !important;
}

/* الأيقونة: بدون أي مسافات */
.u-icon {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.u-icon i {
  font-size: 32px !important;
  color: #fff ! important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: 1 !important;
}

/* العنوان: مسافة صغيرة فوق وتحت */
.u-title {
  margin: 6px 0 4px 0 !important;
  padding: 0 !important;
  font-size: 1. 15rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  text-align: center !important;
  line-height: 1.3 !important;
  color: #fff !important;
}

/* النص: بدون مسافات زائدة */
.u-text {
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.85) !important;
  margin: 0 !important;
  padding: 0 8px !important;
  text-align: center ! important;
  line-height: 1.4 !important;
  max-width: 100% !important;
}

/* موبايل */
@media (max-width: 768px) {
  .u-card {
    width: 100% !important;
    max-width: 320px !important;
  }

  .u-info {
    gap: 8px !important;
    padding: 16px !important;
  }

  .u-icon i {
    font-size: 28px !important;
  }

  .u-title {
    font-size: 1. 05rem !important;
  }

  .u-text {
    font-size: 0. 85rem !important;
  }
}

/* حركة الموجة */
@keyframes u-wave {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .u-card {
    width: 100%;
    max-width: 320px;
  }
}


/* ===== قسم القيم (قيمنا) ===== */
.values-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  padding: 0 20px;
}

.value-item {
  display: flex;
  justify-content: center;
  flex: 1 1 260px;
  max-width: 300px;
}

.u-card {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}


/* موجات الخلفية */
.u-wave {
  position: absolute;
  width: 520px;
  height: 680px;
  opacity: 0.55;
  left: 0;
  top: 0;
  margin-left: -50%;
  margin-top: -70%;
  background: linear-gradient(744deg, #af40ff, #5b42f3 60%, #00ddeb);
  border-radius: 40%;
  animation: u-wave 55s infinite linear;
}
.u-wave:nth-child(2),
.u-wave:nth-child(3) {
  top: 210px;
}
.playing .u-wave:nth-child(1) { animation-duration: 3s; }
.playing .u-wave:nth-child(2) { animation-duration: 4s; }
.playing .u-wave:nth-child(3) { animation-duration: 5s; }



.u-icon i {
  font-size: 22px;
  color: #fff;
}

.u-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.u-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* حركة الموجة */
@keyframes u-wave {
  to {
    transform: rotate(360deg);
  }
}

/* ===== استجابة الجوال ===== */
@media (max-width: 768px) {
  .values-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
  }

  .value-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

.u-card {
  width: 100%;
  max-width: 320px;
}

}

/* إصلاح ظهور بطاقات خدماتنا */
#services .values-cards {
  display: grid ! important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: clamp(16px, 2vw, 28px) !important;
  width: 100% !important;
  padding: 20px 0 !important;
}

#services .value-item {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

#services .u-card {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}





.services-grid,
#about .services-grid,
.about-section .services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
}

/* تأكد أن البطاقات لا تحد عرضها */
.service-card,
.u-card,
#about .service-card,
#about .u-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* استجابة: تابلت */
@media (max-width: 992px) {
    .services-grid,
    #about .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* استجابة: موبايل */
@media (max-width: 560px) {
    .services-grid,
    #about .services-grid {
        grid-template-columns: 1fr ! important;
        max-width: 400px !important;
    }
}


/* ===== قسم تواصل معنا ===== */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* ===== تذييل الصفحة ===== */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin: 0 15px;
}

.footer-social {
    display: flex;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    margin-left: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== تصميم متجاوب ===== */
@media (max-width: 992px) {
    .nav-menu, .cta-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .values-cards {
        gap: 20px;
    }

    .value-card {
        width: calc(50% - 20px);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo, .footer-links, .footer-social {
        margin-bottom: 20px;
    }

    .footer-links ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        /* في الشاشات المتوسطة والصغيرة تكون الحشوة أقل */
        padding: clamp(30px, 5vw, 80px) 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .value-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: auto;
        min-height: 55vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .footer-links ul li {
        margin: 0 10px 10px;
    }
}
:root {
  --primary-color: #000000;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-color: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

/* ===== شريط التنقل ===== */


.nav-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-menu ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: var(--transition);
}

.nav-menu ul li a:hover {
  color: var(--text-secondary);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* ===== قسم الفيديو ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* الفيديو الخلفي */
.hero-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* طبقة ضبابية فوق الفيديو */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* النص فوق الفيديو */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-color);
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* زر رئيسي */
.btn-primary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* ===== استجابة للجوال ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .nav-menu {
    display: none;
  }

  .btn {
    padding: 8px 18px;
  }
}
/* الهيرو يملأ الشاشة */
.hero-section {
  position: relative;
  width: 100%;
  height: 1vh;           /* تغطية كاملة */
  height: 100svh;          /* دعم آمن للهواتف */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* الفيديو في الخلفية */
.hero-section > video {
  position: absolute;
  inset: 0;                /* top/right/bottom/left: 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;              /* تحت الطبقة */
}

/* الطبقة التي تغطي الفيديو كاملاً + عدم وضوح + تعتيم */
.hero-section .video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;              /* فوق الفيديو وتحت المحتوى */
  pointer-events: none;    /* لا تمنع النقر على الأزرار */
  /* ضباب (blur) لما خلفها — أي الفيديو */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* تعتيم ناعم + تدرّج بسيط لعمق بصري */
  background:
    radial-gradient(80% 60% at 50% 35%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.7) 100%),
    rgba(0,0,0,0.35);
}

/* المحتوى فوق الكل */
.hero-content {
  position: relative;
  z-index: 2;              /* أعلى من الطبقة */
  max-width: 700px;
  padding: 10px;
}

/* (اختياري) لو كان عندك سابقاً ::before على .hero-section عطّله */
.hero-section::before { content: none !important; }

/* تأكد من توسيط محتوى قسم الخدمات بالكامل */
.services-section {
  background: #000;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;     /* يوسّط العنوان */
  justify-content: center;
}

/* الحاوية الآن بعرض تلقائي متوازن */
.services-section .container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;     /* يوسّط العناصر بداخلها */
  justify-content: center;
}

/* العنوان فعلاً في المنتصف */
.services-section .section-header {
  text-align: center;
  margin-bottom: 60px;
  width: 100%;
}

/* الشبكة متوسطة وموزعة بالتساوي */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  justify-content: center;   /* يوسّط الشبكة داخل الصفحة */
  align-items: stretch;
  width: 100%;
  max-width: 900px;          /* تضبيط عرض الشبكة */
}

/* موبايل */
@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 400px;
  }
}


:root {
  --primary-color: #000;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-color: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
}

/* يغطي الشاشة ويُوسّط البطاقة */
.work-hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  background: var(--primary-color);
  color: var(--text-color);
}

/* البطاقة */
.work-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* النص يمين - الصورة يسار */
  align-items: stretch;
  width: min(1280px, 100%);
  min-height: clamp(520px, 74vh, 820px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;

  /* 🟢 هذي تضبط التوسيط */
  margin: 0 auto;
}


/* العمود النصّي */
.work-content {
  padding: clamp(22px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2vw, 20px);
  text-align: right;
}

/* الشارة + الشعار */
.work-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.work-badge {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
}

.work-dots {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.work-logo {
  width: clamp(80px, 10vw, 132px);
  height: auto;
  filter: brightness(10) contrast(1.1);
  opacity: 0.95;
}

/* العنوان والوصف */
.work-title {
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.2;
  margin: 8px 0 4px;
}

.work-desc {
  font-size: clamp(14px, 1.35vw, 16px);
  color: var(--text-secondary);
  max-width: 48ch;
}

/* الصورة */
.work-media {
    position: relative;
    background: #0c0c0c;
    display: grid;
    place-items: center;
    padding: clamp(12px, 1.8vw, 22px);
    border-left: 1px solid var(--glass-border);
}

/* ===== تقليل الفراغ بين h2 و figure في قسم أعمالنا ===== */
.works-section .section-header {
  margin-bottom: 18px; /* كان 60px عام، نقلل هنا فقط */
}
.works-section .panel {
  padding-top: 12px; /* إزالة البادينغ الكبير 100px من القسم الفرعي */
  padding-bottom: 0;
}
.work-media::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 1.8vw, 22px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}


/* الزر */
.work-cta {
  align-self: start;
  margin-top: clamp(20px, 2.2vw, 24px);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  color: #111;
  background: #e4f38a;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, filter 0.25s ease;
  text-decoration: none;
}
.work-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

/* تجاوب للجوال */
@media (max-width: 1024px) {
  .work-card {
    grid-template-columns: 1fr;
  }
  .work-media {
    border-left: none;
    border-top: 1px solid var(--glass-border);
    order: 2;
  }
  .work-content {
    order: 1;
    text-align: center;
    align-items: center;
  }
  .work-desc {
    margin-inline: auto;
  }
  .work-cta {
    align-self: center;
  }
}
.work-logo {
  filter: invert(1);
}


/* انتقال بين الصفحات — Fade In/Out */
:root { --page-transition-duration: 320ms; }

/* دخول الصفحة */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: pageFadeIn var(--page-transition-duration) ease both;
  transition: opacity var(--page-transition-duration) ease;
}

/* الخروج من الصفحة قبل التنقل */
body.page-transition-out { opacity: 0; }

/* تقليل الحركة لذوي التفضيل */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; transition: none; }
}


/* ===== قسم عملاؤنا ===== */
.clients-section {
  background: #000;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clients-section .container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clients-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 900px;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  min-height: 100px;
  box-shadow: 0 12px 40px var(--shadow-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}

.client-card img {
  max-width: 120px;
  max-height: 64px;
  object-fit: contain;
}

@media (max-width: 560px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    max-width: 420px;
  }
}


/* ===== شريط شعارات عملاؤنا (ماركيه) ===== */
.clients-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* سرعة الحركة قابلة للتغيير من هنا */
    --marquee-speed: 24s;
}

.clients-marquee::before,
.clients-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(24px, 8vw, 100px);
    z-index: 2;
    pointer-events: none;
}

.clients-marquee::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.clients-marquee::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 0;
    will-change: transform;
    animation: marquee-left var(--marquee-speed) linear infinite;
}

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

.marquee-group {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 36px);
    padding: 10px 0;
}

.client-logo {
    max-height: 56px;
    max-width: 180px;
    opacity: 0.95;
    filter: brightness(1) contrast(1.05);
    transition: transform .25s ease, opacity .25s ease;
}

.client-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

@media (max-width: 560px) {
    .client-logo {
        max-height: 42px;
        max-width: 140px;
    }
    .marquee-group { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}


/* ===== الفوتر – قالب الجزيرة العائمة ===== */
.island-footer {
  background: transparent; /* نخلي الخلفية شفافة لإبراز البطاقة */
  border-top: none;
  padding: clamp(48px, 6vw, 80px) 0;
}

.footer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  padding: clamp(24px, 3.5vw, 40px);
  backdrop-filter: blur(10px);
  position: relative;
}

.footer-card::before{
  content:"";
  position:absolute;
  inset: -20px 0 auto 0;
  height: 20px;
  border-radius: 0 0 24px 24px;
  filter: blur(14px);
  opacity:.6;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr .8fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items:start;
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

/* توحيد خصائص أعمدة الفوتر بدون رفع الخصوصية */
.footer-grid > :where(div) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* يمنع تجاوز المحتوى حدود العمود */
}

.footer-brand{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.footer-brand-img {
  max-width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}


.footer-brand-text{color:var(--text-secondary)}

.footer-title{
  font-size:1.05rem;
  font-weight:800;
  margin-bottom:8px;
}
.footer-address{font-style:normal; color:var(--text-secondary)}

.footer-quick{list-style:none; padding:0; margin:0}
.footer-quick li{margin-bottom:8px}
.footer-quick a{color:var(--text-color)}

.footer-social{display:flex; gap:10px; justify-content:flex-start}
.footer-social a{width:40px; height:40px; border-radius:12px}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer-legal{display:flex; gap:10px; align-items:center}
.footer-legal a{color:var(--text-secondary); font-size:.9rem}

@media (max-width: 992px){
  .footer-grid{grid-template-columns:1fr 1fr;}
  .footer-social{justify-content:flex-start}
}
@media (max-width: 640px){
  .footer-grid{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column; text-align:center}
  .footer-social{justify-content:center}
}



/* ===== Overrides إجبارية لقسم خدماتنا (ضعها في آخر ملف CSS) ===== */

/* القسم */
.services-section {
  background: #000 !important;
  padding: 100px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* الحاوية داخل القسم */
.services-section .container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* عنوان القسم */
.services-section .section-header {
  text-align: center !important;
  margin-bottom: 60px !important;
  width: 100% !important;
}

/* شبكة البطاقات */
.services-section .services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 28px !important;
  justify-content: center !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 900px !important;
}

/* بطاقات Uiverse داخل خدماتنا */
.services-section .u-card {
  width: 280px !important;
  max-width: 100% !important;
  height: 220px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
}

/* موجات الخلفية */
.services-section .u-wave {
  position: absolute !important;
  width: 520px !important;
  height: 680px !important;
  opacity: .55 !important;
  left: 0 !important;
  top: 0 !important;
  margin-left: -50% !important;
  margin-top: -70% !important;
  background: linear-gradient(744deg, #0f0f0f, #3a3a3a 60%, #ffffff) !important;
  border-radius: 40% !important;
  animation: u-wave 55s linear infinite !important;
}
.services-section .u-wave:nth-child(2),
.services-section .u-wave:nth-child(3) { top: 210px !important; }
.services-section .playing .u-wave { animation-duration: 3000ms !important; }
.services-section .playing .u-wave:nth-child(2) { animation-duration: 4000ms !important; }
.services-section .playing .u-wave:nth-child(3) { animation-duration: 5000ms !important; }


.services-section .u-icon i { font-size: 22px !important; color: #fff !important; }
services-section .u-title { margin: 0 !important; font-size: 1.1rem !important; font-weight: 800 !important; letter-spacing: .2px !important; }
.services-section .u-text { font-size: .9rem !important; color: rgba(255,255,255,.8) !important; }

/* موبايل */
@media (max-width: 560px) {
  .services-section .services-grid {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    max-width: 400px !important;
  }
  .services-section .u-card {
    width: 100% !important;
    max-width: 320px !important;
  }
}

/* حركة الموجة */
@keyframes u-wave { to { transform: rotate(360deg); } }







/* ===== تحسين قسم قيمنا ليطابق خدماتنا بصريًا ===== */
.about-section {
  background: #000 !important;
  padding: 100px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* نفس شكل عنوان قسم خدماتنا */
.about-section .section-header {
  text-align: center !important;
  margin-bottom: 60px !important;
  width: 100% !important;
}

.about-section .section-title {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 10px !important;
  position: relative !important;
}

.about-section .section-title::after {
  content: '' !important;
  position: absolute !important;
  width: 60px !important;
  height: 3px !important;
  bottom: -12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.9),
    rgba(255,255,255,0)
  ) !important;
  border-radius: 2px !important;
}

/* الشبكة */
.about-section .values-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 28px !important;
  justify-content: center !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 900px !important;
}

/* البطاقات */
.about-section .u-card {
  position: relative !important;
  width: 280px !important;
  height: 220px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.3s ease !important;
}

.about-section .u-card:hover {
  transform: translateY(-5px) !important;
}

/* الموجات */
.about-section .u-wave {
  position: absolute !important;
  width: 520px !important;
  height: 680px !important;
  opacity: 0.45 !important;
  left: 0 !important;
  top: 0 !important;
  margin-left: -50% !important;
  margin-top: -70% !important;
  background: linear-gradient(744deg, #111, #333 60%, #999) !important;
  border-radius: 40% !important;
  animation: u-wave 55s linear infinite !important;
}

.about-section .u-wave:nth-child(2),
.about-section .u-wave:nth-child(3) {
  top: 210px !important;
}

.about-section .playing .u-wave:nth-child(1) {
  animation-duration: 3000ms !important;
}
.about-section .playing .u-wave:nth-child(2) {
  animation-duration: 4000ms !important;
}
.about-section .playing .u-wave:nth-child(3) {
  animation-duration: 5000ms !important;
}



.about-section .u-icon i {
  font-size: 22px !important;
  color: #fff !important;
}

.about-section .u-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}

.about-section .u-text {
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.8) !important;
}

/* استجابة للجوال */
@media (max-width: 560px) {
  .about-section {
    padding: 80px 0 !important;
  }
  .about-section .values-cards {
    grid-template-columns: 1fr !important;
    max-width: 400px !important;
  }
  .about-section .u-card {
    width: 100% !important;
    max-width: 320px !important;
  }
}

/* حركة الموجة */
@keyframes u-wave {
  to {
    transform: rotate(360deg);
  }
}


.hero-section {
  position: relative;
  overflow: hidden;
}

/* سهم تمرير بسيط بلا خلفية */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 20px;                /* عدّل الموضع حسب الحاجة */
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
  z-index: 3;
}

.scroll-down:hover {
  transform: translateX(-50%) translateY(-3px);
  opacity: 1;
}

.scroll-down svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* حركة خفيفة لأعلى/أسفل */
@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-5px); }
}

.scroll-down {
  animation: scrollPulse 1.6s ease-in-out infinite;
}


/* ===== إجبار التوسيط لقسم خدماتنا (أضِف أسفل كل شيء) ===== */

/* توسيط الشبكة داخل القسم */
section.services-section .services-grid {
  margin: 0 auto !important;          /* يوسّط الشبكة داخل العرض */
  justify-content: center !important;  /* يوسّط الأعمدة داخل الـgrid */
  justify-items: center !important;    /* يوسّط محتوى كل خلية أفقيًا */
  align-items: center !important;      /* يوسّط محتوى كل خلية رأسيًا */
}

/* لو فيه أسطر أطول تغيّر المحاذاة، ثبّت عرض الحاوية */
section.services-section .container {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* البطاقة: توسيط المحتوى داخلها دائمًا */
section.services-section .u-card {
  display: grid !important;
  place-items: center !important;
}

/* على الجوال: توسيط الخلية نفسها */
@media (max-width: 560px) {
  section.services-section .services-grid {
    justify-items: center !important;
  }
}

/* ===== تطابق قسم خدماتنا مع قيمنا (أضف في النهاية فقط) ===== */

#services .services-grid {
  display: grid ! important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 1300px !important;
  margin: 0 auto !important;
}

#services .u-card {
  width: 100% !important;
  max-width: none !important;
  height: 220px !important;
}

@media (max-width: 992px) {
  #services .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {
  #services .services-grid {
    grid-template-columns: 1fr ! important;
    max-width: 400px !important;
  }
}

.footer-card{
  position: relative;
  overflow: hidden;          
}

.footer-card::after{
  content: "10GIFT";        
  position: absolute;
  inset-inline: 0;         
  bottom: -6px;            
  text-align: center;
  white-space: nowrap;

  font-weight: 800;
  font-size: clamp(72px, 18vw, 240px);  
  letter-spacing: -3px;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  user-select: none;


  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0 48%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0 48%, rgba(0,0,0,0) 100%);
}


@media (max-width: 768px){
  .footer-card::after{
    font-size: clamp(88px, 26vw, 220px);
    bottom: -2px;
  }
}

@media (max-width: 480px){
  .footer-card::after{
    font-size: clamp(96px, 30vw, 200px);
    bottom: 0;
  }
}



/* حاوية الفوتر */
.footer { 
  padding: 48px 0; 
  color: #fff; 
}

/* بطاقة زجاجية أنيقة */
.footer-card{
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow: hidden;
}

/* شبكة مرتبة */
.footer-grid{
  display: grid;
  gap: 28px clamp(18px, 3vw, 40px);
  grid-template-columns: 1.2fr 1fr 1fr .8fr;
  align-items: start;
}

/* العناوين */
.footer-title{
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

/* الشعار أبيض واضح ومُوسّط */
.footer-brand {
  text-align: center;
}

.footer-brand-img{
  max-width: 160px;
  height: auto;
  filter: brightness(0) invert(1) contrast(1.1);
  opacity: .95;
  display: block;
  margin: 0 auto 10px;
}

.footer-brand-text,
.footer-address { 
  color: rgba(255,255,255,.72); 
  font-style: normal; 
  text-align: center;
  margin-inline: auto;
}

/* الروابط */
.footer-quick{
  list-style: none; 
  margin: 0; 
  padding: 0;
  display: grid; 
  gap: 8px;
  text-align: center;
}
.footer-quick a{
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-quick a:hover{ color: #e4f38a; }

/* السوشيال */
.footer-social{ 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: flex; 
  gap: 10px; 
  justify-content: center;
}
.footer-social a{
  width: 40px; 
  height: 40px; 
  display: grid; 
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; 
  text-decoration: none;
  transition: transform .2s, border-color .2s, background .2s;
}
.footer-social a:hover{
  transform: translateY(-2px);
  border-color: #e4f38a;
  background: rgba(228,243,138,.12);
}

/* خط فاصل سفلي وحقوق */
.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; 
  gap: 12px; 
  justify-content: center; 
  align-items: center;
  color: rgba(255,255,255,.68);
  font-size: .95rem;
  text-align: center;
}

/* الشبح الباهت داخل البطاقة */
.footer-card::after{
  content: "10GIFT";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  text-align: center;
  white-space: nowrap;
  font-weight: 800;
  font-size: clamp(80px, 16vw, 240px);
  letter-spacing: -3px;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  pointer-events: none; 
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 50%, transparent);
          mask-image: linear-gradient(to bottom, #000 0 50%, transparent);
}

/* استجابة */
@media (max-width: 992px){
  .footer-grid{ 
    grid-template-columns: 1fr 1fr; 
    text-align: center; 
  }
}
@media (max-width: 600px){
  .footer-grid{ 
    grid-template-columns: 1fr; 
    text-align: center; 
  }
  .footer-brand-text, 
  .footer-address{ 
    max-width: 360px; 
    margin: 0 auto; 
  }
  .footer-bottom{ 
    flex-direction: column; 
    gap: 6px; 
    text-align: center; 
  }
  .footer-social{ 
    justify-content: center; 
  }
}



.clients-section .marquee-group li {
  flex: 0 0 120px;            
  display: flex;
  justify-content: center;
  align-items: center;
}

.clients-section .client-logo {
  max-height: 50px;           
  max-width: 120px;            
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

.clients-section {
  padding: 80px 0;
  background: #000;
  text-align: center;
}

.clients-marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 40px;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

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

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 24px 0;
  background: transparent;
  direction: ltr; 
}

.logos-track {
  display: flex;
  align-items: center;
  width: max-content; 
  animation-name: marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.logos {
  display: flex;
  gap: 40px;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.logos img {
  height: 64px; 
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(1) contrast(1.05) invert(1); 
}

.logo-slider:hover .logos-track,
.logo-slider.touch-paused .logos-track {
  animation-play-state: paused !important;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--loop-width))); }
}

@media (max-width: 560px) {
  .logos img { height: 46px; }
  .logos { gap: 20px; }
  .logo-slider { padding: 16px 0; }
}

.logos img,
.logos-track img,
.logos-slide img,
.client-logo,
.logo-slider img {
  filter: brightness(0) invert(1) saturate(100%) contrast(1);
  -webkit-filter: brightness(0) invert(1) saturate(100%) contrast(1);
  opacity: 1;
}

.logos img:hover,
.logos-track img:hover,
.client-logo:hover {
  transform: scale(1.03);
  transition: transform .18s ease, filter .18s ease;
  filter: brightness(0) invert(1) saturate(100%) contrast(1);
}


svg {
  fill: white !important;
  stroke: white !important;
}











/* ===== Stacking Cards - نسخة مبسطة ونهائية ===== */

.works-section-stack {
  background: #000;
  padding: 80px 0;
  min-height: auto;
}

.stack-container-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.works-section-stack .section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Desktop: التأثير */
.stack-scroll-wrapper {
  position: relative;
  height: 400vh;
}

.stack-item {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-item .work-card {
  width: min(90%, 1200px);
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1. 4fr;
  min-height: 600px;
}

.work-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.work-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.work-badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.work-dots {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.work-logo {
  width: 90px;
  filter: brightness(0) invert(1);
}

.work-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  color: #fff;
}

.work-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 42ch;
}

.work-cta {
  align-self: flex-start;
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #e4f38a;
  color: #111;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s;
}

.work-cta:hover {
  transform: translateY(-2px);
}

.work-media {
  position: relative;
  background: #050505;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-media::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  pointer-events: none;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== Mobile: إلغاء التأثير كاملاً ===== */
@media (max-width: 768px) {
  .works-section-stack {
    padding: 60px 0;
  }

  .stack-scroll-wrapper {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .stack-item {
    position: relative;
    top: 0;
    height: auto;
    transform: none;
    filter: none;
  }

  .stack-item .work-card {
    width: 100%;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .work-content {
    padding: 28px 20px;
    text-align: center;
    align-items: center;
  }

  .work-top {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .work-dots {
    display: none;
  }

  .work-logo {
    width: 70px;
  }

  .work-title {
    font-size: 22px;
  }

  .work-desc {
    font-size: 14px;
    max-width: 100%;
  }

  .work-media {
    min-height: 260px;
    order: 2;
  }

  .work-cta {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .stack-scroll-wrapper {
    gap: 25px;
  }

  .work-content {
    padding: 24px 16px;
  }

  .work-title {
    font-size: 20px;
  }

  .work-desc {
    font-size: 13px;
  }

  .work-media {
    min-height: 220px;
  }
}










/* ===== قسم أعمالنا - Stacking Cards ===== */

#portfolio {
  background: #000;
  padding: 100px 0;
  position: relative;
}

#portfolio .container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

#portfolio .section-header {
  text-align: center;
  margin-bottom: 80px;
}

/* Desktop فقط */
@media (min-width: 769px) {
  .stack-scroll-wrapper {
    position: relative;
    height: 400vh;
  }

  .stack-item {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .stack-item .work-card {
    width: min(90%, 1200px);
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1. 4fr;
    min-height: 600px;
  }
}

/* العناصر المشتركة */
.work-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.work-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.work-badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.work-dots {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.work-logo {
  width: 90px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.work-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

.work-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 42ch;
  margin: 0;
}

.work-cta {
  align-self: flex-start;
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #e4f38a;
  color: #111;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.work-cta:hover {
  transform: translateY(-2px);
}

.work-media {
  position: relative;
  background: #050505;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.work-media::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  pointer-events: none;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ===== Tablet ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  .stack-item .work-card {
    grid-template-columns: 1fr;
  }

  .work-content {
    text-align: center;
    align-items: center;
  }

  .work-media {
    min-height: 350px;
  }

  .work-desc {
    margin-inline: auto;
  }

  .work-cta {
    align-self: center;
  }
}

/* ===== Mobile (768px وأقل) ===== */
@media (max-width: 768px) {
  #portfolio {
    padding: 60px 0;
  }

  #portfolio .container {
    padding: 0 20px;
  }

  #portfolio .section-header {
    margin-bottom: 40px;
  }

  .stack-scroll-wrapper {
    display: block;
  }

  .stack-item {
    margin-bottom: 35px;
  }

  .stack-item:last-child {
    margin-bottom: 0;
  }

  .work-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }

  .work-content {
    padding: 28px 20px;
    text-align: center;
    align-items: center;
  }

  .work-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .work-dots {
    display: none;
  }

  .work-badge {
    font-size: 0.8rem;
    padding: 7px 14px;
  }

  .work-logo {
    width: 70px;
  }

  .work-title {
    font-size: 22px;
    margin-top: 8px;
  }

  .work-desc {
    font-size: 14px;
    max-width: 100%;
  }

  .work-media {
    min-height: 260px;
    padding: 16px;
  }

  .work-cta {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .stack-item {
    margin-bottom: 28px;
  }

  .work-content {
    padding: 24px 16px;
  }

  .work-title {
    font-size: 20px;
  }

  .work-desc {
    font-size: 13px;
  }

  .work-media {
    min-height: 220px;
    padding: 14px;
  }

  .work-cta {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .work-logo {
    width: 65px;
  }
}










/* ===== قسم أعمالنا - Stacking Cards ===== */

#portfolio {
  background: #000;
  padding: 100px 0;
  position: relative;
}

/* Desktop + Tablet: عرض محدود */
@media (min-width: 501px) {
  #portfolio .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
  }

  #portfolio .section-header {
    text-align: center;
    margin-bottom: 80px;
  }

  .stack-scroll-wrapper {
    position: relative;
    height: 400vh;
  }

  .stack-item {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .stack-item .work-card {
    width: min(90%, 1200px);
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1. 4fr;
    min-height: 600px;
  }
}

/* Mobile: عرض كامل */
@media (max-width: 500px) {
  #portfolio {
    padding: 60px 0;
  }

  #portfolio .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  #portfolio .section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
  }

  .stack-scroll-wrapper {
    position: relative;
    height: 400vh;
    width: 100%;
  }

  .stack-item {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
  }

  .stack-item .work-card {
    width: 100%;
    max-width: 100%;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* العناصر المشتركة */
.work-content {
  padding: clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 2vw, 16px);
}

.work-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.work-badge {
  padding: clamp(6px, 1. 5vw, 8px) clamp(12px, 2vw, 16px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.work-dots {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.work-logo {
  width: clamp(55px, 10vw, 90px);
  filter: brightness(0) invert(1);
}

.work-title {
  font-size: clamp(19px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

.work-desc {
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 42ch;
  margin: 0;
}

.work-cta {
  align-self: flex-start;
  margin-top: clamp(8px, 2vw, 12px);
  padding: clamp(9px, 2vw, 12px) clamp(18px, 3vw, 24px);
  border-radius: 999px;
  background: #e4f38a;
  color: #111;
  font-weight: 800;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  text-decoration: none;
  transition: transform 0. 2s;
  white-space: nowrap;
}

.work-cta:hover {
  transform: translateY(-2px);
}

.work-media {
  position: relative;
  background: #050505;
  padding: clamp(10px, 2vw, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.work-media::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 2vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  pointer-events: none;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Tablet: تعديل Grid */
@media (max-width: 1024px) and (min-width: 501px) {
  .stack-item .work-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .work-content {
    text-align: center;
    align-items: center;
    order: 1;
  }

  .work-media {
    min-height: 350px;
    order: 2;
  }

  .work-top {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .work-dots {
    display: none;
  }

  .work-desc {
    margin-inline: auto;
  }

  .work-cta {
    align-self: center;
  }
}

/* Mobile: توسيط المحتوى */
@media (max-width: 500px) {
  .work-content {
    text-align: center;
    align-items: center;
    order: 1;
  }

  .work-media {
    min-height: 220px;
    order: 2;
  }

  .work-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .work-dots {
    display: none;
  }

  .work-desc {
    margin-inline: auto;
  }

  .work-cta {
    align-self: center;
  }
}






/* ===== FLOATING ISLAND NAVBAR ===== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(100% - 40px);
  padding: 0;
  z-index: 1000;
  background: transparent; /* ← شفاف تماماً */
  border: none;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* عند السكرول - الجزيرة تصير أصغر وتطلع شوي */
.navbar.scrolled {
  top: 12px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  
  /* الخلفية الزجاجية - شفافة دائماً */
  background:  rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 14px clamp(24px, 3vw, 36px);
  
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  width: fit-content;
  max-width: 100%;
  margin: 0;
  
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* عند السكرول - الـ Container يصير أصغر */
.navbar.scrolled .container {
  padding: 10px clamp(20px, 2. 5vw, 28px);
  border-radius: 45px;
  box-shadow: 
    0 10px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  /* الخلفية تبقى نفسها - ما تتغير */
}

/* الشعار */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: clamp(42px, 6vw, 52px);
  height: auto;
  filter: brightness(0) invert(1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* الشعار يصير أصغر عند السكرول */
.navbar.scrolled .logo-img {
  width: clamp(36px, 5vw, 44px);
}

.logo-img:hover {
  transform: scale(1.05);
  filter: brightness(1) invert(0);
}

/* القائمة */
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  list-style: none;
  margin: 0;
  padding:  0;
}

.nav-menu ul li {
  margin: 0;
}

.nav-menu ul li a {
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition:  all 0.3s ease;
  white-space: nowrap;
}

/* النص يصير أصغر عند السكرول */
.navbar.scrolled .nav-menu ul li a {
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  padding: 4px 0;
}

.nav-menu ul li a:hover {
  color: #fff;
}

.nav-menu ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height:  2px;
  background: #fff;
  bottom:  0;
  right: 0;
  transition:  width 0.3s ease;
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

/* زر CTA */
.cta-button {
  flex-shrink: 0;
}

.cta-button .btn-primary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 11px 22px;
  border-radius:  30px;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition:  all 0.3s ease;
  white-space: nowrap;
  box-shadow: none;
}

/* الزر يصير أصغر عند السكرول */
.navbar.scrolled .cta-button .btn-primary {
  padding: 9px 18px;
  font-size:  clamp(0.75rem, 1.4vw, 0.85rem);
}

.cta-button .btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-button .btn-primary:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* أصغر عند السكرول */
.navbar.scrolled .mobile-menu-toggle {
  width: 24px;
  height: 16px;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== القائمة المنسدلة للجوال ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height:  100vh;
  background:  rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility:  hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-container {
  text-align: center;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin:  0;
}

.mobile-menu ul li {
  margin: 25px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu.active ul li {
  opacity:  1;
  transform: translateY(0);
}

.mobile-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active ul li:nth-child(2) { transition-delay:  0.15s; }
.mobile-menu.active ul li:nth-child(3) { transition-delay:  0.2s; }
.mobile-menu.active ul li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active ul li:nth-child(5) { transition-delay:  0.3s; }

.mobile-menu ul li a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
  color:  #e4f38a;
}

.mobile-cta {
  margin-top: 4px;
  opacity: 10;
  transform:  translateY(20px);
  transition: all 0.3s ease 1s;
}

.mobile-menu.active .mobile-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .nav-menu,
  .cta-button {
    display:  none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar .container {
    justify-content: space-between;
    padding: 12px 20px;
  }

  .navbar.scrolled .container {
    padding: 10px 18px;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 15px;
    max-width: calc(100% - 30px);
  }

  .navbar.scrolled {
    top: 10px;
  }

  .navbar .container {
    border-radius: 40px;
    padding: 10px 18px;
  }

  .navbar.scrolled .container {
    padding: 8px 16px;
    border-radius: 35px;
  }

  .logo-img {
    width:  40px;
  }

  .navbar.scrolled .logo-img {
    width: 35px;
  }
}

@media (max-width: 480px) {
  .navbar {
    top: 12px;
    max-width:  calc(100% - 20px);
  }

  .navbar.scrolled {
    top: 8px;
  }

  .navbar .container {
    padding: 8px 16px;
    border-radius: 35px;
  }

  .navbar.scrolled .container {
    padding: 6px 14px;
    border-radius:  32px;
  }

  .logo-img {
    width:  35px;
  }

  .navbar.scrolled .logo-img {
    width: 30px;
  }

  .mobile-menu ul li a {
    font-size: 1.5rem;
  }
}


.stats-section {
  margin-top: -40px;
}


/* عنوان الأرقام */
.glass-stats-title{
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.75);
  margin: 10px 0 12px;
}

/* الافتراضي (سطح المكتب): جنب بعض */
.stats-screen{
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
}

/* كرت */
.screen-item{
  width: 220px;
  padding: 14px 14px;
  border-radius: 12px;
  text-align: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);

  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

/* الرقم */
.screen-number{
  font-size: 1.7rem;
  font-weight: 750;
  line-height: 1;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.95);
}

/* الوصف */
.screen-label{
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.68);
}

/* ===== جوال أقل من 500px: تحت بعض ===== */
@media (max-width: 500px){
  .stats-screen{
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .screen-item{
    width: min(92vw, 320px);
    padding: 12px 12px;
  }

  .screen-number{
    font-size: 1.55rem;
  }
}

/* ===== تابلت: خليها صفّين لو احتجت ===== */
@media (min-width: 501px) and (max-width: 900px){
  .stats-screen{
    flex-wrap: wrap;
  }
  .screen-item{
    width: min(46vw, 260px);
  }
}

