/* =============================================
   LUNQENTRO - Animations Stylesheet
   ============================================= */

/* ---- Keyframes ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.90); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse-copper {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,115,51,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(184,115,51,0); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes barFill {
  from { width: 0; }
  to { width: var(--target-width); }
}

/* ---- Scroll-triggered animation base classes ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-left.animated { opacity: 1; transform: translateX(0); }

.animate-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-right.animated { opacity: 1; transform: translateX(0); }

.animate-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-scale.animated { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---- Hero animations ---- */
.hero-badge { animation: fadeInDown 0.7s ease both; }
.hero-title { animation: fadeInUp 0.8s ease 0.15s both; }
.hero-subtitle { animation: fadeInUp 0.8s ease 0.3s both; }
.hero-actions { animation: fadeInUp 0.8s ease 0.45s both; }
.hero-stats { animation: fadeInUp 0.8s ease 0.6s both; }

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

/* ---- Counter animation ---- */
.counter-number {
  display: inline-block;
}

/* ---- Navbar scroll effect ---- */
.navbar { transition: all 0.35s ease; }

/* ---- Service card hover ---- */
.service-card .service-icon i {
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover .service-icon i {
  transform: scale(1.2) rotate(-5deg);
}

/* ---- Button ripple ---- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 1;
  transition: 0s;
}

/* ---- Image hover zoom ---- */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.img-hover-zoom img {
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.img-hover-zoom:hover img { transform: scale(1.06); }

/* ---- Floating icon animation ---- */
.icon-float { animation: float 3.5s ease-in-out infinite; }
.icon-float-delay { animation: float 3.5s ease-in-out 1.2s infinite; }

/* ---- Pulse animation for CTA ---- */
.pulse-animate {
  animation: pulse-copper 2.5s infinite;
}

/* ---- Loading shimmer ---- */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ---- Testimonial slider ---- */
.testimonial-slider-wrapper {
  position: relative;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 6px;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-300);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.slider-dot.active {
  background: var(--copper);
  width: 24px;
  border-radius: 4px;
}
.slider-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-700);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.slider-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(184,115,51,0.06);
}

/* ---- Progress bars ---- */
.progress-bar-wrap {
  background: var(--grey-200);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Page transitions ---- */
body { animation: fadeIn 0.4s ease; }

/* ---- Icon rotate on hover ---- */
.icon-rotate-hover {
  transition: transform 0.35s ease;
  display: inline-block;
}
.icon-rotate-hover:hover { transform: rotate(20deg); }

/* ---- Sticky sidebar ---- */
@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: 90px;
  }
}

/* ---- Back to top ---- */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(184,115,51,0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 500;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
#back-to-top:hover {
  background: var(--copper-light);
  transform: translateY(-3px);
}
