.services-section {
  padding: 50px 0;
  background-color: #f8f9fa;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-subtitle {
  color: #c5a47e;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.services-title {
  font-size: 36px;
  font-weight: 800;
  color: #333;
  margin-bottom: 25px;
}

.services-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.service-full-description {
  max-height: 300px;
  padding: 6px;
  overflow-y: auto;
}

.service-full-description::-webkit-scrollbar {
  width: 8px;
}

.service-full-description::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

.service-full-description::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  z-index: 1;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.service-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(197, 164, 126, 0.95),
    rgba(197, 164, 126, 0.85)
  );
  z-index: 1;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-item:hover::before {
  opacity: 0;
}

.service-item:hover::after {
  opacity: 1;
}

.service-content {
  z-index: 2;
}

.service-item.featured {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  max-height: calc((100vw - 70px) / 4);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(110%) brightness(90%);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.01);
}

.service-item:hover .service-image {
  transform: scale(1.1);
  filter: grayscale(20%) contrast(100%) brightness(95%);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  color: white;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover .service-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-list {
  padding: 20px;
}

.service-brief {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-full-description {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.service-item:hover .service-brief {
  opacity: 0;
  transform: translateY(-10px);
  display: none;
}

.service-item:hover .service-full-description {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.service-cta {
  display: inline-block;
  padding: 10px 20px;
  background-color: white;
  color: #c5a47e;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.service-item:hover .service-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.service-cta:hover {
  background-color: #333;
  color: white;
}

@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-item,
  .service-item.featured {
    aspect-ratio: 16/9;
    max-height: none;
    height: auto;
  }

  .services-title {
    font-size: 28px;
  }

  .service-content {
    height: auto;
    min-height: 60%;
  }

  .service-brief {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 480px) {
  .services-title {
    font-size: 24px;
  }

  .service-title {
    font-size: 20px;
  }

  .service-content {
    padding: 20px;
  }
}
