.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 0.7s both ; /* مدة الحركة 1 ثانية */
}

/* Keyframes لتأثير التكبير */
@keyframes scaleIn {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
    opacity: 0;
  }
  38% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
    opacity: 1;
  }
  55% {
    -webkit-transform: scale(0.7);
            transform: scale(0.7);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  72% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  81% {
    -webkit-transform: scale(0.84);
            transform: scale(0.84);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  89% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  95% {
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
}
/* حركة الديفات من اليمين */
/* الوضع الابتدائي */
.slide-in-right {
  opacity: 0;
  transform: translateX(-800px) rotate(540deg);
}

/* لما AOS يضيف aos-animate */
[data-aos].aos-animate .slide-in-right {
  animation: slideRight 1s forwards;
}

/* Keyframes */
@keyframes slideRight {
  0% {
    transform: translateX(800px) rotate(540deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

/* حركة الديفات من اليسار */
/* الوضع الابتدائي */
.slide-in-left {
  opacity: 0;
  transform: translateX(-800px) rotate(-540deg);
}

/* لما AOS يضيف aos-animate */
[data-aos].aos-animate .slide-in-left {
  animation: slideLeft 1s forwards;
}

/* Keyframes لحركة الانزلاق من اليسار */
@keyframes slideLeft {
  0% {
    transform: translateX(-800px) rotate(-540deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

.flip-scale-up-ver.clicked {
  -webkit-animation: flip- 0.4s linear both;
  animation: flip- 0.4s linear both;
}

 @-webkit-keyframes flip- {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  50% {
    -webkit-transform: rotate(180deg) scale(1.1);
            transform: rotate(180deg) scale(1.1);
  }
  100% {
    -webkit-transform: rotate(360deg) scale(1);
            transform: rotate(360deg) scale(1);
  }
}
@keyframes flip- {
  0% {
    -webkit-transform: rotateX(360deg);
            transform: rotateX(360deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
    opacity: 1;
  }
}