/* Page Transition Styles */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s;
}

.transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.page-transition.active {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.5s;
}

.page-transition .logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  background: var(--gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
  animation: gradient-shift 4s ease infinite;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.page-transition.active .logo {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.2s;
}

.loading-container {
  position: relative;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Circular loading spinner */
.loading-spinner {
  width: 120px;
  height: 120px;
  position: relative;
}

.spinner-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-bottom-color: var(--tertiary);
  border-left-color: var(--quaternary);
  animation: spin 2s linear infinite;
}

.spinner-circle::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--quaternary);
  border-right-color: var(--tertiary);
  border-bottom-color: var(--secondary);
  border-left-color: var(--primary);
  animation: spin 3s linear infinite;
}

.spinner-circle::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--secondary);
  border-right-color: var(--primary);
  border-bottom-color: var(--quaternary);
  border-left-color: var(--tertiary);
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Glitch effect on the spinner */
.spinner-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(175, 4, 232, 0.05);
  border-radius: 50%;
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: glitch 3s ease-in-out infinite;
}

@keyframes glitch {
  0%, 100% {
    opacity: 0.1;
    transform: scale(1);
  }
  25% {
    opacity: 0.2;
    transform: scale(1.05) rotate(5deg);
  }
  50% {
    opacity: 0.1;
    transform: scale(0.95);
  }
  75% {
    opacity: 0.2;
    transform: scale(1.05) rotate(-5deg);
  }
}

.loading-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  color: var(--light);
  margin-top: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

/* Cyber elements */
.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(175, 4, 232, 0.05) 25%, rgba(175, 4, 232, 0.05) 26%, transparent 27%, transparent 74%, rgba(175, 4, 232, 0.05) 75%, rgba(175, 4, 232, 0.05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(175, 4, 232, 0.05) 25%, rgba(175, 4, 232, 0.05) 26%, transparent 27%, transparent 74%, rgba(175, 4, 232, 0.05) 75%, rgba(175, 4, 232, 0.05) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  opacity: 0;
  transition: opacity 0.5s;
}

.page-transition.active .cyber-grid {
  opacity: 0.3;
}

/* Circular orbiting pixels */
.pixel-orbit {
  position: absolute;
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-pixel {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  transform-origin: center;
  animation: orbit 3s linear infinite;
}

.orbit-pixel:nth-child(odd) {
  background: var(--secondary);
  animation-duration: 4s;
  animation-direction: reverse;
}

.orbit-pixel:nth-child(3n) {
  background: var(--tertiary);
  animation-duration: 5s;
}

.orbit-pixel:nth-child(4n) {
  background: var(--quaternary);
  animation-duration: 6s;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(75px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(75px) rotate(-360deg);
  }
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
  .page-transition .logo {
    font-size: 2rem;
  }
  
  .loading-spinner {
    width: 80px;
    height: 80px;
  }
} 