/* ===== VARIABLES ===== */
:root {
  --primary-color: #fff;
  --secondary-color: #000;
  --accent-color: #ff3366;
  --overlay-top: rgba(0, 0, 0, 0.5);
  --overlay-bottom: rgba(0, 0, 0, 0.75);
  --btn-bg: rgba(255, 255, 255, 0.2);
  --btn-hover-bg: rgba(255, 255, 255, 0.3);
  --transition-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius: 16px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* ===== BASE STYLES ===== */
.video-slider-container {
  position: relative;
  width: 100%;
  /* max-width: 1400px; */
  overflow: hidden;
  box-shadow: var(--shadow);
  /* border-radius: var(--border-radius); */
  transition: transform 0.3s var(--transition-timing);
}

.video-slider-container:hover {
  transform: translateY(-5px);
}

.video-slider {
  position: relative;
  display: flex;
  align-items: center;
  height: 80vh;
  min-height: 600px;
  perspective: 1000px;
}

/* ===== VIDEO STYLES ===== */
.video-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.8s var(--transition-timing);
  z-index: 1;
  will-change: transform, opacity;
}

.video-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* border-radius: var(--border-radius); */
}

.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
  transition: filter 0.5s ease;
}

.video-slide.active video {
  filter: brightness(1.05);
}

/* ===== OVERLAY STYLES ===== */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--overlay-top) 0%,
    var(--overlay-bottom) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
  z-index: 3;
}

.overlay-content {
  max-width: 700px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s var(--transition-timing) 0.5s;
}

.video-slide.active .overlay-content {
  transform: translateY(0);
  opacity: 1;
}

.video-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.video-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
  font-weight: 300;
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--transition-timing);
  backdrop-filter: blur(8px);
  border: none;
  outline: none;
}

.play-pause-btn {
  background: var(--btn-bg);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 10px;
}

.play-pause-btn:hover {
  background: var(--btn-hover-bg);
  transform: scale(1.1);
}

.cta-button {
  background: var(--accent-color);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--accent-color);
}

.cta-button:hover {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== NAVIGATION STYLES ===== */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--btn-bg);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: var(--primary-color);
  font-size: 1.8rem;
  z-index: 10;
}

.nav-btn:hover {
  background: var(--btn-hover-bg);
  transform: translateY(-50%) scale(1.1);
}

.nav-btn.left {
  left: 25px;
}

.nav-btn.right {
  right: 25px;
}

/* ===== DOTS INDICATOR ===== */
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 15px;
}

.dots-container {
  display: flex;
  gap: 15px;
  align-items: center;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--btn-bg);
  cursor: pointer;
  transition: all 0.3s var(--transition-timing);
  position: relative;
  overflow: hidden;
}

.dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: left 0s linear;
}

.dot.active {
  transform: scale(1.3);
}

.dot.active::after {
  left: 0;
  transition: left 4s linear;
}

.dot:hover {
  background: var(--btn-hover-bg);
  transform: scale(1.2);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--accent-color);
  width: 0%;
  z-index: 10;
  transition: width 0.1s linear;
}

/* ===== CAPTION STYLES ===== */
.video-caption {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.video-slide.active .video-caption {
  opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .video-slider {
    height: 70vh;
    min-height: 500px;
  }
  
  .video-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .video-title {
    font-size: 2.2rem;
  }
  
  .video-description {
    font-size: 1.1rem;
  }
  
  .nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .video-slider {
    height: 60vh;
    min-height: 450px;
  }
  
  .video-title {
    font-size: 2rem;
  }
  
  .video-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .play-pause-btn {
    width: 60px;
    height: 60px;
  }
  
  .overlay-content {
    padding: 0 25px;
  }
  
  .nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .nav-btn.left {
    left: 15px;
  }
  
  .nav-btn.right {
    right: 15px;
  }
}

@media (max-width: 576px) {
  .video-slider {
    height: 50vh;
    min-height: 350px;
  }
  
  .video-title {
    font-size: 1.8rem;
  }
  
  .video-description {
    font-size: 0.95rem;
  }
  
  .play-pause-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  
  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  .slider-controls {
    bottom: 20px;
  }
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
  .video-slide,
  .overlay-content,
  .btn,
  .dot,
  .video-slider-container {
    transition: none;
  }
  
  .video-slide {
    transform: none !important;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --btn-bg: rgba(255, 255, 255, 0.15);
    --btn-hover-bg: rgba(255, 255, 255, 0.25);
  }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
  :root {
    --overlay-top: rgba(0, 0, 0, 0.8);
    --overlay-bottom: rgba(0, 0, 0, 0.95);
  }
  
  .video-title, .video-description {
    text-shadow: 0 0 5px black, 0 0 5px black;
  }
}