.services-section {
  padding: 40px;
  background-color: var(--background-color);
}

.services-intro {
  text-align: center;
  margin: 60px 0;
}

.services-intro h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.services-intro p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--secondary-color);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  background-color: var(--background-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
  min-height: 300px;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.service-card:nth-child(even) .service-image {
  order: 2;
}

.service-card:nth-child(even) .service-content {
  order: 1;
}

.service-image {
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.service-content h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-description {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero-card {
  grid-template-columns: 1fr;
  position: relative;
  min-height: 400px;
}

.hero-card .service-image {
  position: relative;
}

.full-width {
  grid-column: 1 / -1;
}

.about-hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.about-hero-text h2 {
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.hero-card .service-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

@media (max-width: 768px) {
  .service-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-card:nth-child(even) .service-image,
  .service-card:nth-child(even) .service-content {
    order: initial;
  }

  .services-section {
    padding: 20px;
  }

  .about-hero-text h2 {
    font-size: 2rem;
  }

  .service-content {
    padding: 20px;
  }
}
