
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

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

/* Base Layout */
.pcl-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background-color: #000;
   font-family: 'Montserrat', sans-serif;
  color: #fff;
}

.pcl-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.pcl-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  align-items: center;
  z-index: 0;
  transition: opacity 0.6s ease-in-out;
}

.pcl-slide.pcl-previous {
  opacity: 1;
  z-index: 1;
}

.pcl-slide.pcl-active {
  opacity: 1;
  z-index: 2;
}

/* Background Image Auto Pick from HTML CSS Variable */
.pcl-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-img);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Slice Engine using Clip-Path */
.pcl-slice-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pcl-slice-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-img); /* প্যারেন্ট ডাইভের --bg-img থেকে স্বয়ংক্রিয়ভাবে অরিজিনাল ইমেজ নিবে */
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
  transition-delay: calc(var(--i) * 0.08s);
}

/* ৫টি নিখুঁত স্লাইস ক্লিপিং (মোবাইল ও পিসিতে নো-ডিস্টোরশন) */
.pcl-slice-mask:nth-child(1) { clip-path: polygon(0% 0%, 20% 0%, 20% 100%, 0% 100%); }
.pcl-slice-mask:nth-child(2) { clip-path: polygon(20% 0%, 40% 0%, 40% 100%, 20% 100%); }
.pcl-slice-mask:nth-child(3) { clip-path: polygon(40% 0%, 60% 0%, 60% 100%, 40% 100%); }
.pcl-slice-mask:nth-child(4) { clip-path: polygon(60% 0%, 80% 0%, 80% 100%, 60% 100%); }
.pcl-slice-mask:nth-child(5) { clip-path: polygon(80% 0%, 100% 0%, 100% 100%, 80% 100%); }

.pcl-slide.pcl-active .pcl-slice-mask {
  transform: translateY(0);
  opacity: 1;
}

/* Overlay & Text Styles */
.pcl-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
}

.pcl-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 0 50px;
  margin-left: 5%;
}

.pcl-sub-title {
  font-size: 14px;
  letter-spacing: 2px;
  color: #ccc;
  display: block;
  margin-bottom: 10px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.6s ease 0.4s;
}

.pcl-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  text-transform: uppercase;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s ease 0.5s;
}

.pcl-description {
  font-size: 17px;
  line-height: 1.6;
  color: #ddd;
  font-weight: 400;
  margin-bottom: 25px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s ease 0.6s;
}

.pcl-btn {
  display: inline-block;
  padding: 18px 28px;
  border: 1px solid #cecece;
  color: #fcfcfc;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s ease 0.3s;
}

.pcl-btn:hover {
  background-color:  #fff;
  color: #c70000;
  text-decoration: none;
  transition: background 0.3s;
}

.pcl-slide.pcl-active .pcl-sub-title,
.pcl-slide.pcl-active .pcl-title,
.pcl-slide.pcl-active .pcl-description,
.pcl-slide.pcl-active .pcl-btn {
  transform: translateY(0);
  opacity: 1;
}

/* Controls & Responsive */
.pcl-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #dddbdb;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.pcl-nav-btn:hover { background: rgba(255, 255, 255, 0.3); }
.pcl-prev { left: 10px; }
.pcl-next { right: 10px; }

.pcl-dots-container {
  position: absolute;
  bottom: 20px;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pcl-dot {
  flex: 1;
  padding-top: 10px;
  cursor: pointer;
  position: relative;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.pcl-dot.pcl-active { color: #fff; }

.pcl-progress {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #fff;
}

.pcl-dot.pcl-active .pcl-progress {
  animation: pclProgressBar 5s linear forwards;
}

@keyframes pclProgressBar {
  0% { width: 0%; }
  100% { width: 100%; }
}

@media (max-width: 768px) {
  .pcl-overlay { background: rgba(0, 0, 0, 0.65); }
  .pcl-content { margin: 0 auto; padding: 0 70px; text-align: center; }
  .pcl-title { font-size: 22px; }
  .pcl-description { font-size: 13px; }
  .pcl-dot span { display: none; }
}