/* Performance Section */
.performance {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.3) 50%, transparent 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle tech grid background for performance section */
.performance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    z-index: -1;
    opacity: 0.5;
}

.perf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.perf-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.perf-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.perf-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.perf-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.perf-features svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.perf-chart {
    background: rgba(13, 18, 31, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    position: relative;
}

/* Chart Bars */
.chart-bar {
    margin-bottom: 24px;
}

.chart-bar:last-child {
    margin-bottom: 0;
}

.bar-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.bar-track {
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

/* Colors */
.bar-fill.other {
    background: #ef4444;
    width: 0;
}

/* Start at 0 for animation */
.bar-fill.ide {
    background: #eab308;
    width: 0;
}

.bar-fill.antnote {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    width: 0;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.bar-value {
    margin-left: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    z-index: 2;
    position: absolute;
    right: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.chart-bar.highlight .bar-label {
    color: var(--primary-light);
    font-weight: 600;
}

/* Spotlight Effect */
.feature-card {
    position: relative;
    overflow: hidden;
    /* For pseudo-element spotlight */
}

/* Optional: Mobile adjustments */
@media (max-width: 768px) {
    .perf-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}