/* home.css - Optimized & Cleaned Version */

/* Body, font & background */
html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: transparent !important;
}

/* PARTICLES BACKGROUND */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #0b0f19;
}

/* Header */
header {
    background: rgb(255 255 255 / 0%); /* see-through red */
    color: #fff;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Navbar */
.nav-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4caf5000;
    padding: 15px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-desktop a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.nav-desktop a:hover {
    background-color: #fff;
    color: #0d6efd;
}

/* Packages Section */
.packages {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.card {
    background: #FF0000;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Ping Section */
.ping-container,
.ping-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.ping-card {
    background-color: #FF0000;
    border-radius: 12px;
    width: 150px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.ping-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.ping-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.ping-card .ping-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
}

/* Speed Test */
.speed-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.speed-item {
    background: #FF0000;
    width: 180px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.speed-item h3 {
    margin-bottom: 10px;
}

.speed-item p {
    font-size: 1.6rem;
    font-weight: bold;
    color: #0d6efd;
}

.speed-btn {
    background: #0d6efd;
    color: #FF0000;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.speed-btn:hover {
    background: #084298;
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Sections general */
section {
    position: relative;
    z-index: 1;
    color: #fff;
    background-color: transparent !important;
    padding: 40px 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    header, footer {
        text-align: center;
        padding: 20px;
    }

    .packages {
        flex-direction: column;
        gap: 15px;
    }

    .card {
        width: 90%;
        margin: 0 auto;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }

    .nav-desktop {
        flex-direction: column;
        gap: 10px;
    }

    .ping-card {
        width: 45%;
        margin: 0 auto;
    }

    .ping-container {
        gap: 10px;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ping-card {
        width: 90%;
    }
}