/* RESET & GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: black;
  color: white;
}

header {
  position: fixed;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.748);
  z-index: 1000;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(255, 4, 4);
}

nav {
  display: flex ;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: red;
}

/* MOBILE MENU */
.menu-toggle {
  display: none ;
  flex-direction: column;
  cursor: pointer;
  margin-left: 20px;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
}

/* HOME PAGE */
.home {
  position: relative;
 display: flex;
  flex-direction: row;
  justify-content: center; /* لتوسيط المحتوى أفقياً */
  align-items: center;     /* لتوسيط المحتوى عمودياً */
  min-height: 100vh;
  gap: 60px;               /* المسافة بين اليسار واليمين */
  padding: 0 40px;
  background: black;
  color: rgb(255, 255, 255);
  overflow: hidden;

}
.home::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('bb.jpg') no-repeat center center/cover;
  background-size: cover;       /* مهم جداً */
  opacity: 0.4; /* تعتيم الخلفية */
  z-index: 0;
}
.left-side {
display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  max-width: 600px;
  flex: 1 1 45%;
  color: rgb(255, 255, 255);
}
.buttons-group {
  display: flex;
   align-items: center; /* لمحاذاة العناصر عمودياً */
  gap: 30px;
}
.right-side {
  position: relative;
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
 align-items: flex-end;
  perspective: 400px;
}
.triangle {
  position: absolute;
  bottom:-35px;   /* تحكم في ارتفاع المثلث */
  right: -40px;    /* تحكم في مكانه أفقياً */
  width: 420px;
  height: 420px;
  background: transparent;
  border-left: 210px solid transparent;
  border-right: 210px solid transparent;
  border-bottom: 370px solid rgb(255, 1, 1); /* لون المثلث مع شفافية */
  z-index: 1; /* أقل من الصورة */
  filter: drop-shadow(0 0 10px rgb(255, 0, 0));
  animation: moveTriangle 4s ease-in-out infinite alternate;
}

/* حركة المثلث (تأرجح بسيط) */
@keyframes moveTriangle {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
}
.sticker-photo {
  max-width: 400px;
  position: relative;
  top: 30px; /* يرفع الصورة فوق قليلاً */
  box-shadow: 0 15px 30px rgba(196, 8, 8, 0);
  border-radius: 20px;
  z-index: 2;
  right: -40px;
  
}

@media (max-width: 768px) {
  .home {
    flex-direction: column;
    align-items: center;
       justify-content: center; /* توسيط عمودي */
    gap: 30px;
  }

  
   .left-side {
    order: 1;
    width: 100%;
    max-width: 600px;
      display: flex;
    flex-direction: column;
   justify-content: center;
    align-items: center;  /* توسيط المحتوى داخل اليسار */
    text-align: center;   
     height: 60vh; /* خليك تعطيها ارتفاع ليتحكم التوزيع */
    padding-top: 20vh;
  }
  .buttons-group {
    justify-content: center;
  }  
   .right-side {
    order: 2;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center; 
     margin-top: 60px; 
  }
  
  .sticker-photo {
    max-width: 80vw;
   z-index: 10;
    
    border-radius: 20px;
  }
}
.home h1 {
 font-family:'Playfair Display', serif;
  font-size: 0.75cm;      /* bigger and taller */    /* taller lines */
  letter-spacing: 0.1em;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 6px rgb(208, 168, 168);
   padding-bottom: 20px; 

}

.red-word {
  color: red;
}
.home h1 span.red-word {
  color: #ff0000;
  font-weight: 700;
  text-shadow: 
    0 5px 40px rgba(255, 0, 0, 0.991), 
    0 0 10px rgb(0, 0, 0), 
    0 0 20px rgb(255, 0, 0);
}

