/* Enhanced styles for the service cards and gallery */

/* Service feature animation */
.service-features li::before {
  animation: heartbeat 2s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Service card shine effect */
.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Service card hearts container */
.service-card-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  border-radius: 15px;
}

.service-heart {
  position: absolute;
  width: 15px;
  height: 15px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff9ec3"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>')
    no-repeat center center;
  opacity: 0;
  animation: float-service-heart 8s linear infinite;
}

/* Different sized hearts for variety */
.service-heart.small {
  width: 10px;
  height: 10px;
  animation-duration: 6s;
}

.service-heart.medium {
  width: 15px;
  height: 15px;
  animation-duration: 8s;
}

.service-heart.large {
  width: 20px;
  height: 20px;
  animation-duration: 10s;
}

@keyframes float-service-heart {
  0% {
    opacity: 0;
    transform: translateY(100%) scale(0.5) rotate(0deg);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateY(-100%) scale(1.2) rotate(360deg);
  }
}

/* Gallery item hover transition */
.gallery-item {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Make cloned gallery items slightly different */
.gallery-item.cloned-item img {
  filter: brightness(0.98);
}

.gallery-item .item-overlay {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Enhanced overlay gradient for gallery images */
.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(211, 93, 148, 0) 70%,
    rgba(211, 93, 148, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Smooth infinite scroll transition */
.works-gallery {
  animation-timing-function: linear;
  will-change: transform;
}

/* Add elegant moving line at the bottom of service cards */
.service-card::after {
  background: linear-gradient(
    to right,
    transparent,
    #ff9ec3,
    #d35d94,
    #ff9ec3,
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  animation-play-state: paused;
}

.service-card:hover::after {
  animation-play-state: running;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Enhanced service card container */
.services-container {
  perspective: 1000px;
}

/* Make service cards feel more 3D */
.service-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Add subtle shadow animation on service card hover */
.service-card:hover {
  box-shadow: 0 20px 40px rgba(211, 93, 148, 0.15),
    0 0 15px rgba(211, 93, 148, 0.1);
}

/* Footer animations */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #d35d94, #ff9ec3, #d35d94);
  background-size: 200% 100%;
  animation: footer-shimmer 4s linear infinite;
}

@keyframes footer-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.footer-links a,
.footer-social a {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-links a::after,
.footer-social a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #ff9ec3, #d35d94);
  transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  transform: translateY(-2px);
  color: #ff9ec3;
}

.footer-links a:hover::after,
.footer-social a:hover::after {
  width: 100%;
}

.footer-social .social-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social .social-icon:hover {
  transform: scale(1.2);
  color: #ff9ec3;
}

.footer-bottom .fa-heart {
  color: #ff9ec3;
  animation: heart-pulse 1.5s ease-in-out infinite;
}

@keyframes heart-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
    color: #d35d94;
  }
}

/* Floating hearts in footer */
.footer-floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.footer-heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff9ec3"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>')
    no-repeat center center;
  opacity: 0;
  animation: float-footer-heart 15s linear infinite;
  bottom: 0;
}

.footer-heart.small {
  width: 15px;
  height: 15px;
  animation-duration: 12s;
}

.footer-heart.large {
  width: 25px;
  height: 25px;
  animation-duration: 18s;
  opacity: 0.3;
}

@keyframes float-footer-heart {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.5);
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(50px) scale(1.2) rotate(45deg);
  }
}
