.container {
    width: 100% !important;
    margin: 0;
    padding: 0;
}

.gradient-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 70px;
    width: 100%;
    margin-bottom: 100px;
}

.card {
    flex: 1 1 calc(50% - 32px);
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.container-card {
    position: relative;
    border: 2px solid transparent;
    /* border-radius: 20px; */
    background-image: linear-gradient(135deg, #29323c 10%, #485563 100%);
    background-clip: padding-box;
    padding: 40px;
    flex-grow: 1;
    transition: border-color 0.3s ease;
}

.card:hover .container-card {
    border-color: #35d779;
}

/* Title Container Styles */
.container-title {
    text-align: center;
    padding: 0 !important;
    margin-bottom: 40px;
    background-color: #00000000;
    font-size: 40px;
    color: #fff;
    font-weight: 600;
    line-height: 60px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container-title .container-title-span1,
.container-title .container-title-span2 {
    position: relative;
    text-decoration: none;
    transition: color 0.7s ease;
    display: inline-block;
}


.card-title {
    font-weight: 600;
    color: white;
    letter-spacing: -0.02em;
    line-height: 40px;
    font-style: normal;
    font-size: 28px;
    padding-bottom: 8px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    text-decoration: none;
    transition: color 0.7s ease;
    display: inline-block;
}

.card-title::after {
    content: "";
    display: block;
    margin-top: 10px;
    margin-left: 2px;
    height: 3px;
    width: 40px;
    background: #35d779;
    transition: width 0.3s;
    position: absolute;
    left: 0;
}

.card:hover .card-title {
    color: #35d779;
}

.card-description {
    font-weight: 600;
    line-height: 32px;
    color: rgba(216, 216, 216, 0.845);
    font-size: 16px;
    max-width: 470px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Background Layers */
.conttagline {
    z-index: 2;
    position: relative;
    margin: 0;
    height: fit-content;
    overflow-x: hidden;
    padding: 0;
    width: 100%;
}

.neural-network {
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: -1;
    background-color: #00000000;
    overflow: hidden;
}

.canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

@media screen and (min-width: 1600px) {
    .card {
        flex: 1 1 calc(30% - 32px); /* Three cards per row for wider screens */
        max-width: 550px !important;
    }
    .gradient-cards {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .card {
        flex: 1 1 calc(100%); /* Single card per row on medium screens */
    }
    .gradient-cards {
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 700px) {
    .container-title {
        font-size: 4.5vw;
        line-height: 40px;
    }
}

@media (max-width: 500px) {

    .gradient-cards {
        display: flex;
        overflow-y: hidden;
        justify-content: flex-start;
        align-items: start;
        flex-wrap: nowrap;
        gap: 30px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        height: fit-content;
    }

    .gradient-cards::-webkit-scrollbar {
        display: none;
    }
    .gradient-cards {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .card {
        flex: 0 0 300px;
        margin-top: 50px;
        height: 370px;
        scroll-snap-align: center;
        scroll-snap-stop:always;
        transition: transform 0.5s ease;
    }


    .card-title {
        font-size: 20px;
    }
    .card-description {
        margin-top: 30px;
        font-size: 14px;
        line-height: 1.7;
    }
    .container-card {
        padding: 20px;
    }

    .card:first-child {
        margin-left: 30px;
    }
    .card:last-child {
        margin-right: 30px;
    }
    .card:hover {
        transform: scale(1.0);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
}
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  