/* Common button style reset */
.btn-3d {
  background: transparent;
  border: 3px solid rgb(52, 46, 46);
  border-radius: 25px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 15px 30px 15px 50px;
  margin: 15px;
  position: relative;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 15px rgba(255, 27, 27, 0.996);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-camera {
  background: rgb(0, 0, 0);
  border: none;
  border-radius: 30px;
  width: 130px;             /* fixed width to fit text inside */
  height: 70px;             /* fixed height */
 display: flex;
  align-items: center;
  justify-content: center;
  color: white;                  /* text color */
  font-size: 10px;
  box-shadow: 0 6px 15px rgba(250, 26, 26, 0.437); /* shadow */
  position: relative;
  cursor: pointer;
}

/* Main camera body shape */
.camera-body {
  position: relative;
  width: 180px;
  height: 60px;
  background: linear-gradient(135deg, #ff080800, #22222200);
  border-radius: 20px;
  box-shadow: inset 0 0 8px #ff121200;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* text color inside camera */
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  user-select: none;
  padding-left: 40px; /* space for lens */
  transition: box-shadow 0.3s ease;
}

/* The red lens circle on left side */
.camera-lens {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at center, #ff0000 0%, #800000 80%);
  border-radius: 50%;
  box-shadow:
    0 0 10px 3px #ff2222 inset,
    0 0 10px #ff3b3b;
  animation: lens-glow 2s infinite alternate;
  z-index: 2;
}

/* The small handle on the right side of the camera */
.camera-handle {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 35px;
  background: linear-gradient(135deg, #000000, #000000);
  border-radius: 10px 5px 5px 10px;
  box-shadow: inset 0 0 6px #841212;
  z-index: 1;
}

@keyframes lens-glow {
  0% {
    box-shadow:
      0 0 8px 2px #e7d8d8 inset,
      0 0 5px rgb(240, 223, 223);
  }
  100% {
    box-shadow:
      0 0 12px 3px #742323 inset,
      0 0 10px #ff2222;
  }
}

.btn-camera:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(190, 26, 26, 0.759);
}

/* Message button specifics */
.btn-message {
  position: relative;
  display: inline-block;
  padding:20px;
  transform: scale(0.8);
  text-align: center;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  background: linear-gradient(145deg, #000000, #000000);
  border-radius: 10px 10px 10px 0;
  box-shadow:
    2px 2px 8px #27588a,
    inset 1px 1px 5px #296097;
  cursor: pointer;
  border: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
}

/* The tail of the speech bubble */
.btn-message::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 30px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-top-color: #173554;
  border-bottom: 0;
  margin-left: -6px;
  box-shadow: 1px 1px 3px #213e5b  inset;
}

/* Hover effect */
.btn-message:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 15px #3399ff,
    inset 0 0 15px #2b5580;
}



/* Animations */
@keyframes camera-flash {
  0%, 100% { text-shadow: 0 0 5px #ff3b3b, 0 0 10px #ff3b3b; }
  50% { text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000; }
}

@keyframes message-pulse {
  0%, 100% { text-shadow: 0 0 5px #3b9fff, 0 0 10px #3b9fff; }
  50% { text-shadow: 0 0 20px #0a73ff, 0 0 30px #0a73ff; }
}

.btn-3d:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(56, 54, 117, 0.8);
}
/* ABOUT PAGE */
.about {
  display: flex;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  align-items: center;
  justify-content: center; /* يضع المحتوى في الوسط أفقيًا */
  flex-wrap: nowrap;
  padding-top: 160px;
  overflow: hidden;
}
.about::before {
  content: "";
  position: fixed;
  top: 0; left: 0; 
  width: 100vw;
  height: 100vh;
  background: url('bb.jpg') no-repeat center center/cover;
  opacity: 0.3; /* تعتيم الصورة */
  background-size: cover;
}
.jumping-text {
  font-size: 2.5rem;
  font-weight: bold;
  display: flex;
  gap: 5px;
}

.jumping-text span {
  display: inline-block;
  animation: jump 0.5s ease forwards, rainbowShadow 4s linear infinite;
  animation-delay: 0s, calc(var(--i) * 0.5s);
  animation-fill-mode: forwards;
  color: rgb(255, 0, 0);

}

/* لتأخير الأنيميشن لكل حرف */
.jumping-text span:nth-child(1) { --i: 0; }
.jumping-text span:nth-child(2) { --i: 1; }
.jumping-text span:nth-child(3) { --i: 2; }
.jumping-text span:nth-child(4) { --i: 3; }
.jumping-text span:nth-child(5) { --i: 4; }
.jumping-text span:nth-child(6) { --i: 5; } /* space */
.jumping-text span:nth-child(7) { --i: 6; }
.jumping-text span:nth-child(8) { --i: 7; }

  @keyframes jump {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0); }
  }

/* تغير لون ظل النص تدريجياً بلون قوس قزح */
@keyframes rainbowShadow {
  0%   { text-shadow: 0 0 8px red; }
  14%  { text-shadow: 0 0 8px orange; }
  28%  { text-shadow: 0 0 8px yellow; }
  42%  { text-shadow: 0 0 8px green; }
  56%  { text-shadow: 0 0 8px blue; }
  70%  { text-shadow: 0 0 8px indigo; }
  84%  { text-shadow: 0 0 8px violet; }
  100% { text-shadow: 0 0 8px red; }
}

.text-content {
  flex: 1 1 0;
  max-width: 600px;
  background-color: rgba(0,0,0,0.6);
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #ddd;
  order: 2; /* لتكون على اليمين عند سطح المكتب */
}
.about p {
  max-width: 400px;          /* limits width for a nice block */
  margin: 0 auto;            /* center horizontally */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;           /* readable font size */
  line-height: 1.5;          /* good spacing between lines */
  text-align: justify;       /* justifies text to create equal line lengths */
  background: rgba(0, 0, 0, 0);  /* transparent background */
  padding: 20px;
  border-radius: 10px;
  hyphens: auto;
}
@media (max-width: 768px) {
  .about p {
    text-align: left;  /* no justification on small screens */
  }
}
.img-wrapper {
  position: fixed;
  right: 20px;
  width: 300px;
  height: auto;
  border-radius: 20px;
  overflow: visible;
  z-index: 1;
  margin-top: 30px;
  display: inline-block;
  margin-left: 0;
  order: 1;
}
.rainbow-border {
  position: fixed;
  top: 15px;  /* تحكم بالمسافة من فوق */
  left: 15px; /* تحكم بالمسافة من اليسار */
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: 4px solid transparent;
  border-radius: 20px;
  box-shadow: 0 0 20px red, 0 0 20px orange, 0 0 20px yellow, 0 0 20px green, 0 0 20px blue, 0 0 20px indigo, 0 0 20px violet;
  animation: rainbow-shadow 3s linear infinite, rotate-border 6s linear infinite;
  pointer-events: none;
}
/* الإطار المتحرك */
.img-wrapper::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 20px;
  border: 3px solid transparent;
  box-shadow: 0 0 15px red;
  animation: rotateBorder 8s linear infinite, rainbowShadow 8s linear infinite;
  z-index: 1;
}
/* حركة الدوران */
@keyframes rotateBorder {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
/* تغير ظلال الألوان تدريجياً واحدة واحدة */
@keyframes rainbowShadow {
  0% {
    box-shadow:
      0 0 15px red,
      0 0 0 orange,
      0 0 0 yellow,
      0 0 0 green,
      0 0 0 blue,
      0 0 0 indigo,
      0 0 0 violet;
  }
  14% {
    box-shadow:
      0 0 15px red,
      0 0 15px orange,
      0 0 0 yellow,
      0 0 0 green,
      0 0 0 blue,
      0 0 0 indigo,
      0 0 0 violet;
  }
  28% {
    box-shadow:
      0 0 0 red,
      0 0 15px orange,
      0 0 15px yellow,
      0 0 0 green,
      0 0 0 blue,
      0 0 0 indigo,
      0 0 0 violet;
  }
  42% {
    box-shadow:
      0 0 0 red,
      0 0 0 orange,
      0 0 15px yellow,
      0 0 15px green,
      0 0 0 blue,
      0 0 0 indigo,
      0 0 0 violet;
  }
  56% {
    box-shadow:
      0 0 0 red,
      0 0 0 orange,
      0 0 0 yellow,
      0 0 15px green,
      0 0 15px blue,
      0 0 0 indigo,
      0 0 0 violet;
  }
  70% {
    box-shadow:
      0 0 0 red,
      0 0 0 orange,
      0 0 0 yellow,
      0 0 0 green,
      0 0 15px blue,
      0 0 15px indigo,
      0 0 0 violet;
  }
  84% {
    box-shadow:
      0 0 0 red,
      0 0 0 orange,
      0 0 0 yellow,
      0 0 0 green,
      0 0 0 blue,
      0 0 15px indigo,
      0 0 15px violet;
  }
  100% {
    box-shadow:
      0 0 15px red,
      0 0 0 orange,
      0 0 0 yellow,
      0 0 0 green,
      0 0 0 blue,
      0 0 0 indigo,
      0 0 0 violet;
  }
}
.img-wrapper img {
  height: 200px;      /* الارتفاع الجديد */
  width: 100%; 
  border: 4px solid #00000000;
  border-radius: 20px;
  animation: glow 3s infinite alternate;
  position: relative;
  display: block;
  margin-top: auto;
  z-index: 2;
}
/* للهواتف */
@media (max-width: 768px) {
  .about {
    flex-direction: column; /* الترتيب الطبيعي: النص فوق، الصورة تحت */
    min-height: 100vh;
    justify-content: flex-start;
    display: flex;
  }
  .text-content {
    flex: none;
    order: 1;
  }
  .img-wrapper {
    order: 2;
    margin-top: auto; /* يدفع الصورة لنهاية الصفحة */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80vw;
    margin: 0 auto 20px auto;
    position: fixed;
    bottom: 80px;
  }
  .img-wrapper img {
    height: 300%;   /* ارتفاع أكبر على الموبايل */
    width: 250%;     /* تاخذ عرض أكبر */
    max-width: 300px;
    bottom: -150px;
  }
  .img-wrapper::before {
    top: 150px;    /* تحرك لأسفل */
  }
}

/* تعديل خاص للديسكتوب بدون التأثير على الموبايل */
@media (min-width: 769px) {
  .about {
    flex-direction: row; /* ترتيب أفقي */
    justify-content: center;
    align-items: center;
  }
  .text-content {
    order: 1;  /* الفقرة على اليسار */
     margin-right: 100px;
     margin-top: -100px;
  }
  .img-wrapper {
    order: 2;  /* الصورة + الإطار على اليمين */
    position: relative !important; /* بدل fixed عشان ما يبقى معلق */
    right: auto !important; /* لإلغاء right: 20px */
    width: 300px !important; /* ضبط العرض */
    margin-top: 0 !important;
    bottom: auto !important; /* إزالة أي تثبيت من الأسفل */
  }
  .img-wrapper img {
    height: 150% !important; /* الحجم المطلوب */
    width: 100% !important;
    max-width: 300px !important;
    bottom: auto !important;
  }
  .img-wrapper::before {
    top: 10px !important; /* ضبط موقع الإطار */
    left: 10px !important;
  }
}

/* WORK PAGE */
.work {
  padding: 50px;
}

.work h2 {
  text-align: center;
  margin-bottom: 50px;
}

.work-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-in-out;
}

