/* Enhanced Thought-Provoking Animations and Effects */

/* Pulse animation for important stats */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
        transform: scale(1.02);
    }
}

/* Shake animation for shocking stats */
@keyframes shake {

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

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px) rotate(-1deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px) rotate(1deg);
    }
}

/* Reveal animation for cards */
@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight text animation */
@keyframes highlight-text {
    from {
        background-size: 0% 100%;
    }

    to {
        background-size: 100% 100%;
    }
}

/* Apply animations to uncomfortable truths cards */
.facts-section>div>div>div {
    animation: reveal-up 0.8s ease-out forwards;
}

.facts-section>div>div>div:nth-child(1) {
    animation-delay: 0.1s;
}

.facts-section>div>div>div:nth-child(2) {
    animation-delay: 0.3s;
}

.facts-section>div>div>div:nth-child(3) {
    animation-delay: 0.5s;
}

/* Hover effects for uncomfortable truths */
.facts-section>div>div>div:hover {
    animation: pulse-glow 2s ease-in-out infinite;
    transform: scale(1.05) rotate(0deg) !important;
    cursor: pointer;
}

/* Animated gradient text for emphasis */
.gradient-text-animated {
    background: linear-gradient(90deg,
            var(--color-danger),
            var(--color-accent),
            var(--color-primary),
            var(--color-danger));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

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

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

/* Quote section styling */
.quote-section blockquote {
    animation: reveal-up 1s ease-out;
}

/* Rhetorical question cards hover */
.quote-section>div>div>div {
    transition: all 0.3s ease;
    cursor: pointer;
}

.quote-section>div>div>div:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Comparison graphic emphasis */
.facts-section ul li {
    transition: all 0.3s ease;
}

.facts-section ul li:hover {
    transform: translateX(10px);
    color: var(--color-text-primary) !important;
}

/* Add subtle breathing effect to critical sections */
@keyframes breathe {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }
}

.section-intro strong {
    animation: breathe 3s ease-in-out infinite;
}

/* Highlighted important numbers */
.stat-highlight {
    position: relative;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(239, 68, 68, 0.3) 50%);
    font-weight: 900;
    color: var(--color-danger);
}

/* Responsive adjustments for thought-provoking elements */
@media (max-width: 768px) {
    .quote-section p {
        font-size: 1.5rem !important;
    }

    .facts-section h2 {
        font-size: 2rem !important;
    }

    .facts-section>div>div {
        grid-template-columns: 1fr !important;
    }

    .facts-section>div>div>div {
        transform: rotate(0deg) !important;
    }
}

/* Add glowing effect to key statistics */
.stat-card:hover {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Evidence locker quote styling */
#evidence blockquote,
#evidence cite {
    animation: reveal-up 1s ease-out 0.5s both;
}

/* Timeline items fade in */
.timeline-item {
    opacity: 0;
    animation: reveal-up 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(7) {
    animation-delay: 0.7s;
}

.timeline-item:nth-child(8) {
    animation-delay: 0.8s;
}