:root {
  --bg: #070a0a;
  --green: #9aff9a;
  --green-dim: #6bdc6b;
  --grid: rgba(154, 255, 154, 0.06);
  --line: rgba(154,255,154,0.18);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg);
  color: var(--green);
  overflow: hidden; /* desktop only */
}

/* === DESKTOP === */
.screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.4s ease;
}
.screen[hidden] { display: none !important; opacity: 0; }
.fade-out { opacity: 0; pointer-events: none; }

.crt {
  position: relative;
  width: min(1100px, 92vw);
  height: min(740px, 92vh);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(transparent 31px, var(--grid) 32px),
    linear-gradient(90deg, transparent 31px, var(--grid) 32px);
  background-size: 32px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6),
              0 0 50px rgba(20,255,120,0.08) inset;
  overflow: hidden;
}
.screen--dashboard .crt { overflow-y: auto; }

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.15) 2px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.intro-full {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 10, 0, 0.45);
  color: var(--green);
  cursor: pointer;
  padding: 2rem;
}

.intro-full h1 {
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 0 6px rgba(154,255,154,0.4);
}
.intro-full .muted {
  color: var(--green-dim);
  margin-top: 1rem;
}

.boot-text { color: var(--green); padding: 24px; white-space: pre-wrap; }

.terminal-bar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
}
.terminal-bar.foot { border-top: 1px solid var(--line); border-bottom: 0; }

.workbench {
  position: relative;
  padding: 22px;
  display: grid;
  gap: 30px;
}

.table-glow {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  height: 34%;
  background: radial-gradient(
    ellipse at center,
    rgba(100,255,160,0.16),
    rgba(0,0,0,0) 60%
  );
  filter: blur(8px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 28px;
  transform: perspective(900px) rotateX(8deg) translateY(-12px);
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.65);
}
.card-window { padding: 12px; display: grid; gap: 10px; }
.card-title { font-weight: 700; text-shadow: 0 0 8px rgba(154,255,154,0.3); }
.card-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: rgba(0, 20, 0, 0.4);
  padding: 4px;
}

.btn {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--green);
  text-decoration: none;
  background: rgba(0,0,0,0.35);
}
.btn:hover { background: rgba(0,0,0,0.55); }

.pulse { animation: pulseGlow 2s infinite ease-in-out; }
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 4px rgba(154,255,154,0.3); }
  50% { box-shadow: 0 0 10px rgba(154,255,154,0.6); }
}

.cmd-card .cmd-output {
  font-family: inherit;
  color: var(--green-dim);
  height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  background: rgba(0, 5, 0, 0.4);
  padding: 10px;
}

/* === MOBILE (FULL-FIT FIXED HEIGHT + SCROLL) === */
@media (max-width: 768px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .screen {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    padding: 0;
  }

  /* make intro & boot fill screen neatly */
  .screen--splash, .screen--boot {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .crt {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }

  .scanlines, .table-glow {
    display: none !important;
  }

  .workbench {
    position: static;
    padding: 1rem;
    display: grid;
    gap: 1rem;
  }

  .cards {
    transform: none;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  }

  .intro-full {
    position: static;
    padding: 2rem 1rem;
    background: transparent;
  }

  .terminal-bar {
    margin: 0;
    border-radius: 0;
  }

  .cmd-card .cmd-output {
    height: 220px;
  }
}

.contact-card form,
.contact-card form input,
.contact-card form select,
.contact-card form button {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}