.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.carousel-container.touching {
  cursor: grabbing;
}

.carousel-container.hovering {
  transform: scale(1.01);
}

.carousel-track {
  display: flex;
  transition: none;
  gap: 0;
  will-change: transform;
  user-select: none;
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

/* Mobile styles - single card per slide */
.service-card {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 2rem;
  pointer-events: auto;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

/* Tablet styles - 2 cards per row but still slides one at a time */
@media (min-width: 640px) and (max-width: 1023px) {
  .service-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 3rem;
  }
  
  .carousel-track {
    gap: 0;
  }
}

/* PC styles - all 3 cards visible, no slider */
@media (min-width: 1024px) {
  .carousel-container {
    overflow: visible;
  }
  
  .carousel-track {
    gap: 2rem;
    padding: 0 2rem;
    justify-content: center;
    cursor: default;
  }
  
  .service-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    max-width: calc(33.333% - 1.33rem);
    padding: 2rem;
  }
}

/* Enhanced service card styles */
.service-icon i {
  font-size: 2rem;
  background: linear-gradient(135deg, #3b82f6, #46b33c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.service-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform-origin: center;
  backface-visibility: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #46b33c, #06b6d4);
  border-radius: 24px 24px 0 0;
  transition: all 0.3s ease;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0;
  color: #1e293b;
  letter-spacing: -0.025em;
  transition: all 0.3s ease;
}

.service-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

/* Enhanced hover effects */
.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

.service-card:hover::after {
  transform: scale(1);
}

.service-card:hover::before {
  height: 6px;
  background: linear-gradient(90deg, #3b82f6, #46b33c, #06b6d4, #8b5cf6);
}

.service-card:hover .service-icon i {
  transform: scale(1.1) rotate(5deg);
}

/* Ripple effect for touch interactions */
.ripple-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  animation: rippleAnimation 1s ease-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes rippleAnimation {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Service divider */
.service-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.service-card:hover .service-divider {
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  height: 2px;
}

/* Enhanced carousel indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.indicator-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background: linear-gradient(135deg, #3b82f6, #46b33c);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.indicator-dot.active::before {
  width: 20px;
  height: 20px;
}

.indicator-dot:hover {
  background: #cbd5e1;
  transform: scale(1.2);
}

.indicator-dot.active:hover {
  background: linear-gradient(135deg, #3b82f6, #46b33c);
  transform: scale(1.4);
}

/* Indicator pulse animation */
@keyframes indicatorPulse {
  0% {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  }
  50% {
    transform: scale(1.5);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.4);
  }
  100% {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  }
}

/* Hide indicators on PC */
@media (min-width: 1024px) {
  .carousel-indicators {
    display: none;
  }
}

/* Enhanced swipe hint animation */
.swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.875rem;
  opacity: 0.8;
  animation: swipeHintPulse 3s ease-in-out infinite;
}

.swipe-hint-icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.swipe-hint-arrow {
  font-size: 0.75rem;
  animation: swipeArrowMove 2s ease-in-out infinite;
}

.swipe-hint-arrow:nth-child(2) {
  animation-delay: 0.3s;
}

.swipe-hint-arrow:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes swipeHintPulse {
  0%, 100% { 
    opacity: 0.6; 
    transform: translateY(0);
  }
  50% { 
    opacity: 1; 
    transform: translateY(-2px);
  }
}

@keyframes swipeArrowMove {
  0%, 100% { 
    transform: translateX(0); 
    opacity: 0.4; 
  }
  50% { 
    transform: translateX(4px); 
    opacity: 1; 
    color: #3b82f6;
  }
}

/* Hide swipe hint after first interaction */
.carousel-container.interacted .swipe-hint {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.5s ease;
}

/* Hide swipe hint on PC */
@media (min-width: 1024px) {
  .swipe-hint {
    display: none;
  }
}

/* Enhanced contact info styles */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #475569;
  text-decoration: none;
  padding: 0.5rem 0;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1));
  transition: width 0.3s ease;
}

.contact-link:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  padding-left: 0.75rem;
  transform: translateX(4px);
}

.contact-link:hover::before {
  width: 100%;
}

.contact-link i {
  width: 16px;
  height: 16px;
  font-size: 14px;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-link:hover i {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.1) rotate(5deg);
}

/* Add subtle animations for card content */
.service-card:hover h3 {
  color: #3b82f6;
  transform: translateX(4px);
}

.service-card:hover p {
  color: #475569;
  transform: translateX(2px);
}

/* Mobile-specific touch feedback */
@media (max-width: 1023px) {
  .carousel-container.touching .service-card {
    transition: none;
  }
  
  .carousel-container.touching .carousel-track {
    transition: none;
  }
}

/* Add momentum scrolling for touch devices */
@supports (-webkit-overflow-scrolling: touch) {
  .carousel-track {
    -webkit-overflow-scrolling: touch;
  }
}