* {
  margin: 0;
  padding: 0;
  direction: rtl;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Assistant", serif;
  background-color: #f9ffff;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

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

.menu {
  position: fixed;
  width: 95%;
  top: 0;
  background: white;
  padding: 1.5rem 0rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0.5rem;
  z-index: 99;
  /* שיפור ביצועים: הכן לשינוי מיקום (אם הוא נע בגלילה) */
  will-change: transform, opacity;
}

nav {
  display: flex;
  width: 100%;
}

.menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0%;
  height: 100%;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-direction: row;
  padding-right: 2rem;
  /* שיפור ביצועים: הכן לשינויים */
  will-change: transform;
}

.menu nav ul a {
  display: flex;
  color: rgba(0, 0, 0, 0.611);
  text-decoration: none;
  font-size: 1.5rem;
  /* שינוי: ה-transition יהיה על transform */
  transition: 0.2s ease;
}

/* שינוי: שימוש ב-transform: scale במקום font-size + האצת GPU */
.option-1:hover,
.option-2:hover,
.option-3:hover {
  transform: scale(1.66) translateZ(0); /* האצת GPU */
  color: white;
  will-change: transform;
}

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

.ul-logo img {
  width: 5%;
  height: auto;
}

.opening {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 0;
}

.opening::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0.5;
  z-index: -1;
}

.opening-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  opacity: 100%;
}

.opening-text-container img {
  width: 75%;
  opacity: 0.5;
}

.opening-text-container img.headline {
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.opening-text-container h3 {
  margin-top: 1rem;
  width: 70%;
}

.headline {
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

.image-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: absolute;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0; /* Initially hidden */
  transition: opacity 1s ease-in-out; /* Smooth fade-in effect */
  /* שיפור ביצועים: הכן את האלמנט לאנימציה */
  will-change: opacity, transform;
}

.image-container img.active {
  opacity: 0.5;
}

.image-slide {
  height: 100vh !important;
  width: 100%;
  object-fit: cover;
  display: block;
}

.image-slide .active {
  height: 100vh !important;
  width: 100%;
  object-fit: cover;
  display: block;
}

.first-opening-text {
  margin-right: -16rem;
}

.second-opening-text {
  margin-top: -3rem;
  margin-left: -17.5rem;
}

.opening h1 {
  color: black;
  z-index: 1;
  font-size: 6rem;
}

.opening h3 {
  font-weight: 400;
  font-size: 2rem;
  text-align: center;
  z-index: 2;
}

.opening h3 span {
  font-weight: 600;
}

/*categories*/

.card-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  padding: 1.5rem;
  box-sizing: border-box;
  border-radius: 25px;
  transform: scale(2);
  opacity: 0.65;
}

.title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.1rem;
  line-height: 1.25;
}

.description p {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.25;
}

section {
  position: relative;
  width: 100%;
  background-color: #0f0f0f;
  color: #fff;
}

.intro,
.outro {
  height: 100svh;
  padding: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro h1,
.outro h1 {
  width: 60%;
  text-align: center;
  line-height: 1.1;
}

.cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25svh;
  background-color: #3c3c3c;
}

.cards-phone {
  display: none;
}

.card-marquee {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  overflow: hidden;
}

.card-marquee .marquee {
  display: flex;
}

.card-marquee .marquee h1 {
  white-space: nowrap;
  font-size: 10vw;
  font-weight: 600;
  margin-right: 30px;
}

.card {
  position: relative;
  width: 100%;
  height: 100svh;
}

.card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
  /* תיקון קריסה iOS: הכרח האצת GPU על אלמנט מונפש בגלילה */
  transform: translateZ(0); 
}

.card-img {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 150px;
  overflow: hidden;
}

.card-img img {
  /* תיקון קריסה iOS: הכרח האצת GPU על תמונת רקע מונפשת */
  transform: scale(2) translateZ(0);
}

.card-content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
}

