/* ==========================================================================
   FOOD HACKERS LAB — PREMIUM ANIMATIONS & MOTION SYSTEM
   Orionix-inspired: cursor, hero reveal, parallax, stagger, tilt, blobs
   ========================================================================== */

/* =========================================================
   BASE KEYFRAMES
   ========================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(249, 180, 50, 0.2); }
    50%       { box-shadow: 0 0 36px rgba(249, 180, 50, 0.7); }
}

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
#fhl-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary, #F9B432), var(--color-secondary, #269B54));
    z-index: 99999;
    transition: width 0.08s linear;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}

/* =========================================================
   HERO WORD-BY-WORD REVEAL
   ========================================================= */
.hero-word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: inherit;
}

.hero-word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    animation: heroWordReveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroWordReveal {
    0%   { transform: translateY(110%); opacity: 0; }
    60%  { opacity: 1; }
    100% { transform: translateY(0);    opacity: 1; }
}

/* Typewriter Cursor for Hero Highlight */
.typewriter-cursor {
    display: inline-block;
    color: var(--fhl-primary, #F9B432);
    font-weight: 300;
    margin-left: 2px;
    animation: blinkCursor 0.8s infinite;
}

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

/* CTA wrapper entrance */
.hero-cta-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroCtaIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

@keyframes heroCtaIn {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   FLOATING BACKGROUND BLOBS (hero section)
   ========================================================= */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hero-blob-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(249, 180, 50, 0.18), transparent 70%);
    top: -120px;
    left: -100px;
    animation: blobDrift1 14s ease-in-out infinite alternate;
}

.hero-blob-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(38, 155, 84, 0.13), transparent 70%);
    top: 60px;
    right: -80px;
    animation: blobDrift2 18s ease-in-out infinite alternate;
}

.hero-blob-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(249, 180, 50, 0.10), transparent 70%);
    bottom: 40px;
    left: 30%;
    animation: blobDrift3 22s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
    0%   { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes blobDrift2 {
    0%   { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(-40px, 60px) scale(0.94); }
}

@keyframes blobDrift3 {
    0%   { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.12); }
}

/* =========================================================
   SECTION STAGGER ENTRANCE
   ========================================================= */
.fhl-section-two,
.fhl-section-three,
.fhl-section-four,
.fhl-section-five,
.fhl-section-six {
    --stagger-delay: 0s;
}

/* Vault item staggered entrance */
.vault-item-stagger {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.4s ease var(--item-delay, 0s),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) var(--item-delay, 0s);
}

.vault-container.is-open .vault-item-stagger,
.vault-container:hover .vault-item-stagger {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   BUTTON SHIMMER EFFECT
   ========================================================= */
.hero-cta,
.cta-btn,
.btn-brand-primary {
    overflow: hidden;
    position: relative;
}

.hero-cta::after,
.cta-btn::after,
.btn-brand-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.hero-cta:hover::after,
.cta-btn:hover::after,
.btn-brand-primary:hover::after {
    animation: shimmerSweep 0.6s ease forwards;
}

@keyframes shimmerSweep {
    0%   { left: -100%; }
    100% { left: 160%; }
}

/* =========================================================
   CTA SECTION RADIAL MOUSE GLOW
   ========================================================= */
.cta-wrapper {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.cta-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.12),
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-wrapper:hover::after {
    opacity: 1;
}

/* =========================================================
   UTILITY ANIMATION CLASSES
   ========================================================= */
.animate-fade-in {
    animation: fadeIn var(--transition-slow) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-slow) forwards;
}

/* =========================================================
   REDUCED MOTION OVERRIDE (ACCESSIBILITY)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-word {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .hero-cta-anim {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .hero-blob {
        animation: none !important;
    }
}
