/* ============================================
   PRIMOGAMEPASSAGE — ANIMATIONS
   ============================================ */

/* === HERO TEXT REVEAL === */
.title-line {
    overflow: hidden;
}

.title-line .glitch-wrapper {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.line-1 .glitch-wrapper { animation-delay: 0.3s; }
.line-2 .glitch-wrapper { animation-delay: 0.5s; }
.line-3 .glitch-wrapper { animation-delay: 0.7s; }

@keyframes textReveal {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* === BADGE ENTRANCE === */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

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

/* === SUBTITLE ENTRANCE === */
.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.3s;
    opacity: 0;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* === CARD HOVER EFFECTS === */
.game-card::before,
.game-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.03), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.game-card:hover::before,
.game-card-large:hover::before {
    left: 100%;
}

/* === BUTTON RIPPLE === */
.btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.6s ease, height 0.6s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* === NEON FLICKER === */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 7px var(--primary), 0 0 10px var(--primary), 0 0 21px var(--primary);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* === PARALLAX HOVER ON TILT CARDS === */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* === STAGGER ANIMATIONS === */
.games-grid .game-card:nth-child(1),
.games-grid-full .game-card-large:nth-child(1) { transition-delay: 0.1s; }
.games-grid .game-card:nth-child(2),
.games-grid-full .game-card-large:nth-child(2) { transition-delay: 0.2s; }
.games-grid .game-card:nth-child(3),
.games-grid-full .game-card-large:nth-child(3) { transition-delay: 0.3s; }
.games-grid .game-card:nth-child(4),
.games-grid-full .game-card-large:nth-child(4) { transition-delay: 0.4s; }
.games-grid-full .game-card-large:nth-child(5) { transition-delay: 0.5s; }
.games-grid-full .game-card-large:nth-child(6) { transition-delay: 0.6s; }

/* === ENERGY PULSE === */
@keyframes energyFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* === COUNTDOWN PULSE === */
.countdown-number {
    animation: countPulse 1s ease-in-out infinite;
}

@keyframes countPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* === NEWS CARD HOVER LINE === */
.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width var(--transition);
}

.news-card:hover::after {
    width: 100%;
}

.news-card {
    position: relative;
}

/* === FEATURED IMAGE SHINE === */
.featured-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: imageShine 4s ease-in-out infinite;
}

@keyframes imageShine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* === SOCIAL ICON PULSE === */
.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-icon:hover::before {
    width: 60px;
    height: 60px;
}

.social-icon {
    position: relative;
    overflow: hidden;
}

/* === JOB CARD HOVER === */
.job-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--gradient-main);
    transition: height var(--transition);
}

.job-card:hover::before {
    height: 100%;
}

.job-card {
    position: relative;
    overflow: hidden;
}

/* === SMOOTH SCROLL INDICATOR === */
.hero-scroll-indicator {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

/* === LOADER ANIMATIONS === */
.loader-bar {
    animation: loading 2.5s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    20% { width: 25%; }
    40% { width: 45%; }
    60% { width: 65%; }
    80% { width: 85%; }
    100% { width: 100%; }
}