/* Expertise Section */
.expertise-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 72px 20px 56px;
  overflow: hidden;
}

.expertise-section .container {
  max-width: 1400px;
  margin: 0 auto;
}

.expertise-header {
  text-align: center;
  margin-bottom: 48px;
}

.expertise-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-heading);
  font-family: var(--font-heading);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.expertise-description {
  font-size: 1.125rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  max-width: 850px;
  margin: 0 auto 16px;
  line-height: 1.8;
}

.expertise-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.image-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 20px;
  min-height: 450px;
  margin-bottom: 36px;
}

.image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-card {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--color-gray-200);
  position: relative;
  cursor: pointer;
}

.image-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.image-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

.image-card:hover::before {
  opacity: 1;
}

.image-card:hover .service-info {
  opacity: 1;
  transform: translateY(0);
}

.image-item:hover .service-info {
  opacity: 1;
  transform: translateY(0);
}

.image-item:hover .image-card::before {
  opacity: 1;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-item:nth-child(1) {
  width: 240px;
  height: 340px;
  align-self: flex-end;
  margin-bottom: 20px;
}

.image-item:nth-child(2) {
  width: 240px;
  height: 340px;
  align-self: flex-start;
  margin-top: 0;
}

.image-item:nth-child(3) {
  width: 240px;
  height: 340px;
  align-self: center;
  margin-top: 60px;
}

.image-item:nth-child(4) {
  width: 240px;
  height: 340px;
  align-self: flex-start;
  margin-top: 10px;
}

.image-item:nth-child(5) {
  width: 240px;
  height: 340px;
  align-self: center;
  margin-top: 40px;
}

.service-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: #ffffff;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.service-info,
.service-info * {
  color: #ffffff;
}

.service-title,
.service-description {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.service-tag {
  display: inline-block;
  background: var(--color-secondary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  font-family: var(--font-heading);
}

.service-description {
  font-size: 0.875rem;
  opacity: 0.95;
  line-height: 1.4;
}

.service-label {
  text-align: center;
  margin-top: 16px;
}

.service-label-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.service-label-subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.cta-section {
  text-align: center;
  margin-top: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  min-height: 44px;
  min-width: 180px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--color-primary);
  border-radius: 4px 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  transition:
    background-color 0.25s ease,
    opacity 0.2s ease;
}

.cta-button:hover {
  background:
    radial-gradient(
      16.67% 16.67% at 50% 50%,
      rgba(178, 40, 43, 0.5) 0%,
      rgba(158, 30, 33, 0.5) 83.33%
    ),
    var(--color-primary);
  text-decoration: none;
  color: #fff;
}

.cta-button:active {
  opacity: 0.7;
}

.cta-subtitle {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

@media (max-width: 1200px) {
  .image-gallery {
    gap: 20px;
  }

  .image-item:nth-child(1),
  .image-item:nth-child(2),
  .image-item:nth-child(3),
  .image-item:nth-child(4),
  .image-item:nth-child(5) {
    width: 220px;
    height: 320px;
  }
}

@media (max-width: 992px) {
  .expertise-title {
    font-size: 2.5rem;
  }

  .expertise-description {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .image-gallery {
    gap: 16px;
  }

  .image-item:nth-child(1),
  .image-item:nth-child(2),
  .image-item:nth-child(3),
  .image-item:nth-child(4),
  .image-item:nth-child(5) {
    width: 200px;
    height: 280px;
    margin-top: 20px !important;
  }
}

@media (max-width: 768px) {
  .expertise-section {
    padding: 52px 20px 44px;
  }

  .expertise-title {
    font-size: 2rem;
  }

  .expertise-description {
    font-size: 0.95rem;
  }

  .expertise-stats {
    gap: 30px;
  }

  .image-gallery {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }

  .image-item:nth-child(1),
  .image-item:nth-child(2),
  .image-item:nth-child(3),
  .image-item:nth-child(4),
  .image-item:nth-child(5) {
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin-top: 0 !important;
    margin-bottom: 20px;
  }

  .service-info {
    opacity: 1;
    transform: translateY(0);
  }

  .image-card::before {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .expertise-title {
    font-size: 1.75rem;
  }

  .expertise-description {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 12px 24px;
    min-width: 0;
  }
}
