.intro {
  padding: 75px 0 300px 0;
  background: linear-gradient(180deg, var(--brown3), transparent);
}

.container-carousel {
  box-sizing: border-box;
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.container-carousel > div {
  width: 90vw;
  flex: 0 0 40vw;
  border-radius: 0.5rem;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  box-shadow: 1px 5px 15px var(--brown4);
  position: relative;
  overflow: hidden;
}

.container-carousel > div:nth-of-type(1) {
  background: url("images/home-page/hero-car-sm.png") no-repeat 50% / cover;
}

.container-carousel > div:nth-of-type(2) {
  background: url("images/home-page/hero-nature-sm.png") no-repeat 50% / cover;
}

.container-carousel > div .content-carousel {
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 15px;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  background: rgb(2, 2, 46);
  background: linear-gradient(
    0deg,
    rgba(2, 2, 46, 0.6755077030812324) 0%,
    rgba(255, 255, 255, 0) 100%
  );

  span {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
  }
}

.container-carousel > div:hover {
  box-shadow: 1px 3px 15px var(--brown3);
}

.travel {
  margin-top: -270px;
}

.travel > .container {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.travel > .container > .title {
  position: relative;
  font-family: "Mina";
  font-weight: 500;
  font-size: 5.65vw;
  line-height: 6.4vw;
  margin-bottom: 3.85vw;
  text-align: center;
}
.travel > .container > .title:before {
  content: ""; /* Required to generate a pseudo-element */
  position: absolute;
  bottom: 3px;
  left: 15%;
  width: 70%;
  height: 1px;
  background-color: var(--brown4);
}
.travel > .container > .custom-plan {
  position: relative;
  font-family: "Mina";
  font-weight: 500;
  font-size: 3.6vw;
  line-height: 4.1vw;
  margin-top: 2vw;
  text-align: center;
}

.packages {
  display: grid;
  line-height: 0;
  max-width: 100vw;
  grid-template-columns: auto auto;
  gap: 2.6vw;
}
.packages > .package-one {
  background: url("images/home-page/package-one-sm.jpg") no-repeat 50% / cover;
  height: 27vw;
  width: 42vw;
  position: relative;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
}

.packages > .package-one:hover {
  transform: scale(1.1) rotate(-2deg);
  transition: transform 0.1s;
}

.packages > .package-two {
  background: url("images/home-page/package-two-sm.jpg") no-repeat 50% / cover;
  height: 27vw;
  width: 42vw;
  position: relative;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
}
.packages > .package-two:hover {
  transform: scale(1.1) rotate(-2deg);
  transition: transform 0.1s;
}

.packages > .package-three {
  background: url("images/home-page/package-three-sm.jpg") no-repeat 50% / cover;
  height: 27vw;
  width: 42vw;
  position: relative;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
}

.packages > .package-three:hover {
  transform: scale(1.1) rotate(-2deg);
  transition: transform 0.1s;
}

.packages > .package-four {
  background: url("images/home-page/package-four-sm.jpg") no-repeat 50% / cover;
  height: 27vw;
  width: 42vw;
  position: relative;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
}

.packages > .package-four:hover {
  transform: scale(1.1) rotate(-2deg);
  transition: transform 0.1s;
}

.package-content {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(24, 213, 10, 0) 50%
  );
}

.packages h6 {
  position: absolute;
  bottom: 0.25vw;
  color: #fff;
  z-index: 11;
  font-family: "Ubuntu Mono", monospace;
  line-height: 2.05vw;
  font-size: 2.05vw;
  font-weight: 400;
}

.packages h6 > span {
  font-weight: 600;
  color: #ccc;
}

.packages div div h6:last-child {
  display: none;
}

.packages p {
  position: absolute;
  bottom: 2.5vw;
  z-index: 11;
  font-family: "Ubuntu Mono", monospace;
  color: #fff;
  line-height: 4.1vw;
  font-size: 4.1vw;
}

.rent > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rent > .container > h1 {
  position: relative;
  font-family: "Mina";
  font-weight: 600;
  font-size: 5vw;
  line-height: 6vw;
}

.rent > .container > h2 {
  position: relative;
  font-family: "Mina";
  font-weight: 500;
  font-size: 4vw;
  line-height: 4vw;
}

.rent-cars {
  margin-top: 10px;
  display: grid;
  line-height: 0;
  max-width: 100vw;
  grid-template-columns: auto auto;
  gap: 2.6vw;
}

.rent-cars > .car-skoda {
  position: relative;
  background: url("images/home-page/rent-skoda-sm.png") no-repeat 50% / cover;
  cursor: pointer;
  width: 42vw;
  height: 27vw;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
  z-index: 1;
}

.rent-cars > .car-citroen {
  position: relative;
  background: url("images/home-page/rent-citroen-sm.png") no-repeat 50% / cover;
  cursor: pointer;
  width: 42vw;
  height: 27vw;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
  z-index: 1;
}

.car-text {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(24, 213, 10, 0) 50%
  );
  text-align: center;
  position: absolute;
  bottom: 0;
  font-family: "Ubuntu Mono", monospace;
  color: #fff;
  display: flex;
  justify-content: center;
}

.car-text > h1 {
  position: absolute;
  bottom: 2.6vw;
  font-size: 3.1vw;
  line-height: 3.1vw;
}

.car-text > h2 {
  position: absolute;
  bottom: 0.3vw;
  font-size: 2.05vw;
  line-height: 2.05vw;
  font-weight: 400;
}

