/* Data Freshness Page Styles */

.data-freshness {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--dark-text);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-width: 100%;
    height: auto;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--dark-text);
    line-height: 1.6;
}

/* Process Section */
.process-section {
    margin-bottom: 80px;
}

.process-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: var(--neutral-color);
    z-index: 0;
}

.process-step {
    flex: 1;
    min-width: 180px;
    padding: 0 15px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    opacity: 1;
    animation: dfStep 8s ease-in-out infinite;
}

/* Stagger the container animations */
.process-steps .process-step:nth-child(1) { animation-delay: 0s; }
.process-steps .process-step:nth-child(2) { animation-delay: 0.4s; }
.process-steps .process-step:nth-child(3) { animation-delay: 0.8s; }
.process-steps .process-step:nth-child(4) { animation-delay: 1.2s; }
.process-steps .process-step:nth-child(5) { animation-delay: 1.6s; }

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    transform: scale(1);
    animation: dfPulse 8s ease-in-out infinite;
}

.process-steps .process-step:nth-child(1) .step-number { animation-delay: 0.2s; }
.process-steps .process-step:nth-child(2) .step-number { animation-delay: 0.6s; }
.process-steps .process-step:nth-child(3) .step-number { animation-delay: 1.0s; }
.process-steps .process-step:nth-child(4) .step-number { animation-delay: 1.4s; }
.process-steps .process-step:nth-child(5) .step-number { animation-delay: 1.8s; }

.process-step h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.process-step p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark-text);
}

@keyframes dfStep {
    0% {
        opacity: 0.3;
        transform: translateY(0) scale(0.95);
    }
    12.5% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }
    25% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    87.5% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0.3;
        transform: translateY(0) scale(0.95);
    }
}

@keyframes dfPulse {
    0% {
        transform: scale(1);
        background-color: var(--primary-color);
    }
    12.5% {
        transform: scale(1.15);
        background-color: var(--accent-color);
    }
    25% {
        transform: scale(1);
        background-color: var(--primary-color);
    }
    87.5% {
        transform: scale(1);
        background-color: var(--primary-color);
    }
    100% {
        transform: scale(1);
        background-color: var(--primary-color);
    }
}

/* Stats Section */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 60px;
    background-color: var(--neutral-color);
    padding: 40px;
    border-radius: 8px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    min-width: 150px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-step {
        flex: 0 0 50%;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex: 0 0 100%;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-card {
        width: 100%;
    }
}
