/* ABOUT TERMINAL FINALIZED VERSION WITH BIO, STACKED PHOTOS, FINGERPRINT OVERLAP */

.about-terminal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 6rem 2rem;
  min-height: 100vh;
  background: transparent;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
}

.terminal-container {
  width: 65vw;
  max-width: 960px;
  min-height: 75vh;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  border: 2px solid #00bfa5;
  border-radius: 8px;
  box-shadow: 0 0 60px #00ffcc66, 0 0 15px #00ffcc33 inset;
  overflow: visible;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.terminal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #022e27;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid #00ffcc44;
  font-size: 0.75rem;
  color: #00ffcc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.terminal-main-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: transparent; /* <-- ADD THIS */
}

/* LEFT AND RIGHT PANELS */
.terminal-left-panel, .terminal-right-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem;
  border: 1px solid #00ffcc33;
  background: #0b0f0b;
  overflow: visible;
  flex-grow:  1;
}

.id-code {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ffcc;
  margin-bottom: 1.5rem;
}

.bio-info {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bio-info li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.bio-info strong {
  min-width: 100px;
  text-align: left;
  color: #00ffcc;
}

.bio-background {
  font-size: 0.9rem; /* match size of bio-info */
  font-family: 'Courier New', Courier, monospace;
  color: #00ffcc; /* exact match */
  line-height: 1.5;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #00ffcc33;
  letter-spacing: 0.05em; /* optional: slight spacing for more terminal feel */
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
}
.bio-background strong {
  color: #00ffcc; /* force 'Background:' label to match too */
}

.bio-background p {
  margin: 0;
  color: #ccc;
  font-size: 0.95rem;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.5;
}

/* RIGHT PHOTO STACK */
.photo-stack {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.photo-wrapper {
  width: 100%;
  flex: 1;
  overflow: hidden;
  background: #000;
  border: 2px solid #00bfa5;
  box-shadow: inset 0 0 10px #00ffcc44;
  position: relative;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.3) brightness(0.9);
}

/* FINGERPRINT TRAY */
.fingerprint-tray {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  pointer-events: none;
  z-index: 10;
}

.fingerprint-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 255, 224, 0.08);
  border: 1px solid #00ffcc44;
  box-shadow: inset 0 0 5px #00ffcc33;
}



.blinking-cursor {
  font-weight: bold;
  font-size: 1rem;
  color: #00ffcc;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ACTIVE STAMP - with SOFT WAVE EFFECT */
.active-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.75rem 2.5rem;
  background: rgba(0, 255, 224, 0.25);
  border: 2px solid #00ffcc;
  color: #ff3333;
  font-size: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: 0.1em;
  text-shadow: 0 0 5px #ff4444, 0 0 10px #ff2222;
  box-shadow: 0 0 20px #00ffccaa, inset 0 0 10px #00ffcc55;
  pointer-events: none;
  z-index: 12;
  border-radius: 4px;

  /* WAVE EFFECT */
  background-image: linear-gradient(
    to right,
    rgba(0, 255, 224, 0.1) 0%,
    rgba(0, 255, 224, 0.3) 50%,
    rgba(0, 255, 224, 0.1) 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  animation: pulseActive 4s ease-in-out infinite, sweepWave 7s linear infinite;
}

/* STRONGER PULSE */
@keyframes pulseActive {
  0% {
    box-shadow: 0 0 15px #00ffcc88, inset 0 0 8px #00ffcc44;
    background-color: rgba(0, 255, 224, 0.25);
  }
  50% {
    box-shadow: 0 0 30px #00ffccaa, inset 0 0 15px #00ffcc77;
    background-color: rgba(0, 255, 224, 0.35);
  }
  100% {
    box-shadow: 0 0 15px #00ffcc88, inset 0 0 8px #00ffcc44;
    background-color: rgba(0, 255, 224, 0.25);
  }
}

/* HORIZONTAL WAVE SWEEP */
@keyframes sweepWave {
  0% { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}/* ACTIVE STAMP - with SOFT WAVE EFFECT */
.active-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.75rem 2.5rem;
  background: rgba(0, 255, 224, 0.25);
  border: 2px solid #00ffcc;
  color: #ff3333;
  font-size: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: 0.1em;
  text-shadow: 0 0 5px #ff4444, 0 0 10px #ff2222;
  box-shadow: 0 0 20px #00ffccaa, inset 0 0 10px #00ffcc55;
  pointer-events: none;
  z-index: 12;
  border-radius: 4px;

  /* WAVE EFFECT */
  background-image: linear-gradient(
    to right,
    rgba(0, 255, 224, 0.1) 0%,
    rgba(0, 255, 224, 0.3) 50%,
    rgba(0, 255, 224, 0.1) 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  animation: pulseActive 2s ease-in-out infinite, sweepWave 4s linear infinite;
}

/* STRONGER PULSE */
@keyframes pulseActive {
  0% {
    box-shadow: 0 0 15px #00ffcc88, inset 0 0 8px #00ffcc44;
    background-color: rgba(0, 255, 224, 0.25);
  }
  50% {
    box-shadow: 0 0 30px #00ffccaa, inset 0 0 15px #00ffcc77;
    background-color: rgba(0, 255, 224, 0.35);
  }
  100% {
    box-shadow: 0 0 15px #00ffcc88, inset 0 0 8px #00ffcc44;
    background-color: rgba(0, 255, 224, 0.25);
  }
}

/* HORIZONTAL WAVE SWEEP */
@keyframes sweepWave {
  0% { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}

.photo-divider {
  height: 2px;
  background: #000; /* black background, so divider "vanishes" under active-stamp */
  width: 100%;
  z-index: 5;
}

@media (max-width: 1024px) {
  .terminal-main-grid {
    grid-template-columns: 1fr;
  }

  .terminal-left-panel,
  .terminal-right-panel {
    padding: 1rem;
  }

  .photo-wrapper {
    min-height: 200px;
  }
}

/* ========================= */
/* ABOUT PAGE MOBILE POLISH */
/* ========================= */

@media (max-width: 768px) {

  .terminal-container {
    width: min(90vw, 960px);
    aspect-ratio: auto;
    min-height: 75vh;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 30px #00ffcc44, inset 0 0 20px #00ffcc22;
  }

  .terminal-main-grid {
    display: flex;
    flex-direction: column;
  }

  .terminal-left-panel,
  .terminal-right-panel {
    border: none;
    padding: 1rem 0.5rem;
  }

  .id-code {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .bio-info li {
    font-size: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .bio-background {
    font-size: 0.9rem;
    padding-top: 0.5rem;
  }

  .photo-stack {
    margin-top: 2rem;
  }

  .photo-wrapper {
    min-height: 240px;
    border-radius: 8px;
  }

  .fingerprint-tray {
    top: auto;
    bottom: 5%;
    transform: translateY(0);
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .fingerprint-box {
    width: 40px;
    height: 40px;
  }

}
