/**
 * NOWAITN Marketing Page Animated Background
 * ==========================================
 * 
 * Single animated background for the entire page.
 * Sections use semi-transparent overlays.
 */

/* Page-level animated background container */
.marketing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #e0e7ff 50%, #f0fdfa 100%);
}

/* Hide animated background below content - create a "floor" */
.marketing-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: inherit;
}

/* Animated shapes */
.marketing-bg .shape {
    position: absolute;
    border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
    opacity: 0.15;
    animation: drift 60s ease-in-out infinite;
}

.marketing-bg .shape-1 {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.marketing-bg .shape-2 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    top: 30%;
    right: -15%;
    animation-delay: -20s;
    animation-direction: reverse;
}

.marketing-bg .shape-3 {
    width: 35vw;
    height: 35vw;
    max-width: 450px;
    max-height: 450px;
    background: linear-gradient(135deg, #06b6d4, #14b8a6);
    bottom: 10%;
    left: 20%;
    animation-delay: -40s;
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(3vw, -3vh) rotate(120deg);
    }
    66% {
        transform: translate(-2vw, 2vh) rotate(240deg);
    }
}

/* Section overlays - semi-transparent to let background show through */
.section-overlay {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(1px);
}

.section-overlay-alt {
    background: rgba(248, 250, 252, 0.9);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marketing-bg .shape {
        animation: none;
    }
}

/* Mobile mockup scaling */
@media (max-width: 1023px) {
    .section-overlay [class*="max-w-"],
    .section-overlay-alt [class*="max-w-"],
    .bg-gradient-to-br [class*="max-w-"] {
        max-width: 100%;
        height: auto;
    }
}

/* Auto-scaling mockup container */
.mockup-auto-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mockup-auto-scale {
    transform-origin: center center;
    transition: transform 0.15s ease-out;
}

/* Desktop - no scaling needed */
@media (min-width: 1024px) {
    .mockup-auto-scale {
        transform: none !important;
    }
}

/* ==========================================
   Mobile Horizontal Slider
   ========================================== */

/* Prevent body scroll when slider is active on mobile */
@media (max-width: 1023px) {
    body:has(.mobile-slider-container) {
        overflow: hidden;
        height: 100svh;
    }
    
    .mobile-slider-container {
        position: fixed;
        top: 64px; /* Below header */
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100svh - 64px);
        overflow: hidden;
        z-index: 10;
        background: #fff; /* Solid background to cover the animated bg */
    }
}

.mobile-slider {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.mobile-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Each slide - direct children of mobile-slider */
.mobile-slider > * {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Mobile slide - only apply height on mobile */
@media (max-width: 1023px) {
    .mobile-slide {
        height: 100%;
        min-height: 100%;
    }
}

/* Dot indicators */
.mobile-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 50;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Swipe hint */
.swipe-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    z-index: 50;
    animation: swipeHintBounce 1s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.swipe-hint i {
    animation: swipeHintPoint 1s ease-in-out infinite;
}

@keyframes swipeHintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes swipeHintPoint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

