/* Enhanced Navigation Styles with Wedding Theme Hover Effects */

/* Enhanced Navigation Links with Wedding Magic */
.nav-link {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 8px 16px;
  border-radius: 25px;
}

/* Elegant subtle glow effect on hover */
.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 183, 213, 0.08) 0%,
    rgba(255, 158, 195, 0.12) 50%,
    rgba(211, 93, 148, 0.08) 100%
  );
  border-radius: 25px;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  z-index: -1;
  backdrop-filter: blur(1px);
}

.nav-link:hover::before {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 2px 20px rgba(255, 183, 213, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced underline effect */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d35d94, #ff9ec3, #d35d94);
  background-size: 200% 100%;
  transition: width 0.5s ease;
  animation: shimmer-line 2s linear infinite;
  animation-play-state: paused;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  animation-play-state: running;
}

@keyframes shimmer-line {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhanced heart separators between nav items */
.nav-menu li::after {
  content: "♥";
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: rgba(255, 183, 213, 0.6);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: heartbeat-nav 2s ease-in-out infinite;
  animation-play-state: paused;
}

.nav-menu:hover li::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.3);
  animation-play-state: running;
}

@keyframes heartbeat-nav {
  0%,
  100% {
    transform: translateY(-50%) scale(1.3);
  }
  50% {
    transform: translateY(-50%) scale(1.6);
    color: #ff9ec3;
  }
}

/* Enhanced navbar decorations with floating effect */
.navbar-decoration {
  transition: all 0.6s ease;
  animation: float-decoration 4s ease-in-out infinite;
}

@keyframes float-decoration {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(1deg);
  }
}

.header.scrolled .navbar-decoration {
  animation-play-state: running;
  filter: drop-shadow(0 2px 8px rgba(255, 183, 213, 0.4));
}

/* Enhanced logo with gentle pulse on scroll */
.logo img {
  transition: all 0.4s ease;
}

.header.scrolled .logo img {
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(255, 183, 213, 0.6));
    transform: scale(1.02);
  }
}

/* Enhanced mobile menu animations */
.menu-toggle {
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle.active {
  transform: rotate(90deg) scale(1.1);
}

.bar {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #ff9ec3;
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background-color: #ff9ec3;
}

/* Enhanced mobile menu with better animations */
#menu-phone {
  backdrop-filter: blur(15px);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(211, 93, 148, 0.1) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

#menu-phone .nav-link {
  padding: 1rem 2rem;
  margin: 0.5rem 0;
  border-radius: 25px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

#menu-phone .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 183, 213, 0.08) 0%,
    rgba(255, 158, 195, 0.12) 50%,
    rgba(211, 93, 148, 0.08) 100%
  );
  border-radius: 25px;
  transform: scale(0.8);
  transition: all 0.4s ease;
  opacity: 0;
}

#menu-phone .nav-link:hover {
  background: transparent;
  transform: translateX(8px);
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 183, 213, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

#menu-phone .nav-link:hover::before {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 2px 15px rgba(255, 183, 213, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Enhanced navigation background when scrolled */
.header.scrolled {
  background: linear-gradient(
    135deg,
    rgb(0 0 0 / 15%) 0%,
    rgb(100 26 61 / 75%) 50%,
    rgb(0 0 0 / 15%) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 183, 213, 0.2);
}

/* Floating hearts animation on navigation hover */
.navbar-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(255, 183, 213, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 158, 195, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 40% 70%,
      rgba(211, 93, 148, 0.1) 1px,
      transparent 1px
    );
  background-size: 50px 50px, 80px 80px, 30px 30px;
  animation: floating-hearts-bg 20s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.navbar:hover .navbar-container::before {
  opacity: 1;
}

@keyframes floating-hearts-bg {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(10px, -10px);
  }
  66% {
    transform: translate(-5px, -20px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Enhanced text effects on hover */
.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 183, 213, 0.6),
    0 0 20px rgba(255, 158, 195, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ff9ec3;
  text-shadow: 0 0 8px rgba(255, 158, 195, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive enhancements */
@media screen and (max-width: 768px) {
  .navbar-decoration {
    display: none;
  }

  .nav-menu li::after {
    display: none;
  }
}

/* Performance optimizations */
.navbar,
.nav-link,
.navbar-decoration {
  will-change: transform;
  backface-visibility: hidden;
}

/* Preload animations */
@media (prefers-reduced-motion: reduce) {
  .nav-link::before,
  .nav-link::after,
  .navbar-decoration,
  .logo img {
    animation: none;
    transition: none;
  }
}
