.matrixSection {
    width: 100vw;
    background: linear-gradient(261.19deg, #0E0E15 -0.72%, #545454 38.95%, #201D25 65.44%, #000000 97.27%);
    position: relative;
    padding: 40px 20px;
    /* Add padding for spacing */
    box-sizing: border-box;
    overflow: hidden;
    /* Prevent content overflow */
}

.matrixBox {
    width: 85%;
    /* Adjusted for better spacing */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.Matrixheader {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.Matrixheader p {
    font-size: 14px;
    /* Slightly larger for readability */
    margin-bottom: 10px;
    /* Spacing below subheader */
}

.Matrixheader h1 {
    font-size: 2.5vw;
    /* Responsive font size */
    line-height: 1.3;
    /* Improve line spacing */
    margin: 0;
}

.MatrixCardsBox {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Reduced gap for smaller screens */
    justify-content: center;
    margin-bottom: 5rem;
}

.MatrixCard {
    color: white;
    width: 20vw;
    /* Responsive width */
    height: 15.5rem;
    /* Allow height to adjust */
    background: linear-gradient(180deg, #36363E 0%, #292930 100%);
    box-shadow: 0px 0px 10px 0px rgba(255, 106, 0, 1);
    border: 1px solid rgba(255, 106, 0, 1);
    border-radius: 20px;
    /* Slightly reduced border-radius */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    /* Added padding for better spacing */
    box-sizing: border-box;
    transition: transform 0.3s ease;
    /* Smooth hover effect */
}

.MatrixCard:hover {
    transform: translateY(-5px);
    /* Lift effect on hover */
}

.MatrixCard img {
    width: 15vw;
    /* Responsive image size */
    max-width: 80px;
    /* Max size to maintain proportion */
    margin-top: 1rem;
}

.MatCardText {
    text-align: center;
    font-size: 1.2vw;
    /* Responsive font size */
    font-weight: bold;
    margin: 11px 0 5px;
    /* Adjusted margin for better spacing */
}

.MatCardTextSmall {
    font-weight: normal;
    font-size: 1vw;
    /* Responsive font size */
    margin: 0;
}

.matrixBlack {
    position: absolute;
    top: -5%;
    left: 0%;
    z-index: 1;
    width: 15vw;
    /* Responsive size */
    height: auto;
}
.whiteStar {
position: absolute;
    top: 38%;
    left: 10%;
    z-index: 1;
    width: 48px;
    height: auto;
}

/* Media Queries for Better Responsiveness */

@media (max-width: 1024px) {
    .Matrixheader h1 {
        font-size: 4vw;
        /* Larger font for tablets */
    }

    .MatrixCard {
        width: 22vw;
    }

    .MatrixCard img {
        width: 12vw;
    }

    .MatCardText {
        font-size: 1.5vw;
    }

    .MatCardTextSmall {
        font-size: 1.2vw;
    }

    .matrixBlack {
        width: 20vw;
    }
}

@media (max-width: 768px) {
    .Matrixheader h1 {
        font-size: 5vw;
        /* Adjust header size for tablets */
    }

    .MatrixCard {
        width: 40vw;
    }

    .MatrixCard img {
        width: 18vw;
    }

    .MatCardText {
        font-size: 2vw;
    }

    .MatCardTextSmall {
        font-size: 1.5vw;
    }

    .matrixBlack {
        width: 25vw;
        /* Adjust image size */
    }
}

@media (max-width: 480px) {
    .Matrixheader h1 {
        font-size: 6vw;
        /* Smaller size for mobile */
    }

    .MatrixCardsBox {
        gap: 15px;
        /* Reduce gap for mobile */
    }

    .MatrixCard {
        width: 80vw;
    }

    .MatrixCard img {
        width: 30vw;
    }

    .MatCardText {
        font-size: 18px;
    }

    .MatCardTextSmall {
        font-size: 11px;
    }

    .matrixBlack {
        width: 30vw;
        /* Adjust image size for mobile */
    }
}