/* =====================
   PREMIUM SCROLL EFFECTS
   ===================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E76D89 0%, #F4A6BA 50%, #FFB4C8 100%);
    transition: width 0.2s ease-out;
    box-shadow: 0 0 20px rgba(231, 109, 137, 0.8),
                0 0 40px rgba(231, 109, 137, 0.4);
}

/* Enhanced Page Load Animation */
body {
    opacity: 1 !important;
}

body.loaded {
    opacity: 1 !important;
}

.hero-content > * {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Animated class for scroll reveals */
.animated {
    animation: revealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Parallax container */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Enhanced hover effects for cards */
.feature-card,
.showcase-item,
.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(231, 109, 137, 0.25);
}

.stat-card:hover {
    transform: translateY(-12px) rotateZ(2deg);
    box-shadow: 0 20px 60px rgba(231, 109, 137, 0.3);
}

/* Magnetic button effect enhancement */
.btn,
.store-button {
    position: relative;
    will-change: transform;
    cursor: pointer;
}

/* Smooth scroll snap for sections */
@media (min-width: 1024px) {
    .features,
    .showcase,
    .stats-section,
    .download-section {
        scroll-snap-align: start;
    }
}

/* Enhanced gradient animations */
.hero-gradient,
.stats-gradient {
    will-change: transform, opacity;
    transition: transform 0.3s ease-out;
}

/* Text reveal animation */
.section-title,
.section-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Phone mockup 3D effect */
.phone-mockup {
    will-change: transform;
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

/* Showcase item enhanced hover */
.showcase-phone {
    position: relative;
    overflow: visible;
}

.showcase-phone::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(231, 109, 137, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
    z-index: -1;
}

.showcase-item:hover .showcase-phone::after {
    opacity: 1;
}

/* Download button shine effect */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Floating animation for icons */
.feature-icon,
.stat-icon {
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.feature-card:hover .feature-icon {
    animation: iconSpin 0.6s ease forwards;
}

@keyframes iconSpin {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-5px) rotate(180deg) scale(1.2);
    }
    100% {
        transform: translateY(0) rotate(360deg) scale(1);
    }
}

/* Section background transitions */
.features,
.showcase,
.stats-section {
    position: relative;
    overflow: hidden;
}

.features::before,
.showcase::before,
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(231, 109, 137, 0.1) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.features:hover::before,
.showcase:hover::before,
.stats-section:hover::before {
    opacity: 1;
}

/* Smooth text selection */
::selection {
    background: rgba(231, 109, 137, 0.3);
    color: var(--dark);
}

::-moz-selection {
    background: rgba(231, 109, 137, 0.3);
    color: var(--dark);
}

/* Enhanced loading state */
.loading {
    pointer-events: none;
    filter: blur(5px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Smooth transitions for all interactive elements */
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Performance optimization */
* {
    -webkit-overflow-scrolling: touch;
}

body, html {
    overflow-x: hidden;
    overflow-y: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

