.services {
  padding: 5rem 0 0 0;
  background-color: rgb(0, 119, 190);
  width: 100%;
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.services-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.services-subtitle {
  color: var(--text-light);
  max-width: 36rem;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  padding-bottom: 0;
}

.service-tabs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: center;
}

.tabs-wrapper {
  padding: 1rem 2rem;
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  .tabs-wrapper {
    flex-wrap: nowrap;
    padding: 1rem;
    justify-content: center;
    position: relative;
    min-height: 3rem;
  }

  .service-tab {
    display: none;
  }

  .service-tab.active {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
  }
}

.service-tab {
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.service-tab::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.service-tab.active {
  color: white;
}

.service-tab.active::after {
  width: 100%;
}

.service-tab:not(.active):hover {
  color: white;
}

.service-tab:not(.active):hover::after {
  width: 100%;
}

.carousel {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  margin-top: 4rem;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

.carousel-slide {
  width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.service-card {
  position: relative;
  height: 32rem;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.service-card-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--primary);
  opacity: 0.6;
}

.service-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.service-card-description {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  max-width: 28rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-card-link:hover {
  color: var(--accent);
}

.service-card-link svg {
  margin-left: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.pagination-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

.pagination-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background-color: var(--background);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
  pointer-events: auto;
}

.pagination-dot.active {
  background-color: white;
  width: 1.5rem;
}

@media (max-width: 768px) {
  .services-title {
    font-size: 2rem;
  }
  
  .service-card {
    height: 20rem;
  }
  
  .service-card-description {
    font-size: 1rem;
  }
} 
