.hero-container-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url("/assets/images/hero_bg_2.webp");
  background-size: cover;
  background-position: center;
  /* background: linear-gradient(130deg,black, black, black,black,black, rgba(255, 140, 0),black,black); */
  z-index: 2;
  height: 80dvh;
}

.hero-container-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.8)
  );
  z-index: 3;
}

.card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: clamp(768px, 1000px, 2000px);
  width: 100%;
  z-index: 100;
  height: fit-content;
  z-index: 4;
}

/* Base card */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  top: 5dvh;
  flex: 1 1 280px;
  max-width: 320px;
  min-width: 250px;
  height: 20dvh;
  padding: 20px;
  color: white;
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  text-align: left;
  white-space: nowrap;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  box-shadow:
    -20px 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.card hr {
  border: none;
  border-top: 1px solid var(--color-primary);
  margin: 0;
  width: 100%;
}

.btn.btn-primary.btn-full.hero-cards-btn {
  width: 100%;
  margin-top: 5px;
  padding: clamp(0.5rem, 1vw, 1rem);
}

.btn.btn-primary.btn-full.hero-cards-btn {
  background: linear-gradient(
    145deg,
    #b33900,
    #ff8800,
    #ffdc9a,
    #ff7300,
    #b33900
  );
  color: black;
  font-weight: 500;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.05) 40%,
    rgba(0, 0, 0, 0.2)
  );
  pointer-events: none;
}

.blue {
  transform: rotate3d(0, 4, 0, -15deg) translateX(30px);
  left: 0px;
  z-index: 9;
}
.gray {
  transform: rotate3d(0, 4, 0, -17deg) translateX(30px);
  left: 32px;
  z-index: 10;
}
.green {
  transform: rotate3d(0, 4, 0, -18deg) translateX(30px);
  left: -10px;
  z-index: 8;
}

.card:hover {
  transform: rotateY(0deg) scale(1.05);
  z-index: 20;
}

/* Lighting overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.05) 40%,
    rgba(0, 0, 0, 0.2)
  );
  pointer-events: none;
}

.card {
  box-shadow:
    -20px 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.card.blue,
.card.gray,
.card.green {
  min-height: fit-content;
}

/* Different colors */
.blue,
.gray,
.green {
  background: linear-gradient(120deg, #272424, #000000, #000000, #000000);
  min-height: 100%;
}

.gray {
  background: linear-gradient(220deg, #ff5100, #000000, #000000, #000000);
}

/* Typography */
.wrapper-h1 h1,
.wrapper-h1 hr {
  position: relative;
  color: white;
  font-size: clamp(1.2rem, 2vw, 3rem);
  margin-top: 1rem;
  text-align: center;
  top: 9dvh;
  z-index: 3;
}

.wrapper-h1-upper {
  position: relative;
  color: white;
  font-size: clamp(0.8rem, 1vw, 3rem);
  margin-top: 1rem;
  text-align: center;
  z-index: 3;
  max-width: 800px;
}
.wrapper-btn {
  position: relative;
  width: fit-content;
  display: flex;
  justify-content: center;
  white-space: nowrap;
  gap: 1rem;
  top: 9.5dvh;
  z-index: 3;
}

.wrapper-btn button {
  background: linear-gradient(180deg, #ff5100, #000000, #000000, #000000);
  padding: clamp(0.5rem, 1vw, 1rem);
  box-shadow:
    -20px 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.wrapper-btn button:hover {
  background: linear-gradient(180deg, #ff7300, #000000, #000000, #000000);
  transform: scale(1.05);
}

.card-wrapper h2 {
  margin-bottom: 15px;
  font-size: clamp(1rem, 1.1vw, 2.5rem);
}

ul {
  font-size: clamp(0.65rem, 0.6vw, 1.1rem);
  list-style: none;
  padding: 0;
}

li {
  margin: 8px 0;
}

@media (max-width: 768px) {
  .hero-container-wrapper {
    justify-content: center; /* ✅ center vertically */
  }
  .card-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    display: block; /* ❗ important */
    margin: 0 auto; /* center horizontally */
    perspective: 1000px;
  }

  .card {
    position: absolute;
    width: 260px;
    left: 50%;
    top: 50%;
  }

  .wrapper-btn {
    flex-direction: column;
    gap: 0.75rem;
  }

  .wrapper-h1-upper {
    position: relative;
    color: white;
    font-size: clamp(0.5rem, 1vw, 3rem);
    margin-top: 1rem;
    text-align: center;
    top: -20vw;
    z-index: 3;
  }
}
