/* ==========================================================================
   SIMPLE INITIAL LOAD BLUR REVEAL
   ========================================================================== */

/* Blur overlay on the main app container */
.app-container {
  transition: filter 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.app-container.blurred {
  filter: blur(40px);
  pointer-events: none;
}

/* Initial load text overlay */
.initial-load-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.initial-load-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 7rem);
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

/* Forward reveal animation */
.initial-load-text.animate-in {
  animation: textRevealIn 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Reverse/disappear animation */
.initial-load-text.animate-out {
  animation: textRevealOut 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes textRevealIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(8px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes textRevealOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  40% {
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1.02);
    filter: blur(6px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .app-container {
    transition: filter 0.3s ease, opacity 0.3s ease;
  }

  .initial-load-overlay {
    transition: opacity 0.2s ease;
  }

  .initial-load-text {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .initial-load-text.animate-out {
    opacity: 0;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .initial-load-text {
    font-size: clamp(2.5rem, 14vw, 4.5rem);
  }
}