/* Button Styles */

/* Storyboard Navigation */
.storyboard-nav {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 2000;
    pointer-events: none;
}

.storyboard-arrow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.75rem 1rem;
    color: #e0e7ff;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: fit-content;
    justify-content: center;
}

.storyboard-arrow .arrow-text {
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.3s ease;
    white-space: nowrap;
}

.storyboard-arrow:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    gap: 0.5rem;
}

.storyboard-arrow:hover .arrow-text {
    max-width: 200px;
}

.storyboard-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.storyboard-arrow.storyboard-prev {
    position: absolute;
    left: 3px;
    color: #00ff88;
}

.storyboard-arrow.storyboard-next {
    position: absolute;
    right: 3px;
    color: #00d4ff;
}

.arrow-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
}

.arrow-next {
    transform: scaleX(-1);
}

/* Storyboard Section Transitions */
main section {
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

main section.storyboard-hidden {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: auto;
    z-index: 1;
}

main section.storyboard-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 10;
}

/* Increase gaps between sections for cascading effect */
main section:not(:last-child) {
    margin-bottom: 3rem;
}

/* Override default section margins for storyboard mode */
.about {
    margin: 0 2rem 500rem;
}

.services-products {
    margin: 0 2rem 50rem;
}

.pricing {
    margin: 0 2rem 50rem;
}

.learning {
    margin: 0 2rem 50rem;
}

.contact {
    margin: 0 2rem 50rem;
}