/* Wedding-Style Animations Throughout the Website */

/* Global wedding animation enhancements */
:root {
  --primary-pink: #d35d94;
  --secondary-pink: #ff9ec3;
  --light-pink: #ffb7d5;
  --wedding-gradient: linear-gradient(
    135deg,
    var(--primary-pink),
    var(--secondary-pink)
  );
}

/* Enhanced floating hearts for various sections */
.floating-hearts-global {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.global-heart {
  position: absolute;
  width: 12px;
  height: 12px;
  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;
  background-size: contain;
  opacity: 0;
  animation: float-global-heart 12s linear infinite;
}

.global-heart.small {
  width: 8px;
  height: 8px;
  animation-duration: 10s;
}
.global-heart.medium {
  width: 12px;
  height: 12px;
  animation-duration: 12s;
}
.global-heart.large {
  width: 16px;
  height: 16px;
  animation-duration: 14s;
}

@keyframes float-global-heart {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0) scale(0.5) rotate(0deg);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(100px) scale(1.2) rotate(360deg);
  }
}

/* Enhanced button hover effects throughout the website */
.btn-primary,
.submit-btn,
.show-more-btn,
.category-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary::before,
.submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: 1;
}

.btn-primary:hover::before,
.submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Enhanced section title animations */
.section-title {
  position: relative;
  animation: title-entrance 1s ease-out;
}

@keyframes title-entrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section-title::before,
.section-title::after {
  animation: title-decorations 2s ease-in-out infinite alternate;
}

@keyframes title-decorations {
  0% {
    transform: translateY(-50%) rotate(-15deg) scale(1);
  }
  100% {
    transform: translateY(-50%) rotate(-15deg) scale(1.1);
  }
}

/* Enhanced card hover effects for team and service cards */
.team-member,
.service-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.team-member::before,
.service-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #fff8e4;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.team-member:hover::before,
.service-card:hover::before {
  opacity: 1;
  animation: border-glow 2s ease-in-out infinite alternate;
}

@keyframes border-glow {
  0% {
    box-shadow: 0 0 5px rgba(211, 93, 148, 0.5);
  }
  100% {
    box-shadow: 0 0 20px rgba(211, 93, 148, 0.8),
      0 0 30px rgba(255, 158, 195, 0.5);
  }
}

/* Enhanced gallery item animations */
.gallery-item {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 183, 213, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  transform: translateX(100%);
}

/* Enhanced form animations */
.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-pink);
  box-shadow: 0 0 15px rgba(255, 158, 195, 0.3);
  transform: scale(1.02);
}

/* Enhanced footer animations */
.footer-links a,
.footer-social a {
  position: relative;
  transition: all 0.3s ease;
}

.footer-links a::after,
.footer-social a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--wedding-gradient);
  transform: translateX(-50%);
  transition: width 0.4s ease;
}

.footer-links a:hover::after,
.footer-social a:hover::after {
  width: 100%;
}

/* Sparkle animation for special elements */
.sparkle-effect {
  position: relative;
}

.sparkle-effect::before {
  content: "✨";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1rem;
  opacity: 0;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

/* Enhanced scroll animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced background animations for sections */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 183, 213, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(211, 93, 148, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 158, 195, 0.02) 0%,
      transparent 50%
    );
  animation: section-bg-float 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes section-bg-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(10px, -10px) rotate(1deg);
  }
  66% {
    transform: translate(-5px, -5px) rotate(-1deg);
  }
}

/* Enhanced loading animations */
.loading-heart {
  width: 30px;
  height: 30px;
  background: var(--secondary-pink);
  border-radius: 50%;
  position: relative;
  animation: loading-pulse 1.5s ease-in-out infinite;
}

.loading-heart::before,
.loading-heart::after {
  content: "";
  width: 30px;
  height: 30px;
  background: var(--secondary-pink);
  border-radius: 50%;
  position: absolute;
}

.loading-heart::before {
  left: -15px;
  top: 0;
}

.loading-heart::after {
  top: -15px;
  left: 0;
}

@keyframes loading-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Enhanced micro-interactions */
.interactive-element {
  transition: all 0.2s ease;
  cursor: pointer;
}

.interactive-element:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.interactive-element:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* Performance optimizations */
.service-card,
.team-member,
.gallery-item,
.nav-link {
  will-change: transform;
  backface-visibility: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced text animations */
.animated-text {
  background: var(--wedding-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Enhanced shadow effects */
.elegant-shadow {
  box-shadow: 0 4px 6px rgba(211, 93, 148, 0.1),
    0 1px 3px rgba(211, 93, 148, 0.08), 0 0 0 1px rgba(255, 183, 213, 0.05);
  transition: box-shadow 0.3s ease;
}

.elegant-shadow:hover {
  box-shadow: 0 10px 25px rgba(211, 93, 148, 0.15),
    0 5px 10px rgba(211, 93, 148, 0.1), 0 0 0 1px rgba(255, 183, 213, 0.1);
}