.card-text {
  width: 100%;
  left: 0;
  bottom: 0;
  height: 100vh;
  border-radius: 0rem 1rem 1rem 0rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-content .title {
  width: 100%;
  text-align: center;
}

.card-content .description {
  text-align: center;
  width: 40%;
  position: relative;
  transform: translateX(40px);
  opacity: 0;
}

.card:nth-child(2) {
  margin-top: 50vh;
}

.char {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.char span {
  transform: translateX(100%);
  display: inline-block;
  will-change: transform;
  /* תיקון קריסה iOS: ודא אנימציית טקסט על GPU */
  transform: translateX(100%) translateZ(0);
}

.arrow-right {
  transition: transform 0.3s ease;
  fill: black;
}

svg:hover .arrow-right {
  transform: translateX(-5px) translateZ(0);
}

.btn-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-right a svg {
  cursor: pointer;
  transform: scale(0.45);
}

.btn-right a {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Questions */

.questions-phones {
  display: none !important;
}

.questions {
  width: 100%;
  height: 100vh;
  background-color: #3c3c3c;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.questions h1 {
  text-align: center;
  font-size: 4.5rem;
}

.questions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10rem;
  justify-content: center;
  margin-top: 6rem;
  width: 90%;
  align-items: flex-start;
}

.question {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 1rem;
  width: 20%;
  background: rgb(165, 239, 255);
  background: radial-gradient(
    circle,
    rgba(165, 239, 255, 0.2) 0%,
    rgba(110, 191, 244, 0.1057816876750701) 77%,
    rgba(70, 144, 212, 0) 100%
  );
  border: 0.1rem solid rgba(165, 238, 255, 0.452);
  border-radius: 3rem;
  overflow: hidden;
  opacity: 0.7;
  transition: ease-in-out 0.15s;
  height: 15vh;
  margin-bottom: 1rem;
  /* שיפור ביצועים: הכן לשינויי גובה ואטימות */
  will-change: height, opacity;
}

.question:hover {
  opacity: 1;
}

.question h4 {
  font-size: 2rem;
  margin-top: 2vh;
}

.answer {
  font-size: 1.5rem;
  width: 75%;
  display: none;
  margin-top: 1rem;
}

.answer-active {
  display: block;
}

.question-active {
  height: auto;
  padding-bottom: 2rem;
}

.hover-svg {
  transform: rotate(0deg);
  transition: transform 0.3s ease-in-out;
}

/* שיפור ביצועים: הוספת תרגום קל ל-3D למניעת ריצוד */
.hover-svg-active {
  transform: rotate(180deg) translateZ(0);
}

.hover-svg:hover {
  transform: translateY(0.5rem) translateZ(0);
}

.hover-svg-active:hover {
  transform: rotate(180deg) translateY(0.5rem) translateZ(0);
}

.question svg {
  height: auto;
  width: 25%;
  cursor: pointer;
  fill: white;
  padding: 1rem 0rem;
  transition: transform 0.3s ease;
}

.question-active svg {
  margin-bottom: 1rem; /* Adjust space below the icon */
}

.read-more {
  border: none;
  background: transparent;
  transform: none !important;
}

/*Get to know me */

.get-to-know-phone {
  display: none !important;
}

.get-to-know {
  height: auto;
  max-width: 100%;
  background-color: #f9ffff;
  display: flex;
  position: relative;
  gap: 0rem 2rem;
}

.get-to-know-bg {
  height: 20vh;
  width: 100%;
  background-color: #3c3c3c;
  position: absolute;
  top: 0;
  display: flex;
}

.get-to-know-bg h4 {
  bottom: 1rem;
  color: #f9ffff;
  position: absolute;
  margin-right: 3rem;
  font-size: 3rem;
  display: flex;
  align-items: center;
}

@keyframes hand-waving {
  0% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(15deg);
  }
  100% {
    transform: rotate(-10deg);
  }
}

.hand-waving {
  width: 5%;
  display: block;
  margin-right: 1rem;
  /* שיפור ביצועים: הוספת will-change על אנימציה */
  transition: transform 2s ease-in-out;
  will-change: transform;
}

.hand-waving img {
  width: 100%;
}
.hand-waving-active {
  animation: hand-waving 2.5s ease-in-out infinite;
}

.get-to-know-text {
  display: flex;
  flex-direction: column;
  z-index: 5;
  color: #3c3c3c;
  width: 60%;
  margin-top: 20vh;
  margin-right: 3rem;
  margin-left: 5rem;
}

.get-to-know-text h5 {
  margin: 2rem 0rem;
  font-size: 2rem;
  margin: 2rem 0rem;
  font-weight: 600;
}

.get-to-know-text p {
  font-size: 1.9rem;
}

.contact {
  background-color: #3c3c3c;
  border-radius: 2rem;
  color: #f9ffff;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.7rem;
  min-width: 20%;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: transform 0.3s ease;
  border: none;
  box-shadow: 0px 5px 50px rgba(0, 0, 0, 0.274);
  transform-origin: right center;
  font-family: "Assistant", sans-serif;
  font-weight: 700;
  /* שיפור ביצועים: הכן את האלמנט לאנימציה */
  will-change: transform;
}

/* שיפור ביצועים: הוספת תרגום קל ל-3D למניעת ריצוד */
.contact:hover {
  transform: scale(1.1) translateZ(0);
  cursor: pointer;
}

.amit-pic {
  min-width: 35%;
  height: 80vh;
  background-image: url(./home-screen/icons/amit-hamri.jpg);
  background-position-x: center;
  background-position-y: bottom;
  background-size: cover;
  z-index: 5;
  margin-left: 2rem;
  margin-top: 5rem;
  border-radius: 1rem;
  box-shadow: 0px 5px 50px rgba(0, 0, 0, 0.5);
}

/*Feedback container*/

.feedbacks {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 2rem;
  justify-content: center;
}

.feedbacks-container {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  flex-direction: column;
  background-color: #3c3c3c;
}

.feedbacks-container h4 {
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10vh;
  color: #f9ffff;
  position: absolute;
  font-size: 3.5rem;
  margin: 3rem 0rem;
  position: relative;
}

.feedbacks-container h3 {
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10vh;
  color: #f9ffff;
  position: absolute;
  font-size: 3.5rem;
  margin: 3rem 0rem;
  position: relative;
  height: 9vh;
}

.feedback {
  flex: 0 0 calc((100% / 3) - 20px);
  max-width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f9ffff;
  box-sizing: border-box;
  overflow: hidden;
  scroll-snap-align: start;
  /* שיפור ביצועים: הכן לשינויי מיקום (בגלל גלילה/סליידר) */
  will-change: transform;
}

.feedbacks-flex {
  display: flex;
  gap: 20px;
  overflow: hidden; /* hide other cards */
  scroll-snap-type: x mandatory;
  width: 80%;
  margin: 0 auto;
  position: relative;
  margin-bottom: 10vh;
}

/* Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  /* שיפור ביצועים: translateZ(0) למניעת ריצוד */
  transform: translateY(-50%) translateZ(0); 
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  height: 5rem;
  width: 5rem;
  border-radius: 50%;
  will-change: transform;
}

