/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
}

/* Prevent scrolling while loading */
body.noscroll {
  overflow: hidden;
}

/* Fullscreen Deep Black Preloader Overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000; /* Pure black background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
}

/* Preloader Hidden State */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Vertical layout wrapper for text + dots */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* Space between text and dots */
}

/* Glowing Orange Domain Name */
.brand-name {
  color: #ff6600; /* Base Orange */
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: lowercase;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* Multi-layered text-shadow creates the neon glow */
  animation: textGlow 1.2s infinite ease-in-out;
}

/* 4 Dots Loader Container */
.dot-loader {
  display: flex;
  gap: 12px;
}

/* Base Dot Styles */
.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  animation: pulseFade 1.2s infinite ease-in-out;
}

/* Orange and White Theme Specifics */
.dot.orange {
  background-color: #ff6600;
}

.dot.white {
  background-color: #ffffff;
}

/* Staggered animation delays to create wave pulse effect */
.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}
.dot:nth-child(4) {
  animation-delay: 0.6s;
}

/* Text Glowing Animation */
@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 4px #ff6600, 0 0 10px #ff6600, 0 0 20px #ff6600;
    opacity: 0.8;
  }
  50% {
    text-shadow: 0 0 8px #ff6600, 0 0 20px #ffbb00, 0 0 40px #ff6600,
      0 0 60px #ff6600;
    opacity: 1;
  }
}

/* Pulse Fade Animation Mechanics for Dots */
@keyframes pulseFade {
  0%,
  100% {
    transform: scale(0.6);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Demo Content Styling */
.content {
  padding: 40px;
  text-align: center;
}
