/* =========================================
   SLIDE 2A: WEB SERVER COMPARISON
   Apple-inspired Premium Design
   ========================================= */

/* Hero Section */
.server-hero {
    text-align: center;
    margin: 1.5rem auto 3rem;
    max-width: 800px;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
}

/* Progress Indicator */
.server-progress {
    margin: 0 auto 3.5rem;
    max-width: 1280px;
    padding: 0 2rem;
}

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.9rem;
}

.progress-caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.progress-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.progress-rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 0;
    padding-top: 0.25rem;
}

.progress-rail::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 14px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 0;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 14px;
    height: 6px;
    width: 33.33%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0A84FF, #06b6d4);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.progress-step {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
}

.progress-step:focus-visible {
    outline: 2px solid rgba(10, 132, 255, 0.65);
    outline-offset: 6px;
    border-radius: 14px;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.step-label {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.25s ease;
}

.progress-step:hover .step-dot {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.progress-step.active .step-dot {
    background: #0A84FF;
    border-color: rgba(10, 132, 255, 0.75);
    box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.12), 0 0 22px rgba(10, 132, 255, 0.45);
}

.progress-step.active .step-label {
    color: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

/* Server Cards Grid */
.server-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(340px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
    margin: 0 auto 4rem;
    max-width: 1280px;
}

.server-comparison-grid .server-card {
    min-height: 560px;
}

.server-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.server-card:hover::before {
    opacity: 1;
}

.nginx-card {
    color: #009639;
}

.apache-card {
    color: #D22128;
}

.caddy-card {
    color: #1F88C0;
}

.server-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.server-card.active {
    border-color: rgba(10, 132, 255, 0.4);
    box-shadow: 0 20px 70px rgba(10, 132, 255, 0.25), 0 0 0 1px rgba(10, 132, 255, 0.2) inset;
    transform: translateY(-10px) scale(1.01);
}

/* Card Header */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    gap: 0.85rem;
}

.server-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 4px;
    transition: transform 0.3s ease;
}

.server-card:hover .server-logo {
    transform: scale(1.1) rotate(5deg);
}

.card-header h3 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.01em;
}

.server-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.metric-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.4rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.metric-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    margin-bottom: 1.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.7rem 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item.warn {
    color: rgba(255, 187, 51, 0.9);
}

.feature-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Use Cases Tags */
.use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.use-case-tag {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.25s ease;
}

.use-case-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
}

/* Comparison Charts Section */
.comparison-chart-section {
    padding: 3.5rem 2rem 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 -2rem 3.5rem;
}

.chart-title {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.chart-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.chart-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.chart-card canvas {
    max-height: 320px;
}

.chart-caption {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    font-weight: 500;
}

/* Why Nginx Section */
.why-nginx-section {
    padding: 0 2rem;
    max-width: 950px;
    margin: 0 auto 2rem;
}

.why-card {
    background: linear-gradient(145deg, rgba(10, 132, 255, 0.08) 0%, rgba(10, 132, 255, 0.02) 100%);
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

.why-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.reason-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reason-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.6rem 1.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: all 0.3s ease;
}

.reason-list li:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(10, 132, 255, 0.3);
    transform: translateX(8px);
}

.reason-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0A84FF, #3b82f6);
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(10, 132, 255, 0.3);
}

.reason-content {
    flex: 1;
}

.reason-content strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: 0;
}

.reason-content p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .server-comparison-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .server-hero {
        margin: 1rem auto 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .server-comparison-grid {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .server-card {
        padding: 1.5rem;
    }
    
    .comparison-chart-section {
        padding: 2rem 1rem;
    }
    
    .why-nginx-section {
        padding: 0 1rem;
    }
    
    .why-card {
        padding: 1.75rem;
    }
    
    .reason-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.server-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.server-card:nth-child(1) {
    animation-delay: 0.1s;
}

.server-card:nth-child(2) {
    animation-delay: 0.2s;
}

.server-card:nth-child(3) {
    animation-delay: 0.3s;
}
