@font-face {
  font-family: 'ABCArabic';
  src: url('fonts/ABCFAVORITARABIC-MEDIUM-TRIAL.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'ABCArabic';
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  background-color: #f5f5f7;
  overflow-x: hidden;
}

/* الهيدر */
header {
  z-index: 1001;
}

/* حركة عائمة للأيقونات (float) */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.client-icon {
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: float 4s ease-in-out infinite;
}

/* أيادي (Hands Container) في قسم العملاء */
.hands-container {
  display: block;
  position: absolute;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  animation: gentleUpDown 6s ease-in-out infinite;
  width: clamp(50vw, 60vw, 80vw);
  bottom: 10vh;
  max-width: 100%;
}

@media (min-width: 768px) {
  .hands-container {
    width: 40vw;
    bottom: 0;
    top: auto;
  }
}

.hands-container.left {
  left: 0;
  background-image: url('https://nexl.fra1.cdn.digitaloceanspaces.com/imgs/Right.png');
}

.hands-container.right {
  right: 0;
  background-image: url('https://nexl.fra1.cdn.digitaloceanspaces.com/imgs/Left.png');
}

@keyframes gentleUpDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 1);
  transition: transform 1s cubic-bezier(0.87, 0, 0.13, 1), opacity 1s;
  opacity: 1;
}

#loader.hidden {
  opacity: 0;
  transform: scale(150) rotate(15deg);
  pointer-events: none;
}

/* معرض صور Masonry (تم الاحتفاظ به لأنك قد تحتاجه في صفحات أخرى) */
.masonry-gallery {
  column-count: 3;
  column-gap: 1.5rem;
  perspective: 1000px;
}

@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .masonry-gallery {
    column-count: 1;
  }
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.gallery-item img,
.gallery-item .item-overlay {
  transform: translateZ(20px);
  pointer-events: none;
  max-width: 100%;
  height: auto;
}

.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .item-overlay {
  opacity: 1;
}

/* قسم تفاصيل العلامة التجارية (تم الاحتفاظ به لاستخدامه المحتمل) */
#brand-details-section {
  opacity: 0;
  max-height: 0;
  transition: opacity 0.7s ease-out, max-height 0.7s ease-out, padding 0.7s ease-out;
  padding-bottom: 0;
}

#brand-details-section.is-visible {
  opacity: 1;
  max-height: 2000px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.instagram-media {
  min-height: 400px;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  overflow: hidden;
}

/* زر احترافي */
.professional-button {
  background-color: #E01E31;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease-in-out;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 5px #a11422;
  padding: 0.75rem 1.25rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.professional-button:hover {
  box-shadow: 0 7px #a11422;
  transform: translateY(-2px);
}

.professional-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px #a11422;
}

/* قائمة overlay الجانبية للموبايل */
#creative-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  overflow: hidden;
}

body.menu-open #creative-overlay {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

@keyframes float-animation {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

.floating-icon {
  animation: float-animation 4s ease-in-out infinite;
}

body.menu-open {
  overflow: hidden;
}