/* ============================================
   SCROLL ANIMATIONS - Premium Effects
   Optimized for Mobile & Desktop
   ============================================ */

/* Base Animation Classes */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.scroll-animate.animated {
    opacity: 1;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .scroll-animate,
    .parallax-element,
    .floating-element,
    .glow-element {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .scroll-animate {
        opacity: 1 !important;
    }
}

/* ============================================
   FADE ANIMATIONS
   ============================================ */

/* Fade Up - Default */
.fade-up {
    transform: translateY(60px);
}

.fade-up.animated {
    transform: translateY(0);
}

/* Fade Down */
.fade-down {
    transform: translateY(-60px);
}

.fade-down.animated {
    transform: translateY(0);
}

/* Fade Left */
.fade-left {
    transform: translateX(-60px);
}

.fade-left.animated {
    transform: translateX(0);
}

/* Fade Right */
.fade-right {
    transform: translateX(60px);
}

.fade-right.animated {
    transform: translateX(0);
}

/* Fade Scale */
.fade-scale {
    transform: scale(0.8);
}

.fade-scale.animated {
    transform: scale(1);
}

/* Fade Rotate */
.fade-rotate {
    transform: rotate(-10deg) scale(0.9);
}

.fade-rotate.animated {
    transform: rotate(0deg) scale(1);
}

/* ============================================
   SLIDE ANIMATIONS
   ============================================ */

/* Slide In From Top */
.slide-in-top {
    transform: translateY(-100%);
    opacity: 0;
}

.slide-in-top.animated {
    transform: translateY(0);
    opacity: 1;
}

/* Slide In From Bottom */
.slide-in-bottom {
    transform: translateY(100%);
    opacity: 0;
}

.slide-in-bottom.animated {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   ZOOM ANIMATIONS
   ============================================ */

/* Zoom In */
.zoom-in {
    transform: scale(0.5);
    opacity: 0;
}

.zoom-in.animated {
    transform: scale(1);
    opacity: 1;
}

/* Zoom Out */
.zoom-out {
    transform: scale(1.3);
    opacity: 0;
}

.zoom-out.animated {
    transform: scale(1);
    opacity: 1;
}

/* ============================================
   FLIP ANIMATIONS
   ============================================ */

/* Flip In X */
.flip-in-x {
    transform: perspective(1000px) rotateX(90deg);
    opacity: 0;
}

.flip-in-x.animated {
    transform: perspective(1000px) rotateX(0);
    opacity: 1;
}

/* Flip In Y */
.flip-in-y {
    transform: perspective(1000px) rotateY(90deg);
    opacity: 0;
}

.flip-in-y.animated {
    transform: perspective(1000px) rotateY(0);
    opacity: 1;
}

/* ============================================
   BOUNCE ANIMATIONS
   ============================================ */

.bounce-in {
    transform: scale(0.3);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.animated {
    transform: scale(1);
    opacity: 1;
}

/* ============================================
   STAGGER ANIMATIONS (for grids/lists)
   ============================================ */

.stagger-1 {
    transition-delay: 0.1s !important;
}

.stagger-2 {
    transition-delay: 0.2s !important;
}

.stagger-3 {
    transition-delay: 0.3s !important;
}

.stagger-4 {
    transition-delay: 0.4s !important;
}

.stagger-5 {
    transition-delay: 0.5s !important;
}

.stagger-6 {
    transition-delay: 0.6s !important;
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */

.parallax-container {
    overflow: hidden;
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: -1;
}

.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.floating-element {
    animation: floatUpDown 4s ease-in-out infinite;
}

.floating-element-slow {
    animation: floatUpDown 6s ease-in-out infinite;
}

.floating-element-fast {
    animation: floatUpDown 2.5s ease-in-out infinite;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-element-rotate {
    animation: floatAndRotate 5s ease-in-out infinite;
}

@keyframes floatAndRotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(3deg);
    }

    50% {
        transform: translateY(-15px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

/* ============================================
   GLOW EFFECTS
   ============================================ */

.glow-element {
    position: relative;
}

.glow-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 49, 49, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
    z-index: -1;
    border-radius: inherit;
}

.glow-element.animated::before {
    transform: translate(-50%, -50%) scale(1.5);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.3);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* ============================================
   GRADIENT ANIMATIONS
   ============================================ */

.gradient-shift {
    background: linear-gradient(135deg,
            #ff3131 0%,
            #ff6b6b 25%,
            #667eea 50%,
            #764ba2 75%,
            #ff3131 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   TEXT REVEAL ANIMATIONS
   ============================================ */

.text-reveal {
    overflow: hidden;
}

.text-reveal .text-reveal-content {
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.text-reveal.animated .text-reveal-content {
    transform: translateY(0);
}

/* Split text animation */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-text.animated .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */

.counter-animate {
    font-variant-numeric: tabular-nums;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff3131, #667eea, #ff6b6b);
    z-index: 10000;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease;
}

/* ============================================
   SECTION TRANSITION EFFECTS
   ============================================ */

.section-reveal {
    position: relative;
    overflow: hidden;
}

.section-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff3131, #667eea);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.section-reveal.animated::before {
    transform: translateX(100%);
}

/* ============================================
   CARD HOVER EFFECTS (Enhanced on Scroll)
   ============================================ */

.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-3d-inner {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(10deg) rotateX(5deg);
}

/* ============================================
   MORPHING SHAPES
   ============================================ */

.morph-shape {
    animation: morphShape 8s ease-in-out infinite;
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 50% 50% 40% 60% / 40% 70% 60% 30%;
    }

    75% {
        border-radius: 40% 60% 50% 50% / 60% 40% 50% 60%;
    }
}

/* ============================================
   PULSE EFFECTS
   ============================================ */

.pulse-effect {
    animation: pulseEffect 2s ease-in-out infinite;
}

@keyframes pulseEffect {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 49, 49, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(255, 49, 49, 0);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 49, 49, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 49, 49, 0.5), 0 0 60px rgba(255, 49, 49, 0.3);
    }
}

/* ============================================
   PARTICLE EFFECTS (CSS-only)
   ============================================ */

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

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff3131, #ff6b6b);
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat 15s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 19s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 21s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 23s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 0.5s;
    animation-duration: 16s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 3.5s;
    animation-duration: 24s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-indicator-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-indicator-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.3;
    }
}

.scroll-indicator-text {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scroll-indicator-arrows span {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: scrollArrow 1.5s ease-in-out infinite;
}

.scroll-indicator-arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator-arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollArrow {

    0%,
    100% {
        opacity: 0.3;
        transform: rotate(45deg) translateY(0);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) translateY(3px);
    }
}

/* ============================================
   TILT EFFECT STYLES
   ============================================ */

.tilt-effect {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.tilt-effect:hover {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale3d(1.02, 1.02, 1.02);
}

/* ============================================
   MAGNETIC BUTTON EFFECT
   ============================================ */

.magnetic-btn {
    position: relative;
    transition: transform 0.3s ease;
}

.magnetic-btn-inner {
    transition: transform 0.3s ease;
}

/* ============================================
   REVEAL LINE EFFECT
   ============================================ */

.reveal-line {
    position: relative;
    overflow: hidden;
}

.reveal-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff3131, #667eea);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-line.animated::after {
    transform: translateX(0);
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {

    /* Reduce animation intensity on mobile */
    .fade-up,
    .fade-down {
        transform: translateY(40px);
    }

    .fade-left,
    .fade-right {
        transform: translateX(40px);
    }

    .zoom-in {
        transform: scale(0.7);
    }

    .zoom-out {
        transform: scale(1.2);
    }

    /* Disable heavy effects on mobile */
    .flip-in-x,
    .flip-in-y {
        transform: none;
        opacity: 0;
    }

    .flip-in-x.animated,
    .flip-in-y.animated {
        opacity: 1;
    }

    /* Simplify floating animations */
    .floating-element,
    .floating-element-slow,
    .floating-element-fast {
        animation-duration: 6s;
    }

    @keyframes floatUpDown {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    /* Reduce particle count visually */
    .particle:nth-child(n+6) {
        display: none;
    }

    /* Optimize scroll indicator for mobile */
    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator-mouse {
        width: 22px;
        height: 34px;
    }

    /* Disable tilt on mobile (uses touch) */
    .tilt-effect:hover {
        transform: none;
    }

    /* Smaller glow effect */
    .glow-element.animated::before {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ============================================
   SCROLL-TRIGGERED COUNTER STYLES
   ============================================ */

.count-up {
    font-variant-numeric: tabular-nums;
}

/* ============================================
   SECTION HEADERS WITH ANIMATIONS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff3131, #667eea);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header.animated h2::after {
    width: 80px;
    left: calc(50% - 40px);
}

/* ============================================
   SHIMMER EFFECT
   ============================================ */

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ============================================
   Dark Mode Adaptations
   ============================================ */

@media (prefers-color-scheme: dark) {
    .glow-element::before {
        background: radial-gradient(circle, rgba(255, 107, 107, 0.4) 0%, transparent 70%);
    }

    .particle {
        background: linear-gradient(135deg, #ff6b6b, #ffa8a8);
    }

    .scroll-indicator-mouse {
        border-color: #e2e8f0;
    }

    .scroll-indicator-text {
        color: #a0aec0;
    }
}

/* ============================================
   LANDING PAGE SPECIFIC ANIMATIONS
   ============================================ */

/* Hero Section Enhanced Animations */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
            rgba(255, 49, 49, 0.08) 0%,
            transparent 50%);
    animation: heroGradientRotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroGradientRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hero Title Gradient Animation */
.hero-title .highlight {
    background: linear-gradient(135deg,
            #ff3131 0%,
            #ff6b6b 20%,
            #667eea 40%,
            #764ba2 60%,
            #ff3131 80%,
            #ff6b6b 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleGradient 4s ease infinite;
}

@keyframes heroTitleGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Hero Badge Sparkle Effect */
.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 25%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.4) 75%,
            transparent 100%);
    animation: badgeSparkle 3s ease-in-out infinite;
}

@keyframes badgeSparkle {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Phone Mockup 3D Floating */
.phone-mockup {
    transform-style: preserve-3d;
    animation: phoneMockupFloat 6s ease-in-out infinite;
    perspective: 1000px;
}

@keyframes phoneMockupFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg) rotateX(5deg);
    }

    25% {
        transform: translateY(-10px) rotateY(0deg) rotateX(3deg);
    }

    50% {
        transform: translateY(-15px) rotateY(5deg) rotateX(0deg);
    }

    75% {
        transform: translateY(-10px) rotateY(0deg) rotateX(-3deg);
    }
}

/* Phone Screen Glow */
.phone-screen {
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(ellipse at center,
            rgba(102, 126, 234, 0.2) 0%,
            transparent 60%);
    animation: phoneScreenGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes phoneScreenGlow {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Stats Counter Entrance */
.hero-stats .stat {
    opacity: 0;
    transform: translateY(30px);
    animation: statEntrance 0.6s ease forwards;
}

.hero-stats .stat:nth-child(1) {
    animation-delay: 0.4s;
}

.hero-stats .stat:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-stats .stat:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-stats .stat:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes statEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    60% {
        transform: translateY(-5px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stat Number Glow on Hover */
.stat-number {
    transition: all 0.3s ease;
}

.stat:hover .stat-number {
    text-shadow: 0 0 30px rgba(255, 49, 49, 0.5);
    transform: scale(1.1);
}

/* Feature Cards Glass Morphism Enhancement */
.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(255, 49, 49, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Feature Icon Bounce */
.feature-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-icon i {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(0.9);
    }
}

/* Success Stories Cards */
.story-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff3131, #667eea, #ff6b6b);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.story-card:hover::before {
    transform: scaleX(1);
    animation: gradientSlide 2s linear infinite;
}

@keyframes gradientSlide {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Story Avatar Pulse */
.story-avatar {
    position: relative;
}

.story-avatar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(255, 49, 49, 0.3);
    border-radius: 50%;
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* Use Cases Cards Wave Effect */
.case-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.case-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 49, 49, 0.1) 100%);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.case-card:hover::after {
    transform: translateY(0);
}

.case-card:hover {
    transform: translateY(-8px);
}

/* Case Icon Rotation */
.case-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-icon {
    transform: rotateY(360deg);
}

/* Pricing Cards Spotlight */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -100%);
    left: var(--mouse-x, -100%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
            rgba(255, 49, 49, 0.15) 0%,
            transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Featured Card Special Glow */
.pricing-card.featured,
.premium-card.featured,
.payment-access-card.featured,
.domain-card.featured,
.demo-store-card.featured {
    position: relative;
}

.pricing-card.featured::after,
.premium-card.featured::after,
.payment-access-card.featured::after,
.domain-card.featured::after,
.demo-store-card.featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
            #ff3131 0%,
            #ff6b6b 25%,
            #667eea 50%,
            #764ba2 75%,
            #ff3131 100%);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: featuredGlow 4s ease infinite;
}

@keyframes featuredGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* CTA Section Pulse Background */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
            rgba(255, 49, 49, 0.15) 0%,
            transparent 70%);
    transform: translate(-50%, -50%) scale(0.5);
    animation: ctaPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
}

/* Demo Store Cards Hover */
.demo-store-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-store-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.demo-store-icon {
    transition: all 0.5s ease;
}

.demo-store-card:hover .demo-store-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 40px rgba(255, 49, 49, 0.3);
}

