@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.speedtest-section {
    padding: 40px 0 60px 0;
    background-color: #f8f9fa;
}

.speedtest-banner {
    background: linear-gradient(135deg, #900000 0%, #C20000 50%, #E60000 100%);
    background-size: 300% 300%;
    animation: gradientMove 6s ease infinite;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(194, 0, 0, 0.2);
    border: 2px solid #ffcc00;
    position: relative;
    overflow: hidden;
}

.speedtest-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.speedtest-content h2 {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.speedtest-content p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-speedtest-trigger {
    background: #ffcc00;
    color: #1a1a1a;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-speedtest-trigger:hover {
    transform: translateY(-3px);
    background: #ffe600;
    box-shadow: 0 12px 25px rgba(255, 204, 0, 0.5);
}

.modal-speed-test {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-speed-test.active {
    opacity: 1;
    visibility: visible;
}

.speed-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 850px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-top: 6px solid #C20000;
}

.modal-speed-test.active .speed-modal-content {
    transform: translateY(0);
}

.close-speed-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-speed-modal:hover {
    color: #C20000;
}

.speed-modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.speed-modal-header h2 {
    font-size: 1.8rem;
    font-weight: 850;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.speed-modal-header p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.speed-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.speed-step {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: border-color 0.3s;
}

.speed-step:hover {
    border-color: rgba(194, 0, 0, 0.15);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(194, 0, 0, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C20000;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border: 1px solid rgba(194, 0, 0, 0.05);
}

.speed-step h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.speed-step p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.speed-modal-footer {
    text-align: center;
}

.btn-speedtest-start {
    background: linear-gradient(135deg, #ffcc00 0%, #e6b800 100%);
    color: #1a1a1a;
    text-decoration: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.25);
}

.btn-speedtest-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 204, 0, 0.4);
}

@media (max-width: 768px) {
    .speedtest-banner {
        padding: 40px 20px;
    }
    
    .speedtest-content h2 {
        font-size: 1.8rem;
    }
    
    .speedtest-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .speed-steps-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .speed-modal-content {
        padding: 30px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .speed-modal-header h2 {
        font-size: 1.4rem;
    }
}