html {
  scrollbar-color: #666 #fff;
  /* scrollbar-width: thin; */
  font-size: 1rem;
}

body {
  font-family: "Lexend Deca";
  font-optical-sizing: auto;
  font-stretch: 25% 151%;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-family: "Lexend Deca";
}
#ai-advantage {
  background-color: #03316d;
  font-family: "Lexend Deca", sans-serif;
}
.ai-bg {
  background-color: #010e1b;
}
.ai-hero-outer {
  border-radius: 0px;
  background: #010e1b;
  background-image: url(../../whiteForest/images/services/service-background.webp);
  background-size: cover;
  border-radius: 0px 0px 70px 70px;
  position: relative;
  /* overflow: hidden; */
  padding: 10rem clamp(2rem, 6vw, 6rem) 7rem clamp(2rem, 6vw, 6rem);
}

.whitepaper-hero-container .hero-link {
  padding-bottom: 32px;
  color: #3e77ae;
}
.whitepaper-hero-container .hero-link:hover {
  color: #fff;
}
.whitepaper-hero-container .hero-link:hover svg path {
  fill: #fff;
}
.ai-hero-container a:hover {
  color: #fff;
}

.service-hero-container {
  flex-direction: column;
  display: flex;
  width: 100%;
}

.service-hero-title-section {
  max-width: 865px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  text-align: center;
  margin: 0 auto;
}
.service-hero-title-section h1 {
  color: #fff;
  font-size: 3.75rem;
  font-family: "Lexend Deca", sans-serif;
  line-height: normal;
}
.service-hero-title-section p {
  color: #fff;
  font-size: 1rem;
  font-family: "Lexend Deca", sans-serif;
  padding: 24px 50px;
  margin: 0 auto;
}
.button-container {
  margin: 0;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.service-primary-button {
  border-radius: 200px;
  border: 1px solid #fff;
  background: transparent;
  display: flex;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  color: #fff;
  gap: 5px;
  font-size: 14px;
  font-weight: 400;
}

.service-primary-button:hover,
.service-primary-button:focus {
  box-shadow: 0px 0px 18px 0px #043f8c;
  color: #fff;
  transition: 0.1s ease-in;
}

.service-primary-button:focus-visible {
  box-shadow: 0 0 0 3px rgb(2, 4, 24);
}
.service-secondary-button {
  border-radius: 200px;
  border: 1px solid #020418;
  background: #fff;
  display: flex;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  color: #061b30;
  gap: 5px;
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.service-secondary-button:hover,
.service-secondary-button:focus {
  box-shadow: 0px 0px 18px 0px #043f8c;
  color: #061b30;
  transition: 0.1s ease-in;
}

.service-secondary-button:focus-visible {
  box-shadow: 0 0 0 3px rgb(2, 4, 24);
}
.hero-container-floating-logo {
  position: relative;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content-floating-logo {
  text-align: center;
  z-index: 10;
  max-width: 1000px;
  padding: 2rem;
}

.logo-floating-logo {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 8px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  color: #0f172a;
}

.main-title-floating-logo {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.subtitle-floating-logo {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons-floating-logo {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-floating-logo {
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-primary-floating-logo {
  background: white;
  color: #0f172a;
}
.btn-primary-floating-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary-floating-logo {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary-floating-logo:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.floating-icon-floating-logo {
  position: absolute;
  width: 58px;
  height: 58px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  opacity: 0;
}

.floating-icon-floating-logo svg {
  width: 100%;
  height: 100%;
  fill: white;
}
.floating-icon-floating-logo img.floating-ai-icons {
  width: 58px;
  height: 58px;
}

.grid-overlay-floating-logo {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  opacity: 0.3;
  pointer-events: none;
}

/* .particle {
      position: absolute;
      width: 2px;
      height: 2px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
    } */

.services-list-outer {
  background: #fff;
  padding: 3rem clamp(2rem, 6vw, 6rem);
}
.services-container {
  margin: 0 auto;
  max-width: min(90rem, 100% - 1rem);
  align-items: center;
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  padding: 0;
}

/* AI Development Card Styles */
.ai-services-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.ai-service-card {
  box-sizing: border-box;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2rem 0 2rem;
  max-width: 100%;
  border-radius: 1rem;
  flex: 1 0 0;
  height: 495px;
  border-radius: 16px;
  border: 2px solid rgba(34, 134, 232, 0.15);
  background: linear-gradient(
    139deg,
    rgba(71, 163, 254, 0) 8.39%,
    rgba(71, 163, 254, 0.16) 98.67%
  );
  overflow: hidden;
  cursor: pointer;
}
svg.ai-service-icon {
  position: absolute;
  right: 2rem;
  top: 2.8rem;
  transition: all 0.5s ease;
}
.ai-service-card:hover svg.ai-service-icon path {
  stroke: #03316d;
}
.ai-service-card:hover svg.ai-service-icon {
  transition: all 0.5s ease;
  right: 1.5rem;
}

.ai-dev-title {
  position: relative;
  align-self: stretch;
  margin-bottom: 25px;
}

.ai-dev-title h3 {
  font-size: 1.875rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 2.25rem;
  margin-bottom: 0;
  padding-right: 32px;
}

.ai-dev-description {
  position: relative;
  max-width: 100%;
  font-size: 1rem;
  color: #000000;
  /* width: 473px; */
  line-height: 1.5rem;
  margin-bottom: 25px;
}

.ai-dev-image-container {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 0.625rem;
  align-items: center;
  align-self: stretch;
  padding: 0;
}

.ai-dev-image {
  position: relative;
  max-width: 100%;
  /* aspect-ratio: 93/58;
  height: 358px; */
  width: 100%;
}

/* Service dfetail page style start here */

#ai-advantage {
  background-color: #03316d;
  font-family: "Lexend Deca", sans-serif;
}
.main-services-bg {
  background: #fff;
}
.ai-bg {
  background-color: #010e1b;
}

.ai-hero {
  /* height: 100vh; */
  margin: 0 auto;
  max-width: min(90rem, 100%);
  align-items: center;
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.ai-hero .ai-health-circle {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 15%);
  bottom: -65%;
  margin: 0 auto;
  z-index: 0;
  max-width: 1000px;
  min-width: 365px;
  margin: 0 auto;
}

.banner-radial-bg-adv {
  position: absolute;
  left: -5%;
  width: 48%;
  height: 38rem;
  border-radius: 50%;
  opacity: 0.2;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #00c4ffe0 0%,
    #008cffad 49%,
    rgba(160, 212, 235, 0) 100%
  );
  position: absolute;
  right: 0;
  bottom: 2%;
}

/* .ai-hero-container {
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  width: 100%;
  max-width: min(90rem, 100%);
  position: relative;
  margin: 0 auto;
} */

/* .ai-hero-left {
  width: 48%;
  margin: 0;
  position: relative;
  padding: 0 55px 0 0;
} */
.ai-hero-left a.link_ref {
  margin: 0 auto;
  display: flex;
}
.ai-hero-left .cta-button.nav-link-connect {
  margin: 0 auto;
  background-color: #fff;
  border: 0;
  color: #010e1b;
  font-weight: 400;
  padding: 5px 25px;
}

.ai-hero-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: right;
}
.ai-hero-right img {
  position: relative;
  right: 0;
  bottom: 0;
  object-fit: cover;
  height: 100%;
  width: 80%;
}
/* .ai-hero-right img {
  max-height: 470px;
  mix-blend-mode: lighten;
} */
.hero-top-overlay {
  /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.80) 58.65%, rgba(0, 0, 0, 0.00) 100%); */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.8) 19.6%,
    rgba(0, 0, 0, 0) 95.58%
  );
  width: 100%;
  left: 0;
  position: absolute;
  top: 0;
  height: 150px;
  z-index: 1;
}
.hero-overlay {
  width: 100%;
  left: 0;
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 1;
  display: block;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0) 25.66%, #000203 98.04%);
}

