:root {
  --primary: #f1c40f;
  --secondary: #e67e22;
  --accent: #9b59b6;
  --bg-dark: #0f0f12;
  --text-light: #ffffff;
  --glow-color: rgba(241, 196, 15, 0.4);
  --chakra-red: #ff4d4d;
  --chakra-orange: #ffa333;
  --chakra-yellow: #ffff00;
  --chakra-green: #33ff33;
  --chakra-blue: #33ccff;
  --chakra-indigo: #4b0082;
  --chakra-violet: #ee82ee;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* The Core Emblem Component */
.emblem-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.emblem-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 10;
  box-shadow: 0 0 50px var(--glow-color);
}

/* The Spinning Outer Ring - Mimicking the colors in the emblem */
.spinning-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top: 4px solid var(--chakra-yellow);
  border-right: 4px solid var(--chakra-orange);
  border-bottom: 4px solid var(--chakra-red);
  border-left: 4px solid var(--chakra-blue);
  animation: spin 3s linear infinite;
  z-index: 5;
}

.spinning-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: pulse 2s ease-in-out infinite;
}

/* Internal Glow Effect */
.inner-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  animation: breathe 4s ease-in-out infinite;
  z-index: 2;
}

/* Loading Text Styling */
.loading-text {
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--chakra-yellow);
  text-shadow: 0 0 10px var(--glow-color);
  animation: text-fade 1.5s ease-in-out infinite alternate;
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.2; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes text-fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Decorative background elements */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f12 100%);
  z-index: -1;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}
