.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: black;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  align-items: center;
  justify-content: center;
  color: white;
  /* padding: 0 1rem; */
  margin-top: 80px;
}

/* Hero Content Container */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  /* max-width: 1400px; */
  /* padding: 0 5%; */
  gap: 60px;
}

/* Hero Text Container */
.hero-text-container {
  flex: 1;
  z-index: 2;
}

.hero-right-side-container {
  display: flex;
  flex-direction: column;
  z-index: 1;
  align-items: center; /* Center the video and subtitle */
  gap: 20px; /* Add space between video and subtitle */
}

/* Hero Circle */
.hero-circle {
  opacity: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
  overflow: hidden;
  position: relative;
}

.hero-circle video {
  width: 160%; /* Scale larger to crop out black bars */
  height: 160%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  background-position-y: 20px;
}

.hero-right-side-container .hero-circle {
  order: 1; /* Video appears first */
}

.hero-right-side-container .hero-subtitle {
  order: 2; /* Subtitle appears second (below video) */
  margin-top: 0;
  text-align: right;
  /* font-size: 1.25rem; */
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 1%;
  text-transform: capitalize;
}

.hero-title .block {
  display: block;
  position: relative;
  z-index: 20;
}

.hero-title .text-yellow {
  color: #f6d764;
  font-weight: 500;
  font-style: italic;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  /* font-size: 1.5rem; */
  text-align: center;
  align-self: flex-end;
  font-weight: 500;
}

.hero-subtitle .text-pink {
  color: white;
  font-weight: 700;
  font-style: italic;
  background-image: url('/assets/homepage/pink-fire.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 1rem;
  border-radius: 0.25rem;
  display: inline-block;
}

.hero-services {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.hero-subtitle .text-pink {
  color: white;
  font-weight: 600;
}

.hero-services-text {
  font-size: 50px;
  color: #f6d764;
  transform: translateY(-12px);
}

/* Update the subtitle styling for the right side container */
.hero-right-side-container .hero-subtitle {
  margin-top: 0; /* Remove the large top margin */
  text-align: center; /* Center the subtitle text */
  font-size: 1.25rem; /* Adjust size as needed */
}

/* .down-arrow {
  transform: translateY(12px);
} */

.line-container {
  display: block;
  overflow: hidden; /* This hides the text that's moved down */
  line-height: 1.1;
}

.line-text {
  display: block;
  transform: translateY(100%); /* Start below the container */
}

@media (max-width: 767px) {
  .hero-section {
    margin-top: 0px;
    min-height: 100vh;
    height: fit-content;
    padding-bottom: 30px;
  }

  .hero-services {
    justify-content: center;
  }

  .hero-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .hero-right-side-container {
    gap: 15px;
  }

  .hero-circle {
    /* display: none; */
    width: 200px;
    height: 200px;
    margin-top: 30px;
    order: -1; /* Move circle above text */
    transform: translate(0px, 60px);
  }

  .hero-title {
    margin-top: 70px;
  }

  .hero-subtitle {
    font-size: 21px;
    margin-top: 40px;
    align-self: center;
  }

  .hero-right-side-container .hero-subtitle {
    font-size: 16px;
    margin-top: 0;
  }

  .hero-services-text {
    font-size: 24px;
    margin-top: 15px;
  }

  .hero-text-container {
    order: 2;
  }

  .hero-right-side-container {
    order: 1;
  }

  /* .down-arrow {
    transform: translateY(6px);
  } */
}

@media (max-width: 480px) {
  .hero-subtitle {
    align-self: center;
    font-size: 15px;
  }
}

/* @media (min-width: 481px) and (max-width: 768px) {


} */

/* Medium screens (md) - 768px and up */
@media (min-width: 768px) {
  .hero-section {
    align-items: flex-start;
    /* padding-left: 10%; */
    margin-top: 0;
    width: 90%;
    margin: 0 auto;
  }

  .hero-content {
    flex-direction: row;
    gap: 40px;
  }

  .hero-right-side-container {
    order: 2; /* Right side on tablets and up */
    gap: 15px;
  }

  .hero-circle {
    width: 180px;
    height: 180px;
  }

  .hero-text-container {
    order: 1;
  }

  .hero-title {
    font-size: 41px;
    text-align: left;
  }

  .hero-subtitle {
    font-size: 25px;
    text-align: right;
  }

  .hero-services-text {
    margin-top: 12px;
    font-size: 30px;
  }
}

/* Large screens (lg) - 1024px and up */
@media (min-width: 1024px) {
  .hero-section {
    /* align-items: flex-start; */
    align-items: stretch;
  }

  .hero-content {
    flex-direction: row; /* Side by side on desktop */
    gap: 60px;
  }

  .hero-right-side-container {
    order: 1; /* Right side */
    gap: 20px;
  }

  .hero-text-container {
    order: 0; /* Text on the left */
  }

  .hero-title {
    font-size: 55px;
    text-align: left;
  }

  .hero-right-side-container .hero-subtitle {
    font-size: 22px;
    text-align: center;
  }

  .hero-services-text {
    font-size: 40px;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .hero-circle {
    width: 250px;
    height: 250px;
    order: 1; /* Circle on the right */
  }

  .hero-title {
    font-size: 54px;
  }

  .hero-subtitle {
    font-size: 34px;
  }
}

@media (min-width: 1367px) {
  .hero-title {
    font-size: 75px;
  }

  .hero-circle {
    width: 300px;
    height: 300px;
    order: 1; /* Circle on the right */
  }

  .hero-subtitle {
    font-size: 45px;
  }
}

@media (min-width: 1500px) {
  .hero-title {
    font-size: 85px;
  }

  .hero-circle {
    width: 300px;
    height: 300px;
    order: 1; /* Circle on the right */
  }

  .hero-subtitle {
    font-size: 49px;
  }
}
