body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

#loading-bg {
  width: 100%;
  height: 100%;
  background: #0E1730;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: hidden;
}

#loading-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: breathe 4s ease-in-out infinite;
}

#loading-bg::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.loading-logo {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
  animation: fadeInDown 0.8s ease-out;
}

.loading-logo img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(102, 126, 234, 0.4));
  animation: logoGlow 3s ease-in-out infinite;
}

.loading {
  position: relative;
  width: 60px;
  height: 60px;
  z-index: 2;
  margin-bottom: 30px;
}

.loading .effect-1,
.loading .effect-2,
.loading .effect-3 {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 50%;
  box-sizing: border-box;
}

.loading .effect-1 {
  border-left: 2px solid #667eea;
  border-top: 2px solid #667eea;
  animation: rotate 1s linear infinite;
}

.loading .effect-2 {
  border-right: 2px solid #00d4ff;
  border-bottom: 2px solid #00d4ff;
  animation: rotate 1s linear infinite reverse;
  animation-delay: 0.1s;
}

.loading .effect-3 {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  animation: rotate 1.5s linear infinite;
  animation-delay: 0.2s;
  transform: scale(0.75);
}

.loading::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  top: -15px;
  left: -15px;
  animation: pulse 2s ease-in-out infinite;
}

.loading-text {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.loading-text::after {
  content: '';
  animation: dots 1.5s infinite;
}

.loading-progress {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 20px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.loading-progress::before {
  content: '';
  position: absolute;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #667eea, #00d4ff);
  border-radius: 3px;
  animation: progressSlide 1.5s ease-in-out infinite;
}

.footer-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 1px;
  animation: fadeIn 1s ease-out 1s both;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

@keyframes breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 8px 24px rgba(102, 126, 234, 0.4));
  }
  50% {
    filter: drop-shadow(0 8px 32px rgba(0, 212, 255, 0.5));
  }
}

@keyframes progressSlide {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

@keyframes dots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

@media (max-width: 768px) {
  .loading-logo img {
    width: 80px;
  }
  
  .brand-text .brand-name {
    font-size: 1.5rem;
  }
  
  .loading {
    width: 50px;
    height: 50px;
  }
  
  .loading-progress {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .loading-logo img {
    width: 60px;
  }
  
  .brand-text .brand-name {
    font-size: 1.25rem;
  }
  
  .loading {
    width: 40px;
    height: 40px;
  }
  
  .loading-progress {
    width: 120px;
  }
  
  .footer-text {
    display: none;
  }
}