.work-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.work-media img,
.work-media video {
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.work-text {
  flex: 1;
}

.left-image {
  flex-direction: row;
}

.right-image {
  flex-direction: row-reverse;
}

/* Animation directions */
.left-image.visible .work-media {
  animation: slideInLeft 1s forwards;
}

.left-image.visible .work-text {
  animation: slideInRight 1s forwards;
}

.right-image.visible .work-media {
  animation: slideInRight 1s forwards;
}

.right-image.visible .work-text {
  animation: slideInLeft 1s forwards;
}

@keyframes slideInLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}


/*contact page*/
.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: black;
  color: white;
  padding: 50px 20px;
  padding-top: 80px;
}
.contact-page::before {
   content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('bb.jpg') no-repeat center center/cover;
  background-size: cover;       /* مهم جداً */
  opacity: 0.5; /* تعتيم الخلفية */
  z-index: 0;
}

/* Make sure text and icons stay above overlay */
.contact-page * {
  position: relative;
  z-index: 1;
}

.social-links {
  margin: 40px 0;
}

.social-links a {
  font-size: 3rem;
  margin: 0 20px;
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
}

/* Animations */
.whatsapp {
  color: #25D366;
  animation: floatUpDown 3s ease-in-out infinite;
}
.instagram {
  color: #E1306C;
  animation: bounce 2s ease-in-out infinite;
}
.gmail {
  color: #f27a18;
  animation: tilt 3s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px) scale(1.05); }
}
@keyframes tilt {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

.social-links a:hover {
  transform: scale(1.2);
  color: rgb(196, 196, 196);
}

/* Comment Section */
.comment-section {
  max-width: 500px;
  width: 100%;
  margin-top: 40px;
  text-align: center;
}

.comment-section textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #111;
  border: 1px solid gray;
  color: white;
  resize: none;
}