.banner-ai-gradient {
  background: linear-gradient(90deg, #4deefd, #0385ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.ai-hero-heading {
  font-size: 3rem;
  color: #fff;
  display: table;
  padding-top: 15px;
  margin: 0;
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: -0.96px;
}
.ai-icon-hero {
  position: absolute;
  left: 15px;
  top: -10px;
}

.ai-hero-description {
  font-size: 1rem;
  color: #fff;
  font-weight: 300;
  margin-top: 15px;
  line-height: 27px;
  max-width: 645px;
  text-align: left;
  margin: 0;
  padding: 16px 0 0 0;
}
.ai-hero-left {
  width: 54%;
}

.hero-explore {
  background: #fff;
  padding: 10px 20px;
  width: fit-content;
  border-radius: 200px;
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 4cqmin;
}

.content-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #010e1b;
  font-family: "Lexend Deca";
  font-weight: 500;
  text-align: center;
  background: linear-gradient(90deg, #2286e8 7.48%, #043f8c 93.3%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.content-title span {
  /* background: linear-gradient(90deg, #07f4ff 20.77%, #0385ff 74.95%); */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-description {
  color: #d6e0f8;
  text-align: center;
  font-family: "Lexend Deca";
  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
  line-height: 27px;
  margin: 0 auto;
  max-width: 800px;
  padding-bottom: 20px;
}
.link_ref {
  display: contents;
}
.lets-ai-healthcare-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 60px clamp(2rem, 6vw, 6rem) 0px clamp(2rem, 6vw, 6rem);
}

.lets-ai-healthcare-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* padding-top: 60px; */
  width: 100%;
  position: relative;
  /* padding: 0 20px 20px; */
}
.lets-ai-healthcare-content .cta-button {
  margin-top: 0;
}
.lets-cta-padding {
  padding: 0px clamp(2rem, 6vw, 6rem) 40px clamp(2rem, 6vw, 6rem);
}

