:root {
  --primary-accent-color: #0077cc;
  --secondary-accent-color: #e2e8f0;
  --text-color: #e2e8f0;
  --heading-color: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.5);

  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: "Georgia", Times, "Times New Roman", serif;
}

.slider-container {
  width: 90%;
  height: 40rem;
  position: relative;
  margin-left: 80px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 60px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 3s ease;
  z-index: 1;
}

.slide[data-active] {
  opacity: 1;
  z-index: 2;
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 10s infinite;
}

.slide[data-active] .slide-background {
  animation-name: kenBurnsActive;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.1) rotate(1deg);
  }
  100% {
    transform: scale(1.1) rotate(1deg);
  }
}
@keyframes kenBurnsActive {
  0% {
    transform: scale(1.1) rotate(1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* effict */

.slide .reveal-overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  transform: translateX(-100%);
}

.slide[data-active] .reveal-overlay {
  animation: reveal 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes reveal {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.slide-content {
  position: relative;
  z-index: 2;
  color: var(--secondary-accent-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: 0 10%;
  max-width: 1400px;
  margin: 0 auto;
}

.slide-title,
.slide-description,
.slide-button {
  opacity: 0;
  transform: translateY(30px);
}

.slide[data-active] .slide-title {
  animation: fadeIn-up 5s 0.7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.slide[data-active] .slide-description {
  animation: fadeIn-up 5s 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.slide[data-active] .slide-button {
  animation: fadeIn-up 5s 1.1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeIn-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: var(--font-primary);
}

.slide-description {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 700px;
  font-family: var(--font-secondary);
  margin-bottom: 2.5rem;
}

.slide-button {
  background-color: var(--primary-accent-color);
  text-decoration: none;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.slide-button:hover {
  background-color: color-mix(in srgb, var(--accent-primary) 85%, black);
}

/* navigation */
.slider-nav {
  position: absolute;
  bottom: 5%;
  left: 10%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}
.slider-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.slider-arrow svg {
  stroke: var(--secondary-accent-color);
}

.slider-pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s ease;
}
.pagination-dot[data-active] {
  background-color: var(--secondary-accent-color);
  transform: scale(1.2);
}

/* responsive */
@media (max-width: 768px) {
  .slide-content {
    padding: 0 8%;
  }
  .slider-container {
    margin-left:20px;
  }
  .slide-title {
    font-size: 2.5rem;
  }
  .slide-description {
    font-size: 1rem;
    max-width: 90%;
  }
  .slider-nav {
    left: 50%;
    transform: translateX(-50%);
    bottom: 3%;
  }
}