.car-text > h2 > span {
  font-weight: 600;
  color: #ccc;
}

.car-skoda:hover {
  transform: scale(1.18) translateX(10px);
  transition: transform 0.3s;
  z-index: 2;
}

.car-citroen:hover {
  transform: scale(1.18) translateX(-10px);
  transition: transform 0.3s;
  z-index: 2;
}

@media (min-width: 768px) {
  .container-carousel > div:nth-of-type(1) {
    background: url("images/home-page/hero-car-lg.png") no-repeat 50% / cover;
  }

  .container-carousel > div:nth-of-type(2) {
    background: url("images/home-page/hero-nature-lg.png") no-repeat 50% / cover;
  }

  .travel > .container > .title {
    font-size: 36px;
    line-height: 36px;
    margin-bottom: 24px;
  }

  .travel > .container > .title > br {
    display: none;
  }

  .travel > .container > .title:before {
    height: 2px;
  }

  .travel > .container > .custom-plan {
    font-size: 22px;
    line-height: 22px;
  }
}

@media (min-width: 850px) {
  .container-carousel {
    flex-direction: row;
  }

  .container-carousel > div {
    flex: 0 0 45vw;
    width: 45vw;
    height: 20vw;
  }

  .packages > div {
    height: 22vw;
  }

  .rent-cars > .car-citroen {
    height: 22vw;
  }

  .rent-cars > .car-citroen:hover {
    transform: scale(1.1) translateX(-10px);
  }

  .rent-cars > .car-skoda {
    height: 22vw;
  }

  .rent-cars > .car-skoda:hover {
    transform: scale(1.1) translateX(10px);
  }

  .rent > .container > h1 {
    font-size: 36px;
    line-height: 36px;
  }

  .rent > .container > h2 {
    font-size: 28px;
    line-height: 28px;
  }
}

@media (min-width: 1200px) {
  .intro {
    padding-top: 120px;
  }

  .container-carousel {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ubuntu Mono", monospace;
    font-weight: 400;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 20vw;
    gap: 15px;

    > div {
      flex: 0 0 40vw;
      height: 20vw;
      border-radius: 0.5rem;
      transition: 0.5s ease-in-out;
      cursor: pointer;
      box-shadow: 1px 5px 15px var(--brown4);
      position: relative;
      overflow: hidden;

      .content-carousel {
        font-size: 1.5rem;
        color: #fff;
        display: flex;
        align-items: center;
        padding: 15px;
        opacity: 0;
        flex-direction: column;
        height: 100%;
        justify-content: flex-end;
        background: rgb(2, 2, 46);
        background: linear-gradient(
          0deg,
          rgba(2, 2, 46, 0.6755077030812324) 0%,
          rgba(255, 255, 255, 0) 100%
        );
        transform: translatey(100%);
        transition: opacity 0.5s ease-in-out, transform 0.5s 0.2s;
        visibility: hidden;

        span {
          display: block;
          margin-top: 5px;
          font-size: 1.2rem;
        }
      }

      &:hover {
        flex: 0 0 50vw;
        box-shadow: 1px 3px 15px var(--brown3);
        transform: scaley(1.08);
      }

      &:hover .content-carousel {
        opacity: 1;
        transform: translatey(0%);
        visibility: visible;
      }
    }
  }

  .packages {
    grid-template-columns: auto auto auto auto;
    gap: 1.5vw;
  }

  .packages > div {
    width: 20vw !important;
    height: 40vw !important;
    max-width: 360px;
    max-height: 580px;
  }

  .packages > .package-one {
    background: url("images/home-page/package-one-lg.jpg") no-repeat 50% / cover;
  }

  .packages > .package-two {
    background: url("images/home-page/package-two-lg.jpg") no-repeat 50% / cover;
  }

  .packages > .package-three {
    background: url("images/home-page/package-three-lg.jpg") no-repeat 50% /
      cover;
  }

  .packages > .package-four {
    background: url("images/home-page/package-four-lg.jpg") no-repeat 50% /
      cover;
  }

  .packages div div h6:nth-child(2) {
    display: none;
  }

  .packages div div h6:last-child {
    display: block;
    font-size: 18px;
    line-height: 18px;
  }

  .packages p {
    font-size: 38px;
    line-height: 38px;
    bottom: 40px;
  }

  .travel {
    margin-top: -240px;
  }

  .travel > .container > .title {
    font-size: 48px;
    line-height: 48px;
    margin-bottom: 32px;
  }

  .travel > .container > .custom-plan {
    margin-top: 20px;
  }

  .rent-cars {
    margin-top: 28px;
  }

  .rent-cars > .car-citroen {
    background: url("images/home-page/rent-citroen-lg.png") no-repeat 50% /
      cover;
    width: 38vw;
    height: 18vw;
  }

  .rent-cars > .car-citroen:hover {
    transform: scale(1.11) translateX(-5px);
  }

  .rent-cars > .car-skoda {
    background: url("images/home-page/rent-skoda-lg.png") no-repeat 50% / cover;
    width: 38vw;
    height: 18vw;
  }

  .rent-cars > .car-skoda:hover {
    transform: scale(1.11) translateX(5px);
  }

  .car-text > h1 {
    font-size: 28px;
    line-height: 28px;
    bottom: 22px;
  }

  .car-text > h2 {
    font-size: 20px;
    line-height: 20px;
    bottom: 2px;
  }
}