/* Heading styles */
.lets-heading-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lets-main-heading {
  /* width: 622px; */
  text-align: center;
  font-family: "Lexend Deca";
  color: #010e1b;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.8px;
  margin: 0;
  max-width: 705px;
  display: inline-block;
}

.lets-heading-light {
  color: #e9ebf8;
}

.lets-heading-gradient {
  background: linear-gradient(90deg, #07f4ff 39.26%, #0385ff 91.76%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lets-ai-icon {
  width: 32px;
  height: 32px;
  position: absolute;
  right: -40px;
  top: -5px;
  margin-right: 10px;
}
.auto-max-width {
  max-width: unset;
}
/* Description styles */
.lets-description {
  max-width: 900px;
  text-align: center;
  font-family: "Lexend Deca";
  color: #010e1b;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 27px;
  margin-bottom: 0;
}
.book-btn {
  background: #051731;
  border-radius: 30px;
  padding: 10px 20px;
  width: fit-content;
  display: flex;
  gap: 5px;
  align-items: center;
  color: #fff;
  margin: 18px auto;
}
.book-btn:hover {
  box-shadow: 0px 0px 18px 0px #024fb6;
  transition: 0.1s ease-in;
}
.book-btn svg path {
  stroke: #fff;
}
/* For better accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus styles for better accessibility */
:focus {
  outline: 0px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.custom-content-section {
  margin: 0 auto;
  padding: 40px clamp(2rem, 6vw, 6rem) 0 clamp(2rem, 6vw, 6rem);
}
.custom-content-section h2 {
  text-align: center;
  font-family: "Lexend Deca";
  font-size: 2.5rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.8px;
}
.trust-banner {
  /* display: flex; */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  justify-content: center;
  margin: 30px auto 0 auto;
  max-width: min(90rem, 100%);
  padding: 0;
}

.trust-card {
  flex-grow: 1;
  border-radius: 8px;
  border: 2px solid rgba(34, 134, 232, 0.15);
  background: linear-gradient(
    139deg,
    rgba(71, 163, 254, 0) 8.39%,
    rgba(71, 163, 254, 0.16) 98.67%
  );
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
  /* min-width: 265px;
max-width: 290px; */
  position: relative;
  overflow: hidden;
  justify-content: space-between;
  min-height: 85px;
  width: 100%;
}
/* .trust-card:first-child,
.trust-card:last-child {
  width: 22%;
} */

.trust-card:before {
  content: "";
  display: block;
  width: 99.44%;
  height: 98%;
  left: 1px;
  position: absolute;
  background: linear-gradient(
    92deg,
    #f2f6fc 1.54%,
    rgb(255 255 255) 50.15%,
    #f2f6fc 98.76%
  );
  margin: 0;
  border-radius: 8px;
  z-index: 0;
}
.trust-card .icon-container {
  top: 0;
  margin-left: 0;
  position: relative;
}
.trust-card:nth-last-child(-n + 2) {
  grid-column: span 1;
}

.trust-card .content {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
  width: 100%;
  align-items: center;
}

.trust-card .description {
  color: #000;
  font-family: "Lexend Deca";
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.ai-team-outer {
  background: #fff;
  position: relative;
  overflow: hidden;
  padding: 60px clamp(2rem, 6vw, 6rem) 0 clamp(2rem, 6vw, 6rem);
  position: relative;
}
.ellipse-left,
.ellipse-right {
  position: absolute;
  bottom: 15%;
}
.ellipse-left {
  left: -10%;
}
.ellipse-right {
  right: -10%;
}
.strategy-ellipse {
  position: absolute;
  left: 0;
  top: 0;
}

.ai-team-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  max-width: min(90rem, 100%);
  margin: 0 auto;
  padding: 0;
  text-align: center;
  position: relative;
  /* background: radial-gradient(38.03% 14.34% at 50% 0%, rgb(3 133 255 / 41%) 0%, rgb(1 14 27 / 0%) 60.33%), radial-gradient(23.89% 12.3% at 50% 103.77%, #008cff80 0%, rgba(20, 20, 22, 0) 99.38%), var(--0500, #010e1b); */
}
.ai-team-title {
  display: flex;
  justify-content: center;
  gap: 5px;
}
.ai-team-title .ai-star {
  margin-top: -10px;
  position: relative;
  left: 8px;
  width: 25px;
}
.ai-team-container p {
  max-width: 900px;
  margin: 0 auto;
  /* padding-bottom: 2.5rem; */
  line-height: 27px;
}

/* Service dfetail page style end here */

/* Desktop Masonry Layout */
.masonry-process-container {
  width: 100%;
  padding: 60px clamp(2rem, 6vw, 6rem) 0 clamp(2rem, 6vw, 6rem);
  margin: 0 auto;
  position: relative;
}
.masonry-container {
  width: 100%;
  max-width: min(90rem, 100%);
  margin: 0 auto;
}
.masonry-process-title {
  font-size: 2.5rem;
  font-weight: 500;
  color: #1a202c;
  margin-bottom: 40px;
  text-align: center;
  font-family: "Lexend Deca";
}

.masonry-process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  min-height: 600px;
}

.masonry-process-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: auto;
}
.masonry-process-card:hover .masonry-process-card-content {
  position: relative;
}
.masonry-process-card:hover .masonry-process-card-image {
  filter: blur(3.4000000953674316px);
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
/* First card - tall left side, spans 2 rows */
.masonry-process-card:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

/* Right side cards - 2x2 grid */
.masonry-process-card:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.masonry-process-card:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.masonry-process-card:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.masonry-process-card:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.masonry-process-card.small-third-card {
  grid-column: 2 / 3;
  grid-row: 2 / 2;
}
.masonry-process-card.last-large-card {
  grid-column: 4 / 3;
  grid-row: 3 / 1;
}
.masonry-process-card.normal-card {
  grid-column: auto;
  grid-row: auto;
}
/* Extended grid - title left aligned */
.masonry-process-title.title-left {
  text-align: left;
  margin-bottom: 30px;
}

/* Extended grid - section padding */
.masonry-process-container:has(.masonry-extended) {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Extended grid - laptop padding top */
@media only screen and (min-width: 991px) {
  .masonry-process-container:has(.masonry-extended) {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Extended grid - smaller title on mobile */
@media only screen and (max-width: 767px) {
  .masonry-process-title.title-left {
    font-size: 1.75rem;
  }
}

/* Extended grid - title margin top for tablet and mobile (specific pages) */
@media only screen and (max-width: 990px) {
  .masonry-process-title.title-left.title-margin-top {
    margin-top: 40px;
  }
}

/* Extended grid - maintains original row heights + adds 3rd row (desktop/laptop only) */
@media only screen and (min-width: 991px) {
  .masonry-process-grid.masonry-extended {
    grid-template-rows: 1fr 1fr 280px;
    min-height: 880px;
  }
  .masonry-process-grid.masonry-extended .masonry-process-card:nth-child(6) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .masonry-process-grid.masonry-extended .masonry-process-card:nth-child(7) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }
  .masonry-process-grid.masonry-extended .masonry-process-card:nth-child(8) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
  }
}

/* IoT Services 7-card layout - Consulting tall left, QA & Testing tall right */
@media only screen and (min-width: 991px) {
  .masonry-process-grid.masonry-iot {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 280px;
    min-height: 880px;
  }
  /* Card 1: Consulting - tall left (rows 1-2) */
  .masonry-process-grid.masonry-iot .masonry-process-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
  /* Card 2: Requirement Analysis - top middle */
  .masonry-process-grid.masonry-iot .masonry-process-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  /* Card 3: Schematic Design - top right */
  .masonry-process-grid.masonry-iot .masonry-process-card:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
  /* Card 4: Routing & Verification - middle center */
  .masonry-process-grid.masonry-iot .masonry-process-card:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  /* Card 5: QA & Testing - tall right (rows 2-3) */
  .masonry-process-grid.masonry-iot .masonry-process-card:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
  }
  /* Card 6: UI Design/Prototyping - bottom left */
  .masonry-process-grid.masonry-iot .masonry-process-card:nth-child(6) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  /* Card 7: Mass Production & QC - bottom middle */
  .masonry-process-grid.masonry-iot .masonry-process-card:nth-child(7) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }
}

