/* Advanced Animations and Visual Effects for deep2031 LP */

/* Particle Background Animation */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

/* Glowing Effects - Removed shimmer for better readability */

/* Product Image Enhancements */
.product-image {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

/* Floating points animation removed for cleaner design */

/* Price Animation */
.special-price .price {
    position: relative;
    display: inline-block;
}

.special-price .price::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #ffd93d;
    border-radius: 10px;
    animation: priceGlow 2s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% { 
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Card Hover Effects */
.problem-item,
.result-item,
.feature-card,
.testimonial-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.problem-item:hover,
.result-item:hover,
.feature-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Button Enhancement */
.cta-button,
.final-cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before,
.final-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.cta-button:hover::before,
.final-cta-button:hover::before {
    left: 100%;
}

/* Urgency Badge Animation */
.urgency-badge {
    position: relative;
}

.urgency-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b, #ffd93d);
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 1.5s linear infinite;
    background-size: 300% 300%;
}

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

/* Testimonial Star Animation */
.testimonial-rating i {
    display: inline-block;
    animation: starTwinkle 3s ease-in-out infinite;
}

.testimonial-rating i:nth-child(1) { animation-delay: 0s; }
.testimonial-rating i:nth-child(2) { animation-delay: 0.2s; }
.testimonial-rating i:nth-child(3) { animation-delay: 0.4s; }
.testimonial-rating i:nth-child(4) { animation-delay: 0.6s; }
.testimonial-rating i:nth-child(5) { animation-delay: 0.8s; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Countdown Timer Enhancement */
.timer-item {
    position: relative;
    overflow: hidden;
}

.timer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timer-item:hover::before {
    opacity: 1;
}

.timer-item span {
    position: relative;
    z-index: 2;
}

/* Loading Animation for Images */
.result-image,
.summary-image {
    position: relative;
    overflow: hidden;
}

.result-image::before,
.summary-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    animation: imageShimmer 2s infinite;
}

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 107, 107, 0.2);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    width: 0%;
    transition: width 0.1s ease;
}

/* Mobile Touch Effects */
@media (max-width: 768px) {
    .cta-button:active,
    .final-cta-button:active {
        transform: scale(0.95);
    }
    
    .problem-item:active,
    .result-item:active,
    .feature-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-title .title-accent::before,
    .cta-button::before,
    .final-cta-button::before {
        display: none;
    }
    
    .urgency-badge::after {
        background: currentColor;
    }
}

/* Print Styles */
@media print {
    .hero::before,
    .hero::after,
    .urgency-badge::after,
    .scroll-progress {
        display: none !important;
    }
    
    .cta-button,
    .final-cta-button {
        border: 2px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
}

/* Focus Indicators */
.cta-button:focus,
.final-cta-button:focus {
    outline: 3px solid #ffd93d;
    outline-offset: 3px;
}

.problem-item:focus,
.result-item:focus,
.feature-card:focus,
.testimonial-card:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Loading State Animations */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Success Animation */
.success-checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #28a745;
    position: relative;
    transform: scale(0);
    animation: checkmarkPop 0.5s ease-out forwards;
}

.success-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Error Animation */
.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}