/* AtoZee glow preloader */

:root {
  --brand-blue: #002db3;
  --dim-blue: rgba(0, 45, 179, 0.16);
  --cycle-speed: 3.8s;
}

#page-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  user-select: none;
}

.bulb-svg {
  width: 220px;
  height: auto;
  shape-rendering: geometricPrecision;
  overflow: hidden;
}

.loader-container.loader-table-inline {
  padding: 25px 0;
}
.loader-container.loader-table-inline .bulb-svg {
  width: 130px;
}
.loader-container.loader-table-inline .brand-text-container {
  font-size: 22px;
}

.spinning-gear {
  transform-origin: 150px 126px;
  transform-box: view-box;
  animation: spinCog 8s linear infinite;
}

@keyframes spinCog {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.chamber-fill-group {
  animation: liquidRise var(--cycle-speed) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes liquidRise {
  0% { clip-path: inset(100% 0 0 0); }
  18% { clip-path: inset(82% 0 0 0); }
  55% { clip-path: inset(35% 0 0 0); }
  75%, 86% { clip-path: inset(0% 0 0 0); opacity: 1; }
  94% { clip-path: inset(0% 0 0 0); opacity: 0; }
  100% { clip-path: inset(100% 0 0 0); opacity: 0; }
}

.rung {
  animation: chargeRungs var(--cycle-speed) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.rung-3 { animation-delay: 0.00s; }
.rung-2 { animation-delay: 0.12s; }
.rung-1 { animation-delay: 0.24s; }

@keyframes chargeRungs {
  0%, 6%   { opacity: 0.2; }
  18%, 86% { opacity: 1;   }
  94%, 100%{ opacity: 0.2; }
}

.brand-text-container {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.word {
  position: relative;
  display: inline-block;
  color: var(--dim-blue);
}

.word::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--brand-blue);
  clip-path: inset(0 100% 0 0);
}

.word-atozee::after {
  animation: loadWordAtozee var(--cycle-speed) cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes loadWordAtozee {
  0%, 6% { clip-path: inset(0 100% 0 0); }
  30%, 86% { clip-path: inset(0 0% 0 0); }
  94%, 100% { clip-path: inset(0 0% 0 0); opacity: 0; }
}

.word-solutions::after {
  animation: loadWordSolutions var(--cycle-speed) cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes loadWordSolutions {
  0%, 32% { clip-path: inset(0 100% 0 0); }
  60%, 86% { clip-path: inset(0 0% 0 0); }
  94%, 100% { clip-path: inset(0 0% 0 0); opacity: 0; }
}

.brand-dot {
  position: relative;
  display: inline-block;
  color: var(--dim-blue);
}

.brand-dot::after {
  content: '.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-blue);
  opacity: 0;
  transform: scale(0.6);
  animation: popDot var(--cycle-speed) ease-out infinite;
}

@keyframes popDot {
  0%, 65% { opacity: 0; transform: scale(0.5); }
  75%, 86% { opacity: 1; transform: scale(1.2); }
  94%, 100% { opacity: 0; transform: scale(1); }
}