.masonry-process-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: filter 0.6s ease-out;
}

.masonry-process-card-content {
  position: absolute;
  left: 0;
  top: 0;
  padding: 24px;
  color: white;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  transform: translateY(15px);
  /* transition: all 0.5s; */
  /* transition: all 0.4s ease-out; */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.masonry-process-card:hover .masonry-process-card-content {
  /* transform: translateY(0px);
  transition: all 0.4s ease-out; */
  transform: translateY(0px);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.masonry-process-card::after {
  content: "";
  background: linear-gradient(
    181deg,
    rgba(0, 0, 0, 0) 20.44%,
    rgb(0 0 0 / 31%) 44.67%,
    rgb(0 0 0 / 58%) 55.22%,
    rgb(0 0 0 / 65%) 63.58%,
    rgb(0 0 0 / 68%) 73.26%,
    rgb(0 0 0 / 80%) 78.51%,
    #000 120.91%
  );
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}

.masonry-process-card-title {
  color: #fff;
  font-family: "Lexend Deca";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 120% */
  margin-bottom: 0;
  line-height: 1.3;
  position: relative;
  padding-right: 0;
  margin-bottom: 10px;
}
.masonry-process-card-title svg {
  margin: 0;
  display: none;
}
.masonry-process-card-description {
  color: #fff;
  font-family: "Lexend Deca";
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px; /* 171.429% */
  max-height: 0;
  /* opacity: 0; */
  overflow: hidden;
  margin: 0;
  /* transition: max-height 0.4s ease, opacity 0.5s ease; */
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-process-card:hover .masonry-process-card-description {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
  /* transition: all 0.8s ease-out; */
  transition: max-height 1s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}
/* Hover state - only for devices that support hover (not touch devices) */
@media (hover: hover) and (pointer: fine) {
  .masonry-process-card:hover .masonry-process-card-content {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.449) 0%,
      rgba(0, 0, 0, 0.258) 70%,
      rgba(0, 0, 0, 0.044) 100%
    );
  }

  .masonry-process-card:hover .masonry-process-card-title {
    margin-bottom: 10px;
  }

  .masonry-process-card:hover .masonry-process-card-description {
    /* max-height: 300px; */
    opacity: 1;
  }
}

/* Tablet View - 768px to 990px */
@media only screen and (max-width: 990px) and (min-width: 768px) {
  .masonry-process-grid {
    display: flex;
    transition: transform 0.4s ease;
    gap: 0;
    min-height: auto;
  }

  .masonry-process-card {
    /* min-width: 100%; */
    height: 496px;
    flex-shrink: 0;
    margin-right: 0;
  }

  .masonry-process-card:nth-child(1),
  .masonry-process-card:nth-child(2),
  .masonry-process-card:nth-child(3),
  .masonry-process-card:nth-child(4),
  .masonry-process-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .masonry-process-card:hover {
    transform: none;
  }

  .masonry-process-card-content {
    padding: 24px;
  }

  .masonry-process-card-title {
    font-size: 1.4rem;
  }

  .masonry-process-card-description {
    opacity: 1;
    max-height: none;
    margin-top: 14px;
  }
}

/* Mobile View - Below 990px */
@media only screen and (max-width: 990px) {
  .masonry-process-container {
    overflow: hidden;
    padding: 20px 0 0 0;
  }
  .masonry-process-card:hover .masonry-process-card-image {
    filter: blur(0);
  }
  .masonry-process-grid {
    display: flex;
    flex-wrap: nowrap !important;
    transition: transform 0.4s ease;
    gap: 16px;
    min-height: auto;

    justify-content: start;
    scrollbar-width: none;
    overflow-x: scroll;
  }
  .scroll-container.active {
    cursor: grabbing;
  }
  .scroll-container:hover {
    cursor: grabbing;
  }
  .masonry-process-card-title svg {
    display: none;
  }
  .masonry-process-card {
    /* min-width: 100%; */
    width: 65%;
    height: 383px;
    flex-shrink: 0;
    margin-right: 0;
    cursor: grab;
  }
  /* 
  .masonry-process-card:hover .masonry-process-card-content {
    background: linear-gradient(
      181deg,
      rgba(0, 0, 0, 0) 20.44%,
      rgba(0, 0, 0, 0.61) 44.67%,
      rgba(0, 0, 0, 0.81) 55.22%,
      rgb(0 0 0) 63.58%,
      rgba(0, 0, 0, 0.88) 73.26%,
      rgb(0 0 0) 78.51%,
      #000000 120.91%
    );
    backdrop-filter: unset;
  } */
  .masonry-process-card::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 24.92%,
      rgba(0, 0, 0, 0.61) 54.02%,
      rgba(0, 0, 0, 0.81) 70.93%,
      #000 99.85%
    );
  }
  .masonry-process-card .masonry-process-card-content {
    /* background: linear-gradient(
      181deg,
      rgba(0, 0, 0, 0) 20.44%,
      rgba(0, 0, 0, 0.61) 44.67%,
      rgba(0, 0, 0, 0.81) 55.22%,
      rgb(0 0 0) 63.58%,
      rgba(0, 0, 0, 0.88) 73.26%,
      rgb(0 0 0) 78.51%,
      #000000 120.91%
    ); */
    backdrop-filter: unset;
    transition: none;
    transform: none;
  }
  .masonry-process-card:first-child {
    margin-left: 16px;
  }
  .masonry-process-card:last-child {
    margin-right: 16px;
  }

  .masonry-process-card:nth-child(1),
  .masonry-process-card:nth-child(2),
  .masonry-process-card:nth-child(3),
  .masonry-process-card:nth-child(4),
  .masonry-process-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .masonry-process-card:hover {
    transform: none;
  }

  .masonry-process-card-content {
    padding: 28px;
  }

  .masonry-process-card-title {
    font-size: 1.2rem;
  }

  .masonry-process-card-description {
    opacity: 1;
    max-height: none;
    margin-top: 12px;
  }
  .masonry-process-title {
    padding: 16px;
    margin-bottom: 24px;
  }
}

