/* ============================================
   STUMBLECRUSH APP SHOWCASE SECTION
   Professional animated feature showcase
   ============================================ */

/* Main Showcase Container */
.app-showcase-section {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1a2d50 50%, #0d1f3c 100%);
}

/* City Skyline Background with Blue Filter */
.app-showcase-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, 
      rgba(0, 120, 255, 0.4) 0%, 
      rgba(30, 60, 150, 0.6) 50%,
      rgba(10, 30, 80, 0.9) 100%
    ),
    url('../images/city-skyline.jpg') center bottom / cover no-repeat,
    /* Fallback gradient if image not found */
    linear-gradient(180deg, #0a2463 0%, #1e3a5f 50%, #0d1f3c 100%);
  z-index: 1;
}

/* Animated Gradient Overlay */
.app-showcase-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 180, 255, 0.15) 0%, transparent 60%);
  z-index: 2;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Content Wrapper */
.showcase-content {
  position: relative;
  z-index: 10;
  padding: 60px 0 40px;
}

/* Section Header */
.showcase-header {
  margin-bottom: 20px;
}

.showcase-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

.showcase-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 2px;
}

/* ============================================
   SCROLLING SCREENSHOT STRIP
   ============================================ */

.screenshot-scroll-container {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  z-index: 10;
}

/* Gradient fade on edges */
.screenshot-scroll-container::before,
.screenshot-scroll-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 20;
  pointer-events: none;
}

.screenshot-scroll-container::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 22, 40, 1) 0%, transparent 100%);
}

.screenshot-scroll-container::after {
  right: 0;
  background: linear-gradient(270deg, rgba(10, 22, 40, 1) 0%, transparent 100%);
}

.screenshot-scroll-track {
  display: flex;
  animation: scrollLeft 30s linear infinite;
  width: fit-content;
}

.screenshot-scroll-track:hover {
  animation-play-state: paused;
}

.screenshot-strip {
  height: clamp(300px, 50vh, 500px);
  width: auto;
  flex-shrink: 0;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   FLOATING USER PROFILES
   ============================================ */

.floating-profiles-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.floating-profile {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 180, 255, 0.3);
  overflow: hidden;
  opacity: 0;
  animation: floatAndScroll 20s linear infinite;
}

.floating-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Different sizes */
.floating-profile.size-xs { width: 40px; height: 40px; }
.floating-profile.size-sm { width: 55px; height: 55px; }
.floating-profile.size-md { width: 70px; height: 70px; }
.floating-profile.size-lg { width: 90px; height: 90px; }
.floating-profile.size-xl { width: 110px; height: 110px; }

/* Float animation - right to left */
@keyframes floatAndScroll {
  0% {
    transform: translateX(100vw) translateY(0) scale(0.5);
    opacity: 0;
  }
  5% {
    opacity: 0.7;
    transform: translateX(90vw) translateY(-10px) scale(0.8);
  }
  20% {
    transform: translateX(70vw) translateY(15px) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(40vw) translateY(-20px) scale(1.15);
    opacity: 1;
  }
  80% {
    transform: translateX(10vw) translateY(10px) scale(1);
    opacity: 0.8;
  }
  95% {
    opacity: 0.3;
  }
  100% {
    transform: translateX(-20vw) translateY(0) scale(0.7);
    opacity: 0;
  }
}

/* Staggered delays for different profiles */
.floating-profile:nth-child(1) { top: 8%; animation-delay: 0s; animation-duration: 18s; }
.floating-profile:nth-child(2) { top: 22%; animation-delay: 2s; animation-duration: 22s; }
.floating-profile:nth-child(3) { top: 38%; animation-delay: 4s; animation-duration: 16s; }
.floating-profile:nth-child(4) { top: 55%; animation-delay: 1s; animation-duration: 20s; }
.floating-profile:nth-child(5) { top: 70%; animation-delay: 3s; animation-duration: 24s; }
.floating-profile:nth-child(6) { top: 15%; animation-delay: 5s; animation-duration: 19s; }
.floating-profile:nth-child(7) { top: 45%; animation-delay: 7s; animation-duration: 21s; }
.floating-profile:nth-child(8) { top: 82%; animation-delay: 6s; animation-duration: 17s; }

/* ============================================
   ANIMATED TEXT OVERLAYS
   ============================================ */

.feature-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  text-align: center;
  pointer-events: none;
}

.feature-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 7, 231, 0.5);
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  white-space: nowrap;
}

/* Swing In and Pop animation */
@keyframes popSwingIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.5) rotateX(-20deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1.1) rotateX(5deg);
  }
  70% {
    transform: translateY(5px) scale(0.98) rotateX(-2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

/* Fade out animation */
@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -70%) scale(0.9);
  }
}

/* Feature-specific colors */
.feature-title.missed-connections {
  background: linear-gradient(135deg, #FF07E7, #FF6B6B, #FFE66D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-title.go-live {
  background: linear-gradient(135deg, #00C9FF, #92FE9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-title.insta-dater {
  background: linear-gradient(135deg, #F857A6, #FF5858);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
  .floating-profile.size-xl { width: 80px; height: 80px; }
  .floating-profile.size-lg { width: 65px; height: 65px; }
  
  .screenshot-strip {
    height: clamp(250px, 40vh, 400px);
  }
}

@media (max-width: 768px) {
  .app-showcase-section {
    min-height: auto;
  }
  
  .showcase-content {
    padding: 40px 0 30px;
  }
  
  .screenshot-scroll-container::before,
  .screenshot-scroll-container::after {
    width: 50px;
  }
  
  .screenshot-strip {
    height: clamp(200px, 35vh, 300px);
  }
  
  .floating-profile.size-xl,
  .floating-profile.size-lg { display: none; }
  
  .feature-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
}

@media (max-width: 480px) {
  .screenshot-strip {
    height: 180px;
  }
  
  .feature-title {
    font-size: 1.5rem;
  }
  
  .screenshot-scroll-track {
    animation-duration: 20s;
  }
}

/* ============================================
   UTILITIES & EXTRAS
   ============================================ */

/* Text gradients */
.text-gradient-pink {
  background: linear-gradient(135deg, #FF07E7, #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #00C9FF, #92FE9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Particle effects container */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-100px) translateX(30px);
  }
}

/* Store badges hover effect */
.store-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.store-badge:hover {
  transform: translateY(-3px) scale(1.05);
}
