#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-animation {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader-animation div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1F99FF;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loader-animation div:nth-child(1) {
  left: 8px;
  animation: loader-animation1 0.6s infinite;
}

.loader-animation div:nth-child(2) {
  left: 8px;
  animation: loader-animation2 0.6s infinite;
}

.loader-animation div:nth-child(3) {
  left: 32px;
  animation: loader-animation2 0.6s infinite;
}

.loader-animation div:nth-child(4) {
  left: 56px;
  animation: loader-animation3 0.6s infinite;
}

@keyframes loader-animation1 {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes loader-animation3 {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes loader-animation2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(24px, 0);
  }
}

/* Content Loading States */
.content-loading {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.content-loaded {
  opacity: 1;
}

/* Scroll Indicator Styles */
.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1F99FF, #0066CC);
  color: white;
  padding: 8px 16px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(31, 153, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  animation: bounceUpDown 1.5s ease-in-out infinite;
}

.scroll-indicator.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-indicator i {
  font-size: 16px;
}

@keyframes bounceUpDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* Ensure the typing test button is more noticeable */
.typing-test-btn {
  position: relative;
  z-index: 5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.typing-test-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(31, 153, 255, 0.25);
}