:root {
  --text-color: #ffffff;
  --muted-text: rgba(255, 255, 255, 0.82);
  --border-color: rgba(255, 255, 255, 0.42);
  --background-color: #071018;

  --content-width: 1400px;
  --copy-width: 620px;
  --page-padding: clamp(20px, 5vw, 72px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--background-color);
  font-family: "Montserrat", sans-serif;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.slider-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: var(--background-color);
}

.slider-wrapper {
  min-height: 100vh;
  min-height: 100svh;
}

.slider-item {
  position: relative;
  isolation: isolate;

  display: flex;
  align-items: center;

  min-height: 100vh;
  min-height: 100svh;

  overflow: hidden;
}

.slider-item::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;

  background-image: var(--slide-image);
  background-position: var(--image-position, center);
  background-repeat: no-repeat;
  background-size: cover;

  transform: scale(1.08);

  transition: transform 8s cubic-bezier(0.22, 1, 0.36, 1);
}

.slider-item::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;

  background: var(
    --slide-overlay,
    linear-gradient(
      90deg,
      rgba(3, 8, 15, 0.86) 0%,
      rgba(3, 8, 15, 0.58) 42%,
      rgba(3, 8, 15, 0.12) 75%
    )
  );

  pointer-events: none;
}

.swiper-slide-active::before {
  transform: scale(1);
}

.slider-item--misty-lake {
  --slide-image: url("./images/image-9.avif");
  --image-position: center center;
  --mobile-position: 58% center;

  --slide-overlay:
    linear-gradient(
      90deg,
      rgba(8, 10, 13, 0.82) 0%,
      rgba(8, 10, 13, 0.53) 40%,
      rgba(8, 10, 13, 0.08) 72%
    ),
    linear-gradient(0deg, rgba(8, 10, 13, 0.55) 0%, transparent 45%);
}

.slider-item--golden-river {
  --slide-image: url("./images/image-8.avif");
  --image-position: center center;
  --mobile-position: 52% center;

  --slide-overlay:
    linear-gradient(
      270deg,
      rgba(5, 12, 8, 0.8) 0%,
      rgba(5, 12, 8, 0.52) 42%,
      rgba(5, 12, 8, 0.08) 72%
    ),
    linear-gradient(0deg, rgba(5, 12, 8, 0.5) 0%, transparent 42%);
}

.slider-item--open-meadow {
  --slide-image: url("./images/image-7.avif");
  --image-position: center center;
  --mobile-position: 67% center;

  --slide-overlay:
    linear-gradient(
      90deg,
      rgba(8, 13, 7, 0.78) 0%,
      rgba(8, 13, 7, 0.46) 42%,
      rgba(8, 13, 7, 0.05) 72%
    ),
    linear-gradient(0deg, rgba(8, 13, 7, 0.48) 0%, transparent 40%);
}

.slider-item--alpine-waters {
  --slide-image: url("./images/image-3.avif");
  --image-position: center center;
  --mobile-position: center center;

  --slide-overlay:
    linear-gradient(
      90deg,
      rgba(3, 11, 17, 0.78) 0%,
      rgba(3, 11, 17, 0.46) 42%,
      rgba(3, 11, 17, 0.04) 74%
    ),
    linear-gradient(0deg, rgba(3, 11, 17, 0.45) 0%, transparent 42%);
}

.slider-item--desert-stars {
  --slide-image: url("./images/image-1.avif");
  --image-position: center center;
  --mobile-position: 56% center;

  --slide-overlay:
    linear-gradient(
      270deg,
      rgba(2, 3, 7, 0.82) 0%,
      rgba(2, 3, 7, 0.52) 42%,
      rgba(2, 3, 7, 0.08) 74%
    ),
    linear-gradient(0deg, rgba(2, 3, 7, 0.48) 0%, transparent 42%);
}

.slide-content {
  position: relative;
  z-index: 2;

  width: min(var(--content-width), 100%);
  margin-inline: auto;

  padding: clamp(90px, 12vh, 150px) var(--page-padding)
    clamp(190px, 24vh, 260px);

  color: var(--text-color);
}

.slide-copy {
  width: min(var(--copy-width), 100%);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.28);
}

.slider-item--content-right .slide-copy {
  margin-left: auto;
}

.slide-copy > * {
  --reveal-x: 0px;
  --reveal-y: 32px;
  --reveal-delay: 0s;

  opacity: 0;
  filter: blur(6px);

  transform: translate3d(var(--reveal-x), var(--reveal-y), 0);

  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay);
}

