.three-d-gallery-section {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  color: #ffffff;
}

.three-d-gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.three-d-gallery-box {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  transform-style: preserve-3d;
  animation: rotateGallery 20s linear infinite;
}

.three-d-gallery-box span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(400px);
  box-reflect: below 0px linear-gradient(transparent, transparent, #0004);
}

.three-d-gallery-box span img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

@keyframes rotateGallery {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}
.custom-gallery-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.custom-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.custom-gallery-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-gallery-card {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.custom-gallery-frame {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.custom-gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.custom-gallery-card:hover img {
  transform: scale(1.05);
}
.mil-custom-partners {
  padding: 30px 0; /* قللنا الارتفاع */
  background-color: #f9f9f9; /* اختياري للتفريق */
}
.custom-partners-section {
  background-color: #ffffff;
  padding: 30px 0;
  overflow: hidden;
}

.custom-partners-container {
  max-width: 100%;
  margin: auto;
}

.custom-partner-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px; /* كبرنا الشعار */
  height: 100px;
  transition: transform 0.3s ease;
}

.custom-partner-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.loop-logos-section {
  background-color: #fff;
  padding: 20px 0;
  overflow: hidden;
}

.logos-slider {
  width: 100%;
  position: relative;
}

.logos-track {
  display: flex;
  width: calc(250px * 10); /* 10 لوجو مكرر = 5 * 2 */
  animation: scroll-logos 30s linear infinite;
}

.logo {
  flex: 0 0 auto;
  width: 250px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.logo img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.email-link {
  color: inherit; /* يحافظ على لون النص */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #007BFF; /* لون عند التحويم */
}
