



/* === MAIN SLIDER SECTION === */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 720px;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

/* === BLURRED BACKGROUND BEHIND ALL SLIDES === */
.hero-slider-blur-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.6);
  transition: background-image 0.6s ease;
  pointer-events: none;
}

/* === SLIDES CONTAINER === */
.hero-slider-container-3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  z-index: 2;
}

/* === SLIDE ITEM === */
.hero-slide-item {
  position: absolute;
  width: 420px;
  height: 85%;
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  transition: transform 0.6s ease, opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  cursor: pointer;
}

/* === ACTIVE AND NEIGHBOR SLIDES === */
.hero-slide-item.active {
  transform: translateZ(0px) scale(1.05);
  opacity: 1;
  z-index: 10;
}
.hero-slide-item.prev-1 {
  transform: translateX(-250px) rotateY(10deg) scale(0.95);
  opacity: 0.7;
  z-index: 9;
}
.hero-slide-item.prev-2 {
  transform: translateX(-450px) rotateY(20deg) scale(0.9);
  opacity: 0.5;
  z-index: 8;
}
.hero-slide-item.prev-3 {
  transform: translateX(-650px) rotateY(30deg) scale(0.85);
  opacity: 0.3;
  z-index: 7;
}
.hero-slide-item.next-1 {
  transform: translateX(250px) rotateY(-10deg) scale(0.95);
  opacity: 0.7;
  z-index: 9;
}
.hero-slide-item.next-2 {
  transform: translateX(450px) rotateY(-20deg) scale(0.9);
  opacity: 0.5;
  z-index: 8;
}
.hero-slide-item.next-3 {
  transform: translateX(650px) rotateY(-30deg) scale(0.85);
  opacity: 0.3;
  z-index: 7;
}
.hero-slide-item:not(.active):not(.prev-1):not(.prev-2):not(.prev-3):not(.next-1):not(.next-2):not(.next-3) {
  display: none;
}

/* === SLIDE BACKGROUND IMAGE OR VIDEO === */
.hero-slide-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  object-fit: cover;
  z-index: 0;
  transform: translate(-50%, -50%);
}

.hero-video-container{
    width: 100%;
}

/* === OVERLAY FOR BETTER TEXT CONTRAST === */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* === TEXT CONTENT === */
.hero-slide-content {
  color: #ffffff; 
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  z-index: 2;
  position: relative;
  padding: 2rem;
  display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
h1.hero-slide-title { 
  text-align: center;
    font-size: 40px;
    font-family: 'Raleway', sans-serif;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px !important;
    margin-bottom: 20px;
}

p.hero-slide-subtitle { 
  text-align: center;
    line-height: 28px;
    margin-bottom: 40px;
    font-size: 18px;
    color: #fff;
}


.hero-slide-button {
  display: inline-block; 
  font-weight: bold; 
} 


/* === ARROWS === */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 2rem;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.hero-slider-arrow.left {
  left: 30px;
}
.hero-slider-arrow.right {
  right: 30px;
}

/* Small desktops (max-width 1280px) */
@media screen and (max-width: 1280px) {
  .hero-slider-section {
    height: 600px;
  }
  h1.hero-slide-title {
    font-size: 36px;
  }
  .hero-slide-item {
    width: 360px;
  }

  .hero-slide-content {
    padding: 12px;
  }
}

/* Tablet (up to 1024px) */
@media screen and (max-width: 1024px) {
  .hero-slider-section {
    height: 500px;
  }
  h1.hero-slide-title {
    font-size: 32px;
  }
  .hero-slide-item {
    width: 340px;
    height: 80%;
  }

  .hero-slide-item.prev-1 {
    transform: translateX(-180px) rotateY(8deg) scale(0.95);
  }

  .hero-slide-item.prev-2 {
    transform: translateX(-340px) rotateY(16deg) scale(0.9);
  }

  .hero-slide-item.prev-3 {
    transform: translateX(-500px) rotateY(24deg) scale(0.85);
  }

  .hero-slide-item.next-1 {
    transform: translateX(180px) rotateY(-8deg) scale(0.95);
  }

  .hero-slide-item.next-2 {
    transform: translateX(340px) rotateY(-16deg) scale(0.9);
  }

  .hero-slide-item.next-3 {
    transform: translateX(500px) rotateY(-24deg) scale(0.85);
  }

  .hero-slide-content {
    padding: 10px;
  }

  h1.hero-slide-title {
    font-size: 30px;
  }

  p.hero-slide-subtitle {
    font-size: 16px;
  }

  .hero-slider-arrow {
    font-size: 1.5rem;
    padding: 6px 12px;
  }
}


/* Mobile (up to 768px) */
@media screen and (max-width: 768px) {
  .hero-slider-section {
    height: 200px;
  }
  h1.hero-slide-title {
    font-size: 24px;
  }
  .sbutton.hero-slide-button {
    font-size: 0.9em;
    padding: 8px 16px;
  }
  .hero-slide-item {
    width: 90%;
    height: 75%;
    transform: none !important;
    opacity: 1 !important;
    position: relative;
    margin: 0 auto;
    display: flex !important;
  }

  .hero-slide-item:not(.active) {
    display: none !important;
  }

  .hero-slider-container-3d {
    perspective: none;
  }

  .hero-slide-content {
    padding: 10px;
    text-align: center;
  }

  .hero-slide-title {
    font-size: 1.2rem;
  }

  .hero-slide-subtitle {
    font-size: 1rem;
  }

  .hero-slide-button,
  .sbutton {
    font-size: 1em;
    padding: 10px 20px;
  }

  .hero-slider-arrow {
    font-size: 1.3rem;
    padding: 6px 10px;
    top: auto;
    bottom: 10px;
    transform: none;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .hero-slider-arrow.left {
    left: 20px;
  }

  .hero-slider-arrow.right {
    right: 20px;
  }
}



