@import url('./variables.css');

/*! MAIN STYLES */
.main {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

/*! SLIDER */
.main__slider {
  margin: 0px;
  position: relative;
  width: 100%;
  overflow: hidden;
}
.main__slider-container {
  display: flex;
  height: 600px;
  animation: slide 24s infinite ease-in-out;
}
.main__slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(0.8);
}
.main__slider-caption {
  width: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
}
.main__slider-title {
  max-width: 600px;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 2px #000;
}

/*! INFO SECTION */
.main__info {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 40px;
}
.main__info-texts {
  padding-block: 50px;
  width: 100%;
  text-align: center;
  background-color: var(--second-color);
  color: #fff;
  font-weight: bold;
}
.main__info-description {
  margin: 0px 5px;
  color: var(--subtitle-color);
}
.main__info-title {
  margin-top: 0px;
  font-size: 2rem;
}
.main__info-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.main__info-card {
  width: 220px;
  padding: 20px;
  border-radius: 12px;
  border-left: var(--accent-color) 5px solid;
  background-color: #fff;
  color: var(--text-color);
  box-shadow: 0 6px 16px #0000000d;
  display: flex;
  justify-content: start;
  flex-direction: column;
  gap: 8px;
  transition: 0.3s;
}
.main__info-card:hover {
  transform: translateY(-5px);
}
.main__info-card h3 {
  margin: 0px;
}
.main__info-elements {
  padding-inline: 15px;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.main__info-element {
  padding: 25px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 20px #0000000d;
  background-color: #fff;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.3s;
}
.main__info-element:hover {
  scale: 1.01;
}
.main__info-element h3 {
  color: var(--title-color);
}
.main__info-element h3,
.main__info-element p {
  margin: 0px;
}

/*! ANIMATIONS */
@keyframes slide {
  0%,
  15% {
    transform: translateX(0);
  }
  20%,
  40% {
    transform: translateX(-100%);
  }
  45%,
  60% {
    transform: translateX(-200%);
  }
  65%,
  80% {
    transform: translateX(-300%);
  }
  90%,
  100% {
    transform: translateX(0);
  }
}

/*! MEDIA QUERY */
@media all and (width <= 500px) {
  .main__slider-title {
    padding-inline: 5px;
    font-size: 2.2rem;
  }
  .main__info-element {
    text-align: center;
  }
  .main__info-card {
    margin-inline: 15px;
    width: 100%;
  }
}
