/* ============================================
   Elisa Beauty - Custom Animations & Styles
   Tailwind CSS ile yapilamayan animasyonlar
   ============================================ */

/* --- Hover Shine Effect --- */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  z-index: 10;
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.shine-effect:hover::before {
  left: 125%;
}

/* --- Fade-in on Scroll --- */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* --- WhatsApp Pulse Animation --- */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(1);
  }
}

.whatsapp-pulse {
  animation: pulse-whatsapp 2s infinite;
}

/* --- Card Zoom Container --- */
.card-zoom {
  overflow: hidden;
  border-radius: 0.5rem;
}

.card-zoom img {
  transition: transform 0.4s ease;
}

.card-zoom:hover img {
  transform: scale(1.08);
}

/* --- Hero Slider Transitions --- */
.slide-enter {
  opacity: 0;
  transform: translateX(30px);
}

.slide-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-leave {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* --- Mobile Menu Overlay --- */
.menu-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

/* --- Counter Animation --- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
  animation: countUp 0.5s ease-out forwards;
}

/* --- Footer Top Half-Circle (Ellipse) Design --- */
.footer-top-ellipse {
  position: relative;
  padding: 50px 0;
}

.footer-top-ellipse::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  border-radius: 50%;
  top: 0;
  background-color: #AF9778;
  height: 200%;
  z-index: 0;
}

@media (max-width: 1024px) {
  .footer-top-ellipse::before {
    width: 125vw;
    height: 150%;
  }
}

@media (max-width: 768px) {
  .footer-top-ellipse {
    padding: 30px 0;
  }
  .footer-top-ellipse::before {
    width: 150vw;
  }
}

@media (max-width: 575px) {
  .footer-top-ellipse::before {
    width: 160vw;
  }
}

/* --- Dropdown Animation --- */
.dropdown-enter {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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