@media (min-width: 991px) and (max-width: 1200px) {
  .masonry-process-grid {
    min-height: 500px;
  }

  .masonry-process-card-content {
    padding: 18px;
  }

  .masonry-process-card-title {
    font-size: 1.15rem;
  }

  .masonry-process-card-description {
    font-size: 0.9rem;
  }
}
@media only screen and (max-width: 480px) {
  .masonry-process-card {
    width: 80%;
    height: 382px;
  }
  .masonry-process-card-content {
    padding: 18px;
  }
  .masonry-process-card-image,
  .masonry-process-card:hover .masonry-process-card-image {
   max-height: 350px;
  }
 
  .masonry-process-title {
    padding: 0 16px;
  }
  .masonry-process-container,
  .masonry-process-container:has(.masonry-extended) {
    padding: 0 0 10px 0;
  }
  .masonry-process-card-content {
    /* backdrop-filter: blur(3.3633623123168945px); */
    /* background: linear-gradient(
        180deg,
        rgb(0 0 0 / 0%) 1.83%,
        rgb(0 0 0 / 70%) 35.17%,
        #000000f0 56.4%
      ),
      #d3d3d324 0.186px -64.447px / 100% 99.872%; */
    padding: 18px !important;
/* background: linear-gradient(180.17deg, rgba(0, 0, 0, 0) 1.83%, rgba(0, 0, 0, 0.780000) 33.57%, #000000 56.4%) !important; */
background: none;

/*
    background: linear-gradient(
      181deg,
      rgba(0, 0, 0, 0) 20.44%,
      rgb(0 0 0 / 42%) 44.67%,
      rgb(0 0 0 / 97%) 55.22%,
      rgb(0 0 0 / 99%) 63.58%,
      rgb(0 0 0) 73.26%,
      rgb(0 0 0) 78.51%,
      #000000 120.91%
    ) !important;
*/
  }
  .masonry-process-card::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 24.92%, rgb(0 0 0) 54.02%, rgb(0 0 0) 70.93%, #000 99.85%);
  }
  .masonry-process-card-title {
    font-size: 1.14rem;
    padding-right: 0;
    margin-bottom: 0 !important;
  }
  .masonry-process-title {
    margin: 25px 0 15px 0 !important;
  }
  .lets-ai-healthcare-content.business-impact .lets-main-heading,
  .masonry-process-title,
  .lets-main-heading,
  .support-ai-column-startups .support-ai-column-title,
  .lets-main-heading,
  .success-heading h2 {
    font-size: 1.25rem !important;
  }
 
      
}

