:root {
  --primary-color: #ff1c1c;           /* Vibrant Pokéball red */
  --secondary-color: #ffd700;         /* Pikachu yellow (golden) */
  --accent-color: #3b4cca;            /* Pokémon blue (used in titles/logos) */

  --background-start: #fdf3f4;        /* Soft pinkish background start */
  --background-end: #e0f7ff;          /* Soft sky-blue end gradient */

  --text-color: #2b2d42;              /* Deep navy gray for nice contrast */
}

/* ===========================
   LOADING SCREEN OVERLAY
   =========================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease-in-out;
}

/* ===========================
   LOADING CONTAINER
   =========================== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    position: relative;
}


@keyframes shrinkImage {
  0% {
    transform: translateX(-50%) scale(1.5);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

.p-image {
  width: 50%;
  height: auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(1); 
  animation: shrinkImage 0.6s ease-out;
}


.loader-image {
    width: 50%;
    height: 50%;
    animation: pokeball-spin 1.8s linear infinite;
}

/* ===========================
   PROGRESS BAR STYLES
   =========================== */
.progress-container {
    width: 240px;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease-out;
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: black;
    opacity: 0.8;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2s linear infinite;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}


/* ===========================
   KEYFRAMES & UTILITIES
   =========================== */
@keyframes pokeball-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* (Leave any particle animations or media queries intact) */

@media (max-width: 768px) {
    .loader-image {
        width: 90px;
        height: 90px;
    }
    .progress-container {
        width: 200px;
    }
    .loading-text {
        font-size: 1rem;
    }
}
