/* ===================================================
   PIXUP GAMES — Motion & Atmosphere Layer
   Subtle entrance animations, ambient particles,
   and depth enhancements. No structural changes.
   =================================================== */

/* --- About content font override --- */

.about__content .about__text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* --- Scroll-triggered entrance animations --- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children within game cards */
.reveal-stagger .games__card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger--visible .games__card:nth-child(1) { transition-delay: 0s; }
.reveal-stagger--visible .games__card:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger--visible .games__card:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger--visible .games__card:nth-child(4) { transition-delay: 0.45s; }

.reveal-stagger--visible .games__card {
  opacity: 1;
  transform: translateY(0);
}

/* Partner logos stagger */
.reveal-stagger .about__partners-logo {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger--visible .about__partners-logo:nth-child(1) { transition-delay: 0s; }
.reveal-stagger--visible .about__partners-logo:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger--visible .about__partners-logo:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger--visible .about__partners-logo:nth-child(4) { transition-delay: 0.3s; }

.reveal-stagger--visible .about__partners-logo {
  opacity: 1;
  transform: translateY(0);
}

/* --- Game card hover depth --- */

.games__card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 1335px) {
  .games__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  }
}

/* --- Ambient particle canvas --- */

.ambient-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* --- Subtle glow pulse on green accents --- */

@keyframes accent-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.about__text-accent,
.games__text-accent,
.getjob__text-accent {
  animation: accent-breathe 6s ease-in-out infinite;
}

/* --- Ghost active animation --- */

@keyframes ghost-hover {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  15% { opacity: 0.7; transform: translate(4px, -6px) scale(1.04) rotate(1.5deg); }
  30% { opacity: 0.9; transform: translate(-3px, -10px) scale(0.96) rotate(-1deg); }
  50% { opacity: 0.5; transform: translate(6px, -4px) scale(1.06) rotate(2deg); }
  65% { opacity: 0.85; transform: translate(-5px, -8px) scale(0.98) rotate(-1.5deg); }
  80% { opacity: 0.6; transform: translate(3px, -12px) scale(1.03) rotate(1deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes ghost-hover-alt {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  20% { opacity: 0.6; transform: translate(-5px, -8px) scale(1.05) rotate(-2deg); }
  40% { opacity: 0.85; transform: translate(4px, -5px) scale(0.95) rotate(1.5deg); }
  55% { opacity: 0.5; transform: translate(-3px, -11px) scale(1.07) rotate(-1deg); }
  75% { opacity: 0.8; transform: translate(5px, -7px) scale(0.97) rotate(2deg); }
  90% { opacity: 0.55; transform: translate(-2px, -9px) scale(1.02) rotate(-1.5deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}

.ticker-main__ghost::before {
  animation: ghost-hover 6s ease-in-out infinite;
}

.ticker-main__ghost::after {
  animation: ghost-hover-alt 7s ease-in-out infinite 1s;
}

/* --- Ghost decorations in about__content --- */

.about-ghost {
  position: absolute;
  display: block;
  pointer-events: none;
  z-index: 1;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-ghost--big {
  width: 100px;
  height: 77px;
  top: 60px;
  right: -20px;
  background-image: url(../img/interface/other/ghost-big.svg);
  animation: ghost-hover 6s ease-in-out infinite;
}

.about-ghost--small {
  width: 75px;
  height: 58px;
  bottom: 80px;
  left: -10px;
  background-image: url(../img/interface/other/ghost-small.svg);
  animation: ghost-hover-alt 7s ease-in-out infinite 1.5s;
}

.about-ghost--mid {
  width: 60px;
  height: 46px;
  top: 45%;
  right: 10px;
  background-image: url(../img/interface/other/ghost-small.svg);
  animation: ghost-hover 8s ease-in-out infinite 3s;
  opacity: 0.75;
}

.about-ghost--tiny {
  width: 50px;
  height: 38px;
  bottom: 25%;
  right: 30px;
  background-image: url(../img/interface/other/ghost-big.svg);
  animation: ghost-hover-alt 9s ease-in-out infinite 2s;
  opacity: 0.6;
}

@media (min-width: 1335px) {
  .about-ghost--big {
    width: 130px;
    height: 100px;
    top: 80px;
    right: -160px;
  }

  .about-ghost--small {
    width: 95px;
    height: 73px;
    bottom: 120px;
    left: -130px;
  }

  .about-ghost--mid {
    width: 85px;
    height: 65px;
    top: 45%;
    right: -100px;
    opacity: 0.75;
  }

  .about-ghost--tiny {
    width: 70px;
    height: 54px;
    bottom: 25%;
    right: -60px;
    opacity: 0.6;
  }
}

/* --- Ghost particle container --- */

.ghost-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* --- Form input focus glow --- */

.getjob__form-input {
  transition: border-color 0.4s ease,
              background-color 0.4s ease,
              box-shadow 0.4s ease;
}

.getjob__form-input:focus {
  box-shadow: 0 0 0 1px rgba(25, 228, 123, 0.15),
              0 0 20px rgba(25, 228, 123, 0.06);
}

/* --- Footer entrance --- */

.footer__inner > div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer--revealed .footer__inner > div:nth-child(1) { transition-delay: 0s; }
.footer--revealed .footer__inner > div:nth-child(2) { transition-delay: 0.08s; }
.footer--revealed .footer__inner > div:nth-child(3) { transition-delay: 0.16s; }
.footer--revealed .footer__inner > div:nth-child(4) { transition-delay: 0.24s; }
.footer--revealed .footer__inner > div:nth-child(5) { transition-delay: 0.32s; }

.footer--revealed .footer__inner > div {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reduced motion: disable all motion for accessibility --- */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger .games__card,
  .reveal-stagger .about__partners-logo,
  .footer__inner > div {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about__text-accent,
  .games__text-accent,
  .getjob__text-accent {
    animation: none;
  }

  .ticker-main__ghost::before,
  .ticker-main__ghost::after,
  .about-ghost {
    animation: none;
  }

  .games__card:hover {
    transform: none;
  }

  .ambient-particles,
  .ghost-particles {
    display: none;
  }
}
