:root {
  --bg: #000;
  --green: #39ff14;
  --glow: rgba(0, 255, 0, 0.4);
}


* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Fira Code', monospace;
  background-color: var(--bg);
  color: var(--green);
  overflow: hidden;
  height: 100vh;
  position: relative;
}


#particles { 
  position: absolute; 
  width: 100%; 
  height: 100%; 
  z-index: 0; 
  background-color: var(--bg);
}


.background-icons {
  position: absolute; 
  width: 100%; 
  height: 100%;
  pointer-events: none; 
  overflow: hidden; 
  z-index: 1;
}

.background-icons .icon {
  position: absolute; 
  font-size: 60px;
  color: rgba(57, 255, 20, 0.05); /* fixed rgba */
  animation: float 20s ease-in-out infinite, fade 6s ease-in-out infinite alternate;
  text-shadow: 0 0 4px rgba(0,255,0,0.2);
}

.background-icons .linux { top: 10%; left: 15%; animation-duration: 18s; }
.background-icons .powershell { top: 35%; right: 10%; animation-duration: 12s; }
.background-icons .bitcoin { top: 60%; left: 5%; animation-duration: 15s; }
.background-icons .linux.small { bottom: 25%; right: 20%; font-size: 40px; animation-duration: 22s; }
.background-icons .bitcoin.large { top: 50%; left: 50%; font-size: 80px; animation-duration: 25s; opacity: 0.03; }

@keyframes float { 
  0%,100%{transform:translate(0,0) rotate(0deg);} 
  25%{transform:translate(25px,-25px) rotate(5deg);} 
  50%{transform:translate(-20px,20px) rotate(-5deg);} 
  75%{transform:translate(20px,15px) rotate(3deg);} 
}

@keyframes fade { 
  0%{opacity:0.05;}50%{opacity:0.12;}100%{opacity:0.05;} 
}

.terminal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  max-width: 95%;
  min-width: 650px;
  height: 380px;
  background-color: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--green);
  box-shadow: 0 0 30px var(--glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  backdrop-filter: blur(2px);
}


.terminal-header {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #101818;
  border-bottom: 2px solid rgba(0,255,0,0.3);
  box-shadow: 0 1px 5px rgba(0,255,0,0.1);
}

.terminal-header .dots { display: flex; gap: 6px; }
.terminal-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background-color: #ff5f57; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #28c840; }

.terminal-header .title {
  flex: 1;
  text-align: center;
  color: var(--green);
  font-size: 0.95em;
  text-shadow: 0 0 4px var(--glow);
}

.output {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  color: var(--green);
  font-size: 1em;
  background-color: var(--bg);
  text-shadow: 0 0 5px var(--glow);
}


.input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
}

.prompt {
  color: #25f700;
  user-select: none;
  text-shadow: 0 0 4px var(--glow);
}

.input-line input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--green);
  font-family: 'Fira Code', monospace;
  font-size: 1em;
  outline: none;
}

.cursor {
  display: inline-block;
  animation: blink 1s step-start infinite;
  color: var(--green);
}

@keyframes blink {
  0%,50%{opacity:1;}51%,100%{opacity:0;}
}


@media screen and (max-width: 700px) {
  .terminal { width: 95%; height: 60%; }
  .input-line input { font-size: 0.9em; }
  .output { font-size: 0.9em; }
}




.terminal {
  transform-style: preserve-3d;
  transition: transform 160ms cubic-bezier(.2,.9,.2,1), box-shadow 160ms ease;
  will-change: transform;
  position: absolute; 
  
  --glow-x: 50%;
  --glow-y: 10%;
  overflow: visible;
}


.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  mix-blend-mode: screen;
  transform: translateZ(40px);
  transition: background-position 120ms linear, opacity 200ms linear;
  opacity: 0.95;
  border-radius: inherit;
}


.terminal.dragging {
  filter: saturate(1.05) drop-shadow(0 18px 48px rgba(0,255,0,0.02));
  cursor: grabbing;
}

.corner-message {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 9999;
  font-size: 18px;
  color: #39ff14;
  padding: 6px 14px;
  border: 1px solid #39ff14;
  border-radius: 6px;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.8), 0 0 12px rgba(57, 255, 20, 0.4);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.6), 0 0 24px rgba(57, 255, 20, 0.3);
  backdrop-filter: blur(3px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.corner-message:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.9), 0 0 32px rgba(57, 255, 20, 0.5);
  text-shadow: 0 0 16px rgba(57, 255, 20, 1), 0 0 32px rgba(57, 255, 20, 0.6);
}

.corner-message a {
  color: #39ff14;
  text-decoration: none;
  text-shadow: inherit;
}

.corner-message a:hover {
  text-shadow: 0 0 16px rgba(57, 255, 20, 1), 0 0 32px rgba(57, 255, 20, 0.6);
}


.top-left-message {
  position: absolute;
  top: 80px;
  left: 70px;
  color: var(--green);
  font-size: 1.2em;
  font-family: 'Fira Code', monospace;
  z-index: 50;
  text-shadow:
    0 0 8px rgba(0,255,0,0.8),
    0 0 12px rgba(0,255,0,0.6),
    0 0 18px rgba(0,255,0,0.4);
  animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
  0%   { text-shadow: 0 0 6px rgba(0,255,0,0.5); }
  50%  { text-shadow: 0 0 18px rgba(0,255,0,1); }
  100% { text-shadow: 0 0 6px rgba(0,255,0,0.5); }
}




