/* Speed Section Specific Styles */
.speed-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.05) 50%, transparent 100%);
}

.speed-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Image Side */
.speed-image {
    position: relative;
}


.speed-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid white;
    background: white;
}

.speed-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(99, 102, 241, 0.1));
    z-index: 1;
    pointer-events: none;
}

.speed-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.speed-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Speed Meter/Gauge */
.speed-meter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    z-index: 3;
    text-align: center;
}

.speed-meter .value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.speed-meter .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.speed-meter .bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.speed-meter .bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
}


/* Floating Speed Badges */
.speed-floating {
    position: absolute;
    background: white;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.speed-floating.nvme {
    top: 15%;
    right: -20px;
    animation-delay: 0s;
}

.speed-floating.cdn {
    bottom: 35%;
    left: -25px;
    animation-delay: 1.5s;
}

.speed-floating.cache {
    top: 50%;
    right: -15px;
    animation-delay: 0.75s;
}

.speed-floating svg {
    width: 22px;
    height: 22px;
}

.speed-floating.nvme svg { color: #ef4444; }
.speed-floating.cdn svg { color: var(--primary-solid); }
.speed-floating.cache svg { color: var(--success); }

.speed-floating span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}


.speed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-solid);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.speed-badge svg {
    width: 16px;
    height: 16px;
}

.speed-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.speed-content h2 span {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.speed-content > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Performance Features */
.speed-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.speed-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.speed-feature:hover {
    border-color: var(--primary-solid);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

.speed-feature .icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.speed-feature .icon-box svg {
    width: 20px;
    height: 20px;
    color: white;
    stroke-width: 2;
}

.speed-feature .info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.speed-feature .info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Comparison Bar */
.speed-comparison {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.speed-comparison h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.speed-comparison h4 svg {
    width: 18px;
    height: 18px;
    color: var(--primary-solid);
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.comparison-item:last-child {
    margin-bottom: 0;
}

.comparison-item .name {
    width: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

.comparison-item .bar-container {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.comparison-item .bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.comparison-item .bar-fill.hostaone {
    background: var(--primary);
    width: 0%;
    animation: fillHost 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

.comparison-item .bar-fill.competitor {
    background: #9ca3af;
    width: 0%;
}



.comparison-item .value {
    width: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
}

/* CTA Buttons */
.speed-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.speed-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.speed-btn.primary {
    background: var(--primary);
    color: white;
}

.speed-btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.speed-btn.secondary {
    background: transparent;
    color: var(--primary-solid);
    border: 2px solid var(--primary-solid);
}

.speed-btn.secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.speed-btn svg {
    width: 18px;
    height: 18px;
}

/* Tech Stack Logos */
.speed-tech {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.speed-tech span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tech-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tech-logo {
    height: 28px;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%);
}

.tech-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .speed-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .speed-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .speed-content {
        order: 2;
    }
    
    .speed-content h2 {
        font-size: 2rem;
    }
    
    .speed-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .speed-cta {
        justify-content: center;
    }
    
    .speed-floating {
        display: none;
    }
    
    .speed-tech {
        justify-content: center;
    }
    
    .speed-meter {
        bottom: 20px;
        padding: 15px 25px;
    }
    
    .speed-meter .value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .speed-section {
        padding: 60px 15px;
    }
    
    .speed-content h2 {
        font-size: 1.75rem;
    }
    
    .speed-btn {
        width: 100%;
        justify-content: center;
    }
    
    .speed-cta {
        flex-direction: column;
    }
    
    .speed-comparison {
        padding: 15px;
    }
    
    .comparison-item .name {
        width: 80px;
        font-size: 0.8rem;
    }
    
    .tech-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
}