.swiper-slide-active .slide-copy > * {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.slide-subtitle {
  --reveal-x: -24px;
  --reveal-y: 0px;
  --reveal-delay: 0.12s;
}

.slide-title {
  --reveal-y: 38px;
  --reveal-delay: 0.22s;
}

.slide-description {
  --reveal-y: 28px;
  --reveal-delay: 0.34s;
}

.slide-actions {
  --reveal-y: 20px;
  --reveal-delay: 0.46s;
}

.slide-subtitle {
  margin-bottom: 12px;

  color: rgba(255, 255, 255, 0.9);

  font-size: clamp(0.7rem, 0.85vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 2.7px;
  text-transform: uppercase;
}

.slide-title {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1.6px;
  text-wrap: balance;
}

.slide-description {
  max-width: 530px;
  margin-top: 20px;

  color: var(--muted-text);

  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.75;
}

.slide-actions {
  margin-top: 32px;
}

.slide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  min-width: 215px;
  padding: 14px 22px;

  border: 1px solid rgba(255, 255, 255, 0.86);

  color: var(--text-color);
  background-color: transparent;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.slide-button:hover {
  color: #101820;
  background-color: #ffffff;
  border-color: #ffffff;

  transform: translateY(-3px);

  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.slide-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.button-arrow {
  font-size: 1.2rem;
  line-height: 1;

  transition: transform 0.35s ease;
}

.slide-button:hover .button-arrow {
  transform: translateX(5px);
}

.slider-controls {
  position: absolute;
  z-index: 20;
  bottom: clamp(24px, 5vh, 52px);
  left: 0;

  width: 100%;
  overflow-x: auto;

  scrollbar-width: none;
}

.slider-controls::-webkit-scrollbar {
  display: none;
}

.slider-pagination {
  position: relative;

  display: flex;

  width: min(var(--content-width), 100%);
  min-width: 780px;

  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.slider-indicator {
  position: absolute;
  bottom: 0;
  left: 0;

  height: 3px;

  background-color: var(--text-color);

  pointer-events: none;

  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.slider-tab {
  flex: 1;
  min-width: 145px;

  padding: 19px 16px;

  border-bottom: 1px solid var(--border-color);

  color: rgba(255, 255, 255, 0.62);
  background-color: transparent;

  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;

  cursor: pointer;
  user-select: none;

  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.slider-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.slider-tab.is-active {
  color: #ffffff;
}

.slider-tab:focus-visible {
  position: relative;
  z-index: 2;

  outline: 3px solid rgba(255, 255, 255, 0.4);
  outline-offset: -3px;
}

@media (max-width: 900px) {
  .slide-content {
    padding-bottom: 185px;
  }

  .slide-copy {
    max-width: 570px;
  }

  .slide-title {
    font-size: clamp(2.15rem, 7vw, 4rem);
  }

  .slider-pagination {
    min-width: 740px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-padding: 20px;
  }

  .slider-item {
    align-items: flex-start;
  }

  .slider-item::before {
    background-position: var(--mobile-position, var(--image-position, center));
  }

  
  .slider-item::after {
    background: linear-gradient(
      180deg,
      rgba(3, 7, 12, 0.12) 0%,
      rgba(3, 7, 12, 0.28) 35%,
      rgba(3, 7, 12, 0.82) 70%,
      rgba(3, 7, 12, 0.97) 100%
    );
  }

  .slide-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    min-height: 100vh;
    min-height: 100svh;

    padding-top: 80px;
    padding-bottom: 145px;
  }

  .slider-item--content-right .slide-copy {
    margin-left: 0;
  }

  .slide-copy {
    width: 100%;
    max-width: 470px;
  }

  .slide-subtitle {
    margin-bottom: 9px;

    font-size: 0.65rem;
    letter-spacing: 2px;
  }

  .slide-title {
    max-width: 430px;

    font-size: clamp(1.95rem, 9vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.9px;
  }

  .slide-description {
    max-width: 420px;
    margin-top: 15px;

    font-size: 0.86rem;
    line-height: 1.6;
  }

  .slide-actions {
    margin-top: 23px;
  }

  .slide-button {
    min-width: 0;
    padding: 13px 18px;

    font-size: 0.67rem;
  }

  .slider-controls {
    bottom: 13px;
  }

  .slider-pagination {
    min-width: 660px;
  }

  .slider-tab {
    min-width: 132px;
    padding: 15px 10px;

    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  .slide-content {
    padding-bottom: 138px;
  }

  .slide-title {
    font-size: 1.9rem;
  }

  .slide-description {
    font-size: 0.82rem;
  }

  .slide-actions {
    margin-top: 19px;
  }

  .slide-button {
    padding: 12px 16px;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .slide-content {
    padding-top: 40px;
    padding-bottom: 108px;
  }

  .slide-copy {
    max-width: 560px;
  }

  .slide-title {
    font-size: clamp(1.9rem, 5vw, 3.2rem);
  }

  .slide-description {
    max-width: 500px;
    margin-top: 12px;

    font-size: 0.84rem;
    line-height: 1.5;
  }

  .slide-actions {
    margin-top: 18px;
  }

  .slide-button {
    padding-block: 11px;
  }

  .slider-controls {
    bottom: 7px;
  }

  .slider-tab {
    padding-block: 11px;
  }
}

@media (max-width: 319px) {
  :root {
    --page-padding: 14px;
  }

  .slide-content {
    padding-top: 60px;
    padding-bottom: 128px;
  }

  .slide-subtitle {
    margin-bottom: 7px;
    font-size: 0.58rem;
    letter-spacing: 1.6px;
  }

  .slide-title {
    font-size: clamp(1.55rem, 10vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: -0.5px;
  }

  .slide-description {
    margin-top: 12px;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .slide-actions {
    margin-top: 16px;
  }

  .slide-button {
    gap: 10px;
    padding: 11px 14px;
    font-size: 0.62rem;
  }

  .slider-controls {
    bottom: 8px;
  }

  .slider-pagination {
    min-width: 600px;
  }

  .slider-tab {
    min-width: 120px;
    padding: 13px 8px;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
