.carousel-item img {
    height: 650px;
    object-fit: cover;
}

.custom-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 20px;
    border-radius: 10px;
}

.custom-caption h1 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    text-align: start;
}


.responsive-image {
    max-width: 50%;
    height: 280px;
    display: block;
    margin: 0 auto;
    /* centers image */
}

.service-image {
    height: 150px;
    width: 150px;
}

.card__heading {
    text-align: center;
}


/* Make the column a grid */
.col-md-5 {
    display: grid;
    grid-template-columns: repeat(2, 160px);
    /* 2 per row */
    justify-content: center;
    column-gap: 60px;
    row-gap: 10px;

}

/* Service Card */
.services {
    width: 200px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

/* Image */
.service-image {
    width: 60px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Title */
.card__heading {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Hover */
.services:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ================= MOBILE (max 480px) ================= */
@media (max-width: 480px) {

    .col-md-5 {
        grid-template-columns: 1fr;
        /* 1 per row */
        column-gap: 100px;
        row-gap: 20px;
    }

    .services {
        width: 100%;
        max-width: 250px;
        height: 150px;
    }

    .service-image {
        width: 100px;
        height: 120px;
    }

}


/* ================= SMALL DEVICES (≥576px) ================= */
@media (min-width: 576px) {

    .col-md-5 {
        grid-template-columns: repeat(2, 140px);
        column-gap: 30px;
        row-gap: 20px;
    }

    .services {
        width: 150px;
        height: 150px;
    }

}


/* ================= MEDIUM DEVICES (≥768px) ================= */
@media (min-width: 768px) {

    .col-md-5 {
        grid-template-columns: repeat(2, 130px);
        column-gap: 30px;
        row-gap: 5px;
    }

    .services {
        width: 130px;
        height: 160px;
    }

}


/* ================= LARGE DEVICES (≥992px) ================= */
@media (min-width: 992px) {

    .col-md-5 {
        grid-template-columns: repeat(1, 200px);
        /* column-gap: 60px;
    row-gap: 30px; */
    }

    .services {
        width: 200px;
        height: 150px;
    }

}


/* ================= EXTRA LARGE (≥1200px) ================= */
@media (min-width: 1200px) {

    .col-md-5 {
        grid-template-columns: repeat(2, 200px);
        column-gap: 60px;
        row-gap: 35px;
    }

    .services {
        width: 200px;
        height: 180px;
    }

    

}

@media (min-width: 1920px) {
/* Image */
.service-image {
    width: 60px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}
}

/*-----------------------------
Software segments
 -----------------------------*/
/* Card Wrapper */
.card {
    width: 70%;
    height: 300px;
    background: #fff;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto;
    /* ⭐ This centers the card */
}

/* Animated Border */
.card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 240%;
    background-image: linear-gradient(180deg, #00b7ff, #ff30ff);
    animation: rotBGimg 4s linear infinite;
}

@keyframes rotBGimg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Inner Card Background */
.card::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: #fff;
    border-radius: 15px;
    z-index: 1;
}

/* Content Wrapper */
.card .bg {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* Image Fix */
.card-image {
    width: 80%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Title */
.card-title {
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

/* ================= MOBILE (max 480px) ================= */
@media (max-width: 480px) {
    .card {
        width: 95%;
        height: 260px;
        margin-bottom: 10px;
    }

    .card-image {
        width: 100%;
        height: 180px;
    }

    .card-title {
        font-size: 14px;
    }
}

/* ================= SMALL DEVICES (≥576px) ================= */
@media (min-width: 576px) {
    .card {
        width: 85%;
        height: 280px;
    }

    .card-image {
        height: 190px;
    }

    .card-title {
        font-size: 16px;
    }
}

/* ================= MEDIUM DEVICES (≥768px) ================= */
@media (min-width: 768px) {
    .card {
        width: 100%;
        height: 300px;

    }

    .card-image {
        height: 200px;
    }

    .card-title {
        font-size: 17px;
    }
}

/* ================= LARGE DEVICES (≥992px) ================= */
@media (min-width: 992px) {
    .card {
        width: 80%;
        height: 320px;
    }

    .card-image {
        height: 230px;
    }

    .card-title {
        font-size: 18px;
    }
}

/* ================= EXTRA LARGE (≥1200px) ================= */
@media (min-width: 1200px) {
    .card {
        width: 60%;
        height: 340px;
    }

    .card-image {
        height: 250px;
    }

    .card-title {
        font-size: 19px;
    }
}



/*-----------------------------
 hover viw Extend start
 -----------------------------*/
.feature-card {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    height: 60px;
    text-align: center;
    /* Initial small height */
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature-card h6 {
    margin: 0;
    font-weight: 600;
}

.feature-card p {
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

/* Hover Effect */
.feature-card:hover {
    height: 160px;
    background: #0d6efd;
}

.feature-card:hover h6,
.feature-card:hover p {
    color: #fff;
}

.feature-card:hover p {
    opacity: 1;
}

.feature-cards .column {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 3 cards per row */
    gap: 20px;
}

/* Responces style  Extend*/
@media (max-width: 480px) {
    .feature-cards .column {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Small devices (≥576px) */
@media (min-width: 576px) {
    .feature-cards .column {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards */
    }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
    .feature-cards .column {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards */
    }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
    .feature-cards .column {
        grid-template-columns: repeat(4, 1fr);
        /* 3 cards */
    }
}

/* Extra large devices (≥1200px) */
@media (min-width: 1200px) {
    .feature-cards .column {
        grid-template-columns: repeat(4, 1fr);
    }
}