* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  background-color: #000;
  color: #0f0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("https://images.unsplash.com/photo-1544890225-2f3faec4cd60?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.container {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 90%;
}

h1 {
  font-size: clamp(24px, 5vw, 60px);
  margin-bottom: 20px;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
  animation: glitch 1s linear infinite, flicker 3s linear infinite;
  line-height: 1.3;
  white-space: pre-line;
  word-break: break-word;
}

p {
  font-size: clamp(16px, 3vw, 24px);
  margin-bottom: 30px;
  text-shadow: 0 0 5px #0f0;
}

.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.hacker-image {
  width: clamp(100px, 30vw, 150px);
  height: clamp(100px, 30vw, 150px);
  border-radius: 50%;
  border: 3px solid #0f0;
  box-shadow: 0 0 15px #0f0;
  margin: 20px auto;
  animation: pulse 2s infinite;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes flicker {
  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }
  20%,
  22%,
  24%,
  55% {
    opacity: 0.5;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 15px #0f0;
  }
  50% {
    box-shadow: 0 0 30px #0f0;
  }
  100% {
    box-shadow: 0 0 15px #0f0;
  }
}

.typing {
  border-right: 3px solid #0f0;
  overflow: hidden;
  display: inline-block;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #0f0;
  }
}

.countdown {
  font-size: clamp(20px, 4vw, 36px);
  margin-top: 20px;
  color: #f00;
  text-shadow: 0 0 10px #f00;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(20px, 8vw, 32px);
    white-space: normal;
    word-break: break-word;
  }

  .typing {
    white-space: normal;
    text-align: center;
    display: block;
  }
}
