/* Ultra Revolutionary SEO Section 2.0 Styles */

/* Particle Background */
.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    color: rgba(59, 130, 246, 0.1);
    font-size: 14px;
    font-weight: 600;
    animation: float-particle calc(var(--i) * 5s) infinite linear;
    opacity: 0;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(200px) rotate(360deg);
        opacity: 0;
    }
}

/* 3D Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-3d 15s infinite ease-in-out;
    animation-delay: var(--delay);
}

.float-element i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes float-3d {
    0%, 100% {
        transform: translateX(0) translateY(0) translateZ(0) rotateY(0);
    }
    25% {
        transform: translateX(200px) translateY(-100px) translateZ(100px) rotateY(90deg);
    }
    50% {
        transform: translateX(-150px) translateY(50px) translateZ(-50px) rotateY(180deg);
    }
    75% {
        transform: translateX(100px) translateY(100px) translateZ(50px) rotateY(270deg);
    }
}

/* Enhanced Badge */
.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
    }
}

.badge-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.animated-icon {
    animation: rotate-icon 4s infinite linear;
}

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

/* Animated Gradient Text */
.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

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

/* Typing Effect */
.typing-text {
    border-right: 2px solid #3b82f6;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: #3b82f6;
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* Highlight Pulse */
.highlight-pulse {
    animation: highlight-pulse 2s infinite;
}

@keyframes highlight-pulse {
    0%, 100% {
        color: #fbbf24;
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    }
    50% {
        color: #f59e0b;
        text-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
    }
}

/* Underline Animation */
.underline-animation {
    position: relative;
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    animation: underline-grow 2s infinite;
}

@keyframes underline-grow {
    0% {
        width: 0;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

/* Revenue Counter */
.revenue-counter-box {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.counter-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.counter-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.counter-value {
    font-size: 4rem;
    font-weight: 700;
    color: #ef4444;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    font-family: 'Courier New', monospace;
}

.counter-sublabel {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

.counter-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    width: 0;
    animation: progress-grow 24s linear infinite;
}

@keyframes progress-grow {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Stats Bar */
.stats-title {
    text-align: center;
    font-size: 1.25rem;
    color: #3b82f6;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ticker-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.ticker-sparkline {
    margin-top: 0.5rem;
    height: 20px;
}

.ticker-sparkline svg {
    width: 100%;
    height: 100%;
}

.ticker-progress {
    margin-top: 0.5rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    width: var(--progress);
    animation: progress-pulse 2s infinite;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* 3D Card Styles */
.benefits-section {
    padding: 4rem 0;
}

.benefits-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 3rem;
}

.benefits-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.benefit-3d-card {
    position: relative;
    height: 400px;
}

.card-3d-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.benefit-3d-card:hover .card-3d-wrapper {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-front {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-back {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: rotateY(180deg);
}

.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    border-radius: 20px;
    pointer-events: none;
}

.benefit-3d-card:hover .card-shine {
    transform: translateX(100%);
}

.card-icon-3d {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.card-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
}

.hover-indicator {
    position: absolute;
    bottom: 20px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Interactive Calculator */
.interactive-calculator {
    width: 100%;
    padding: 1rem;
}

#roi-slider {
    width: 100%;
    margin: 1rem 0;
}

.roi-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 1rem 0;
}

.roi-input, .roi-output {
    font-size: 1.5rem;
    font-weight: 700;
}

.roi-input {
    color: #3b82f6;
}

.roi-output {
    color: #10b981;
}

/* Timeline Chart */
.timeline-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    padding: 1rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.timeline-bar {
    width: 40px;
    background: linear-gradient(to top, #3b82f6, #a855f7);
    border-radius: 4px 4px 0 0;
    height: var(--height);
    animation: grow-up 1s ease-out;
}

@keyframes grow-up {
    from {
        height: 0;
    }
}

.timeline-month {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    order: 3;
}

.timeline-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #10b981;
    order: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .benefits-3d-grid {
        grid-template-columns: 1fr;
    }

    .impact-metrics {
        grid-template-columns: 1fr;
    }

    .urgency-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
}