@charset "UTF-8";
/* Dark Theme Slider Section for Batres Design */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   Slider Section
   ========================= */

.slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  overflow: hidden;
  transition: background-image 0.5s ease-in-out;
}

/* 👇 Blurred background using ::before */
.slider-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image); /* Set from JS */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px);
  z-index: 0;
  transition: background-image 0.5s ease-in-out;
}

/* Keep all inner content above the blur */
.slider-section > * {
  position: relative;
  z-index: 1;
}

/* =========================
   Frosted Glass Container
   ========================= */

.container {
  position: relative;
  width: 1000px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
}

/* =========================
   Slider Items
   ========================= */

.slayer {
  position: relative;
  width: 100%;
  height: 100%;
}

.slayer .item {
  width: 200px;
  height: 250px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 20px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
  overflow: hidden;
  z-index: 1;
}

/* Pseudo-element for the "glass border" */
.slayer .item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.05)
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}


/* Expanded background items */
.slayer .item:nth-child(1),
.slayer .item:nth-child(2) {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transform: scale(1.1);
}

/* Slide positioning */
.slayer .item:nth-child(3) { left: 50%; }
.slayer .item:nth-child(4) { left: calc(50% + 220px); }
.slayer .item:nth-child(5) { left: calc(50% + 440px); }
.slayer .item:nth-child(n + 6) {
  left: calc(50% + 660px);
  opacity: 0;
}

/* Slide content */
.slayer .item .content {
  position: relative;
  z-index: 2;
  top: 50%;
  left: 100px;
  width: 320px;
  text-align: left;
  color: #ffffff;
  transform: translate(0, -50%);
  display: none;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

.slayer .item:nth-child(2) .content {
  display: block;
}

.content .name {
  font-size: 38px;
  text-transform: uppercase;
  font-family: 'funnel display';
  font-weight: 700;
  color: #fff;
  opacity: 0;
  animation: animate 1s ease-in-out 1 forwards;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.content .des {
  font-family: 'funnel display';
  font-size: 15px;
  font-weight: 100;
  line-height: 1.5;
  margin-top: 10px;
  margin-bottom: 25px;
  opacity: 0;
  animation: animate 1s ease-in-out 0.3s 1 forwards;
  color: #fff;
}

.content button {
  padding: 10px 24px;
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content button:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(238, 64, 54, 0.5);
}

/* Animation for text */
@keyframes animate {
  from {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* =========================
   Navigation Buttons
   ========================= */

.button {
  display: flex;
  flex-direction: row;
  gap: 20px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  position: absolute;
  bottom: 25px;
  z-index: 3;
}

.button button {
  width: 42px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: bold;
  transition: all 0.3s ease;
}

.button button:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

.button button:active {
  transform: scale(1.05);
}

.next { padding-left: 3px; }
.prev { padding-right: 3px; }

/* =========================
   📱 Responsive Design
   ========================= */

@media (max-width: 1024px) {
  .container {
    width: 90%;
    height: 360px;
  }

  .content .name {
    font-size: 30px;
  }

  .slayer .item .content {
    left: 60px;
    width: 240px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 90vw;
    height: 90vw;
    border-radius: 12px;
  }

  .slayer .item .content {
    left: 30px;
    width: 70%;
  }

  .content .name {
    font-size: 26px;
  }

  .content .des {
    font-size: 14px;
  }

  .content button {
    font-size: 14px;
    padding: 8px 16px;
  }

  .button {
    bottom: 15px;
  }

  .button button {
    width: 32px;
    height: 30px;
  }
}
