/* ============================================
   LA MIA PIZZA — Pizza-Themed Animations
   ============================================ */

/* ---- Floating Pizza Slices (Hero) ---- */
@keyframes floatSlice1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -50px) rotate(15deg);
    }

    50% {
        transform: translate(-20px, -100px) rotate(-10deg);
    }

    75% {
        transform: translate(40px, -50px) rotate(20deg);
    }
}

@keyframes floatSlice2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-40px, -60px) rotate(-20deg);
    }

    50% {
        transform: translate(30px, -120px) rotate(15deg);
    }

    75% {
        transform: translate(-30px, -60px) rotate(-15deg);
    }
}

@keyframes floatSlice3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(50px, -80px) rotate(25deg) scale(1.1);
    }

    66% {
        transform: translate(-40px, -40px) rotate(-15deg) scale(0.95);
    }
}

.pizza-float-1 {
    left: 5%;
    top: 30%;
    font-size: 4rem;
    animation: floatSlice1 12s ease-in-out infinite;
}

.pizza-float-2 {
    right: 8%;
    top: 20%;
    font-size: 3rem;
    animation: floatSlice2 15s ease-in-out infinite;
}

.pizza-float-3 {
    left: 15%;
    bottom: 15%;
    font-size: 5rem;
    animation: floatSlice3 18s ease-in-out infinite;
}

.pizza-float-4 {
    right: 15%;
    bottom: 25%;
    font-size: 3.5rem;
    animation: floatSlice1 20s ease-in-out infinite reverse;
}

.pizza-float-5 {
    left: 40%;
    top: 15%;
    font-size: 2.5rem;
    animation: floatSlice2 14s ease-in-out infinite reverse;
}

/* ---- Ingredient Particles ---- */
@keyframes floatIngredient {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

.ingredient-particle {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    font-size: 1.5rem;
    opacity: 0;
}

.ingredient-1 {
    left: 10%;
    animation: floatIngredient 20s linear infinite;
    animation-delay: 0s;
}

.ingredient-2 {
    left: 30%;
    animation: floatIngredient 25s linear infinite;
    animation-delay: 5s;
}

.ingredient-3 {
    left: 50%;
    animation: floatIngredient 22s linear infinite;
    animation-delay: 3s;
}

.ingredient-4 {
    left: 70%;
    animation: floatIngredient 28s linear infinite;
    animation-delay: 8s;
}

.ingredient-5 {
    left: 90%;
    animation: floatIngredient 24s linear infinite;
    animation-delay: 2s;
}

/* ---- Hero Logo Pulse ---- */
@keyframes logoPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(211, 30, 38, 0.3),
            0 0 60px rgba(211, 30, 38, 0.1);
    }

    50% {
        box-shadow: 0 0 50px rgba(211, 30, 38, 0.5),
            0 0 100px rgba(211, 30, 38, 0.2);
    }
}

.hero-content .logo-hero {
    animation: logoPulse 3s ease-in-out infinite;
}

/* ---- Text Shimmer Effect ---- */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(90deg,
            var(--cream) 0%,
            var(--gold) 25%,
            var(--cream) 50%,
            var(--gold) 75%,
            var(--cream) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* ---- Pizza Spin (Preloader) ---- */
@keyframes pizzaSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pizza-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(211, 30, 38, 0.2);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: pizzaSpin 0.8s linear infinite;
    position: relative;
}

.pizza-spinner::after {
    content: '🍕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

/* ---- Hover Glow on Cards ---- */
@keyframes cardGlow {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(211, 30, 38, 0);
    }

    50% {
        box-shadow: 0 0 30px rgba(211, 30, 38, 0.15);
    }
}

.item-card:hover,
.menu-card:hover {
    animation: cardGlow 2s ease-in-out infinite;
}

/* ---- Slide Up Entrance ---- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-in.delay-1 {
    animation-delay: 0.1s;
}

.animate-in.delay-2 {
    animation-delay: 0.2s;
}

.animate-in.delay-3 {
    animation-delay: 0.3s;
}

.animate-in.delay-4 {
    animation-delay: 0.4s;
}

.animate-in.delay-5 {
    animation-delay: 0.5s;
}

/* ---- Marquee Strip ---- */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-strip {
    overflow: hidden;
    white-space: nowrap;
    padding: var(--space-sm) 0;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 var(--space-lg);
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: rgba(240, 241, 236, 0.3);
}

.marquee-content span .dot {
    color: var(--red);
    font-size: 0.5rem;
}

/* ---- Parallax Background ---- */
@keyframes parallaxBg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100px;
    }
}

/* ---- Bounce Arrow ---- */
@keyframes bounceArrow {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(240, 241, 236, 0.4);
    font-size: 1.5rem;
    animation: bounceArrow 2s infinite;
    cursor: pointer;
    z-index: 2;
}

/* ---- Steam Effect (for food images) ---- */
@keyframes steam {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scaleX(1.5);
        opacity: 0.15;
    }

    100% {
        transform: translateY(-40px) scaleX(2);
        opacity: 0;
    }
}

.steam-effect {
    position: absolute;
    top: -20px;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    filter: blur(5px);
    pointer-events: none;
}

.steam-1 {
    animation: steam 3s ease-in-out infinite;
    left: 35%;
}

.steam-2 {
    animation: steam 3s ease-in-out infinite 0.5s;
    left: 50%;
}

.steam-3 {
    animation: steam 3s ease-in-out infinite 1s;
    left: 65%;
}

/* ---- Hero Logo Entrance ---- */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-15deg) translateY(40px);
        filter: drop-shadow(0 0 0 rgba(211, 30, 38, 0)) drop-shadow(0 0 0 rgba(211, 30, 38, 0));
    }

    40% {
        opacity: 1;
        transform: scale(1.1) rotate(3deg) translateY(-10px);
        filter: drop-shadow(0 0 40px rgba(211, 30, 38, 0.6)) drop-shadow(0 0 80px rgba(211, 30, 38, 0.3));
    }

    60% {
        transform: scale(0.95) rotate(-2deg) translateY(5px);
        filter: drop-shadow(0 0 25px rgba(211, 30, 38, 0.4)) drop-shadow(0 0 50px rgba(211, 30, 38, 0.15));
    }

    80% {
        transform: scale(1.03) rotate(1deg) translateY(-3px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
        filter: drop-shadow(0 0 30px rgba(211, 30, 38, 0.4)) drop-shadow(0 0 60px rgba(211, 30, 38, 0.15));
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 0 30px rgba(211, 30, 38, 0.4)) drop-shadow(0 0 60px rgba(211, 30, 38, 0.15));
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
        filter: drop-shadow(0 0 40px rgba(211, 30, 38, 0.5)) drop-shadow(0 0 80px rgba(211, 30, 38, 0.2));
    }
}

.logo-hero.animated {
    animation: logoFloat 4s ease-in-out infinite;
}

/* ---- Reduce motion for accessibility ---- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}