/*-----------------------------------*\
  #service.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */

/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service .section-title {
  margin-block-end: 16px;
}

.service .section-text {
  margin-block-end: 40px;
}

.service-card {
  position: relative;
  background-color: var(--white);
  padding: 40px 30px;
  text-align: center;
  border-radius: var(--radius-24);
  box-shadow: var(--shadow-1);
  transition: var(--transition-2);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.service-card:is(:hover, :focus-within) {
  transform: translateY(-10px);
}

.service-card .card-banner {
  transition: transform 0.1s linear;
  transform: translateZ(0);
  will-change: transform;
}

.service-card .card-content {
  transform: translateZ(10px);
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Add data attributes for Locomotive Scroll */
.service-card[data-scroll] {
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

.service-card[data-scroll] .card-banner {
  transform: translateZ(0);
}

.service-card[data-scroll] .card-content {
  transform: translateZ(10px);
}

/* Add subtle hover effect */
.service-card:hover .card-banner {
  transform: translateZ(20px);
}

.service-card:hover .card-content {
  transform: translateZ(30px);
}

.service-card .has-before {
  padding-block: 30px;
  margin-block-end: 26px;
  z-index: 1;
  position: relative;
}

.service-card .has-before::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 100%;
  background-image: url('../images/img-pattern.svg');
  background-position: center;
  background-size: cover;
  background-repeat: repeat;
  transition: var(--transition-2);
  transition-delay: 0;
  z-index: -1;
  will-change: transform;
}

.service-card:is(:hover, :focus-within) .has-before::before {
  transform: rotateY(0.5turn) translateX(50%);
  transition-delay: 300ms;
}

.service-card .card-title {
  margin-block-end: 12px;
}

.service-card .card-text {
  color: var(--quick-silver);
  line-height: var(--lineHeight-6);
}

.service .shape {
  position: absolute;
  z-index: -1;
}

.service .shape-1 {
  bottom: 0;
  left: 0;
}

.service .shape-2 {
  top: 0;
  right: 0;
}
