/* Custom styles for Blushing Bride & Formal Wear */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation styles */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #db2777, #f59e0b);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(157, 23, 77, 0.1);
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #fce7f3;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Floating petals animation */
@media (prefers-reduced-motion: no-preference) {
  .petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(ellipse at center, #f9a8d4 0%, #fbcfe8 50%, transparent 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0.6;
    pointer-events: none;
  }

  .petal-1 {
    top: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
  }

  .petal-2 {
    top: 60%;
    left: 20%;
    width: 15px;
    height: 15px;
    animation: float 10s ease-in-out infinite 1s;
  }

  .petal-3 {
    top: 30%;
    right: 15%;
    width: 25px;
    height: 25px;
    animation: float 12s ease-in-out infinite 2s;
  }

  .petal-4 {
    top: 70%;
    right: 25%;
    width: 18px;
    height: 18px;
    animation: float 9s ease-in-out infinite 0.5s;
  }

  .petal-5 {
    top: 45%;
    left: 5%;
    width: 12px;
    height: 12px;
    animation: float 11s ease-in-out infinite 3s;
  }

  @keyframes float {
    0%, 100% {
      transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
      transform: translateY(-30px) rotate(90deg) scale(1.1);
    }
    50% {
      transform: translateY(-15px) rotate(180deg) scale(1);
    }
    75% {
      transform: translateY(-40px) rotate(270deg) scale(1.05);
    }
  }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.2);
}

/* Button hover lift */
button,
a {
  transition: all 0.3s ease;
}

/* Gallery hover effect */
.rounded-2xl.overflow-hidden {
  cursor: pointer;
}

.rounded-2xl.overflow-hidden img {
  transition: transform 0.7s ease;
}

.rounded-2xl.overflow-hidden:hover img {
  transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fdf4f8;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f9a8d4, #fbbf24);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ec4899, #f59e0b);
}

/* Selection color */
::selection {
  background: #f9a8d4;
  color: #831443;
}