/* Desktop Masonry Layout */

/* Media query start here */

@media (max-width: 1200px) {
  .ai-services-card-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-hero-left {
    width: 75%;
  }
}
@media only screen and (max-width: 1024px) {
  .lets-ai-healthcare-container {
    padding: 0 16px;
  }
  .services-list-outer {
    padding: 2rem 16px;
  }
  .grid-overlay-floating-logo {
    display: none;
  }
  .lets-ai-healthcare-content {
    padding-top: 40px;
    padding-bottom: 0px;
  }
  .lets-ai-healthcare-container.lets-cta-padding .lets-ai-healthcare-content {
    padding-top: 0;
  }
  .lets-cta-padding {
    padding-top: 0 !important;
  }
  .masonry-process-title.title-left,
  .support-ai-column-startups .support-ai-column-title {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero-overlay {
    /* background: linear-gradient(270deg, rgb(0 0 0 / 22%) 25.66%, #000203 98.04%) !important; */
    background: linear-gradient(
      179deg,
      rgba(0, 0, 0, 0) 20%,
      #010e1b 50%
    ) !important;
  }
  .lets-ai-healthcare-content.business-impact .lets-main-heading,
  .masonry-process-title,
  .lets-main-heading {
    text-align: center;
    font-size: 1.5rem;
    line-height: 30px;
  }
  .masonry-process-title {
    margin: 0 0 15px 0;
  }
  .lets-ai-healthcare-content.business-impact .lets-main-heading br {
    display: none;
  }
}
/* Tablet styles (max-width: 768px) */
@media (max-width: 768px) {
  .ai-hero-container {
    flex-direction: column;
    padding-bottom: 0;
    justify-content: center;
  }
  .ai-hero-left,
  .ai-hero-right {
    width: 100%;
    text-align: center;
  }
  .ai-hero-left {
    width: 100% !important;
  }
  .ai-hero-outer {
    padding: 5rem 1rem 1rem 1rem !important;
    border-radius: 0px 0px 50px 50px;
  }

  .service-hero-title-section {
    max-width: unset;
  }
  .service-hero-title-section h1 {
    font-size: 1.5rem;
  }
  .service-hero-title-section p {
    padding: 20px 0;
  }
  .services-container {
    max-width: unset;
  }
  .ai-dev-card {
    gap: 1.25rem;
    padding: 2rem;
    height: auto;
  }

  .ai-dev-title h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .ai-dev-description {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .ai-dev-image {
    width: 100%;
    height: auto;
    max-width: 500px;
  }
  .ai-services-card-list {
    grid-template-columns: repeat(1, 1fr);
  }
  .ai-hero-outer {
    padding: 6rem 1rem 3rem 1rem !important;
    border-radius: 0px 0px 50px 50px;
  }

  .ai-hero-right img {
    max-height: 370px;
    width: auto;
    height: auto;
  }
  .hero-top-overlay {
    height: 70px;
  }
  .ai-service-card {
    height: auto;
  }
  .hero-overlay {
    /* background: linear-gradient(179deg, rgba(0, 0, 0, 0.00) 20%, #010e1b 50%); */
    width: 100%;
    left: 0;
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 1;
    display: block;
  }
  .ai-hero-description {
    max-width: unset;
  }
  .ai-hero-heading {
    display: block;
  }
}

/* Mobile styles (max-width: 640px) */
@media (max-width: 640px) {
  .ai-dev-card {
    gap: 1rem;
    padding: 1.5rem;
    height: auto;
  }

  .ai-dev-title h1 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .ai-dev-description {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .ai-dev-image-container {
    padding: 0;
  }

  .ai-dev-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

@media (resolution: 1.25dppx) {
  .masonry-process-card-title {
    font-size: 18px;
  }
}

@media (resolution: 1.5dppx) {
  .ai-dev-title h3 {
    font-size: 1.5rem;
  }
  .ai-dev-description {
    font-size: 0.875rem;
  }
  .ai-service-card {
    height: 450px;
  }
  .masonry-process-title {
    margin-bottom: 25px;
  }
  .masonry-process-card-title {
    padding-right: 0px;
    font-size: 16px;
  }
}

.standard-process-grid .masonry-process-card:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
}
