.background {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: url(../pic/our.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(10px);
  z-index: -1;
}

#toptop {
  position: sticky;
  top: 0%;
  z-index: 1000;
}

.grid-item {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

#logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo > img {
  height: 100%; /* ייקח את כל הגובה של ההורה */
  width: auto; /* שומר על פרופורציות */
  max-height: 10vh;
  padding: 3vh;
}

/* תפריט עליון */
#topmenu {
  position: sticky; /* דבקות */
  top: 15%; /* מיקום מלמעלה */
  z-index: 1000; /* מעל כל התוכן */
  color: white; /* צבע טקסט לבן */
  text-align: center; /* יישור למרכז */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* משפחת גופנים */
  font-size: 100%; /* גודל גופן */
  width: 100%; /* רוחב מלא */
  background-color: rgba(127, 63, 152, 1); /* צבע רקע סגול */
}

/* עיצוב קישור פעיל בתפריט */
#topmenu ul li a.active {
  color: white; /* צבע לבן */
  border-top: 0.3vh solid white; /* גבול עליון */
  border-bottom: 0.3vh solid white; /* גבול תחתון */
  padding: 1.1vh; /* ריווח פנימי */
}

/* קישורי תפריט */
li a {
  color: white; /* צבע לבן */
  text-decoration: none; /* ללא קישוט טקסט */
  font-size: 115%; /* גודל גופן מוגדל */
  transition: all 0.3s ease; /* מעבר חלק */
}

/* אפקט ריחוף על קישורים */
li a:hover {
  opacity: 0.8; /* שקיפות קלה */
  transform: scale(1.05); /* הגדלה קלה */
}

/* פריטי רשימה */
li {
  display: inline-block; /* תצוגה בשורה */
  margin-left: 4vh; /* ריווח שמאלי */
  line-height: 7vh; /* גובה שורה */
}
.successful {
  display: grid;
  grid-template-columns: auto auto;
  gap: 5vh;
  padding: 1vh;
}
.successful > div {
  border-radius: 1.25vh;
  margin: 0.6vh;
  padding: 1.6vh;
  outline: medium dashed rgb(77, 20, 67);
}
.successful > div > h2 {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 3vh;
}
.openOurs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5vh;
  padding: 6vh;
}
.openOurs > div {
  margin: 0.6vh;
  padding: 2vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30vw;
  height: 30vw;
  border-radius: 50%;
}
.odoteinu,
.ourValues,
.uchlusia {
  margin: 10%;
  width: 100%;
  max-width: 350px;
  /* aspect-ratio: 1/1; */
  background-color: rgb(77, 20, 67);
  border-radius: 50%;
}
.odoteinu > p,
.ourValues > p,
.uchlusia > p {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  font-size: 3.5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5vh;
  box-sizing: border-box;
}
.odoteinu > h1,
.ourValues > h1,
.uchlusia > h1 {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  font-size: 4vh;
  margin: 0; /* מבטל רווח חיצוני */
  padding: 0; /* מבטל רווח פנימי */
}
/* שמירת מיקומים ייחודיים */
.odoteinu {
  right: 0vh;
}
.ourValues {
  top: 15vh;
  left: 20vh;
}
.uchlusia {
  top: 30vh;
  left: 40vh;
}
.flower {
  position: absolute;
  left: 0.8vh;
  width: 35vh;
  height: 35vh;
  border-radius: 100%;
}
.successful > div > h2 {
  color: rgb(77, 20, 67);
}
.body > h1 {
  color: white;
  text-align: center;
  font-size: 10vh;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}
.ourDestination > div > img {
  width: 25%;
  height: 35%;
}
.ourDestination {
  display: grid;
  grid-template-columns: auto auto;
  padding: 5vh;
  gap: 15vh;
}
.ourDestination > div > p {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 5vh;
}
.ourDestination > div > h2 {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 4vh;
  color: rgb(77, 20, 67);
  text-shadow: 2px 2px 5px white, -2px -2px 5px white, 2px -2px 5px white,
    -2px 2px 5px white;
}
.done {
  position: relative;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  filter: blur(5px);
  transform: rotate(-55deg);
}

/* ===== RESPONSIVE DESIGN ===== */

/* ========================================
   רספונסיביות - מסכים גדולים מאוד (1400px ומעלה)
   ======================================== */
@media only screen and (min-width: 1400px) {
  #topmenu {
    border: 1px solid rgba(147, 51, 234, 0.6);
    box-shadow: 0 4px 15px rgba(88, 28, 135, 0.4);
    border-radius: 0 0 15px 15px;
  }

  #topmenu li a {
    font-size: 200%;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid transparent;
  }

  #topmenu li a:hover {
    background: rgb(80 40 108);
    box-shadow: 0 3px 10px rgba(29, 1, 56, 0.3);
    border: 1px solid rgba(242, 240, 243, 0.5);
  }

  .flower {
    position: absolute;
    left: 3vh;
    width: 30vh;
    height: 30vh;
    border-radius: 100%;
  }

  #topmenu ul li a.active {
    background: rgb(102 46 117);
    border: 1px solid rgba(249, 247, 250, 0.8);
    box-shadow: 0 2px 8px rgb(79 39 108);
  }
  .successful {
    grid-template-columns: repeat(6, auto);
    padding: 10vh;
    gap: 5vh;
  }
  .openOurs {
    grid-template-columns: auto auto auto;
    padding: 3.75vh;
    gap: 15.4vh;
  }
  .odoteinu,
  .ourValues,
  .uchlusia {
    margin: 3.6vh;
    width: 35vh;
    height: 35vh;
    max-width: 450px;
    position: relative;
  }
  .odoteinu > p,
  .ourValues > p,
  .uchlusia > p {
    font-size: 3vh;
    padding: 2.5vh;
  }
  .odoteinu > h1,
  .ourValues > h1,
  .uchlusia > h1 {
    font-size: 6vh;
  }
  .ourDestination {
    text-align: justify;
  }

  .ourDestination > div > h2 {
    font-size: 4vh;
  }
  .ourDestination > div > img {
    width: 20%;
    height: 25%;
  }
  .done {
    bottom: -18vh;
    right: -8vh;
    font-size: 4vh;
  }
}

