/* 
    Sobuj Slider - Snappy Horizontal Stretch Reveal
    Uses scaleX for a dynamic horizontal reveal effect.
*/

.sobuj-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Poppins", sans-serif;
  --ss-cols: 4;
}

.ss-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.ss-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  z-index: 1;
  background: #000;
}

.ss-slide.active {
  visibility: visible;
  z-index: 3;
}
.ss-desc {
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: 0.4s;
}

.active .ss-desc {
  opacity: 1;
  transform: translateY(0);
}
.ss-slide.leaving {
  visibility: visible;
  z-index: 2;
  transition: opacity 600ms ease;
  opacity: 0;
}

/* Background Wrapper */
.ss-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  margin-right: -2px;
}

.ss-slot {
  position: relative;
  height: 100%;
  flex: 1;
  overflow: hidden;
  background: #000;
  margin-right: -1px;
  will-change: transform;
}

.ss-slot-img {
  position: absolute;
  top: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  width: calc(var(--ss-cols) * 100%);
  transform: scaleX(1) translateX(0);
  opacity: 1;
}

/* The Mask Layer Wrapper */
.ss-slot-mask-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  transition: clip-path 800ms cubic-bezier(0.45, 0, 0.55, 1);
  will-change: clip-path;
}

.active .ss-slot-mask-wrapper {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.ss-slot-mask {
  position: absolute;
  top: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  width: calc(var(--ss-cols) * 100%);

  /* Horizontal Stretch Animation for NEW slide */
  transform: scaleX(1.4) translateX(5%);
  opacity: 0.7;
  transition:
    transform 800ms cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 800ms cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
  transform-origin: left center;
}

.active .ss-slot-mask {
  transform: scaleX(1) translateX(0);
  opacity: 1;
}

/* Content */
.ss-content {
  position: relative;
  z-index: 4;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
  pointer-events: none;
  padding-top: 160px;
  padding-bottom: 50px;
}

.ss-title {
  font-size: 70px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: 0.3s;
}

.active .ss-title {
  opacity: 1;
  transform: translateY(0);
}

.ss-btn {
  display: inline-block;
  padding: 15px 35px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: 0.5s;
  pointer-events: auto;
}

.active .ss-btn {
  opacity: 1;
  transform: translateY(0);
}

.contact-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 600ms cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: 0.6s;
  pointer-events: auto;
}

.active .contact-btn {
  opacity: 1;
  transform: translateY(0);
}

.ss-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  column-gap: 20px;
  padding: 0 30px;
  box-sizing: border-box;
  width: 100%;
  justify-content: space-between;
}

.ss-nav button {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-nav button:hover {
  background: #fff;
  color: #000;
}

.ss-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.ss-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.ss-dot.active {
  background: #fff;
}

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