/* Service Card Flip Effect */
.service-item-wrapper {
  perspective: 1000px;
  position: relative;
  height: auto;
  min-height: 350px;
}

.service-item.style-2 {
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  position: relative;
  height: 100%;
  min-height: 350px;
  border-radius: 12px;
  overflow: visible !important;
}

.service-item-wrapper:hover .service-item.style-2 {
  transform: rotateY(180deg);
}

/* Front and back faces */
.service-front,
.service-back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 12px;
  box-sizing: border-box;
  -webkit-backface-visibility: hidden;
}

.service-front {
  transform: rotateY(0deg);
  z-index: 2;
  padding: 40px 35px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  gap: 30px;
  height: 100%;
  align-items: flex-start;
}

.service-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #0c1e21 0%, #18292c 100%);
  border: 2px solid #e1002e;
  box-shadow: 0 10px 30px rgba(225, 0, 46, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* QR Code styling */
.qr-code-container {
  text-align: center;
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.qr-code-container h4 {
  color: #e1002e;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.qr-code-container img {
  max-width: 180px;
  height: auto;
  border: 4px solid #e1002e;
  border-radius: 12px;
  margin-bottom: 20px;
  background: white;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(225, 0, 46, 0.3);
  transition: transform 0.3s ease;
}

.qr-code-container img:hover {
  transform: scale(1.05);
}

.qr-code-container p {
  color: #e0e0e0;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
  max-width: 280px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Two-column layout: left (icon+title), right (content) */
.service-front .title-area {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.service-front .title-area .service-icon {
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-front .title-area .service-icon i {
  font-size: 60px;
  color: #e1002e;
}

.service-front .title-area .title {
  margin: 0;
  width: 100%;
}

.service-front .title-area .title h4,
.service-front .title-area .title a {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: left;
}

.service-front .title-area .title a:hover {
  color: #e1002e;
}

.service-front .service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-front .service-content .desc {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 25px 0;
  text-align: left;
}

.service-front .service-content .list-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-front .service-content .list-items li {
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 12px;
  padding: 0;
  background: none;
  border: none;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.service-front .service-content .list-items li:hover {
  color: #e1002e;
  transform: none;
  background: none;
  box-shadow: none;
}

.service-front .service-content .list-items li:last-child {
  margin-bottom: 0;
}

.service-front .service-content .list-items li i {
  color: #e1002e;
  font-size: 14px;
  margin-right: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* No hover effects for front side - keep it clean */

/* Force QR code visibility on back side */
.service-item-wrapper:hover .service-back {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.service-item-wrapper:hover .service-front {
  display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .service-item-wrapper:hover .service-item.style-2 {
    transform: none;
  }
  
  .service-item-wrapper:active .service-item.style-2 {
    transform: rotateY(180deg);
  }
  
  .qr-code-container img {
    max-width: 120px;
  }
}