#aye-hack-section * {
  box-sizing: border-box;
  font-family: "Fira Code", Consolas, monospace;
}

/* ====== מבנה כללי ====== */
#aye-hack-section {
  width: 100%;
  padding: 110px 0 120px; /* extra top space before first element */
  background: #000;
  position: relative;
  overflow: hidden;
}


/* ========================================================= */
/*                     חלון 1 — HTOP                         */
/* ========================================================= */

.hacktop-window {
  width: 92%;
  max-width: 1500px;
  margin: 0 auto;
  background: #050905;
  border: 1px solid #0f3;
  border-radius: 8px;
  padding: 0% 0px 14px;
    background: #050505;
  border: 1px solid #333;
  box-shadow:
    0 0 40px rgba(0,255,160,0.25),
    inset 0 0 25px rgba(0,255,160,0.08);
  transition: 0.45s ease-out;
  pointer-events: none;

}

.hacktop-output {
  height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* צבעי טקסט בלבד (ללא רקע!) */
.green  { color: #00ff4c !important; }
.red    { color: #ff3b3b !important; }
.yellow { color: #ffeb3b !important; }
.white  { color: #ffffff !important; }
.bold   { font-weight: 700; }
.cyan-icon { color: #6EE7FF; text-shadow: 0 0 8px rgba(110,231,255,0.75); }

.hack-line {
  font-size: 15px;
  line-height: 1.25em;
  white-space: pre;
}

.white-line {
  color: #e5e5e5;
}

/* ========================================================= */
/*               חלון 2 — SECURE CHANNEL CMD                 */
/* ========================================================= */

.cmd-window {
  position: absolute;
  top: 50%;
  left: 18%;
  transform: translateY(-50%) scale(0.85);
  opacity: 0;
  width: 520px;
  background: #050505;
  border: 1px solid #333;
  border-radius: 6px;
  box-shadow:
    0 0 40px rgba(0,255,160,0.25),
    inset 0 0 25px rgba(0,255,160,0.08);
  transition: 0.45s ease-out;
  pointer-events: none;
}

.cmd-window.visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.cmd-header {
  background: #111;
  padding: 6px 12px;
  color: #e5e5e5;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #333;
}

.cmd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cmd-dot.red { background: #ff4d4d; }
.cmd-dot.yellow { background: #ffd54a; }
.cmd-dot.green { background: #00e676; }

.cmd-body {
  padding: 14px 16px 20px;
  color: #00ff66;
  font-size: 17px;
}

.cmd-output {
  height: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cmd-line {
  white-space: pre;
  line-height: 1.3em;
}

.yellow-type {
  color: #ffeb3b !important;
}

/* prompt */
.cmd-prompt {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-weight: 700;
}

.cmd-cursor {
  width: 11px;
  height: 20px;
  background: #00ff66;
  margin-left: 4px;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%,50% { opacity: 1; }
  50.1%,100% { opacity: 0; }
}


/* ========================================================= */
/*                  חלון 3 — FORM INPUT                      */
/* ========================================================= */

.form-window {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%) scale(0.85);
  opacity: 0;
  width: 420px;
  background: #080808;
  border: 1px solid #333;
  border-radius: 6px;
  box-shadow:
    0 0 25px rgba(0,255,120,0.15),
    inset 0 0 20px rgba(0,255,120,0.07);
  padding-bottom: 20px;
  transition: 0.45s ease-out;
}

.form-window.visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Mobile/Tablet: stack windows centered */
@media (max-width: 900px) {
  #aye-hack-section {
    padding: 40px 12px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .cmd-window,
  .form-window {
    position: static;
    transform: none;
    width: 100%;
    max-width: 360px;
    margin: 16px auto 0;
    box-sizing: border-box;
  }
  .form-window {
    margin-top: 16px;
  }
  .hacktop-window {
    width: 94vw;
    max-width: 340px;
    margin: 0 auto;
  }

  .cmd-body,
  .form-body {
    max-width: 100%;
  }

  .cmd-header,
  .form-header {
    justify-content: flex-start;
  }
}

.form-header {
  background: #111;
  padding: 6px 12px;
  color: #e5e5e5;
  border-bottom: 1px solid #333;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-body {
  padding: 14px 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.label {
  color: #ffffff;
  font-size: 13px;
  margin: 10px 0 6px;
}

.input-box {
  font-size: 14px;
  color: #6EE7FF;
}

.ascii-top,
.ascii-bottom {
  font-weight: 700;
}

.form-input {
  width: 100%;
  background: #000;
  border: none;
  color: #ffffff;
  font-size: 14px;
  padding: 6px;
  font-family: inherit;
  outline: none;
}

.form-input::placeholder {
  color: #777;
}

.form-send {
  width: 100%;
  margin: 16px 0 0;
  padding: 10px;
  background: #6EE7FF;
  color: #000;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 15px;
}

.form-send:hover {
  background: #4bc9e8;
}

.success-msg {
  margin-top: 12px;
  color: #6EE7FF;
  font-weight: 700;
  font-size: 14px;
  display: none;
}

/* Full-screen overlay message after send */
.cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

.cmd-overlay-window {
  width: min(520px, 90vw);
  background: #050505;
  border: 1px solid #333;
  border-radius: 6px;
  box-shadow:
    0 0 24px rgba(0,255,160,0.25),
    inset 0 0 18px rgba(0,255,160,0.08);
  color: #00ff66;
  font-family: "Fira Code", Consolas, monospace;
  overflow: hidden;
}

.cmd-overlay-header {
  background: #111;
  padding: 8px 12px;
  font-size: 14px;
  border-bottom: 1px solid #333;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cmd-overlay-body {
  padding: 18px 16px 20px;
}

.cmd-overlay-text {
  font-size: 20px;
  letter-spacing: 0.8px;
  white-space: pre;
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.35);
}



/* ========================================================= */
/*               📱 MOBILE & TABLETS RESPONSIVE FIXES       */
/* ========================================================= */

/* טלפונים קטנים מאוד */
@media (max-width: 480px) {

  #aye-hack-section {
    padding: 60px 0 80px;
    align-items: center;
  }

  /* חלון 1 – HTOP */
  .hacktop-window {
    position: relative;
    width: 92vw;
    max-width: 320px;
    margin: 0 auto;
    transform: scale(0.9);
  }

  .hack-top-output,
  .hacktop-output {
    height: 280px !important;
  }

  /* חלון 2 – CMD */
  .cmd-window {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) scale(0.9) !important;
    width: 86vw;
    max-width: 300px;
    margin: 0 auto;
    z-index: 2;
  }

  .cmd-output {
    height: 210px !important;
  }

  .cmd-body,
  .cmd-line,
  .cmd-prompt {
    font-size: 14px;
  }

  /* חלון 3 – FORM */
  .form-window {
    position: relative;
    top: auto;
    right: auto;
    transform: none !important;
    width: 92vw;
    max-width: 320px;
    margin: 0 auto 0;
  }

  .form-body {
    padding: 12px 14px;
  }

  .form-input {
    font-size: 12.5px;
  }

  .form-send {
    font-size: 13.5px;
  }

  /* overlay after send */
  .cmd-overlay-text {
    font-size: 16px !important;
  }
}

/* טלפונים גדולים + טאבלטים קטנים */
@media (max-width: 768px) {

  #aye-hack-section {
    padding: 80px 0 0px;
  }

  .hacktop-output {
    height: 340px;
  }

  .cmd-window {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%) scale(0.92) !important;
    width: 86vw;
    max-width: 340px;
    margin: 0 auto;
    z-index: 2;
  }

  .hacktop-window {
    position: relative;
    width: 92vw;
    max-width: 360px;
    transform: scale(0.93);
  }

  .form-window {
    position: relative;
    top: auto;
    right: auto;
    transform: none !important;
    width: 92vw;
    max-width: 360px;
    margin: 20px auto 0;
  }

  .cmd-output {
    height: 210px;
  }

  .cmd-body,
  .cmd-line,
  .cmd-prompt {
    font-size: 14px;
  }
}

/* טאבלט רוחב מלא */
@media (max-width: 1024px) {

  .cmd-window {
    transform: translateX(-50%) scale(0.95);
  }

  .form-window {
    transform: translateX(-50%) scale(0.95);
  }
}

