/**
 * Scroll Section Styles - Cylinder Rotation Effect
 * Style dla sekcji z efektem rotacji tekstów jak na bębnie
 */

.alfabet-scroll-section {
    position: relative;
    overflow: hidden;
    padding: 160px 0;
}

.alfabet-scroll-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 80px; /* Miejsce na progress indicator */
}

/* Nagłówek - sticky po pojawieniu się */
.alfabet-scroll-heading {
    position: sticky;
    top: 100px;
    z-index: 10;
    padding: 0 0 0px 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.alfabet-scroll-heading h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

/* Kontener dla scrollujących tekstów */
.alfabet-scroll-content {
    position: relative;
    padding-top: 0;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper dla efektu cylindra */
.alfabet-scroll-cylinder {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 0;
    transform-style: preserve-3d;
}

/* Pojedynczy element - rotacja na cylindrze */
.alfabet-scroll-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 100%;
    opacity: 0;
    transform: translateZ(-500px) rotateX(90deg);
    transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    pointer-events: none;
}

/* Pierwszy element widoczny od razu */
.alfabet-scroll-item:first-child {
    opacity: 1;
    transform: translateZ(0) rotateX(0deg);
}

/* Element aktywny - centralny */
.alfabet-scroll-item.is-active {
    opacity: 1;
    transform: translateZ(0) rotateX(0deg);
    pointer-events: auto;
}

/* Element poprzedni - obrócony do góry */
.alfabet-scroll-item.is-prev {
    opacity: 0.3;
    transform: translateZ(-300px) rotateX(-45deg) translateY(-100px);
}

/* Element następny - obrócony w dół */
.alfabet-scroll-item.is-next {
    opacity: 0.3;
    transform: translateZ(-300px) rotateX(45deg) translateY(100px);
}

/* Elementy dalsze */
.alfabet-scroll-item.is-before {
    opacity: 0;
    transform: translateZ(-500px) rotateX(-90deg) translateY(-200px);
}

.alfabet-scroll-item.is-after {
    opacity: 0;
    transform: translateZ(-500px) rotateX(90deg) translateY(200px);
}

.alfabet-scroll-item-text {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
    padding: 35px 45px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Wskaźnik scrollowania - absolute na dole sekcji */
.alfabet-scroll-section::after {
    content: '↓';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #75826b;
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.alfabet-scroll-section.scroll-complete::after {
    opacity: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Wskaźnik postępu - pod tekstami */
.alfabet-scroll-progress {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.alfabet-scroll-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #75826b7c;
    transition: background 0.3s ease, transform 0.3s ease;
}

.alfabet-scroll-progress-dot.active {
    background: #75826b;
    transform: scale(1.3);
}

/* Dodatkowe efekty wizualne - usunięte, proste tło */

/* Responsive */
@media (max-width: 1024px) {
    .alfabet-scroll-section {
        padding: 120px 0;
    }
    
    .alfabet-scroll-heading h2 {
        font-size: 3rem;
    }
    
    .alfabet-scroll-item-text {
        font-size: 2rem;
        padding: 30px;
    }
    
    .alfabet-scroll-cylinder {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .alfabet-scroll-section {
        padding: 80px 0;
    }
    
    .alfabet-scroll-heading {
        top: 80px;
        padding: 0 0 100px 0;
    }
    
    .alfabet-scroll-heading h2 {
        font-size: 2.5rem;
    }
    
    .alfabet-scroll-cylinder {
        height: 280px;
    }
    
    .alfabet-scroll-item-text {
        font-size: 1.5rem;
        padding: 25px;
        border-radius: 15px;
    }
    
    .alfabet-scroll-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .alfabet-scroll-section {
        padding: 60px 0;
    }
    
    .alfabet-scroll-heading {
        top: 70px;
        padding: 0 0 80px 0;
    }
    
    .alfabet-scroll-heading h2 {
        font-size: 2rem;
    }
    
    .alfabet-scroll-cylinder {
        height: 240px;
    }
    
    .alfabet-scroll-item-text {
        font-size: 1.25rem;
        padding: 20px;
    }
    
    .alfabet-scroll-section::after {
        font-size: 1.5rem;
        bottom: 30px;
    }
    
    .alfabet-scroll-container {
        padding-bottom: 60px;
    }
    
    .alfabet-scroll-progress {
        bottom: 15px;
        gap: 6px;
    }
    
    .alfabet-scroll-progress-dot {
        width: 8px;
        height: 8px;
    }
}
