*{ box-sizing:border-box; margin:0; padding:0; }
body{ font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; background:#f6f6f6; color:#111; }

.layout{ display:flex; height:100vh; }

/* LEFT */
.left{
  width:50vw;
  background:#fff;
  padding:32px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.intro-center{ text-align:center; }
.signature-logo{ width:400px; max-width:92%; margin-bottom:10px; }

/* LEFT NAV (only 3 items) */
.left-nav{
  position:absolute;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  justify-content:center;
}
.left-nav a{
  text-decoration:none;
  color:inherit;
  font-weight:400;
  opacity:.9;
  border: 1px solid black;
  padding: 8px;
  border-radius: 50px;
}
.left-nav a:hover{
  background-color: #969090;
}

/* MIDDLE (About submenu) */
.mid{
  width:160px;
  padding:18px 14px;
  display:none;
  align-items:center;
  justify-content:center;
  border-left:1px solid rgba(0,0,0,.06);
  border-right:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-direction: column;
}
.mid.is-open{ display:flex; }

.mid-btn{
  width:100%;
  appearance:none;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.8);
  padding:12px 10px;
  border-radius:50px;
  cursor:pointer;
  font-weight:400;
  letter-spacing:.2px;
  margin:8px 0;
}
.mid-btn:hover{ background:rgba(75, 74, 74, 0.06); }
.mid-btn.is-active{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* RIGHT */
.right{
  width:50vw;
  padding:0px;
  overflow:hidden;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(120,160,255,0.18), transparent 55%),
    radial-gradient(800px 450px at 85% 20%, rgba(80,120,200,0.18), transparent 60%),
    linear-gradient(180deg, #2d3e676f 0%, #1d2b48b8 100%);
  color: #686868;
}

/* Projects grid */
.projects{
  height:100%;
  overflow-y:auto;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
  padding-right:6px;
}

/* ===== PROJECT CARD (CLEAN, NO TEXT ON IMAGE) ===== */
.project-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  cursor:pointer;
  border:none;
}

/* Image area only */
.project-media{
  position:relative;
  aspect-ratio:16/10;
  border-radius:5px;
  overflow:hidden;
}

/* Background image */
.project-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.03);
  transition:transform .35s ease;
}

.project-card:hover .project-bg{
  transform:scale(1.08);
}

/* Remove old overlay (you no longer need it) */
.project-bg::after{
  display:none;
}

/* Meta under image */
.project-meta{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:0 2px;
}

/* Index */
.meta-top{
  display:flex;
  justify-content:flex-start;
}
.meta-index{
  font-size:.85rem;
  font-weight:700;
  opacity:.55;
  color:#ffffff;
}

/* Title */
.meta-title{
  font-size:1.05rem;
  font-weight:750;
  letter-spacing:.2px;
  color:#ffffff;
  line-height:1.25;
}

/* Tags */
.meta-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.meta-tags .tag{
  font-size:.75rem;
  font-weight:650;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#ffffff;
  letter-spacing:.2px;
}

/* ===== LEFT DETAILS (projects) ===== */
.details{
  display:none;
  width:100%;
  margin-top:6px;
  margin-left:50px;
  padding: 25px;
  padding-bottom: 20%;
}
.details.is-open{ display:block; }
.left.is-details-open #intro{ display:none; }

.details-back{
  appearance:none;
  border:1px solid rgba(0,0,0,.14);
  background:rgba(255,255,255,.7);
  border-radius:999px;
  padding:8px 12px;
  font-weight:950;
  cursor:pointer;
}

.details-block{ margin-top:16px; }

.details-label{
  font-size:.78rem;
  letter-spacing:.12em;
  opacity:.55;
  font-weight:950;
  margin-bottom:8px;
}

.details-title{ font-size:1.35rem; letter-spacing:.2px; }
.details-desc{ line-height:1.6; opacity:.92; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  padding:7px 10px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.65);
  border-radius:999px;
  font-weight:850;
  font-size:.9rem;
}

.details-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.14);
  background:rgba(255,255,255,.75);
  text-decoration:none;
  color:inherit;
  font-weight:950;
}
.btn-primary{ background:#111; color:#fff; border-color:#111; }

/* ===== RIGHT PREVIEW (full) ===== */
.preview{
  display:none;
  height:100%;
  border-radius:4px;
  overflow:hidden;
  border:transparent;
  background:rgba(255,255,255,.6);
  box-shadow:0 14px 40px rgba(0,0,0,.12);
  position:relative;
  
}
.preview.is-open{ display:block; }

.preview-top{
  position:absolute;
  top:10px; left:10px; right:10px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  background:transparent;

  border:none
  dis
}

.preview-title{
  font-weight:500;
  opacity:.9;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color: #f6f6f6;
  display: none;
}

.preview-close{
  appearance:none;
  width:38px; height:38px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.8);
  cursor:pointer;
  font-weight:950;
}

#previewImg, #previewFrame{ width:100%; height:100%; display:none; }
#previewImg{ object-fit:cover; }
#previewFrame{ border:0; }

/* ===== RIGHT PANELS (About sections) ===== */
.panel{
  display:none;
  height:100%;
  border-radius:0px;
  overflow:auto;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255, 255, 255, 0.541);
  box-shadow:0 14px 40px rgba(0,0,0,.10);
  position:relative;
  padding:18px;
}
.panel.is-open{ display:block; }

