/* ===== בסיס כללי ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* מאפשר גלילה חלקה */
    scroll-behavior: smooth;
    /* הגדרת גובה מלא כדי שכל מקטע יהיה בגודל מסך מלא */
    height: 100%;
    /* מונע גלילה אופקית מיותרת */
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    /* הגדרת גובה מלא כדי שכל מקטע יהיה בגודל מסך מלא */
    height: 100%;
    direction: rtl;
    font-family: "Assistant", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* ה-Body לא גולל, אלא ה-main */
    overflow: hidden; 
}

/* הקנבס של כל הדף – אנחנו עושים לו scale לפי גודל המסך */

.artboard {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    transform-origin: top center;
}

/* רקע מונפש – פלטת הכחולים */

body {
    color: #f5f7fb;
    background: linear-gradient(
        135deg,
        #0466c8,
        #0353a4,
        #023e7d,
        #002855,
        #001845,
        #001233,
        #33415c,
        #5c677d,
        #7d8597,
        #979dac
    );
    background-size: 400% 400%;
    animation: bgShift 30s ease-in-out infinite;
}

/* גל עדין בצבע */

@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 🟢 השינוי המהותי: ה-main הוא מיכל הגלילה המצמיד */
main {
    padding-bottom: 0; /* ביטול רווח מיותר בתחתית */
    height: 100vh; /* גובה של מסך מלא */
    overflow-y: scroll; /* מאפשר גלילה אנכית */
    scroll-snap-type: y mandatory; /* מפעיל הצמדה אנכית מחייבת */
    -webkit-overflow-scrolling: touch; /* שיפור חוויית הגלילה במובייל */

    /* 1. הסתרת סרגל הגלילה (Webkit - Chrome, Safari) */
    &::-webkit-scrollbar {
        display: none;
        width: 0; 
    }
    /* 1. הסתרת סרגל הגלילה (IE and Edge) */
    -ms-overflow-style: none;  
}


/* ===== לוגו ===== */

.site-header {
    text-align: center;
    /* צמצום הפדינג כדי שלא ייווצר חלל ריק גדול מדי מעל הלוגו בתוך ה-section */
    padding: 0px 0 20px; 
    width: 100%;
}

.site-logo {
    max-width: 420px;
    width: 80%;
    height: auto;
    display: inline-block;
}

/* ===== ניווט עליון לעמודים הפנימיים (בעמודים אחרים) ===== */

.top-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 22px;
}

/* ===== אזור המסכים (דף הבית) ===== */

.hero-section {
    display: flex;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 26px;
}

.monitors-wrap {
    position: relative;
    width: min(1150px, 96vw);
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 24px;
}

/* בסיס למסך */

.monitor {
    position: relative;
    text-align: center;
    cursor: pointer;
}

/* התמונה עצמה – רק עליה נעשה היילייט */

.monitor img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: filter 0.25s ease;
}

/* אור בתוך חלק המסך בלבד */

.monitor::before {
    content: "";
    position: absolute;
    top: 13%;
    left: 7%;
    right: 7%;
    bottom: 38%;
    border-radius: 14px;
    background: radial-gradient(
        circle at 50% 35%,
        rgba(255, 255, 255, 0.22),
        rgba(0, 200, 255, 0.20),
        transparent 60%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* כיסוי שחור למסכים הצדדיים – מסתיר את הלוגו של המסך */

.monitor-left::after,
.monitor-right::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 44%;
    width: 18%;
    height: 1%;
    border-radius: 6px;
    background: #000;
    pointer-events: none;
}

/* כיסוי שחור למסך המרכזי */

.monitor-center::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 36%;
    width: 20%;
    height: 2%;
    border-radius: 6px;
    background: #000;
    pointer-events: none;
}

/* כשהעכבר מעל המסך – קצת אור והבהרה */

.monitor:hover img {
    filter: brightness(1.12) contrast(1.03);
}

.monitor:hover::before {
    opacity: 1;
}

/* מסך מרכזי – יותר גדול ויותר נמוך (הערכים שלך) */

.monitor-center {
    transform: translateY(80px) scale(1.60);
    z-index: 3;
}

/* מסכים צדדיים – גדולים יותר ומתרחקים מהמרכז */

.monitor-left,
.monitor-right {
    transform: translateY(-5px) scale(1.12);
}

.monitor-left {
    margin-left: 130px;
}

.monitor-right {
    margin-right: 130px;
}

/* כפתור שם מתחת למסכים הצדדיים */

.monitor-label {
    margin-top: 10px;
    padding: 6px 20px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #f5f7fb;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ===== קווי החיבור ===== */

.pipe {
    position: absolute;
    background: linear-gradient(
        90deg,
        rgba(0, 255, 255, 0.1),
        rgba(0, 255, 255, 0.9),
        rgba(0, 255, 255, 0.1)
    );
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.8);
}