.slider-btn.prev {
  left: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-btn.next {
  right: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow {
  width: 65%;
  fill: #f9ffff;
}

.arrow-next {
  rotate: 180deg;
}

.feedback h4 {
  font-size: 3rem;
  margin-top: 1rem !important;
  position: relative;
}

.feedback p {
  font-size: 1.8rem;
  text-align: center;
  padding: 0rem 5rem;
  margin-bottom: 2rem;
}

.feedback-separation {
  height: 5vh;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.feedback-line {
  stroke: 1rem solid #f9ffff;
  width: 100%;
}

.feedback-circle {
  width: 5rem;
  height: 5rem;
  background: #f9ffff;
  border-radius: 50%;
  position: absolute;
}

.feedback-svg {
  fill: #f9ffff;
  border-radius: 50rem;
  rotate: (180deg);
}

.feedback-svg g,
.feedback-svg path {
  fill: #636363;
}

.slider-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@keyframes heart {
  0% {
    transform: scale(0.5);
  }
  50% {
    transform: scale(0.4);
  }
  100% {
    transform: scale(0.5);
  }
}

.heart {
  width: 7%; /* Increase size */
  display: block;
  transition: transform 2s ease-in-out;
  margin-right: -1rem;
  will-change: transform;
}

.heart img {
  width: 100%;
}

.heart-active {
  animation: heart 2.5s ease-in-out infinite;
}

footer {
  height: 5vh;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

footer h3 {
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(31, 31, 31, 0.854);
}

.swiper {
  width: 50%;
  height: 300px;
}

.swiper-wrapper {
}

.swiper-slide {
}

.cards-phone {
  display: none;
}

@media screen and (max-width: 900px) {
  ::-webkit-scrollbar {
    display: none;
  }

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

  .opening-text-container {
    width: 100%;
  }

  .opening-text-container img {
    width: 85%;
  }

  .headline {
    width: 80%;
  }

  .opening h3 {
    font-size: 1.7rem;
    width: 80%;
  }

  .title {
    line-height: 1;
    font-size: 2.5rem;
  }

  .card-content .description {
    width: 80%;
  }

  .ul-logo img {
    width: 10%;
    height: auto;
  }

  .questions-dekstop {
    display: none;
  }

  .questions-phones {
    display: block !important;
    padding-top: 3rem;
    height: 70vh;
  }

  .questions-phones-expanded {
    height: auto !important;
  }

  .question {
    width: 100%;
  }

  .questions-container {
    width: 100%;
    gap: 1.5em;
  }

  .question {
    width: 100%;
    height: 6vh;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .q {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 98%;
  }

  .question h4 {
    margin: 0;
    font-size: 1.7rem;
    text-align: right;
    line-height: 1.2;
  }

  .read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
  }

  .question svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
  }

  .question-active {
    height: auto !important;
    padding-bottom: 2rem;
  }

  .answer {
    margin: 1rem;
    width: 85%;
  }

  .get-to-know-phone {
    display: block !important;
  }

  .get-to-know-dekstop {
    display: none !important;
  }

  .amit {
    min-width: 35%;
    height: 50vh;
    z-index: 5;
    margin: 0rem 3rem;
    margin-top: 5rem;
    box-shadow: 0px 5px 50px rgba(0, 0, 0, 0.5);
    border-radius: 2rem;
  }

  .amit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
  }

  @keyframes hand-waving {
    0% {
      transform: rotate(-10deg);
    }
    50% {
      transform: rotate(15deg);
    }
    100% {
      transform: rotate(-10deg);
    }
  }

  .hand-waving {
    width: 10%;
  }

  .get-to-know-text {
    width: 100%;
    margin: 0;
    padding-top: 20rem;
    text-align: center;
  }
  
  .cards {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch; 
  }
  
  .card{
      scroll-snap-align: start;
  }

  .get-to-know-text h5,
  .get-to-know p {
    margin: 2rem;
  }

  .get-to-know-text a {
    display: flex;
    justify-content: center;
    text-decoration: none;
  }

  .heart {
    width: 16%;
  }

  .heart img {
    margin-top: 1rem;
  }

  .feedback {
    flex: 0 0 calc((100% / 1));
  }

  .slider-btn {
    width: 3rem;
    height: 3rem;
  }

  .feedbacks-flex {
    width: 75%;
  }

  .slider-btn.prev {
    left: 1.5rem;
  }

  .slider-btn.next {
    right: 1.5rem;
  }

  .feedback p {
    padding: 0rem 2.5rem;
    margin: 3rem 0rem;
  }

  .feedbacks-container h4 {
    height: 6vh;
  }

  .feedback h4 {
    margin-top: 0rem;
    margin-bottom: 2rem;
  }

  .feedback-separation {
    margin-bottom: 0rem;
  }

  .chalake-img {
    object-fit: cover;
    object-position: right;
  }
}