/* css/animations.css */

/* Hero Parallax Petals */
@keyframes float-petal {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh) rotate(360deg) scale(0.8); opacity: 0; }
}

.petal {
  position: absolute;
  top: -10vh;
  background-image: url('../images/petal.png'); /* Placeholder if we had a small petal */
  background-size: contain;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  animation: float-petal 15s linear infinite;
}

/* Simulated Petals using CSS shapes since we don't have individual petal images */
.css-petal {
  position: absolute;
  top: -10vh;
  width: 15px;
  height: 15px;
  background-color: var(--color-primary);
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  animation: float-petal 15s linear infinite;
  filter: blur(1px);
}

.css-petal:nth-child(even) {
  background-color: var(--color-secondary);
  border-radius: 0 50% 50% 50%;
}

.css-petal:nth-child(3n) {
  background-color: var(--color-base);
  border-radius: 50% 50% 0 50%;
}

/* Scroll Revelations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Card Hovers */
.flower-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.flower-card:hover .flower-card-img {
  transform: scale(1.05);
}

.flower-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: width var(--transition-slow);
}

.flower-card:hover::after {
  width: 100%;
}

.price-tag {
  transition: transform var(--transition-base);
}

.flower-card:hover .price-tag {
  transform: translateY(-2px);
}

.btn-view-details {
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.flower-card:hover .btn-view-details {
  opacity: 1;
  transform: translateY(0);
}

/* Button Hovers */
.btn:hover {
  transform: scale(1.03);
}

.btn-primary:hover {
  background-color: #b37384;
  box-shadow: 0 6px 20px rgba(201, 138, 155, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(58, 50, 44, 0.05);
}

.btn-accent:hover {
  background-color: #d1a133;
  box-shadow: 0 6px 20px rgba(232, 184, 75, 0.4);
}

/* Pricing Card Hovers */
.pricing-card {
  transition: var(--transition-slow);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.badge-popular {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 184, 75, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(232, 184, 75, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 184, 75, 0); }
}

/* Gallery Hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.gallery-item img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(58, 50, 44, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-icon {
  color: white;
  font-size: 2rem;
  transform: scale(0.5);
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-icon {
  transform: scale(1);
}

/* Back to Top Bounce */
.back-to-top:hover {
  transform: translateY(-5px);
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Page Transitions */
body.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Success Form Animation */
.success-message {
  display: none;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.success-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 30px;
  margin: 0 auto 1rem;
  animation: bloom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bloom {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
