body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #8b0000;
  font-family: "Arial", sans-serif;
  color: #FF0000;
}

.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at center, #8B0000 0%, #540B0C 100%),
    linear-gradient(45deg, #FF0000 25%, transparent 25%),
    linear-gradient(-45deg, #FF0000 25%, transparent 25%);
  background-size: 100% 100%, 4px 4px, 4px 4px;
  perspective: 1000px;
}

.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.1;
}

.matrix-column {
  position: absolute;
  width: 20px;
  font-size: 12px;
  text-align: center;
  animation: matrix-rain linear infinite;
}

.hexagon-container {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate3D 20s linear infinite;
}

.hexagon {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 2px solid #FF0000;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: pulse-hex 4s ease-in-out infinite;
}

.loader-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.hologram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #8B0000 0%, transparent 70%);
  animation: hologram 4s ease-in-out infinite;
}

.data-stream {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #FF0000, transparent);
  animation: data-flow 2s linear infinite;
}

.circle {
  fill: none;
  stroke-width: 2;
  transform-origin: center;
}

.outer {
  stroke: #FF0000;
  stroke-dasharray: 628;
  stroke-dashoffset: 628;
  animation: dash 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #8B0000);
}

.middle {
  stroke: #FF0000;
  stroke-dasharray: 471;
  stroke-dashoffset: 471;
  animation: dashReverse 3s ease-in-out infinite;
  opacity: 0.8;
}

.inner {
  stroke: #8B0000;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: dash 3s ease-in-out infinite;
  opacity: 0.6;
}

.status-text {
  position: absolute;
  width: 200px;
  font-family: monospace;
  font-size: 12px;
  color: #FF0000;
  text-shadow: 0 0 5px #FF0000;
  opacity: 0.8;
}

.status-left {
  left: -250px;
  text-align: right;
}

.status-right {
  right: -250px;
  text-align: left;
}

.progress-text {
  position: absolute;
  bottom: -80px;
  width: 100%;
  text-align: center;
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #FF0000;
  animation: flicker 4s infinite;
}

.scanner {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #FF0000, transparent);
  animation: scan 3s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #FF0000);
}

@keyframes rotate3D {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes matrix-rain {
  0% {
    transform: translateY(-100%);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@keyframes hologram {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
}

@keyframes pulse-hex {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
}

@keyframes data-flow {
  0% {
    transform: translateY(-100%) translateX(-50%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%) translateX(50%);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-20px) rotateX(10deg);
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 628;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -628;
  }
}

@keyframes dashReverse {
  0% {
    stroke-dashoffset: -471;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 471;
  }
}

@keyframes scan {
  0%,
  100% {
    top: 0%;
    opacity: 0;
  }
  25%,
  75% {
    opacity: 1;
  }
  50% {
    top: 100%;
  }
}

@keyframes flicker {
  0%,
  19.999%,
  22%,
  62.999%,
  64%,
  64.999%,
  70%,
  100% {
    opacity: 0.99;
  }
  20%,
  21.999%,
  63%,
  63.999%,
  65%,
  69.999% {
    opacity: 0.4;
  }
}