/* ========================================
   רספונסיביות - מסכים רגילים (769px - 1399px)
   ======================================== */
@media only screen and (min-width: 769px) and (max-width: 1399px) {
  #topmenu {
    border: 1px solid rgba(147, 51, 234, 0.6);
    box-shadow: 0 4px 15px rgba(88, 28, 135, 0.4);
    border-radius: 0 0 15px 15px;
  }

  #topmenu li a {
    font-size: 140%;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid transparent;
  }

  #topmenu li a:hover {
    background: rgb(80 40 108);
    box-shadow: 0 3px 10px rgba(29, 1, 56, 0.3);
    border: 1px solid rgba(242, 240, 243, 0.5);
  }

  #topmenu ul li a.active {
    background: rgb(102 46 117);
    border: 1px solid rgba(249, 247, 250, 0.8);
    box-shadow: 0 2px 8px rgb(79 39 108);
  }

  .flower {
    position: absolute;
    left: 3vh;
    width: 25vh;
    height: 25vh;
    border-radius: 100%;
  }
  .successful {
    grid-template-columns: auto auto;
    padding: 3vh;
    gap: 3vh;
  }
  .openOurs {
    gap: 11.5vh;
  }
  .odoteinu,
  .ourValues,
  .uchlusia {
    width: 25vh;
    height: 25vh;
    position: relative;
    display: flex;
    flex-direction: column; /* מסדר למעלה-למטה */
    align-items: center; /* מרכז אופקית */
    justify-content: center; /* מרכז אנכית */
    overflow: hidden; /* לחתוך מה שבורח החוצה */
    text-align: center;
  }
  .odoteinu h1,
  .ourValues h1,
  .uchlusia h1 {
    font-size: 4vh; /* להתאים לגודל המסגרת */
  }
  .odoteinu p,
  .ourValues p,
  .uchlusia p {
    font-size: 3vh; /* להתאים לגובה המסגרת */
  }
  .ourDestination {
    grid-template-columns: auto auto;
    padding: 5vh;
    gap: 3vh;
  }
  .ourDestination > div > p {
    font-size: 4vh;
  }
  .ourDestination > div > h2 {
    font-size: 3.5vh;
  }
  .ourDestination > div > img {
    width: 15%;
    height: 35%;
  }
  .done {
    bottom: -10vh;
    right: -5vh;
    font-size: 6.5vh;
  }
}

/* ========================================
   רספונסיביות - טאבלט ומטה (768px ומטה)
   ======================================== */
@media only screen and (max-width: 768px) {
  /* תפריט עליון - טאבלט ומובייל */
  #topmenu {
    position: static; /* ביטול דבקות */
    top: auto; /* איפוס מיקום */
    font-size: 100%; /* גופן רגיל */
    padding: 15px 0; /* ריווח פנימי */
  }

  #topmenu ul {
    display: flex; /* פלקס בוקס */
    flex-direction: column; /* כיוון אנכי */
    padding: 10px 0; /* ריווח פנימי */
    gap: 5px; /* רווח בין פריטים */
  }

  #topmenu ul li {
    margin: 8px 0; /* ריווח אנכי */
    margin-left: 0; /* איפוס ריווח שמאלי */
    width: 100%; /* רוחב מלא */
  }

  li {
    display: block; /* תצוגה בלוק */
    text-align: center; /* יישור למרכז */
    line-height: 6vh; /* גובה שורה מותאם */
    width: 100%; /* רוחב מלא */
  }

  li a {
    font-size: 4.5vw; /* גופן רספונסיבי */
    padding: 15px 20px; /* ריווח פנימי גדול */
    display: block; /* תצוגה בלוק */
    border-radius: 8px; /* פינות מעוגלות */
    margin: 0 10px; /* ריווח צדדי */
    background-color: rgba(255, 255, 255, 0.1); /* רקע קל */
  }

  li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* רקע מוגבר בריחוף */
    transform: scale(1); /* ביטול הגדלה במובייל */
  }
  .flower {
    display: contents;
  }
  .successful > div {
    padding: 1vh;
    font-size: 2vh;
  }
  .openOurs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
    padding: 3.75vh;
  }
  .openOurs > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3vh;
    border-radius: 50%;
    min-width: 30vw;
    min-height: 30vw;
    width: auto;
    height: auto;
    box-sizing: border-box;
    text-align: center;
  }

  .odoteinu > p,
  .ourValues > p,
  .uchlusia > p {
    font-size: 2vh;
  }
  .ourDestination {
    grid-template-columns: auto auto;
    padding: 3vh;
    gap: 6vh;
    text-align: justify;
  }
  .ourDestination > div > p {
    font-size: 3vh;
  }
  .ourDestination > div > h2 {
    font-size: 3vh;
  }
  .done {
    bottom: 0;
    right: 0;
    font-size: 6vh;
  }
}
