/* OnlyFans Style Income Growth Chart */

.income-chart-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #0a0a0a;
    padding: 120px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.income-chart-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.income-chart-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.income-chart-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #ff264a;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 1px;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(255, 38, 74, 0.15);
    border: 1px solid rgba(255, 38, 74, 0.1);
    overflow: hidden;
}

.chart-svg {
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* Grid lines */
.grid-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

/* Income line with gradient */
.income-line {
    fill: none;
    stroke: url(#incomeGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(255, 38, 74, 0.6));
    will-change: stroke-dasharray;
    transition: stroke-width 0.3s ease;
}

.chart-wrapper:hover .income-line {
    stroke-width: 5;
    filter: drop-shadow(0 0 12px rgba(255, 38, 74, 0.8));
}

/* Gradient fill under line */
.income-area {
    fill: url(#areaGradient);
    opacity: 0.3;
    will-change: opacity;
    transition: opacity 0.3s ease;
}

.chart-wrapper:hover .income-area {
    opacity: 0.4;
}

/* Data points */
.data-point {
    cursor: pointer;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.data-point-circle {
    fill: #ff264a;
    stroke: #fff;
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(255, 38, 74, 0.8));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.data-point:hover .data-point-circle {
    transform: scale(1.5);
    fill: #fff;
    stroke: #ff264a;
    stroke-width: 4;
    filter: drop-shadow(0 0 16px rgba(255, 38, 74, 1));
    r: 8;
}

.data-point:hover ~ .tooltip {
    opacity: 1;
    transform: translateY(-10px);
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: linear-gradient(135deg, #ff264a 0%, #ff4d6d 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(255, 38, 74, 0.4);
    z-index: 1000;
    white-space: nowrap;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ff264a;
}

/* Y-axis labels */
.y-axis-label {
    fill: rgba(255, 255, 255, 0.6);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

/* X-axis labels */
.x-axis-label {
    fill: rgba(255, 255, 255, 0.6);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
}

/* Animated counter */
.income-counter {
    position: absolute;
    top: 40px;
    right: 40px;
    text-align: right;
}

.counter-label {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #ff264a;
    line-height: 1;
}

.counter-suffix {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

/* Pulse animation for active point */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.data-point.active .data-point-circle {
    animation: pulse 2s ease-in-out infinite;
}

/* Scroll reveal animation */
.chart-wrapper {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .income-chart-section {
        padding: 80px 0;
    }
    
    .income-chart-title {
        font-size: 32px;
    }
    
    .chart-wrapper {
        height: 400px;
        padding: 20px;
    }
    
    .income-counter {
        position: static;
        text-align: center;
        margin-top: 30px;
    }
    
    .counter-value {
        font-size: 36px;
    }
}
