/* Services Styles for NopCommerce - Mobile Responsive */
.services-container {
  max-width: 1200px;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding: 5%;
}

.service-box {
  position: relative;
  height: 350px;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  background: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-box:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(122, 55, 134, 0.25);
}

.service-box:active {
  transform: translateY(-10px) scale(0.98);
  transition: all 0.1s ease;
}

.service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-size: cover;
  background-position: center;
  transition: all 0.4s ease;
}

.service-box:hover .service-bg {
  transform: scale(1.05);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  padding: 25px 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.service-info {
  flex: 1;
  margin-bottom: 20px;
  padding: 0 25px;
  text-align: right;
}

.service-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: right;
}

.service-box:hover .service-title {
  color: #7a3786;
}

.service-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-align: right;
}

.whatsapp-button {
  width: 100%;
  background: #8A5597;
  color: white;
  border: none;
  padding: 18px 20px;
  border-radius: 0 0 25px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(138, 85, 151, 0.3);
  margin: 0;
  text-align: right;
  padding-right: 30px;
}

.whatsapp-button:hover {
  background: #7a3786;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(138, 85, 151, 0.4);
}

.whatsapp-button:active {
  transform: translateY(0);
  background: #6a2a76;
  box-shadow: 0 3px 10px rgba(138, 85, 151, 0.5);
}

.whatsapp-button.clicked {
  transform: scale(0.95);
  background: #6a2a76;
  box-shadow: 0 2px 8px rgba(138, 85, 151, 0.6);
}

.whatsapp-icon {
  font-size: 1.2rem;
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.95);
  color: #7a3786;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: bold;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(122, 55, 134, 0.3);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  animation: pulse 2s infinite;
}

/* Staggered delays for wave effect */
.service-box:nth-child(1) .service-badge {
  animation-delay: 0s;
}

.service-box:nth-child(2) .service-badge {
  animation-delay: 0.5s;
}

.service-box:nth-child(3) .service-badge {
  animation-delay: 1s;
}

.service-box:nth-child(4) .service-badge {
  animation-delay: 1.5s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(122, 55, 134, 0.3);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
}

.click-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(122, 55, 134, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: 5;
  pointer-events: none;
}

.service-box.clicked .click-effect {
  width: 400px;
  height: 400px;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    padding: 5%;
  }

  .service-box {
    height: auto;
    min-height: 320px;
    border-radius: 20px;
  }

  .service-content {
    position: relative;
    height: auto;
    padding: 30px 0 0 0;
    background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
  }

  .service-info {
    padding: 0 30px;
    margin-bottom: 25px;
  }

  .service-title {
    font-size: 1.6rem;
    margin-bottom: 18px;
    line-height: 1.4;
  }

  .service-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .whatsapp-button {
    padding: 20px 25px;
    font-size: 1.1rem;
    border-radius: 0 0 20px 20px;
    min-height: 65px;
    padding-right: 30px;
    padding-left: 25px;
  }

  .whatsapp-icon {
    font-size: 1.3rem;
  }

  .service-badge {
    top: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 20px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .services-grid {
    gap: 25px;
    margin-top: 25px;
    padding: 4%;
  }

  .service-box {
    min-height: 300px;
    border-radius: 18px;
  }

  .service-info {
    padding: 0 25px;
    margin-bottom: 20px;
  }

  .service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .service-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .whatsapp-button {
    padding: 18px 22px;
    font-size: 1rem;
    min-height: 60px;
    padding-right: 28px;
    padding-left: 22px;
  }

  .whatsapp-icon {
    font-size: 1.2rem;
  }

  .service-badge {
    top: 18px;
    right: 18px;
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 18px;
  }
}

/* Mobile touch improvements */
@media (max-width: 768px) {
  .whatsapp-button {
    /* Ensure minimum touch target size */
    min-height: 44px;
    /* Improve touch feedback */
    -webkit-tap-highlight-color: rgba(138, 85, 151, 0.3);
    /* Prevent text selection on tap */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .service-box {
    /* Improve touch feedback */
    -webkit-tap-highlight-color: rgba(122, 55, 134, 0.1);
  }
  
  /* Ensure proper text rendering on mobile */
  .service-title,
  .service-description {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .service-box {
    min-height: 220px;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .service-description {
    font-size: 0.85rem;
  }

  .whatsapp-button {
    padding: 12px 16px;
    font-size: 0.9rem;
    min-height: 45px;
  }
}