.panel-top{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:4px;
  background:rgba(229, 222, 222, 0.242);
  border:1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom:14px;
}
.panel-title{
   font-weight:950;
    letter-spacing:.2px;
    color: #0000007b;
    margin: auto;
   }
.panel-close{
  appearance:none;
  width:38px; height:38px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255, 255, 255, 0.651);
  cursor:pointer;
  font-weight:950;
}

.stack{ display:flex; flex-direction:column; gap:28px; }

.card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:4px;
  background:rgba(255, 255, 255, 0.658);
  padding:14px;
}

.kicker{
  font-size:.75rem;
  letter-spacing:.14em;
  opacity:.55;
  font-weight:950;
  margin-bottom:10px;
}

.big{
  font-size:1.25rem;
  font-weight:950;
  letter-spacing:.2px;
  margin-bottom:8px;
}

.muted{ opacity:.78; line-height:1.6; }

.list{
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
  opacity:.9;
  line-height:1.5;
}

.row{ display:flex; flex-wrap:wrap; gap:10px; }
.pill{
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255, 255, 255, 0.502);
  border-radius:999px;
  padding:8px 12px;
  font-weight:600;
}

.downloads{ display:flex; flex-direction:column; gap:10px; }
.dlink{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius:4px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255, 255, 255, 0.443);
  text-decoration:none;
  color:inherit;
  font-weight:600;
}
.dlink:hover{ background:rgba(0,0,0,.06); }

/* HOME PLACEHOLDER */
.home-placeholder{
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  opacity:.85;
  gap:14px;
}
.home-placeholder img{
  max-width:100vw;
  height: 100vh;
  max-height:100% ;
  width: 50vw;
  opacity:.4;
}
.home-placeholder h2{
  font-size:3rem;
  font-weight:900;
  letter-spacing:.3px;
  position: fixed;
}

/* projects hidden by default */
#projectsGrid{
  padding: 28px;
   display:none;
  }

/* Floating Social Icons */
.social-float{
  position:fixed;
  left:24px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:14px;
  z-index:999;
}
.social-float a{
  width:65px;
  height:65px;
  border-radius:50%;
  background:rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,0,0,.12);
  transition:transform .25s ease, background .25s ease;
}
.social-float a:hover{
  transform:scale(1.12);
  background:#111;
}
.social-float img{
  width:40px;
  height:40px;
  opacity:.85;
  transition:filter .25s ease;
}
.social-float a:hover img{ filter:invert(0.7); }

/* ===== Responsive ===== */
@media (max-width: 900px){
  .layout{ flex-direction:column; height:auto; }
  .left, .right{ width:100%; height:100%; }
  .right{ padding:0px; height: 100%; }
  .projects{ grid-template-columns:1fr; height:auto; }
  .preview{ height:60vh; }
  .panel{ height:100vh; }

  /* Middle becomes a horizontal mini bar */
  .mid{
    width:100%;
    display:none;
    padding:10px 12px;
    border-left:0;
    border-right:0;
    border-top:1px solid rgba(0,0,0,.06);
    border-bottom:1px solid rgba(0,0,0,.06);
    flex-direction: row;
  }
  .mid.is-open{
    display:flex;
    justify-content:space-between;
    gap:10px;
  }
  .mid-btn{
    margin:0;
    border-radius:999px;
    padding:10px 10px;
    font-size:.95rem;
  }
}

@media (max-width: 768px){
  .social-float{
    left:12px;
    gap:10px; }
  .social-float a{ width:60px; height:60px; }
  .social-float img{ width:40px; height:40px; }
}
.project-card{
  transition:transform .25s ease;
}
.project-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(91, 85, 85, 0.436);
  transition:background .3s ease;
}

/* hover על הכרטיס או על התמונה */
.project-card:hover .project-bg::before{
  background:rgba(91, 85, 85, 0);
}

.project-card:hover{
  transform:translateY(-2px);
}


@media (max-width: 900px){

  /* במובייל לא להזיז את פרטי הפרויקט שמאלה */
  .details{
    margin-left: 0 !important;
    padding: 0 6px; /* קצת אוויר מהצדדים */
  }

  /* לאפשר גלילה כשהתוכן ארוך */
  .left{
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto;
    padding-bottom: 90px; /* מקום כדי שלא "יידבק" לתחתית */
  }

  /* כשנפתח פרויקט – להסתיר את הניווט בתחתית (הוא דורך על הטקסט) */
  .left.is-details-open .left-nav{
    display: none !important;
  }

  /* אופציונלי: אם תרצה שגם במצב רגיל הכפתורים לא יהיו absolute במובייל */
  .left-nav{
    position: static !important;
    transform: none !important;
    margin-top: 18px;
    justify-content: center;
  }
}
@media (max-width: 900px){

  /* שומר שהמסך Home יהיה עם תמונה וטקסט תמיד נראה */
  .home-placeholder{
    position: relative;
  }

  /* התמונה לא "תבלע" את הטקסט */
  .home-placeholder img{
    width: 100vw;
    height: 100%;
    max-width: 100vw;
    opacity: .35;
    display: block;
  }

  /* הטקסט – בלי fixed, תמיד מעל התמונה */
  .home-placeholder h2{
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    text-shadow: 0 10px 30px rgba(0,0,0,.35);
    width: 90%;
  }
}


.panel,
.preview,
.projects {
  animation: fadeUp .25s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 2; transform: translateY(0); }
}




.preview {
  max-height: 690px;
  width: 600px;
  overflow: hidden;
}

#previewFrame {
  width: 100%;
  height: 100%;
  border: 0;
}
