/* Pizza Scroll Animation Styles */

.pizza-scroll-section {
    position: relative;
    width: 100%;
    background: #0a0a0a;
}

.pizza-scroll-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pizza-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Creates the scrollable area for animation duration */
.pizza-scroll-spacer {
    height: 500vh;
    /* 5x viewport for smooth scrubbing */
    pointer-events: none;
}

/* Loading indicator */
.pizza-scroll-section::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #e5a126;
    border-radius: 50%;
    animation: pizza-loader 0.8s linear infinite;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.pizza-scroll-section.loaded::before {
    opacity: 0;
}

@keyframes pizza-loader {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .pizza-scroll-spacer {
        height: 400vh;
    }
}