/* Background container */
#background {
    position: absolute; /* Ensure the background is positioned correctly */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Particle styles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(14,146,148,0) 100%);
    opacity: 0.7;
    transition: transform 0.2s, background 0.2s;
    animation: move 8s infinite;
}

.about-cm {
    text-align: center;
    margin: 0 auto; /* Centers the container */
    padding: 0 5%; /* Adds padding on the sides for spacing */
    max-width: 1200px; /* Set a max width to control the width of the content */
    color: #C9FEFF;
}

.about-cm h1 {
    font-size: 32px;
}

.about-cm p {
    font-size: 24px;
    line-height: 1.6; /* Adjusted line height for better readability */
}

.cm-image1 {
    text-align: center; /* Center-align the image */
    margin-bottom: 40px; /* Add space below the image */
}

.cm-image1 img {
    max-width: 75%; /* Ensure the image fits within the container */
    height: auto; /* Maintain the aspect ratio */
    border-radius: 10px; /* Optional: Add rounded corners */
    margin-bottom: 10rem;
}

.reasons {
    padding: 60px 40px;
    background-color: #031B1B;
    color: #C9FEFF;
    margin: 0 auto;
    max-width: 1200px;
}

.reasons-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.reason-box {
    display: flex;
    align-items: center; /* Align icon and content vertically */
    background-color: #242424;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(201, 254, 255, 0.3);
    transition: box-shadow 0.3s ease;
}

.reason-box:hover {
    box-shadow: 0 0 20px rgba(201, 254, 255, 0.5);
}

.reason-icon {
    font-size: 3em; /* Large icon size */
    color: #0E9294; /* Brand color for the icon */
    margin-right: 50px; /* Space between icon and content */
}

.reason-content {
    flex: 1;
}

.reason-box h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    color: #0E9294;
    margin-bottom: 10px;
}

.reason-box p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
    color: #C9FEFF;
    text-align: justify;
}

@media (max-width: 768px) {
    .reasons {
        padding: 40px 20px;
    }

    .reason-box {
        padding: 15px;
    }

    .reason-icon {
        font-size: 2.5em; /* Slightly smaller icon for tablet view */
    }

    .reason-box h2 {
        font-size: 1.6em;
    }

    .reason-box p {
        font-size: 1em;
    }

    #cm-demo {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .reasons {
        padding: 20px 10px;
    }

    .reason-box {
        flex-direction: column; /* Stack icon on top for mobile view */
        align-items: flex-start; /* Align items to the start */
        padding: 10px;
        text-align: center; /* Center text on mobile */
    }

    .reason-icon {
        font-size: 2em; /* Smaller icon for mobile view */
        margin-right: 0; /* Remove right margin */
        margin-bottom: 10px; /* Add bottom margin for spacing */
    }

    
    .reason-box h2 {
        font-size: 1.4em;
    }


    .reason-box p {
        font-size: 0.9em;
    }

    #cm-demo {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .cm-image1 img {
    max-width: 100%; /* Ensure the image fits within the container */
    
}
}



@keyframes move {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(100vh);
    }
    100% {
        transform: translateY(0);
    }
}