/* 
    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: inherit;
  --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: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
  pointer-events: none;
  padding-top: 90px;
  padding-bottom: 70px;
}

.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;
  }
}

/* ---- Adnan site additions ---- */
.ss-bg-wrapper::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: rgba(0, 0, 0, var(--ss-overlay, .45)); }
.ss-inner { position: relative; z-index: 4; height: 100%; width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 4.5rem; box-sizing: border-box; }
.ss-inner > .ss-content { align-items: flex-start; }
.ss-content > div:first-child { max-width: 46rem; }
.ss-actions { display: flex; align-items: center; column-gap: 1.5rem; }
.ss-btn { background: rgb(var(--brand-600)); border-color: transparent; }
.contact-btn { display: inline-flex; align-items: center; column-gap: .5rem; color: #fff; font-weight: 600; text-decoration: none; }
.ss-desc { max-width: 38rem; }
@media (max-width: 768px) { .ss-inner { padding: 0 1.25rem; } .ss-nav { display: none; } .ss-desc { font-size: 16px; } }
.ss-title{font-size:clamp(32px,5vw,56px);line-height:1.25;text-transform:none}

/* ---- v1: slider starts at the very top, the menu floats transparent over it ---- */
html.hero-v1 #site-topbar { display: none; }
html.hero-v1 #site-header { position: fixed; top: 0; left: 0; right: 0; }
html.hero-v1 #site-header:not(.is-scrolled) { background: transparent !important; border-color: transparent; box-shadow: none; }
html.hero-v1 #site-header:not(.is-scrolled) > div:first-child :is(nav a, button) { color: #fff !important; border-color: rgba(255,255,255,.4); }
html.hero-v1 #site-header:not(.is-scrolled) > div:first-child nav a:hover { opacity: .75; }
html.hero-v1 #site-header:not(.is-scrolled) > div:first-child a[data-magnetic] { color: #fff !important; }
html.hero-v1 .ss-content { padding-top: 110px; }

/* ---- content centred in the middle of the screen ---- */
.ss-inner > .ss-content { align-items: center; justify-content: center; text-align: center; padding-top: 90px; padding-bottom: 90px; }
.ss-content > div:first-child { margin: 0 auto; }
.ss-desc { margin-left: auto; margin-right: auto; }
.ss-actions { justify-content: center; }
html.hero-v1 .ss-content { padding-top: 90px; }