.comment-section button {
  padding: 10px 20px;
  background-color: red;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.comment-section button:hover {
  background-color: darkred;
}

#commentList {
  margin-top: 20px;
  text-align: left;
}

.comment-item {
  padding: 10px;
  border-bottom: 1px solid gray;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 10px;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}
.social-media {
  position: relative;
  color: white;
  overflow: hidden;
  padding-top: 40px;    /* بس فوق */
  padding-bottom: 40px; /* بس تحت */
  padding-left: 0;
  padding-right: 0;
}
.social-media::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  background: url('bb.jpg') no-repeat center center/cover;
  opacity: 0.3; /* مستوى التعتيم */
  z-index: -1; /* تحطها خلف المحتوى */
  width: 100vw;
  height: 100vh;
  background-size: cover;

}

.social-media h1 {
 margin-bottom: 40px;
  margin-top: 20px; /* زيد المسافة من الأعلى */
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 80px;
  text-align: center;
  margin-left: 50px;
}
.jumping-text {
  text-align: center;
  font-size: 3rem;
  font-family: 'Pacifico', cursive;
  color: white;
 
}

.jumping-text span {
  display: inline-block;
  animation: jump 1.5s ease-in-out forwards;
   text-align: center;
 
}
/* تأخير مختلف لكل حرف */
.jumping-text span:nth-child(1) { animation-delay: 0s; }
.jumping-text span:nth-child(2) { animation-delay: 0.15s; }
.jumping-text span:nth-child(3) { animation-delay: 0.3s; }
.jumping-text span:nth-child(4) { animation-delay: 0.45s; }
.jumping-text span:nth-child(5) { animation-delay: 0.6s; }
.jumping-text span:nth-child(6) { animation-delay: 0.75s; }
.jumping-text span:nth-child(7) { animation-delay: 0.9s; }
.jumping-text span:nth-child(8) { animation-delay: 1.05s; }
.jumping-text span:nth-child(9) { animation-delay: 1.2s; }
.jumping-text span:nth-child(10) { animation-delay: 1.35s; }
.jumping-text span:nth-child(11) { animation-delay: 1.5s; }
.jumping-text span:nth-child(12) { animation-delay: 1.65s; }
.jumping-text span:nth-child(13) { animation-delay: 1.8s; }
.jumping-text span:nth-child(14) { animation-delay: 1.95s; }
.jumping-text span:nth-child(15) { animation-delay: 2.1s; }
.jumping-text span:nth-child(16) { animation-delay: 2.25s; }
.jumping-text span:nth-child(17) { animation-delay: 2.4s; }
.jumping-text span:nth-child(18) { animation-delay: 2.55s; }
.jumping-text span:nth-child(19) { animation-delay: 2.7s; }
.jumping-text span:nth-child(20) { animation-delay: 2.85s; }
.jumping-text span:nth-child(21) { animation-delay: 3s; }

@keyframes jump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.client {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}
.client-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: center;
}

.client-logo {
  max-width: 50px;
  height: auto;
}

.client-name {
  font-size: 1.3rem;
  font-weight: 600;
}

.client-videos {
  display: flex;
  gap: 15px;
  
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.05); /* شفاف جداً */
width: 100vw; /* تمدد كامل عرض الشاشة */
  margin-left: calc(-50vw + 50%); /* توازن الهامش عشان يبدأ من أقصى اليسار */
  box-sizing: border-box;
  justify-content: space-evenly;
}

.client-videos::-webkit-scrollbar {
  height: 8px;
 
}

.client-videos::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.client-videos video {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
   width: 200px;
  height: 200px; 
}








