/* Base styles for the hero section */
.hero {
  position: relative;
  width: 100%;
  margin: 0 auto; /* Centering the hero section */
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
}

.hero-first {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 100%;
  height: 70vh;
  gap: 4rem; /* Space between items */
  margin: auto;
  margin-bottom: 4vh;
  background: linear-gradient(to bottom right, #F9B208, #E72E77);
  padding-right: 3vw; /* 40 px approx*/
  padding-left: 3vw;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 35vw;
  /* padding-right: 4vw; 40 px approx
  padding-left: 4vw; */
}

.hero-logo {
  height: 130px;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: calc(2rem + 1vw); /* Responsive font size */
  color: white;
  margin-bottom: 1rem;
}

.hero-button {
  background-color: white;
  color: #E72E77;
  white-space: nowrap;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  text-transform: uppercase;
}

.hero-button:hover {
  background-color: #E72E77;
  opacity: 1;
  color: white;
}

/* Screenshots styling */
.hero-screenshots {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 35vw;
  gap: 3rem;
}

.screenshot img {
  height: auto;
  width: 11vw;
  border-radius: 15px;
  border: 4px solid black;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-catch-phrase {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin: 10px 0;
  margin-bottom: 25px;
}

.hero-second {
  display: flex;
  flex-direction: column; /* Stack elements vertically by default */
  align-items: center;
  text-align: center;
  width: 65%;
  gap: 2rem; /* Space between items */
  margin-bottom: 4rem;
}


.hero-bloc {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Alternate layout for image on left or right */
.hero-bloc:nth-child(even) {
  flex-direction: row-reverse; /* Reverse order for alternating layout */
}

/* Styling for bloc-text */
.bloc-text {
  flex: 1;
  text-align: left;
  padding: 20px;
  font-size: 1.8rem;
  color: #333;
}

.bloc-text h3 {
  font-size: 2.8rem;
  color: #E72E77;
  margin-bottom: 1rem;
}

.bloc-text ul {
  list-style-type: disc;
  padding-left: 20px;
}

.bloc-text ul li {
  margin-bottom: 0.5rem;
}

/* Styling for bloc-image */
.bloc-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2vw;
  padding-bottom: 2vw;

}

.bloc-image img {
  width: 15vw;
  max-width: 250px;
  height: auto;
  border-radius: 15px;
  border: 4px solid black;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button at the end of the hero-second */
.hero-button-end {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.hero-button-end a {
  background-color: #E72E77;
  color: white;
  padding: 20px 40px;
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.hero-button-end a:hover {
  background-color: linear-gradient(to bottom right, #F9B208, #E72E77);
}


/* Phone screens */
@media (max-width: 767px) {

  .hero-first {
    height: auto;
    width: 100%;
    flex-direction: column;
    padding-top: 7vh;
    padding-bottom: 7vh;
    margin-bottom: 2vh;
  }

  .hero-content {
    height: auto;
    width: 80vw;
  }

  .hero-logo {
    height: auto;
    width: 35vw; 
  }

  .hero-title {
    font-size: 1.8rem; /* Adjust for smaller screens */
    margin-bottom: 1.5rem;
  }

  .hero-screenshots {
    width: 80vw;
    align-items: center;
    justify-content: center;
  }

  .screenshot img {
    width: 20vw;
    height: auto;
  }

  .hero-catch-phrase {
    font-size: 2rem;
  }

  .hero-second {
    width: 100%;
  }

  .hero-bloc {
    flex-direction: column;
  }

  /* Revoke alternate layout for image on left or right */
  .hero-bloc:nth-child(even) {
    flex-direction: column;
  }

  .bloc-image img {
    width: 45vw;
    max-width: 500px;
    height: auto;
  }

}