/* =============================================
   TRANSFORMATION SHOWCASE - NEW IMPLEMENTATION
   ============================================= */

.transformation-showcase {
  background: #f5f0e8;
  padding: 100px 0;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

/* Transformation Card */
.transformation-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.transformation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(197, 151, 85, 0.25);
  border-color: #c59755;
}

/* Image Comparison Slider */
.image-comparison-slider {
  position: relative;
  height: 300px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  background: #e8e0d5;
}

.comparison-before,
.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.comparison-before {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  z-index: 1;
}

.comparison-after {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
}

/* Comparison Labels */
.comparison-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(28, 25, 23, 0.9);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  pointer-events: none;
  transition: all 0.3s ease;
}

.comparison-after .comparison-label {
  background: rgba(197, 151, 85, 0.95);
  color: #1c1917;
}

.image-comparison-slider:hover .comparison-label {
  transform: scale(1.05);
}

/* Comparison Handle */
.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  z-index: 20;
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 0.1s ease-out;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ffffff;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(197, 151, 85, 0.8),
              0 0 40px rgba(197, 151, 85, 0.4);
}

.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: #ffffff;
  border: 4px solid #c59755;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  cursor: ew-resize;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.handle-circle i {
  font-size: 1.25rem;
  color: #c59755;
  transition: all 0.3s ease;
}

.image-comparison-slider:hover .handle-circle {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 8px 30px rgba(197, 151, 85, 0.5);
  border-width: 5px;
}

.image-comparison-slider:active .handle-circle {
  transform: translate(-50%, -50%) scale(1.05);
}

.image-comparison-slider:hover .handle-circle i {
  transform: scale(1.1);
}

/* Transformation Details */
.transformation-details {
  padding: 28px 24px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.transformation-card:hover .transformation-details {
  background: linear-gradient(to bottom, #f5f0e8, #ffffff);
}

.transformation-details h4 {
  font-size: 1.25rem;
  color: #1c1917;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
  font-family: 'Cormorant Garamond', serif;
  transition: color 0.3s ease;
}

.transformation-card:hover .transformation-details h4 {
  color: #c59755;
}

.transformation-details p {
  font-size: 0.95rem;
  color: #78716c;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Transformation Meta */
.transformation-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.transformation-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #57534e;
  font-weight: 500;
  transition: all 0.3s ease;
}

.transformation-meta span i {
  color: #c59755;
  font-size: 0.9rem;
}

.transformation-card:hover .transformation-meta span {
  color: #1c1917;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .transformation-showcase {
    padding: 80px 0;
  }
  
  .showcase-grid {
    gap: 28px;
  }
  
  .image-comparison-slider {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .transformation-showcase {
    padding: 60px 0;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .image-comparison-slider {
    height: 240px;
  }
  
  .handle-circle {
    width: 48px;
    height: 48px;
  }
  
  .handle-circle i {
    font-size: 1.1rem;
  }
  
  .transformation-details {
    padding: 24px 20px;
  }
  
  .transformation-details h4 {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .image-comparison-slider {
    height: 220px;
  }
  
  .comparison-label {
    font-size: 0.7rem;
    padding: 6px 12px;
    top: 16px;
    left: 16px;
  }
  
  .handle-circle {
    width: 44px;
    height: 44px;
  }
  
  .handle-circle i {
    font-size: 1rem;
  }
  
  .transformation-meta {
    gap: 12px;
  }
  
  .transformation-meta span {
    font-size: 0.8rem;
  }
}

/* Animation for grid items */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.transformation-card {
  animation: slideInUp 0.6s ease-out backwards;
}

.transformation-card:nth-child(1) {
  animation-delay: 0.1s;
}

.transformation-card:nth-child(2) {
  animation-delay: 0.2s;
}

.transformation-card:nth-child(3) {
  animation-delay: 0.3s;
}