/* Enterprise Cards Slide In */
.enterprise-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.enterprise-card:hover {
    transform: translateX(8px);
    box-shadow: -8px 0 30px rgba(255, 49, 49, 0.1);
}

.enterprise-icon {
    transition: all 0.4s ease;
}

.enterprise-card:hover .enterprise-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, #ff3131, #667eea);
}

.enterprise-card:hover .enterprise-icon i {
    color: white !important;
}

/* Section Headers Animation */
.section-header {
    position: relative;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff3131, #667eea);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header.animated h2::before {
    width: 100%;
}

/* Trust Badge Hover */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Social Proof Items Animation */
.social-proof-item {
    transition: all 0.3s ease;
}

.social-proof-item:hover {
    transform: scale(1.05);
}

.social-proof-item i {
    transition: all 0.3s ease;
}

.social-proof-item:hover i {
    color: var(--primary-color);
    transform: rotate(10deg);
}

/* Footer Section Entrance */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ff3131, #667eea, #ff6b6b, transparent);
    animation: footerLineGlow 3s ease infinite;
}

@keyframes footerLineGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Footer Links Hover */
.footer a {
    position: relative;
    transition: all 0.3s ease;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer a:hover::after {
    width: 100%;
}

/* Social Links Animation */
.social-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-links a:hover {
    transform: translateY(-5px) rotate(-5deg);
}

/* Mobile Touch Feedback */
@media (max-width: 768px) {

    .feature-card:active,
    .story-card:active,
    .case-card:active,
    .pricing-card:active,
    .demo-store-card:active {
        transform: scale(0.98);
    }

    /* Simplified floating for mobile */
    .phone-mockup {
        animation: phoneMockupFloatMobile 4s ease-in-out infinite;
    }

    @keyframes phoneMockupFloatMobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    /* Reduce glow intensity on mobile */
    .pricing-card.featured::after,
    .premium-card.featured::after {
        opacity: 0.5;
    }

    /* Simpler hero animation for mobile */
    .hero::after {
        animation: none;
        opacity: 0.5;
    }
}