html {
    scroll-behavior: smooth;
    /*for scrolloing animation*/
}

.matrix-container {
    width: 80%;
    margin: auto;
    padding: 40px 0;
}

.matrix-container h2 {
    font-family: 'Roboto', Arial, sans-serif;
    color: #000000;
    font-size: 24px;
    margin-bottom: 20px;
}

.matrix-section {
    background: #fff;
    padding: 30px;
    margin: 30px 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.matrix-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 3px 3px rgba(255, 0, 0, 0.837);
}

.matrix-section img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.matrix-section p {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    color: #555;
    animation: slideUp 0.5s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.matrixhub-title-container {
    margin-top: 100px;
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url('../imeges/ourServicesBackground.png');
    /* Replace with your image path */
    background-size: cover;
    background-position: center;
}

.Title-header {
    font-family: 'Roboto', Arial, sans-serif;
    position: absolute;
    top: 20%;
    left: 10%;
    color: white;
    font-size: 3rem;
    animation: slideIn 1.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.home-button {
    position: absolute;
    top: 45%;
    left: 10%;
    padding: 5px 20px;
    /* Added slight vertical padding for better spacing */
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    /* Slightly increased opacity for better visibility */
    background: rgba(0, 0, 0, 0.2);
    /* Added subtle background for better readability */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Optional subtle border */
    border-radius: 8px;
    /* Slightly increased border-radius for smoother corners */
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    /* Smooth transition for hover effects */
}

.home-button:hover {
    color: #ffffff;
    /* Text turns white on hover */
    background: #1443ff;
    /* Background turns blue on hover */
    border-color: #1443ff;
    /* Border matches background on hover */
}