.realty_splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #080808;
  color: #fff;

  /* overflow: hidden; */

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.realty_splash.splash_hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==============================
   CONTENT
============================== */

.realty_splash_content {
  position: relative;
  z-index: 5;

  width: min(90%, 500px);

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* ==============================
   LOGO
============================== */

.realty_splash_logo {
  opacity: 0;
  transform: translateY(25px) scale(0.95);

  animation: splashLogo 1s ease forwards;
}

.realty_splash_logo img {
  width: 180px;
  height: auto;
  object-fit: contain;
  filter: invert(1);
}

/* ==============================
   LINE
============================== */

.realty_splash_line {
  position: relative;

  width: 0;
  height: 1px;

  margin: 28px auto 22px;

  background: rgba(255, 255, 255, 0.2);

  animation: splashLine 1s ease 0.5s forwards;
}

.realty_splash_line span {
  position: absolute;
  left: 0;
  top: 0;

  width: 0;
  height: 1px;

  background: #fff;

  animation: splashProgress 1.5s ease 0.7s forwards;
}

/* ==============================
   TEXT
============================== */

.realty_splash_text {
  display: flex;
  flex-direction: column;
  gap: 5px;

  font-size: 12px;
  font-weight: 400;

  letter-spacing: 4px;

  color: rgba(255, 255, 255, 0.65);

  opacity: 0;
  transform: translateY(15px);

  animation: splashText 0.8s ease 0.9s forwards;
}

.realty_splash_text span:last-child {
  color: #fff;
  font-weight: 500;
}

/* ==============================
   LOADING
============================== */

.realty_splash_loading {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 40px;

  font-size: 9px;
  letter-spacing: 3px;

  color: rgba(255, 255, 255, 0.45);

  opacity: 0;

  animation: splashLoading 0.8s ease 1.2s forwards;
}

.loading_dots {
  display: flex;
  gap: 4px;
}

.loading_dots i {
  width: 3px;
  height: 3px;

  display: block;

  border-radius: 50%;
  background: #fff;

  animation: loadingDot 1.2s infinite ease-in-out;
}

.loading_dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.loading_dots i:nth-child(3) {
  animation-delay: 0.3s;
}

/* ==============================
   DECORATIVE SHAPES
============================== */

.splash_shape {
  position: absolute;

  width: 450px;
  height: 450px;

  border: 1px solid rgba(255, 255, 255, 0.04);

  border-radius: 50%;

  pointer-events: none;
}

.splash_shape_1 {
  top: -250px;
  left: -180px;

  animation: splashRotate 12s linear infinite;
}

.splash_shape_2 {
  right: -250px;
  bottom: -250px;

  animation: splashRotateReverse 15s linear infinite;
}

/* ==============================
   ANIMATIONS
============================== */

@keyframes splashLogo {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashLine {
  to {
    width: 180px;
  }
}

@keyframes splashProgress {
  to {
    width: 100%;
  }
}

@keyframes splashText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashLoading {
  to {
    opacity: 1;
  }
}

@keyframes loadingDot {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes splashRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes splashRotateReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 767px) {
  .realty_splash_logo img {
    width: 145px;
  }

  .realty_splash_line {
    margin-top: 22px;
    margin-bottom: 18px;
  }

  .realty_splash_text {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .realty_splash_loading {
    margin-top: 30px;
  }

  .splash_shape {
    width: 300px;
    height: 300px;
  }
}
