* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #1a1a1a;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#canvas-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

.content {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 0;
  color: #ccc;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 520px;
}

#typewriter-text { display: inline; }

#cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #ccc;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-start infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

body { 
  margin: 0; padding: 0;
  min-height:100vh;
  font-family:consolas;
}
h2 {
  margin: 0; padding: 0;
  position:absolute;
  top: 20%; left: 50%;
  transform:translate(-50%,-50%);
  font-size: 6em; color:transparent;
  text-transform:uppercase;
}
h2 span:nth-child(1){
  position:absolute;
  top:0; left:0; color: #ffffff;
  transition:0.5s;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  overflow:hidden;
}
h2:hover span:nth-child(1){
  transform:translateY(-18px); 
}
h2 span:nth-child(2){
  position:absolute;
  top:0; left:0; color: #ffffff;
  transition:0.5s;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  overflow:hidden;
}
h2:hover span:nth-child(2){
  transform:translateY(18px); 
}
h2 span:nth-child(3){
  position:absolute;
  top:50%; left: 0;
  transform:translateY(-50%) scaleY(0);
  width: 91%; color: #000;
  background:rgb(24, 153, 78);
  font-size: 0.25em; font-weight: 500;
  letter-spacing:0.7em;
  text-align:center;
  padding-left: 20px; margin-left: 5px;
  transition:0.5s;
}
h2:hover span:nth-child(3){
  transform:translateY(-50%) scaleY(1);
}

.outlined-heading {
  color: white;
  -webkit-text-stroke: 3px black; /* width + color */
  text-stroke: 3px black;
  paint-order: stroke fill;       /* stroke renders behind fill */
}

/* Outer container — centers the block on screen */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Inner block — text is left-aligned inside it */
.text-block {
  display: inline-block; /* shrink-wraps to the longest line */
  text-align: left;
}

.text-block h1 {
  color: white;
  -webkit-text-stroke: 3px rgb(45, 45, 45);
  text-stroke: 3px rgb(45, 45, 45);
  paint-order: stroke fill;
}