/* Main wrapper */
.wrapper {
  width: 100%;
  height: 100vh;
  background-color: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Slider container */
.slider {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Individual slides */
.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateX(0);
  opacity: 0;
  z-index: 1;
  transition: transform 1s ease, opacity 1s ease;
}

/* Show first slide initially */
.slide:first-child {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

/* Full overlay tint */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 3;
}

/* Text overlay */
.text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-30px);
  color: white;
  text-align: center;
  z-index: 10;
  max-width: 90%;
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.text.show {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.text .slider-head1,
.text .slider-head2 {
  display: block;
  margin: 0;
  font-size: clamp(24px, 4vw, 40px); /* Responsive font scaling */
  color: white;
}

.text .slider-head3 {
  display: block;
  margin: 10px 0 0;
  font-size: clamp(14px, 2vw, 20px);
  color: #EBCB90;
}

/* Slide button */
.text .slide-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 30px;
  background-color: #EBCB90;
  color: #111;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.text .slide-btn:hover {
  background-color: #d4b872;
  color: #000;
  transform: translateY(-2px);
}

/* Navigation container */
.nav {
  position: absolute;
  bottom: 80px;
  left: 100px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  z-index: 10;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
}

.nav-item span {
  color: white;
  opacity: 0.5;
  transition: opacity 0.5s ease;
  font-size: clamp(12px, 2vw, 16px);
}

.nav-item.active span {
  opacity: 1;
}

/* Navigation bar */
.nav-bar {
  width: 300px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 0.5s ease, width 0.5s ease;
  margin-top: 15px;
}

.nav-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: white;
  transform: translateX(-100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.nav-item.active .nav-bar {
  opacity: 1;
}

.nav-item.active .nav-bar::before {
  transform: translateX(0);
  opacity: 1;
}

.nav-item:hover .nav-bar {
  background-color: white;
  opacity: 1;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .text {
    font-size: clamp(20px, 3vw, 32px);
    padding: 0 20px;
    max-width: 90%;
  }

  .nav {
    bottom: 60px;
    left: 40px;
    gap: 20px;
  }

  .nav-bar {
    width: 200px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 95%;
  }

  .nav {
    left: 20px;
    right: 20px;
    bottom: 40px;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-item {
    flex: 1;
    align-items: center;
  }

  .nav-bar {
    width: 60px;
    height: 4px;
  }

  .nav-item.active .nav-bar {
    width: 80px;
  }

  .nav-item span {
    font-size: 12px;
    text-align: center;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .text .slide-btn {
    padding: 8px 18px;
    font-size: 14px;
  }

  .nav {
    bottom: 30px;
  }

  .nav-bar {
    width: 50px;
  }

  .nav-item.active .nav-bar {
    width: 60px;
  }
}
