/* ============================================
   NUCLEAR UPGRADE — In-Tents Events
   Phase 1: Quick Wins + Phase 2 Visual Upgrades
   ============================================ */

/* --- 1. Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #F22490, #F2EC00);
  z-index: 99999;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* --- 2. Button Micro-Animations --- */
.pack-add-btn,
.cta-btn,
[class*="btn"]:not(.mobile-menu-btn):not(.mobile-close-btn) {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.pack-add-btn:hover,
.cta-btn:hover,
a[style*="background"][style*="F22490"]:hover,
a[style*="background"][style*="f22490"]:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(242, 36, 144, 0.35) !important;
}

.pack-add-btn:active,
.cta-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Ripple effect on click */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- 3. Animated Counter Stats --- */
.stat-counter {
  display: inline-block;
}

.stat-counter.animate {
  animation: counter-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes counter-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- 4. Loading Skeleton Screens --- */
.skeleton-loading {
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

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

/* --- 5. Toast Notifications --- */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .toast-container {
    top: auto;
    bottom: 100px;
    right: 16px;
    left: 16px;
  }
}

.toast {
  background: #1a1a1a;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  max-width: 380px;
  border-left: 4px solid #F22490;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- 7. Glassmorphism Cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Service cards glassmorphism hover */
.service-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease !important;
}

.service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 60px rgba(242, 36, 144, 0.12) !important;
}

/* --- 8. Scroll Progress + Reveal Animations --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- 9. Magnetic Cursor Effect (desktop only) --- */
@media (hover: hover) and (pointer: fine) {
  .magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }
}

/* --- 10. Kinetic Typography — Hero Headline --- */
.hero-content h1 .kinetic-word {
  display: inline-block;
  opacity: 0;
  color: white !important;
  -webkit-text-fill-color: white !important;
  transform: translateY(40px) rotateX(-40deg);
  animation: kinetic-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes kinetic-in {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Glow on brand words */
.kinetic-word.brand-word {
  background: linear-gradient(135deg, #F22490, #F2EC00) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 12px rgba(242, 36, 144, 0.4));
}

/* --- 11. Testimonial Carousel --- */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  overflow: hidden;
  min-height: 220px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px;
  text-align: center;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.testimonial-slide.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: #F22490;
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 1rem;
  margin-bottom: 4px;
}

.testimonial-stars {
  color: #F2EC00;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: #F22490;
  transform: scale(1.3);
}

.testimonial-progress {
  width: 100%;
  height: 3px;
  background: #eee;
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
}

.testimonial-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #F22490, #F2EC00);
  width: 0%;
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  .testimonial-carousel {
    margin: 20px auto;
    min-height: 260px;
  }
  .testimonial-slide {
    padding: 20px 16px;
  }
  .testimonial-quote {
    font-size: 1rem;
  }
}

/* --- 12. Logo Glow on Mobile --- */
@media (hover: none) {
  .logo {
    animation: logo-glow 3s ease-in-out infinite;
  }
  .logo img {
    filter: brightness(1.15);
  }
}

@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.3)) drop-shadow(0 0 12px rgba(242, 36, 144, 0.15));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 24px rgba(242, 36, 144, 0.3));
  }
}

/* --- 13. Back-to-Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #F22490, #b01a6b);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(242, 36, 144, 0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 6px 24px rgba(242, 36, 144, 0.6);
  transform: translateY(-2px) scale(1.08);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* --- 14. Image Lazy-Load Blur-Up --- */
img[loading="lazy"] {
  filter: blur(8px);
  transition: filter 0.6s ease;
}

img[loading="lazy"].img-loaded {
  filter: blur(0);
}

/* --- Respect system motion preference --- */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
  .toast {
    transition: none;
  }
}
