.card .image-holder {
  padding: 5px;
  text-align: center;
  position: relative;
  overflow: visible;
}

/* Define custom property for animation */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Initially hide the animation */
.card .image-holder::after,
.card .image-holder::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 10px;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.5s ease-in-out; /* Smooth fade-in and fade-out */
}

/* Blurred effect */
.card .image-holder::before {
  filter: blur(1.5rem);
  opacity: 0;
}

/* Apply animation on hover with transition */
.card .image-holder:hover::after,
.card .image-holder:hover::before {
  opacity: 1; /* Smoothly appear */
  animation: spin 3s linear infinite;
  transition: opacity 0.5s ease-in-out; /* Ensure smooth transition */
}

/* Ensure smooth fade-out when not hovered */
.card .image-holder:not(:hover)::after,
.card .image-holder:not(:hover)::before {
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* Smoothly disappear */
  animation: none; /* Stop animation */
}

/* Keyframes for rotation */
@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

.container .row.items.inner.filter-items-1.shuffle {
  overflow: visible !important;
}

.portfolio-item .card-thumb img{
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
