/* Attack Surface Overview Section */
.attack-surface-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(10, 15, 31, 0.95) 0%, rgba(13, 20, 40, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.attack-surface-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.attack-surface-section .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.attack-surface-section .section-header i {
    font-size: 3rem;
    color: #0ff;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.attack-surface-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #0ff 0%, #00ff41 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', 'Consolas', monospace;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.chart-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto 40px;
    padding: 40px;
    background: rgba(10, 15, 31, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.chart-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.1) 25%,
        rgba(0, 255, 41, 0.1) 50%,
        rgba(0, 255, 255, 0.1) 75%,
        transparent 100%
    );
    border-radius: 15px;
    z-index: -1;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-legend {
    max-width: 700px;
    margin: 0 auto;
    padding: 25px;
    background: rgba(10, 15, 31, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.legend-color {
    width: 40px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-item span {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', 'Consolas', monospace;
    line-height: 1.5;
}

.chart-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', 'Consolas', monospace;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chart-note i {
    color: #0ff;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .attack-surface-section {
        padding: 100px 0 60px;
    }
    
    .attack-surface-section .section-header {
        margin-bottom: 40px;
    }
    
    .attack-surface-section .section-header i {
        font-size: 2.5rem;
    }
    
    .chart-container {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    .chart-legend {
        padding: 20px 15px;
    }
    
    .legend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chart-note {
        flex-direction: column;
        gap: 8px;
    }
    
    .chart-note i {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .attack-surface-section {
        padding: 80px 0 50px;
    }
    
    .attack-surface-section .section-header i {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .chart-container {
        padding: 20px 10px;
        border-radius: 10px;
    }
    
    .chart-legend {
        padding: 15px 10px;
        border-radius: 8px;
    }
    
    .legend-color {
        width: 30px;
        height: 15px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .attack-surface-section {
        background: #000;
    }
    
    .chart-container {
        border-color: #0ff;
        border-width: 3px;
    }
    
    .section-description,
    .legend-item span,
    .chart-note {
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .attack-surface-section::before,
    .attack-surface-section .section-header i,
    .chart-container::before {
        animation: none;
    }
}
