.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;
}


.custom-caption h1 p {
    font-size: 38px;
    font-weight: 700;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
}

.hero-title .highlight-text {
    font-size: 38px;
    font-weight: 700;
    color: #0d6efd;
    /* Bootstrap primary */
    display: inline-block;
    vertical-align: baseline;
    /* keeps alignment clean */
}

.custom-caption p {
    font-size: 18px;
    color: #fff;
    text-align: start;
}

.responsive-image {
    max-width: 50%;
    height: 280px;
    display: block;
    margin: 0 auto;
    /* centers image */
}

/*-----------------------------
 hover viw Extend start
 -----------------------------*/
.feature-card {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    height: 60px;
    /* 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(3, 1fr);
        /* 3 cards */
    }
}

/* Extra large devices (≥1200px) */
@media (min-width: 1200px) {
    .feature-cards .column {
        grid-template-columns: repeat(4, 1fr);
    }
}

/*-----------------------------
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;
}


/*-----------------------------
TYPES OF MAPPING SOLUTIONs
 -----------------------------*/

.typeMaps {
    height: 300px;
}

/*-----------------------------
popup Modal
 -----------------------------*/

/* Modal Background */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal Box */
.popup-content {
    background: #fff;
    width: 60%;
    max-width: 600px;
    max-height: 75vh;
    overflow-y: auto;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* Close Button */
.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
}

.main-button a {
    display: inline-block;
    background-color: #7a6ad8;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    line-height: 40px;
    padding: 0px 25px;
    border-radius: 20px;
    transition: all .3s;
    margin-bottom: 20px;
}

.main-button a:hover {
    background-color: #8506fc;
    color: #fff;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*-----------------------------
Card Hover contant popUp
 -----------------------------*/

/* Flex/Grid Layout for Cards */
.hardware-grid {
  display: flex;
  flex-wrap: wrap; 
  gap: 20px; 
  justify-content: center;
}

.hardware-card {
  flex: 1 1 calc(33.333% - 20px); 
  max-width: calc(33.333% - 20px);
  height: 315px;
  padding: 15px;
  text-align: center;
  border-radius: 15px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  transition: all 0.3s ease-in-out;
}

.hardware-card:hover {
  border-radius: 15px;
  cursor: pointer;
  transform: scale(1.0);
  box-shadow: 0 5px 15px rgba(0, 119, 255, 0.589);
  background-color: #0060ce;
}

.hardware-card .hardware-content1{
  height: 100%;
  width: 100%;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  border-radius: 15px;
}

.hardware-card:hover .hardware-content1 {
  height: 0px;
  opacity: 0;
}

.hardware-card .hardware-content2{
  height: 0%;
  width: 100%;
  opacity: 0;
  justify-content: center;
  align-items: center;
  display: none;
  border-radius: 15px;
  transition: all 0.4s;
  font-size: 0px;
  transform: rotate(90deg) scale(-1);
}

.hardware-card .hardware-content2 h4{
  color: #fff;
}

.hardware-card .hardware-content2 p{
  font-size: 18px;
  color: #fff;
}

.hardware-card:hover .hardware-content2 {
  opacity: 1;
  height: 100%;
  font-size: 1.8rem;
  transform: rotate(0deg);
  display: flex;
  flex-direction: column;
}

.image-container {
  overflow: hidden;
  border-radius: 15px;
  margin-top: 10px;
}

.image-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
}


@media (max-width: 992px) {
  .hardware-card {
    flex: 1 1 calc(50% - 20px); 
    max-width: calc(50% - 20px); 
  }

  .hardware-content2 p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .hardware-card {
    flex: 1 1 100%; 
    max-width: 100%; 
    height: 260px; 
  }

  .image-container img {
    height: 180px; 
  }

  .hardware-content2 p {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .hardware-card {
    height: 240px;
  }

  .hardware-content1 h4, .hardware-content2 h4 {
    font-size: 16px;
  }

  .hardware-content2 p {
    font-size: 14px;
  }

  .image-container img {
    height: 140px;
  }
}
