/* Animations for Andhika & Ratih's Wedding - Light Theme */

/* Elegant Floating Elements */
.float-animation {
  animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Subtle Photo Glow Effect */
.photo-glow {
  transition: all 0.5s ease;
}

.photo-glow:hover {
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.2), 0 0 30px rgba(139, 0, 0, 0.1);
  transform: scale(1.03);
}

/* Elegant Shimmer Text Effect */
.shimmer-text {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.2) 20%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* Gentle Letter Animation */
.letter-animation {
  display: inline-block;
}

.letter-animation > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInLetter 0.4s forwards;
}

@keyframes fadeInLetter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Romantic Heartbeat Effect */
.subtle-heartbeat {
  animation: subtleHeartbeat 2s infinite;
}

@keyframes subtleHeartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Delicate Border Animation */
.elegant-border {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.elegant-border::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: borderShine 6s infinite;
  z-index: -1;
}

@keyframes borderShine {
  0% {
    left: -100%;
  }
  20%,
  100% {
    left: 100%;
  }
}

/* Soft Bloom Effect for Special Elements */
.soft-bloom {
  animation: softBloom 6s infinite;
}

@keyframes softBloom {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(139, 0, 0, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.3));
  }
}

/* Entrance Animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Light Particles */
.light-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.light-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(139, 0, 0, 0.1);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
  animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.3;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) translateX(calc(var(--random) * 200px));
    opacity: 0;
  }
}

/* Reveal Animation for Images */
.reveal-image {
  position: relative;
  overflow: hidden;
}

.reveal-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f8f8;
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}

.reveal-image.visible::after {
  transform: translateX(100%);
}

/* Delicate Rotating Element */
.delicate-rotate {
  animation: delicateRotation 20s linear infinite;
  transform-origin: center;
}

@keyframes delicateRotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
