@import url("https://fonts.googleapis.com/css2?family=Boldonse&display=swap");

@font-face {
  font-family: "PPSupplyMono";
  src: url("https://assets.codepen.io/7558/PPSupplyMono-Variable.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  color: #e0e0e0;
}

.ghost-loader {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ghost-svg {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  animation: ghostFloat 3s ease-in-out infinite;
}

.ghost-body {
  fill: white;
  opacity: 0.9;
}

.ghost-eye {
  fill: black;
  animation: eyePulse 2s ease-in-out infinite;
  transform-origin: center;
}

.left-eye {
  animation-delay: 0s;
}

.right-eye {
  animation-delay: 0.1s;
}

@keyframes ghostFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes eyePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

.loading-text {
  font-family: "PPSupplyMono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 1;
  margin-bottom: 12px;
  animation: textPulse 2s ease-in-out infinite;
}

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

.loading-progress {
  width: 96px;
  height: 1px;
  margin: 0 auto;
  border-radius: 1px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ff80, #00cc66);
  opacity: 0.1;
  width: 0%;
  transition: width 0.8s ease;
}

/* Main Content initially hidden */
body.loading .main-content {
  opacity: 0;
  transition: opacity 1.5s ease-in;
}

body.loaded .main-content {
  opacity: 1;
}
