/* Specific styles for the All-in-One Super App section */
.superapp-section {
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff, #f0fdfa);
}

.superapp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.superapp-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #0d9488, #10b981, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.superapp-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Updated cards container for smooth sliding */
.superapp-cards-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.superapp-cards {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  gap: 1.5rem;
  padding-bottom: 10px; /* For shadow visibility */
}

.superapp-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  min-width: calc(33.333% - 1rem);
  flex: 0 0 calc(33.333% - 1rem);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.superapp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.superapp-card-header {
  background-color: #14b8a6;
  color: white;
  padding: 1.25rem;
  text-align: center;
}

.superapp-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.superapp-card-body {
  padding: 1.25rem;
  flex: 1;
}

.superapp-card-description {
  color: #4b5563;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.superapp-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.superapp-feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(20, 184, 166, 0.05);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.superapp-feature-item:hover {
  background-color: rgba(20, 184, 166, 0.1);
  transform: translateX(5px);
}

.superapp-feature-icon {
  color: #14b8a6;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.superapp-feature-text {
  color: #4b5563;
  font-size: 0.9rem;
}

.superapp-card-footer {
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(20, 184, 166, 0.1);
}

.superapp-link {
  color: #14b8a6;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.superapp-link:hover {
  color: #0d9488;
}

.superapp-link-icon {
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.superapp-link:hover .superapp-link-icon {
  transform: translateX(3px);
}

.superapp-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.superapp-nav-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: white;
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: #14b8a6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.superapp-nav-button:hover {
  background-color: #14b8a6;
  color: white;
}

.superapp-cta {
  text-align: center;
  margin-top: 2rem;
}

.superapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #0d9488, #10b981, #0d9488);
  color: white;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.superapp-button:hover {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.superapp-button-icon {
  margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .superapp-card {
    min-width: calc(50% - 1rem);
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .superapp-card {
    min-width: 100%;
    flex: 0 0 100%;
  }
  
  .superapp-title {
    font-size: 2rem;
  }
  
  .superapp-subtitle {
    font-size: 1rem;
  }
}

/* Add these to your existing CSS */
.superapp-cards-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  touch-action: pan-y; /* Enable touch scrolling */
}

.superapp-cards {
  display: flex;
  will-change: transform;
  gap: 1.5rem;
  padding-bottom: 10px;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smoother easing */
}

/* For touch devices - smooth momentum scrolling */
.superapp-cards.grabbing {
  cursor: grabbing;
  transition: none;
}

/* Hide scrollbar but keep functionality */
.superapp-cards-container::-webkit-scrollbar {
  display: none;
}

.superapp-cards-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Add these to your existing CSS */
.superapp-cards {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother easing for auto-play */
}

/* Pause indicator */
.superapp-cards-container::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: rgba(20, 184, 166, 0.3);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.superapp-cards-container:hover::after {
  opacity: 1;
}

/* Animation for auto-play indicator */
@keyframes autoPlayProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

.superapp-cards-container::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: #14b8a6;
  border-radius: 3px;
  opacity: 0;
}

.superapp-cards-container:not(:hover)::before {
  opacity: 1;
  animation: autoPlayProgress 3s linear infinite;
}