:root {
  --heading-font: Inter, sans-serif;
  --default-font: Roboto, system-ui, sans-serif;
  --accent-color: #1e7e34;
  --contrast-color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--default-font);
  color: #fff;
}

.hero {
  padding: 0;
  --background-color: #0e1a18;
  --heading-color: #ffffff;
}

.hero .carousel {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.hero .carousel-container {
  position: absolute;
  inset: 120px 64px 64px 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  z-index: 3;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
  z-index: 0;
}

.hero .carousel-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-item::before {
  content: "";
  background-color: color-mix(
    in srgb,
    var(--background-color),
    transparent 300%
  );
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero h2 {
  margin: 0 0 30px;
  font-size: 48px;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--heading-color);
  animation: fadeInDown 1s both;
}

.hero p {
  margin: 0 0 16px;
  line-height: 1.6;
  animation: fadeInDown 1s both 0.2s;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
  .hero .carousel-container {
    inset: 100px 24px 80px;
  }
}

@media (min-width: 1024px) {
  .hero h2,
  .hero p {
    max-width: 60%;
  }
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.5s;
  margin: 10px;
  animation: fadeInUp 1s both 0.4s;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.hero .carousel-control {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s;
}

.hero .carousel-control:hover {
  opacity: 0.9;
}
.hero .carousel-control.prev {
  left: 0;
}
.hero .carousel-control.next {
  right: 0;
}

@media (min-width: 1024px) {
  .hero .carousel-control {
    width: 5%;
  }
}

.hero .carousel-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero .carousel-indicators button {
  width: 30px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(90, 99, 86, 0.5);
  cursor: pointer;
}

.hero .carousel-indicators button.active {
  background: #fff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
