/* === Reset בסיסי ו-Box sizing === */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-family: sans-serif;
  color: white;
  background: url("Image/cowork.png") center / cover no-repeat fixed;
}
*, *::before, *::after { box-sizing: inherit; }

/* === תפריט עליון === */
#top-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 8vh;
  background-color: #337ab7;
  position: relative;
  padding: 0 1em;
  box-sizing: border-box;
}

#toggle-side-menu {
  color: black;
  top: 3vh;
  right: 3vw;
  width:15%;
  height:15%;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 9999;
}

#img1 {
  margin-left:32%;
  width:70%;
  height:auto;
}

.back {
  width:100%;
  height:100%;
  cursor: pointer;
}

.logo {
   cursor: pointer;
  width: 25%;
  max-width: 25%;
}
.logo img {
  width: 90%;
  height: auto;
}

.alink-holder {
  margin-top:30%;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  flex: 1;
  max-width: 50%;
}

.alink-container {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  position: relative;
}

.alink {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  font-weight: bold;
  color: white;
  background-color: #4b82d5;
  text-decoration: none;
  border-radius: 0.5em;
  padding: 0.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color .3s;
  cursor: pointer;
}

.alink:hover {
  background-color: #2c5fa0;
}

.small-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 65%;
  background-color: #b1aeae;
  border: 1px solid #e5e6e8;
  border-radius: 2em;
  padding: 1em;
  box-shadow: 0 .2em .6em rgba(0,0,0,0.2);
  z-index: 1000;
}

.alink-container:hover .small-menu {
  display: block;
}

.small-menu a {
  display: block;
  color: white;
  padding: .5em 0;
  text-decoration: none;
  cursor: pointer;
}

.small-menu a:hover {
  background-color: #929393;
  border-radius: 2em;
}

#side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 30vw;
  background-color: rgba(255,255,255,0.1);
  border-left: 6px solid #003366;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1050;
}

#side-menu.open {
  transform: translateX(0);
}

#side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-li {
  margin: 15px 0;
}

.blink {
  border: 1px solid black;
  color: black;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 10px 20px;
  border-radius:6px;
  transition: background-color .2s ease;
  cursor: pointer;
}

.blink:hover {
  background-color: rgba(255,255,255,0.2);
}

#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.me {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3em;
  box-shadow: 0 1em 3em rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
}

.me, .container, .discount, .details, .contact, .who, .mission {
  margin: 10px auto 0 auto;
  display: block;
  width: 720px;
  height:auto;
  max-width: 100%;
  padding: 0;
}

.me img, .discount img, .details img, .container img, .contact img, .who img, .mission img {
  width: 100%;
  height: auto;
  object-fit: fill;
  display: block;
}

.discount, .details {
  cursor: pointer;
}

.lines {
  cursor: pointer;
}

/* === Mobile – Galaxy Note 8 === */
@media only screen and (max-width: 414px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  #top-menu {
    background-color: Azure;
    flex-wrap: nowrap;
    height: 10vh;
    padding: 0 0.5em;
  }

  #toggle-side-menu {
    width:5vh;
    position: fixed;
    top: 3vh;
    right: 4vw;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  #img1 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lines,
  .back {
    width: 100%;
    height: auto;
    display: block;
  }

  .logo {
    width: 25%;
    max-width: 25%;
  }

  .logo img {
    width: 100%;
    height: auto;
  }

  .alink-holder {
    margin-top:20%;
    height: 100%;
    max-width: 48%;
    flex: 1;
    display: flex;
    justify-content: space-between;
    margin-right: 4.5em;
  }

  .alink-container {
    min-width: 0;
    max-width: 33%;
    flex: 1;
  }

  .alink {
    height: auto;
    width: 100%;
    font-size: 0.55rem;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .small-menu {
    width: 26vw;
    top: 2.5vh;
  }

  .blink {
    margin-top:10vh;
    background-color: grey;
  }


  .me, .container, .discount, .details, .contact, .who, .mission {
    width: 95%;
    max-width: 95%;
    margin: 1em auto;
  }

  .me img, .container img, .discount img, .details img, .contact img, .who img, .mission img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
  }

  #side-menu {
    width: 45vw;
  }
}
