/* Image Comparison Slider */
.image-comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  background: #f3f4f6;
}

.comparison-before,
.comparison-after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  transition: width 0.1s ease-out;
}

.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  transition: left 0.1s ease-out;
  z-index: 10;
}

.comparison-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-arrows {
  color: #1f2937;
  width: 20px;
  height: 20px;
}

.comparison-label {
  position: absolute;
  top: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  color: white;
  z-index: 20;
  user-select: none;
}

.comparison-label-before {
  left: 16px;
  background-color: #dc2626;
}

.comparison-label-after {
  right: 16px;
  background-color: #16a34a;
}

/* Projects Showcase */
.projects-showcase {
  padding: 96px 0;
  background: linear-gradient(to bottom, white, #f9fafb);
}

.projects-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 16px;
}

.projects-header {
  text-align: center;
  margin-bottom: 64px;
}

.projects-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #111827;
}

@media (max-width: 640px) {
  .projects-title {
    font-size: 36px;
  }
}

.projects-subtitle {
  display: block;
  color: #b45309;
  margin-top: 8px;
}

.projects-description {
  font-size: 18px;
  color: #4b5563;
  max-width: 42rem;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.projects-main {
  display: flex;
  flex-direction: column;
}

.projects-slider-wrapper {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.project-details {
  background: white;
  padding: 32px;
  border-radius: 8px;
}

.project-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.project-location,
.project-category {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-location .icon,
.project-category .icon {
  width: 16px;
  height: 16px;
  color: #b45309;
}

.project-category {
  font-weight: 600;
  color: #b45309;
}

.project-description {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 32px;
  line-height: 1.6;
}

.project-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fef3c7;
  padding: 16px;
  border-radius: 8px;
}

.highlight-item .icon {
  width: 18px;
  height: 18px;
  color: #b45309;
  flex-shrink: 0;
  margin-top: 4px;
}

.highlight-item span {
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

.projects-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card {
  text-align: left;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #111827;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 14px;
}

.project-card:hover {
  border-color: #b45309;
}

.project-card h4 {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 16px;
}

.project-card p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.project-card.project-selected {
  background-color: #b45309;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
  border-color: #b45309;
}

.project-card.project-selected p {
  color: #fef3c7;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to right, #b45309, #92400e);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  color: white;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 32px 24px;
  }
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.cta-description {
  font-size: 18px;
  color: #fed7aa;
  margin-bottom: 32px;
}

.cta-button {
  background: white;
  color: #b45309;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-button:hover {
  background: #fef3c7;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-showcase {
    padding: 48px 0;
  }

  .projects-header {
    margin-bottom: 32px;
  }

  .projects-title {
    font-size: 32px;
  }

  .project-highlights {
    grid-template-columns: 1fr;
  }

  .project-meta {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
