.performance-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(79, 70, 229, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.performance-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 92, 246, 0.5) 50%, 
        transparent);
}

.benchmark-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.benchmark-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.75rem;
    color: rgba(167, 139, 250, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.performance-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.performance-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(167, 139, 250, 0.6);
    line-height: 1.5;
    margin: 0;
}

.performance-item {
    margin-bottom: 32px;
    transition: transform 0.3s ease;
}

.performance-item:last-child {
    margin-bottom: 0;
}

.performance-item:hover {
    transform: translateX(4px);
}

.performance-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.server-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: left;
    transition: all 0.3s ease;
}

.server-name-best {
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.performance-bar-wrapper {
    flex: 1;
    position: relative;
}

.server-time {
    color: rgba(167, 139, 250, 0.9);
    font-weight: 600;
    font-size: 1.05rem;
    min-width: 80px;
    text-align: right;
    opacity: 0;
    animation: fadeInTime 0.5s ease forwards;
    animation-delay: 1.2s;
}

.server-time-best {
    color: #8b5cf6;
    font-weight: 700;
    font-size: 1.15rem;
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.performance-bar-bg {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.performance-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    position: relative;
    overflow: hidden;
}

.performance-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.bar-apache {
    background: linear-gradient(90deg, 
        rgba(197, 15, 31, 0.5), 
        rgba(210, 40, 57, 0.7));
    box-shadow: 
        0 0 20px rgba(197, 15, 31, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bar-nginx {
    background: linear-gradient(90deg, 
        rgba(0, 150, 57, 0.5), 
        rgba(0, 180, 69, 0.7));
    box-shadow: 
        0 0 20px rgba(0, 150, 57, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bar-carbon {
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0.6), 
        rgba(167, 139, 250, 0.8));
    box-shadow: 
        0 0 25px rgba(139, 92, 246, 0.5),
        0 0 50px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.code-snippets-section {
    background: rgba(0, 0, 0, 0.3);
}

.config-list,
.docker-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.config-list li,
.docker-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.config-list li::before,
.docker-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-size: 1.5rem;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.config-list li:hover,
.docker-list li:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(4px);
}

.config-list li:hover::before,
.docker-list li:hover::before {
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.code-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(79, 70, 229, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
    height: 100%;
}

.code-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.code-title {
    color: #a78bfa;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.code-card pre {
    margin: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    overflow-x: auto;
}

.code-card code {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
}

.code-keyword {
    color: #c678dd;
}

.code-function {
    color: #61afef;
}

.code-string {
    color: #98c379;
}

.code-number {
    color: #d19a66;
}

.code-command {
    color: #e06c75;
}

.code-card pre::-webkit-scrollbar {
    height: 8px;
}

.code-card pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.code-card pre::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 4px;
}

.code-card pre::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

.terminal-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(79, 70, 229, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.terminal-card:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 
        0 12px 20px rgba(139, 92, 246, 0.3),
        0 0 30px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.terminal-button.close {
    background: #ff5f56;
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.4);
}

.terminal-button.minimize {
    background: #ffbd2e;
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.4);
}

.terminal-button.maximize {
    background: #27c93f;
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.4);
}

.terminal-header .code-title {
    color: #a78bfa;
    font-size: 0.85rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 0;
    flex: 1;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.terminal-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin: 0;
}

.terminal-content code {
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.terminal-prompt {
    color: #8b5cf6;
    font-weight: bold;
    user-select: none;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.use-cases-section {
    background: rgba(0, 0, 0, 0.2);
}

.use-case-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(79, 70, 229, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.use-case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(79, 70, 229, 0.08));
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.use-case-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.use-case-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Comparison Table Section */
.comparison-table-section {
    background: rgba(0, 0, 0, 0.3);
}

.comparison-table {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(79, 70, 229, 0.05));
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table thead {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid rgba(139, 92, 246, 0.4) !important;
}

.comparison-table thead th {
    border-bottom: 2px solid rgba(139, 92, 246, 0.4);
    vertical-align: middle;
    font-size: 0.9rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

.comparison-table .carbon-col {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.comparison-table tbody tr:hover .carbon-col {
    background: rgba(139, 92, 246, 0.22);
}

.comparison-table td,
.comparison-table th {
    white-space: nowrap;
}

@media (max-width: 992px) {
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table thead th {
        font-size: 0.8rem;
        padding: 12px 8px !important;
    }
    
    .comparison-table td {
        padding: 12px 8px !important;
    }
}

@media (max-width: 768px) {
    .performance-container {
        padding: 24px;
    }
    
    .benchmark-info {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .benchmark-detail {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .performance-note {
        font-size: 0.75rem;
    }
    
    .performance-row {
        gap: 12px;
    }
    
    .server-name {
        font-size: 0.95rem;
        min-width: 80px;
    }
    
    .server-time {
        font-size: 0.9rem;
        min-width: 65px;
    }
    
    .performance-bar-bg {
        height: 32px;
    }
    
    .performance-item {
        margin-bottom: 24px;
    }

    .code-card code {
        font-size: 0.8rem;
    }
    
    .code-card pre {
        padding: 16px;
    }
    
    .code-header {
        padding: 12px 16px;
    }

    .use-case-card {
        padding: 24px;
    }
    
    .use-case-icon {
        font-size: 2.5rem;
    }

    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table thead th {
        font-size: 0.75rem;
        padding: 10px 6px !important;
    }
    
    .comparison-table td {
        padding: 10px 6px !important;
    }
    
    .comparison-table img {
        width: 20px !important;
    }
}

@media (max-width: 576px) {
    .comparison-table {
        font-size: 0.7rem;
    }
    
    .comparison-table thead th {
        font-size: 0.65rem;
        padding: 8px 4px !important;
    }
    
    .comparison-table td {
        padding: 8px 4px !important;
    }
    
    .comparison-table-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .performance-container {
        padding: 20px;
    }
    
    .benchmark-info {
        margin-bottom: 20px;
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .detail-value {
        font-size: 0.85rem;
    }
    
    .performance-note {
        font-size: 0.7rem;
    }
    
    .performance-row {
        gap: 8px;
    }
    
    .server-name {
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .server-time {
        font-size: 0.8rem;
        min-width: 55px;
    }
    
    .performance-bar-bg {
        height: 28px;
    }
}
