/* Professional Dynamic Slider Component */
.professional-slider {
  width: 100%;
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-card {
  position: absolute;
  /* Dynamic sizing based on aspect ratio */
  min-width: 200px;
  max-width: 350px;
  min-height: 250px;
  max-height: 450px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Landscape images */
.slide-card.landscape {
  width: 350px;
  height: 250px;
}

/* Portrait images */
.slide-card.portrait {
  width: 250px;
  height: 350px;
}

/* Square images */
.slide-card.square {
  width: 300px;
  height: 300px;
}

.slide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.slide-card:hover::before {
  opacity: 1;
}

/* Slide positions */
.slide-card.active {
  transform: translateX(0) translateZ(100px) scale(1.1);
  z-index: 10;
  /* box-shadow: 0 30px 60px rgba(0, 255, 136, 0.2); */
}

.slide-card.prev {
  transform: translateX(-320px) translateZ(0) rotateY(25deg) scale(0.9);
  z-index: 5;
  opacity: 0.8;
}

.slide-card.next {
  transform: translateX(320px) translateZ(0) rotateY(-25deg) scale(0.9);
  z-index: 5;
  opacity: 0.8;
}

.slide-card.far-prev {
  transform: translateX(-580px) translateZ(-100px) rotateY(35deg) scale(0.7);
  z-index: 2;
  opacity: 0.5;
}

.slide-card.far-next {
  transform: translateX(580px) translateZ(-100px) rotateY(-35deg) scale(0.7);
  z-index: 2;
  opacity: 0.5;
}

.slide-card.hidden {
  transform: translateX(0) translateZ(-200px) scale(0.5);
  opacity: 0;
  z-index: 1;
}

/* Navigation buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 2px solid rgba(0, 255, 136, 0.5);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.slider-nav:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

.slider-nav::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid #00ff88;
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg);
}

.slider-nav.prev::after {
  transform: rotate(-135deg);
  margin-left: 3px;
}

/* Slide indicators */
.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #00ff88;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(0, 255, 136, 0.7);
}

/* Modal for full view */
.slider-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  /* box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8); */
  border-radius: 20px;
}

.modal-image {
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 600px;
  object-fit: contain;
  border-radius: 20px;
}

.modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ff88;
  border-radius: 50%;
  color: #00ff88;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #00ff88;
  color: #000;
  transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .professional-slider {
    height: 450px;
    padding: 30px 15px;
  }
  
  .slide-card.landscape {
    width: 300px;
    height: 220px;
  }
  
  .slide-card.portrait {
    width: 220px;
    height: 300px;
  }
  
  .slide-card.square {
    width: 260px;
    height: 260px;
  }
  
  .slide-card.prev,
  .slide-card.next {
    transform: translateX(-280px) translateZ(0) rotateY(25deg) scale(0.85);
  }
  
  .slide-card.next {
    transform: translateX(280px) translateZ(0) rotateY(-25deg) scale(0.85);
  }
  
  .slide-card.far-prev {
    transform: translateX(-480px) translateZ(-100px) rotateY(35deg) scale(0.65);
  }
  
  .slide-card.far-next {
    transform: translateX(480px) translateZ(-100px) rotateY(-35deg) scale(0.65);
  }
}

@media (max-width: 768px) {
  .professional-slider {
    height: 400px;
    padding: 20px 10px;
  }
  
  .slide-card.landscape {
    width: 260px;
    height: 190px;
  }
  
  .slide-card.portrait {
    width: 190px;
    height: 260px;
  }
  
  .slide-card.square {
    width: 220px;
    height: 220px;
  }
  
  .slide-card.active {
    transform: translateX(0) translateZ(50px) scale(1.05);
  }
  
  .slide-card.prev,
  .slide-card.next {
    transform: translateX(-240px) translateZ(0) rotateY(20deg) scale(0.8);
  }
  
  .slide-card.next {
    transform: translateX(240px) translateZ(0) rotateY(-20deg) scale(0.8);
  }
  
  .slide-card.far-prev,
  .slide-card.far-next {
    display: none;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
  }
  
  .slider-nav.prev {
    left: 10px;
  }
  
  .slider-nav.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .professional-slider {
    height: 350px;
    padding: 15px 5px;
  }
  
  .slide-card.landscape {
    width: 220px;
    height: 160px;
  }
  
  .slide-card.portrait {
    width: 160px;
    height: 220px;
  }
  
  .slide-card.square {
    width: 180px;
    height: 180px;
  }
  
  .slide-card.active {
    transform: translateX(0) translateZ(30px) scale(1.02);
  }
  
  .slide-card.prev,
  .slide-card.next {
    transform: translateX(-200px) translateZ(0) rotateY(15deg) scale(0.75);
  }
  
  .slide-card.next {
    transform: translateX(200px) translateZ(0) rotateY(-15deg) scale(0.75);
  }
  
  .slider-indicators {
    bottom: 10px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
}

/* Touch and drag support */
.slider-track.dragging {
  transition: none;
}

.slide-card.dragging {
  transition: none;
}

/* Loading state */
.slide-card.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility */
.slide-card:focus {
  outline: 2px solid #00ff88;
  outline-offset: 4px;
}

.slider-nav:focus {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
}

.indicator:focus {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
}

/* Animation enhancements */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-card {
  animation: slideIn 0.6s ease-out;
}

/* .slide-card.active {
  animation: slideIn 0.6s ease-out, glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 30px 60px rgba(0, 255, 136, 0.2);
  }
  to {
    box-shadow: 0 30px 60px rgba(0, 255, 136, 0.4);
  }
} */

