.image-container {
    position: relative;
    display: block;
    overflow: hidden;
}
.img{
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.img:hover{
    transform: scale(1.05);

}
.image-container img {
    width: 100%;
    height: 150px;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    width:100%;
    height: auto;
    top: 60%;
    left: 0;
    right: 0;
    bottom: 10%;
    background: rgba(0, 0, 0, 0.4); /* Overlay background color */
    display: flex;
    justify-content: center;
    align-items: center;
    /* opacity: 0; */
    transition: opacity 0.3s ;
    border-radius: 20px 10px !important;

}



.text {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}
.scale-in-center {
  animation: scaleIn 1.1s both ; /* مدة الحركة 1 ثانية */
}

/* Keyframes لتأثير التكبير */
@keyframes scaleIn {
  0% {
    letter-spacing: 1em;
    -webkit-transform: translateZ(400px);
            transform: translateZ(400px);
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
}
/* حركة الديفات من اليمين */
/* الوضع الابتدائي */
.slide-in-right {
  opacity: 0;
  transform: translateY(-800px) rotate(-540deg);
}

/* لما AOS يضيف aos-animate */
[data-aos].aos-animate .slide-in-right {
  animation: slideRight 1.0s ease-out both;
}

/* Keyframes */
@keyframes slideRight {
  0% {
    -webkit-transform: translateY(-800px) rotate(-540deg);
            transform: translateY(-800px) rotate(-540deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0) rotate(0deg);
            transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

/* حركة الديفات من اليسار */
/* الوضع الابتدائي */
.slide-in-left {
  opacity: 0;
  transform: translateY(800px) rotate(540deg);
}

/* لما AOS يضيف aos-animate */
[data-aos].aos-animate .slide-in-left {
  animation: slideLeft  1s ease-out both;
}

/* Keyframes لحركة الانزلاق من اليسار */
@keyframes slideLeft {
  0% {
    -webkit-transform: translateY(800px) rotate(540deg);
            transform: translateY(800px) rotate(540deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0) rotate(0deg);
            transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}
.flip-scale-up-ver.clicked {
  -webkit-animation: flip- 0.5s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
  animation: flip- 0.5s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

 @-webkit-keyframes flip- {
  0% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  100% {
    -webkit-transform: rotateY(360deg);
            transform: rotateY(360deg);
  }
}
@keyframes flip- {
  0% {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
  }
  100% {
    -webkit-transform: rotateY(360deg);
            transform: rotateY(360deg);
  }
}