.technocraft {
  padding: 150px 0px;
}
.section-title-about span {
  font-weight: 500;
}

.section-title-about {
  font-size: 40px;
}

.highlight-techsol {
  background: linear-gradient(90deg, #352f75 0%, #7b37a9 54%, #39a6dd 73%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-technocraft {
  color: #0d6efd;
}

.tab-card {
  /* border-radius: 10px;
      border: 1px solid #ddd; */
  padding: 20px;
  background: linear-gradient(to right, #f5f7fa, #fff);
  position: relative;
  transition: all 0.3s ease;
}

.tab-card:hover {
  transform: translateY(-5px);
}

/* .tab-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  width: 20px;
  height: 10px;
  background-color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
} */

/* .tab-card.active {
      border: 2px solid #0d6efd;
      background: linear-gradient(to right, #e0f7fa, #f9f9f9);
    } */

.tab-card .icon {
  font-size: 1.8rem;
  color: #0d6efd;
  margin-bottom: 10px;
}

.section-btn {
  background: linear-gradient(to right, #6f42c1, #20c997);
  color: #fff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  transition: 0.3s ease;
}

.section-btn:hover {
  background: linear-gradient(to right, #20c997, #6f42c1);
}

.why-section {
  /* padding: 60px 0; */
}

.why-text h3 span {
  color: #6f42c1;
  margin-bottom: 30px;
}

.why-text h3 {
  margin-bottom: 20px;
}

.why-img {
  max-width: 65%;
  border-radius: 15px;
  /* box-shadow: 0 10px 20px rgba(0,0,0,0.1); */
}

.col-md-6.mb-4.mb-md-0 {
  text-align: center;
}

.section-heading {
  font-size: 45px;
  font-weight: 500;
}

.section-heading .highlight {
  background: linear-gradient(to right, #6f42c1, #20c997);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-icon {
  font-size: 2.5rem;
  color: #dc3545; /* Red */
  margin-bottom: 15px;
}

.feature-card {
  border: none;
  padding: 20px;
  border-radius: 10px;
  height: 100%;
  transition: transform 0.3s ease;
  justify-items: center;
}

.contact-shape-about {
  position: absolute;
  top: -1px;
  right: 45px;
  height: 26px;
}

.why-choose-bg {
  background: #f0f2f4;
  padding: 70px;
  position: relative;
}
.why-choose-shape {
  position: absolute;
  top: 0px;
  right: 85px;
}

.key-features {
  padding: 150px 0px;
}

.icon-flex {
  display: flex;
  gap: 30px;
  align-items: center;
}

.icon-p {
  text-align: left;
  padding-top: 16px;
}

:root {
  --card-radius: 16px;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  --back-bg: linear-gradient(135deg, #111827, #1f2937); /* dark slate */
  --text-light: #ffffff;
}

/* Grid layout */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(375px, 1fr));
  gap: 28px;
  /* align-items: stretch; */
  padding: 8px;
  max-width: 1200px;
  justify-self: center;
}

.flip-box-heading {
  font-size: 50px;
  margin-bottom: 60px;
  font-weight: 400;
}

.flip-box-container {
  /* margin-top: 100px; */
}

/* 3D flip */
.flip-card {
  perspective: 1200px;
}

.flip-inner {
  position: relative;
  aspect-ratio: 4 / 3; /* consistent height */
  width: 85%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  outline-offset: 3px; /* visible focus outline */
  height: 35vh !important;
  /* justify-self: center; */
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: inherit;
  overflow: visible;
}

img.linkedin-icon {
  width: 85px;
  height: 55px;
  position: absolute;
  right: 10px;
  top: -14px;
  object-fit: contain;
}

img.arrow-link-icon {
  width: 155px;
    height: 70px;
    position: absolute;
    right: 27px;
    top: -16px;
    object-fit: contain;
}


/* Front = image only */
.flip-front img {
  display: block;
  /* width: 100%;
  height: 100%; */
  object-fit: contain;
  border-radius: 15px;
  justify-self: center;
}

/* Back = text only (no images) */
.flip-back {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #352f75;
  color: var(--text-light);
  transform: rotateY(180deg);
}

.back-text {
  max-width: 32ch;
  text-align: center;
}

.back-text h3 {
  margin: 0 0 8px 0;
  font: 700 1.125rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}
.back-text p {
  margin: 0;
  font: 400 0.95rem/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  opacity: 0.9;
}

.tab-card.text-center.h-100 {
  background-image: url(../assets/images/left-card.webp);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.75);
  background-repeat: no-repeat;
}


.flip-card-back p {
  margin-bottom: 0px;
}

.row.align-items-start.mb-4 {
    margin-bottom: 70px !important;
}


/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .flip-inner {
    transition: none;
  }
}

.flip-card.card-3 {
    margin-top: 30px;
}
.flip-home {
    width: 450px !important;
}

.flip-card-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
}
.home-section{
  gap: 20px;
}
.home-flip-box {
    margin-top: 100px;
}
.flip-left {
    height: 700px !important; 
}
.center-card-home {
    height: 330px !important;
}
.flip-card {
  background-color: transparent;
  width: 350px;
  height: 350px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 16px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

/* .flip-card-front img:nth-child(2){
  max-width: 300px;
  max-height: 300px;
} */

.flip-card-back {
  background-color: #352f75;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.flip-details {
  margin-top: 15px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.flip-details h4 {
  font-weight: 600;
}

/* ----------------------------------------responsive---------------------------------------- */

@media (max-width: 1024px) {
  .section-title-about {
    font-size: 32px !important;
  }

  .flip-card-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 80px;
    width: 100%;
    flex-wrap: wrap;
  }

  .why-img {
    max-width: 80%;
  }

  .hero-banner-service {
    padding: 50px 0px !important;
  }

  .hero-bottom-service {
    width: 25%;
  }

  .hero-service-left h1 {
    font-size: 50px !important;
  }

  .technocraft {
    padding: 80px 0px;
  }

  .section-heading {
    font-size: 35px;
    font-weight: 500;
  }

  .why-choose-shape {
    width: 30%;
  }

  .flip-box-heading {
    font-size: 40px;
  }
 
  .key-features {
    padding: 80px 0px;
  }

    .features-carousel__header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
  }

}

@media(min-width:1100px) and (max-width:1280px){
      .flip-card-container {
  flex-wrap: wrap;  /* center each card block */
  gap: 20px;
  }
}

@media(min-width:768px) and (max-width:991px){

 .hero-banner-service {
    padding: 50px 0px !important;
  }

  .hero-service-left h1 {
    font-size: 55px !important;
  }

  .hero-bottom-service {
    position: absolute;
    bottom: -4px;
    width: 26%;
  }

  .tab-card {
    padding: 30px;
  }
  
  .section-heading {
    font-size: 40px !important;
  }

  .why-img {
    max-width: 100% !important;
  }

  .why-choose-shape {
    position: absolute;
    top: 0px;
    right: 85px;
    width: 33%;
  }

  .why-choose-bg {
     padding: 40px;
  }

  .technocraft {
    padding: 50px 0px;
  }

  .key-features {
    padding: 50px 0px;
  }

  .flip-card-back p {
    margin-bottom: 0px !important;
  }

  .flip-card-container {
    flex-direction: column;
    gap: 20px;
  }

  .flip-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

}

@media(min-width:300px) and (max-width:767px){

    .card {
    --n: 26px; /* notch size */
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.75);
    padding: 24px;
    background: #f7f7fb;
    border: 1px solid rgba(0, 0, 0, 0.15);
    /* cut-outs on left & right */
    /* -webkit-mask:
    radial-gradient(circle var(--n) at 0 50%, transparent 98%, #000 99%) left / 50% 100% no-repeat,
    radial-gradient(circle var(--n) at 100% 50%, transparent 98%, #000 99%) right / 50% 100% no-repeat;
          mask:
    radial-gradient(circle var(--n) at 0 50%, transparent 98%, #000 99%) left / 50% 100% no-repeat,
    radial-gradient(circle var(--n) at 100% 50%, transparent 98%, #000 99%) right / 50% 100% no-repeat; */
  }

  .card {
    background-image: url(../assets/images/card-bg.png);
  }

  .hero-service-left h1 {
    font-size: 40px !important;
  }
  .hero-banner-service,
  .technocraft,
  .key-features {
    padding: 50px 0px !important;
  }

  .flip-card{
    width: 275px;
    height: 275px;
  }
  .flip-card-back{
    padding: 20px;
  }
  .flip-card-back p{
    font-size: 14px;
  }

  .hero-service-left h1 {
    font-size: 40px;
  }

  .flip-box-heading {
    font-size: 38px;
  }


  .why-choose-shape {
    position: absolute;
    top: 0px;
    right: 38px !important;
    height: 20px !important;
  }

  .technocraft {
    padding: 50px 0px !important;
  }

  .hero-banner-service {
    padding-top: 50px !important;
  }
  .key-features {
    padding: 50px 0px;
  }

  .flip-box-heading {
    font-size: 37px !important;
  }

  .hero-bottom-service{
    width: 38%;
  }

  .section-title-about{
    font-size: 26px !important;
  }

  .section-heading {
    font-size: 28px !important;
  }

  .col-md-6.mb-4.mb-md-0 {
    text-align: left;
  }

  .why-img {
    max-width: 100%;
    border-radius: 15px;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
  }

  .why-choose-bg {
    padding: 40px 18px;
  }

  h2.section-heading.mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .flip-card-container {
    gap: 30px;
  }

  .feature-card {
    padding: 30px 18px;
    justify-items: center;
    /* border: 1px solid lightgray; */
  }

  .features-carousel__header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
  }

  p.feature-card__text {
    text-align: center;
  }

  .feature-4-tranform {
    transform: none !important;
  }

  .flip-left {
    height: 296px !important;
  }

  .flip-home {
    width: 315px !important;
  }

}

@media (max-width: 576px) {
  .container.erp-container-mobile {
    padding: 0px 20px;
  }
}