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

body {
  background: #000;
  font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

#matrix {
  display: block;
}

.sphere-mask {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #0f0;
  box-shadow: 0 0 30px #0f0, inset 0 0 30px rgba(0, 255, 0, 0.1);
}

.sphere-mask-link {
  text-decoration: none;
}

.text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.active-text {
  font-size: 40px;
  font-weight: bold;
  color: #f00;
  text-shadow: 0 0 10px #f00, 0 0 20px #f00, 0 0 30px #f00;
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #f00, 0 0 20px #f00, 0 0 30px #f00;
  }
  to {
    text-shadow: 0 0 20px #f00, 0 0 30px #f00, 0 0 40px #f00;
  }
}

.welcome-text {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  color: #0f0;
  font-size: 48px;
  font-weight: bold;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
  white-space: nowrap;
}



.typing-text {
  color: #0f0;
  font-size: 20px;
  text-shadow: 0 0 5px #0f0;
  white-space: nowrap;
  position: absolute;
  /* لنگر در سمت چپ دایره (دایره در right:8% و عرض 300px) */
  right: calc(8% + 330px);
  text-align: right;
  direction: rtl;
  z-index: 10;
}

/* همه‌ی نوشته‌ها سمت چپ دایره، به‌صورت ستونی مرتب */
.left-text-1  { top: 30%; }
.right-text-1 { top: 38%; }
.left-text-2  { top: 46%; }
.right-text-2 { top: 54%; }
.left-text-3  { top: 62%; }
.right-text-3 { top: 70%; }

.title {
  font-size: 28px;
  font-weight: bold;
  display: flex;
  gap: 10px;
  direction: rtl;
  justify-content: center;
  margin-top: 0;
  width: 300px;
  position: absolute;
  top: calc(50% - 200px);
  right: 8%;
  font-family: 'Vazirmatn', 'IRANSans', 'Sahel', Tahoma, 'Segoe UI', Arial, sans-serif;
}

.letter {
  display: inline-block;
  transition: transform 0.3s ease;
  cursor: pointer;
  color: #0f0;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
}

.scatter {
  filter: blur(1px);
}