/* אופקי שמאל */

.pipe-left-horizontal {
    height: 6px;
    width: 32%;
    top: 80%;
    right: 62.5%;
    border-radius: 3px;
}

/* אנכי שמאל */

.pipe-left-vertical {
    width: 6px;
    height: 80px;
    top: 55.5%;
    right: 94%;
    border-radius: 3px;
}

/* אופקי ימין */

.pipe-right-horizontal {
    height: 6px;
    width: 32%;
    top: 80%;
    left: 62.5%;
    border-radius: 3px;
}

/* אנכי ימין */

.pipe-right-vertical {
    width: 6px;
    height: 80px;
    top: 55.5%;
    left: 94%;
    border-radius: 3px;
}

/* חץ קטן בקצה העליון של הצינורות */

.pipe-left-vertical::before,
.pipe-right-vertical::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid rgba(0, 255, 255, 0.9);
}

/* אנימציית זרימה בצינורות */

.pipe {
    background-size: 200% 100%;
    animation: pipeFlowX 2.6s linear infinite;
}

@keyframes pipeFlowX {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* אנימציה אנכית */

.pipe-left-vertical,
.pipe-right-vertical {
    background: linear-gradient(
        180deg,
        rgba(0, 255, 255, 0.1),
        rgba(0, 255, 255, 0.9),
        rgba(0, 255, 255, 0.1)
    );
    background-size: 100% 200%;
    animation: pipeFlowY 2.6s linear infinite;
}

@keyframes pipeFlowY {
    0%   { background-position: 50% 0%; }
    100% { background-position: 50% 200%; }
}




/* ===== תוכן עמודים פנימיים ===== */

.page-content {
    max-width: 900px;
    padding: 0 24px;
    line-height: 1.8;
    font-size: 1rem;
}

.page-content h1 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.page-content h2 {
    font-size: 1.2rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.page-content p {
    margin-bottom: 12px;
}

.page-content ul {
    margin-bottom: 12px;
    padding-right: 20px;
}

/* טופס יצירת קשר */

.contact-form {
  max-width: 1500px;
  margin: 24px auto 24px 80px;
}




.contact-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

/* 2. הגדלת שדות הקלט בטופס (input ו-textarea) */
.contact-form input,
.contact-form textarea {
    width: 90%;
    padding: 16px 50px; /* הגדלת ה-Padding */
    border-radius: 6px;
    border: 1px solid #ccd1dd;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 1rem; /* הגדלת הפונט */
}

/* 2. הגדלת אזור הטקסט (Textarea) ל"ספר/י לי קצת" */
.contact-form textarea {
    min-height: 200px; /* הגדלה מ-120px ל-200px */
    resize: vertical;
}

.contact-form button {
    padding: 8px 50px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #ff9800, #ffb74d);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.contact-submit {
  margin-top: 24px;
}




/* ===== פוטר – זכויות יוצרים ===== */

.site-footer {
    position: fixed;
    bottom: 8px;
    right: 16px;
    font-size: 0.75rem;
    color: #dbe5ff;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1000;
}

/* ===== רספונסיביות בסיסית ===== */

@media (max-width: 900px) {
    .monitors-wrap {
        flex-direction: column;
        align-items: center;
    }

    .monitor-center {
        order: 0;
        transform: translateY(20px) scale(1.15);
    }

    .monitor-left,
    .monitor-right {
        order: 1;
        margin: 0;
        margin-top: 24px;
        transform: translateY(0) scale(1.0);
    }

    .pipe {
        display: none;
    }

    .keyboard-shell {
        width: 92vw;
    }

    .page-content {
        margin-top: 16px;
    }
}

/* ===== כפתורי PLAY וטקסט "בקרוב" על המסכים ===== */

.monitor-screen-overlay {
    position: absolute;
    top: 13%;
    left: 7%;
    right: 7%;
    bottom: 38%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;      /* כפתור PLAY מקבל את הקליק */
    z-index: 2;
}

.monitor-play-btn {
    pointer-events: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.monitor-play-btn:hover {
    transform: translateY(-1px) scale(1.04);
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.65);
}

.coming-soon-badge {
    margin-top: 10px;
    padding: 4px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.78);
    color: #ffeb3b;
    font-size: 0.9rem;
    pointer-events: none;
}

/* ===== מודאל וידאו מרכזי ===== */

.video-modal {
    position: fixed;
    inset: 0;
    display: none;              /* יופיע רק כשהמחלקה open קיימת */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
}

.video-modal.open {
    display: flex;
}

.video-modal-dialog {
    position: relative;
    width: min(900px, 80vw);
    background: #000;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.8);
}

.video-modal video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.video-modal-close {
    position: absolute;
    top: 8px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


body { overflow-x: hidden; }

/* ניווט צף */
.floating-nav{
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  z-index: 3000;
}

.floating-nav .nav-link{
  color: #f5f7fb;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.floating-nav .nav-link:hover{
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.floating-nav .nav-cta{
  background: rgba(255,152,0,0.9);
  color: #001233;
  font-weight: 700;
}

.floating-nav .nav-cta:hover{
  background: rgba(255,183,77,0.95);
}

/* Hero copy */
.hero-copy{
  width: min(980px, 92vw);
  margin: 10px auto 24px;
  text-align: center;
}

.hero-title{
  margin: 0 0 10px;
  font-size: 2.1rem;
  line-height: 1.25;
}

.hero-subtitle{
  margin: 0 auto 16px;
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.95;
  width: min(720px, 92vw);
}

.hero-points{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px auto 12px;
  width: min(820px, 92vw);
  text-align: right;
}

.hero-points .point{
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.hero-human{
  margin: 14px auto 10px;
  width: min(760px, 92vw);
  opacity: 0.95;
}

.hero-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.hero-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.14);
  color: #f5f7fb;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}

.hero-link:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,0.38);
}

.hero-link-strong{
  background: linear-gradient(90deg, #ff9800, #ffb74d);
  color: #001233;
  border: none;
}

.hero-link-strong:hover{
  filter: brightness(1.05);
}

/* 3. הסרת הרקע והמסגרת מהמקטעים הפנימיים */
.content-section{
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 70px 18px; /* Top/Bottom for snap, Left/Right for content spacing */
  /* הסרת סגנונות ה"קופסה" */
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.section-title{
  margin: 0 0 12px;
  font-size: 1.6rem;
}

/* לא לשבור את ה-page-content הקיים */
.content-section .page-content{
  margin: 0;
  padding: 0;
  max-width: none;
}

/* Footer צף */
.floating-footer{
  position: fixed;
  bottom: 10px;
  right: 14px;
  z-index: 2500;
}

@media (max-width: 900px){
  .site-header-hero{ padding-top: 78px; }
  .floating-nav{
    width: calc(100% - 18px);
    overflow-x: auto;
    justify-content: flex-start;
  }
  .hero-title{ font-size: 1.6rem; }
  .hero-subtitle{ font-size: 1.02rem; }
  .content-section{ 
    /* עדכון ריווח לרוחב במסכים קטנים */
    padding-left: 14px;
    padding-right: 14px;
  }
}

.artboard,
.site-wrapper {
  background: transparent;
}

/* 🟢 הגדרת כל מקטע כדף מלא וממורכז */
section {
    margin: 0 auto;
    position: relative;
    min-height: 100vh; /* גובה מינימלי של מסך מלא */
    width: 100%;
    
    /* ממקם את התוכן במרכז המסך (אנכית ו/או אופקית) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* הגדרת נקודת הצמדה - למעלה של המקטע */
    scroll-snap-align: start; 
}


/* ===== Layout cleanup: only HERO is full-screen ===== */

/* Header spacing so nav doesn't overlap */
.site-header-hero{
  padding-top: 0; 
}

/* HERO = full viewport, centered */
.hero-only{
  /* צמצום הריווח העליון כי ה-section כבר מטפל במרכוז */
  padding-top: 40px; 
  padding-bottom: 60px;
}

/* Section spacing (regular scroll) */
.monitors-section{
  margin-top: 0; 
  margin-bottom: 0; 
}

/* ===== FACEBOOK EMBED – CONTROL PANEL ===== */

.facebook-embed-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.facebook-embed-wrapper .fb-page, 
.facebook-embed-wrapper .fb-page span, 
.facebook-embed-wrapper .fb-page iframe {
  width: 500px !important; 
  height: 600px !important; 
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  background: #fff;
}

/* התאמה למובייל */
@media (max-width: 900px) {
  .facebook-embed-wrapper .fb-page {
    width: 100% !important;
  }
}

/* ===== הגדרות טקסט צף ברקע (Fixed) ===== */

.floating-code {
    position: fixed !important; /* גורם לטקסט להישאר במקום בזמן שהאתר גולל */
    top: 0;
    width: 300px;
    height: 100vh;
    z-index: -1; /* מוודא שזה תמיד מאחורי הכל */
    pointer-events: none; /* שלא יפריע ללחוץ על כלום */
    opacity: 0.12; /* שקיפות עדינה */
    overflow: hidden;
}

.side-left { left: 20px; }
.side-right { right: 20px; direction: ltr; }

.code-content {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #00ffff;
    line-height: 2;
    white-space: pre;
    padding-top: 50px;
    /* אפקט ציפה עדין */
    animation: floatingEffect 20s infinite alternate ease-in-out;
}

.side-left .code-content { margin-left: -50px; }
.side-right .code-content { margin-right: -50px; text-align: left; }

@keyframes floatingEffect {
    from { transform: translateY(0); }
    to { transform: translateY(-50px); }
}

/* ===== תיקון מרכוז האתר והצור קשר ===== */

.artboard {
    position: relative;
    max-width: 1100px; /* רוחב נוח לאתר */
    margin: 0 auto !important; /* מרכוז מושלם של כל האתר */
    z-index: 10;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center; /* מרכוז כל האלמנטים בפנים */
}

/* מוודא שהטופס וכל תוכן אחר בתוך ה-artboard יהיו במרכז */
#contact-section, 
form, 
.contact-container {
    width: 80%;
    max-width: 700px; /* רוחב הטופס */
    margin-left: 45px !important;
    margin-right: auto !important;
    display: block;
}

/* --- גרסה סופית: גלילת עמודים ממגנטת ללא חיתוך טקסט --- */
@media (max-width: 768px) {
    
    html {
        /* מאפשר גלילה מגנטית ב-ספארי */
        scroll-snap-type: y mandatory;
        height: 100%;
        overflow-x: hidden;
    /* הופך את הגלילה ליותר פשוטה עבור המנוע של אפל */
    html, body {
        overflow: auto !important; /* משחרר את הנעילה הכללית */
        position: relative !important;
        height: auto !important;
    }

    body {
        /* שחרור הנעילה: משנים מ-hidden ל-auto */
        overflow-y: auto !important; 
        overflow-x: hidden !important;
        height: 100%;
        position: relative;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin: 0;
    main {
        height: auto !important;
        overflow: visible !important;
        scroll-snap-type: none !important; /* מבטל את המגנט אם הוא זה שנועל את המסך */
    }

    main {
        scroll-snap-type: y mandatory;
        height: 100%;
        overflow-y: visible; /* מאפשר ל-body לנהל את הגלילה */
    section {
        height: auto !important; /* משחרר את הגובה הקשיח */
        min-height: 100vh !important;
        scroll-snap-align: none !important;
    }
}

    section {
        /* כל סקשן הוא עמוד מלא */
        height: 100vh;
        height: -webkit-fill-available;
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        scroll-snap-stop: always; /* מכריח עצירה בכל עמוד */
        display: flex;
        flex-direction: column;
        justify-content: center;
        justify-content: center; /* ממרכז תוכן כדי שלא ייחתך */
        align-items: center;
        padding: 60px 20px;
        box-sizing: border-box;
        position: relative;
    }

    /* תיקון הנדנוד של הכפתורים הצפים */
    .floating-nav {
        top: 10px !important;
        /* במקום 50% ו-transform, נשתמש בשיטה בטוחה יותר לספארי */
        left: 2.5% !important; 
        width: 95% !important;
        transform: none !important; 
        
        padding: 8px 4px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        background: rgba(10, 25, 47, 0.95) !important;
        border: 1px solid rgba(100, 255, 218, 0.3) !important;
        border-radius: 12px !important;
        z-index: 9999 !important;
    }

    /* שאר הקוד של המסכים והטקסט ללא שינוי כדי לא להרוס */
    .hero-title, h1, h2, p {
        white-space: normal !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
    /* תיקון ספציפי למסכים - שהם לא יחתכו את העמוד */
    .monitors-section {
        /* אם יש הרבה מסכים, נאפשר גלילה פנימית או פריסה קומפקטית */
        justify-content: flex-start; 
        overflow-y: auto; 
    }

    .monitors-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        width: 100% !important;
        align-items: center !important;
    }

    .monitor {
        width: 85% !important;
        max-width: 290px !important;
        /* הקטנה קלה כדי לוודא שכל מסך נכנס בפריים אחד */
        width: 80% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        transform: scale(1) !important;
    }

    /* כפתורים צפים - נשארים בדיוק כפי שאהבת */
    .floating-nav {
        top: 15px !important;
        width: 92% !important;
        left: 4% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
        background: rgba(10, 25, 47, 0.9) !important;
        z-index: 10000 !important;
    }

    .nav-link {
        font-size: 0.7rem !important;
        padding: 5px 7px !important;
        white-space: nowrap !important;
    }

    /* הסתרת אלמנטים שגורמים לתזוזה לצדדים */
    .pipe, .floating-code, .tech-lines {
        display: none !important;
    }

    /* טקסטים - שומרים על ההישג של אי-חיתוך */
    .hero-title, h2 {
        font-size: 1.4rem !important;
        white-space: normal !important;
        text-align: center !important;
    }
}
