/* ========================================
   WELCOME / PRELOADER SCREEN
   Only shown to first-time visitors
   ======================================== */

.wel-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at 50% 40%,
    #1a1a2e 0%,
    #0d0d1a 60%,
    #000 100%
  );
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.wel-overlay.wel-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Ambient particles */
.wel-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.15);
  filter: blur(1px);
  animation: wel-float 6s ease-in-out infinite;
}

.wel-particle:nth-child(1) {
  width: 6px;
  height: 6px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 7s;
}
.wel-particle:nth-child(2) {
  width: 4px;
  height: 4px;
  top: 70%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 5s;
}
.wel-particle:nth-child(3) {
  width: 8px;
  height: 8px;
  top: 30%;
  left: 75%;
  animation-delay: 2s;
  animation-duration: 8s;
}
.wel-particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 80%;
  left: 20%;
  animation-delay: 0.5s;
  animation-duration: 6s;
}
.wel-particle:nth-child(5) {
  width: 3px;
  height: 3px;
  top: 50%;
  left: 50%;
  animation-delay: 3s;
  animation-duration: 9s;
}
.wel-particle:nth-child(6) {
  width: 7px;
  height: 7px;
  top: 20%;
  left: 60%;
  animation-delay: 1.5s;
  animation-duration: 6.5s;
}

@keyframes wel-float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-10px) translateX(-20px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-40px) translateX(10px);
    opacity: 0.8;
  }
}

/* Glowing ring behind logo */
.wel-glow-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 2px solid rgba(249, 115, 22, 0.08);
  box-shadow:
    0 0 60px rgba(249, 115, 22, 0.06),
    inset 0 0 60px rgba(249, 115, 22, 0.04);
  animation: wel-ring-pulse 3s ease-in-out infinite;
  opacity: 0;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.wel-glow-ring-2 {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(249, 115, 22, 0.04);
  box-shadow: 0 0 80px rgba(249, 115, 22, 0.03);
  animation: wel-ring-pulse 4s ease-in-out infinite;
  opacity: 0;
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

@keyframes wel-ring-pulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Logo container */
.wel-logo-wrap {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.5);
  animation: wel-logo-entrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.wel-logo-wrap img {
  height: 260px;
  width: auto;
  filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.3))
    drop-shadow(0 0 80px rgba(249, 115, 22, 0.15));
}

@keyframes wel-logo-entrance {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(30px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Welcome text */
.wel-text-container {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 40px;
  opacity: 0;
  animation: wel-text-fade 1.2s ease-out 1.4s both;
}

@keyframes wel-text-fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.wel-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(135deg, #f97316, #fb923c, #fdba74, #f97316);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wel-gradient-shift 4s ease-in-out infinite;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: none;
}

@keyframes wel-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.wel-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: wel-sub-fade 1s ease-out 2s both;
}

@keyframes wel-sub-fade {
  0% {
    opacity: 0;
    letter-spacing: 12px;
  }
  100% {
    opacity: 1;
    letter-spacing: 4px;
  }
}

/* Loading bar */
.wel-progress-wrap {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 50px;
  overflow: hidden;
  opacity: 0;
  animation: wel-text-fade 0.6s ease-out 2.4s both;
}

.wel-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 2px;
  animation: wel-progress-fill 2s ease-in-out 2.6s both;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

@keyframes wel-progress-fill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Bottom line decoration */
.wel-bottom-line {
  position: absolute;
  bottom: 60px;
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(249, 115, 22, 0.3),
    transparent
  );
  opacity: 0;
  animation: wel-text-fade 1s ease-out 2.2s both;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .wel-logo-wrap img {
    height: 200px;
  }
  .wel-glow-ring {
    width: 320px;
    height: 320px;
  }
  .wel-glow-ring-2 {
    width: 400px;
    height: 400px;
  }
  .wel-title {
    font-size: 1.7rem;
  }
  .wel-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .wel-logo-wrap img {
    height: 150px;
  }
  .wel-glow-ring {
    width: 240px;
    height: 240px;
  }
  .wel-glow-ring-2 {
    width: 300px;
    height: 300px;
  }
  .wel-title {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
  .wel-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }
  .wel-progress-wrap {
    width: 140px;
  }
}
