.overview-section {
  position: relative;
  width: 100%;
  padding: 60px 8%;
  overflow: hidden;
  font-family: "Roboto", Arial, sans-serif;
  background: #ffffff;
}

.overview-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  filter: none;
  pointer-events: none;
}
.overview-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.48);
}


.overview-motion {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
}


.motion-two {
  width: 340px;
  height: 340px;
  right: 4%;
  bottom: 6%;
  border: 1px solid rgba(17, 146, 211, 0.24);
  background: rgba(21, 155, 222, 0.06);
  animation: floatTwo 10s ease-in-out infinite;
}

.motion-three {
  width: 170px;
  height: 170px;
  top: 16%;
  right: 38%;
  border: 1px solid rgba(99, 35, 127, 0.2);
  background: rgba(255, 255, 255, 0.28);
  animation: floatThree 7s ease-in-out infinite;
}

@keyframes floatOne {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(22px, -26px) scale(1.08);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-28px, 24px) scale(1.06);
  }
}

@keyframes floatThree {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(18px, 22px) rotate(18deg);
  }
}

.overview-container {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 86px;
}

.overview-left h2 {
  margin: 0;
  max-width: 430px;
  color: #000000;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 650;
  line-height: 1.18;
  margin-left: -180px;

}

.overview-left h2 span {
  color: #000000;

}

.overview-card-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
}

.overview-flip-card {
  width: 100%;
  max-width: 330px;
  height: 350px;
  perspective: 600px;
}

.overview-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

.overview-card {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 23px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1.5px solid #000000;
  box-shadow: 0 26px 80px rgba(67, 26, 88, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(13px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.overview-card-front {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.overview-card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.overview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.28) 55%,
    rgba(242, 205, 243, 0.92) 100%
  );
}

.overview-card-front-content {
  position: relative;
  z-index: 2;
  padding: 9px;
}

.overview-card-front-content span,
.overview-card-back > span {
  display: inline-flex;
  width: 45px;
  height: 42px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #63237f, #159bde);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(99, 35, 127, 0.28);
}

.overview-card-front h3 {
  margin: 0;
  color: #000000;
  font-size: 25px;
  line-height: 1.15;
     padding-left: 5px;
  font-weight: 700;
  letter-spacing: -0.6px;
}


.overview-card-back {
  padding: 0px;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 241, 252, 0.96)
  );
}

.overview-card-back p {
  margin: 0;
  color: #111111;
  font-size: 15px;
  line-height: 1.62;
  font-weight: 400;
  padding-left: 5px;
  justify-content: left;
  align-items: center;
}

.overview-card-back p strong {
  color: #63237f;
  font-weight: 900;
}

.overview-flip-card:nth-child(1),
.overview-flip-card:nth-child(3) {
  transform: translateY(16px);
}

.overview-flip-card:nth-child(2),
.overview-flip-card:nth-child(4) {
  transform: translateY(-16px);
}

@media (max-width: 1100px) {
  .overview-section {
    padding: 70px 6%;
  }

  .overview-container {
    grid-template-columns: 1fr;
    gap: 45px;
    text-align: center;
  }

  .overview-left h2 {
    max-width: 820px;
    margin: 0 auto;
  }

  .overview-card-wrap {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 28px;
    max-width: 760px;
    margin: 0 auto;
  }

  .overview-flip-card {
    max-width: 100%;
  }

  .overview-flip-card:nth-child(1),
  .overview-flip-card:nth-child(2),
  .overview-flip-card:nth-child(3),
  .overview-flip-card:nth-child(4) {
    transform: none;
  }

  .overview-card {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .overview-section {
    padding: 60px 20px;
  }

  .overview-bg-video {
    opacity: 0.75;
  }

  .overview-overlay {
    background: rgba(255, 255, 255, 0.58);
  }

  .overview-motion {
    display: none;
  }

  .overview-container {
    gap: 35px;
  }

  .overview-left h2 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.6px;
  }

  .overview-card-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 420px;
    margin: 0 auto;
  }

  .overview-flip-card {
    width: 100%;
    max-width: 100%;
    height: 350px;
  }

  .overview-card {
    border-radius: 24px;
  }

  .overview-card-front-content {
    padding: 24px;
  }

  .overview-card-back {
    padding: 26px 22px;
  }

  .overview-card-front h3 {
    font-size: 24px;
  }

  .overview-card-back p {
    font-size: 14.2px;
    line-height: 1.62;
  }

  .overview-card-front-content span,
  .overview-card-back > span {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 16px;
    margin-bottom: 18px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .overview-section {
    padding: 55px 16px;
  }

  .overview-left h2 {
    font-size: 30px;
  }

  .overview-flip-card {
    height: 370px;
  }

  .overview-card-front-content {
    padding: 22px;
  }

  .overview-card-back {
    padding: 24px 20px;
  }

  .overview-card-back p {
    font-size: 13.5px;
    line-height: 1.55;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .overview-section {
    padding: 50px 12px;
  }

  .overview-left h2 {
    font-size: 27px;
  }

  .overview-flip-card {
    height: 390px;
  }

  .overview-card-front h3 {
    font-size: 21px;
  }

  .overview-card-back p {
    font-size: 13px;
  }
}