* {
  margin: 0;
  padding: 0;
  direction: rtl;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth !important;
}

body {
  font-size: 62.5%;
  font-family: "Open Sans", sans-serif;
  overflow-y: auto;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

.background {
  background-image: url(./img/רקע-סגול.jpeg);
}

.bg-1 {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
  z-index: -1; /* Push it behind everything */
  pointer-events: none; /* So it doesn’t block clicks */
}

.bg-layer-2 {
  opacity: 0;
  z-index: 1;
}

.opening-display {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.opening {
  position: sticky;
  top: 0;
  height: 90vh;
  width: 85%;
  background: rgba(255, 255, 255, 0.2);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 2rem auto;
  z-index: 1;
  box-shadow: 0px 1px 50px 8px rgba(0, 0, 0, 25%);
}

.logo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo img {
  width: 15%;
}

.opening h3 {
  font-weight: 300;
  font-size: 1.3rem;
  color: white;
  text-align: center;
  margin: 2.5rem 0rem;
}

.opening-text {
  height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.WhatsApp {
  position: static;
  height: 20vh;
  width: 100%;
}

.WhatsApp img {
  position: absolute;
  width: 5%;
  left: 1rem;
  bottom: 1rem;
  border-radius: 2rem;
}

.headline {
  width: 100%;
  display: flex;
  justify-content: center;
}

.headline img {
  width: 70%;
}

.text {
  max-height: 80vh;
  overflow-y: auto; /* Enables vertical scrolling */
  padding: 1rem;
  color: black; /* Ensures text is visible */
  background: transparent; /* Matches the backdrop */
}

.button {
  width: 100%;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.move {
  padding: 0.8rem;
  font-family: "Open Sans", sans-serif;
  margin-top: 3rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.9rem;
  transition: filter 0.2s ease-in-out;
  background: #fffdf969;
  cursor: pointer;
}

.move:hover {
  filter: drop-shadow(0 0 0.75rem rgb(251, 205, 85));
}

.about-me-text {
  margin-top: 10rem;
  min-height: 80vh;
  width: 95%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-me-headline {
  width: 25%;
}

.about-me {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-me-p {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  margin-left: 5rem;
  width: 100%;
}

.about-me-p p {
  font-size: 1.3rem;
  color: white;
  margin-top: 2rem;
  text-shadow: 1px 1px 2px rgba(37, 37, 37, 0.218);
}

.about-me p span {
  margin-top: 1rem;
  font-weight: 600;
}

.about-me-img {
  width: 80%;
  height: 70vh;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  box-shadow: 0px 0px 10px rgba(37, 37, 37, 0.299);
}

.reasons-text {
  margin-top: 10rem;
  min-height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.reasons-text-img {
  width: 90%;
  display: flex;
  justify-content: center;
}

.reasons-text img {
  width: 90%;
}

.reasons p {
  font-weight: 400;
  font-size: 1.3rem;
  color: white;
  margin: 2rem 1rem;
  text-align: center;
  padding: 0rem 8rem;
}

.reasons p span {
  font-weight: 700;
}

.swiper {
  width: 70vw;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.swiper-slide img {
  width: 85%;
  height: auto;
  display: block;
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff2d3a5;
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: #f5c242f5;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px;
}

.swiper-pagination-bullet {
  background: #f5c342;
}

.part {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 5rem;
}

.part p {
  font-weight: 400;
  font-size: 1.3rem;
  color: rgb(17, 17, 17);
  margin: 2rem 1rem;
  text-align: center;
  padding: 0rem 8rem;
}

.part p span {
  font-weight: 700;
}

.part img {
  width: 75%;
}

.part-img {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.part-img img {
  width: 40%;
  border-radius: 1rem;
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.47);
}

.part-2-img {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.part-2-img img {
  width: 17%;
  border-radius: 1rem;
  margin: 0.2rem;
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.47);
}

.part-2-logo {
  width: 65%;
}

.part-2-logo img {
  width: 75% !important;
}

.part-img {
  width: 55% !important;
}

.part-1-visual {
  width: 90% !important;
}

.part-3 {
  justify-content: flex-start;
}

.part-3 img {
  width: 75%;
}

.purchase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 5rem;
}

.purchase img {
  width: 75%;
}

.purchase p {
  font-weight: 400;
  font-size: 1.5rem;
  color: white;
  margin: 2rem 1rem;
  text-align: center;
  padding: 0rem 8rem;
}

.purchase button {
  font-family: "Open Sans";
  font-weight: 700;
  padding: 1rem 2rem;
  background: #f5c342;
  cursor: pointer;
  font-size: 1.3rem;
  text-decoration: none;
  color: black;
  border: none;
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.47);
  margin-bottom: 5rem;
  transition: all 0.3s ease-in-out;
  border-radius: 0.5rem;
}

.purchase button:hover {
  font-weight: 700;
  filter: drop-shadow(0 0 0.75rem rgba(255, 255, 255, 0.847));
}

/*Smartphones*/
@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    overflow-x: hidden !important;
  }

  .bg-1 {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
  }

  .logo img {
    width: 35%;
  }

  .opening-display {
    min-height: 85vh;
  }

  .opening {
    height: 95vh;
    width: 95%;
    margin: 1rem auto;
  }

  .opening-text {
    height: 85vh;
    margin-top: -3rem;
  }

  .opening-text h3 {
    margin: 2.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    animation: flashText 1s ease-in-out;
  }

  .WhatsApp {
    position: static;
    height: 5vh;
    width: 100%;
  }

  .WhatsApp img {
    position: absolute;
    width: 15%;
    left: 0.5rem;
    bottom: 5rem;
    border-radius: 2rem;
  }

  /* Animation */
  @keyframes flashText {
    0% {
      opacity: 50%;
    }
    25% {
      opacity: 0%;
    }
    50% {
      opacity: 50%;
    }
    75% {
      opacity: 25%;
    }
    100% {
      opacity: 1;
    }
  }

  .button {
    color: black;
  }

  .move {
    color: black !important;
  }

  .hide-on-mobile {
    display: none;
  }

  .headline img {
    width: 90%;
  }

  .about-me-text {
    width: 100%;
  }

  .about-me-text img {
    width: 50%;
  }

  .about-me {
    flex-direction: column;
    width: 85%;
    margin-top: 0rem;
  }

  .about-me-p {
    flex-direction: column;
    margin-left: 0rem;
    text-align: center;
  }

  .about-me-p p {
    font-size: 1.3rem;
  }

  .about-me-img {
    margin-top: 2rem;
    height: 40vh;
    width: 95%;
  }

  .reasons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .reasons p {
    width: 85%;
    padding: 0rem;
  }

  .swiper {
    width: 90vw;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: calc(var(--swiper-navigation-size) / 44 * 40);
    --swiper-navigation-size: 5vw;
    height: 100%;
    top: 2rem;
  }

  .part {
    margin-top: 5rem;
  }

  .part p {
    padding: 2rem;
    font-size: 1.3rem;
    margin: 0rem;
  }

  .part-img {
    width: 85% !important;
  }

  .part-img img {
    width: 100%;
  }

  .part-1-visual {
    width: 90% !important;
  }

  .part-2 {
    margin-top: 5rem;
  }

  .part-2-logo {
    width: 75%;
  }

  .part-2-img img {
    width: 45%;
  }

  .part-3 {
    margin-top: 5rem;
  }

  .purchase img {
    width: 100%;
  }

  .purchase p {
    font-size: 1.3rem;
    padding: 0.5rem;
  }

  .purchase a button {
  padding: 1rem 2rem !important;
  }

  .star-left-top img {
    width: 25vw;
    margin-left: -1.5rem;
    margin-top: -0.5rem;
  }

  .star-right-bottom {
    overflow: hidden;
  }

  .star-right-bottom img {
    width: 25vw;
    margin-right: -1.5rem;
    margin-bottom: -0.5rem;
  }

  .reasons-text {
    margin-top: 5rem;
  }

  .swiper-pagination {
    position: relative;
    margin-top: 1rem;
  }
}
