/* Chart Section Enhanced Styles */

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation application */
.chart-item {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.chart-item:nth-child(odd) .chart-box__image {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.chart-item:nth-child(odd) .chart-box__content {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.chart-item:nth-child(even) .chart-box__image {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.chart-item:nth-child(even) .chart-box__content {
    animation: fadeInLeft 0.8s ease-out 0.4s both;
}

.chart-item {
    margin-bottom: 3rem;
}

.chart-box__image {
    height: 300px;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fff5;
}

.chart-box__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-box__image:hover::before {
    opacity: 1;
}

.chart-box__content {
    position: relative;
}

.chart-box__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #9acd32, #48a75f);
    border-radius: 2px 0 0 2px;
}

.chart-box__content h3 {
    position: relative;
    padding-left: 1.5rem;
}

.chart-box__content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9acd32;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #9acd32;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .chart-item {
        text-align: center;
    }
    
    .chart-box__image {
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .chart-box__content {
        padding: 2rem 1.5rem;
    }
    
    .chart-box__content h3::before {
        left: 50%;
        top: -20px;
        transform: translateX(-50%);
    }
    
    .chart-box__content h3 {
        padding-left: 0;
        padding-top: 1rem;
    }
    
    .chart-box__content::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
        border-radius: 2px 2px 0 0;
    }
}
