/* Locomotive Scroll styles */
html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent body scrolling while scrolling horizontally */
body.is-scrolling-horizontally {
    overflow: hidden;
}

/* Horizontal scroll section styles */
.horizontal-scroll-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Set a fixed height for the horizontal section - adjust as needed */
    margin: 40px 0; /* Space between vertical content */
    overflow: hidden;
    /* Visual indicator that this section requires horizontal scrolling */
    cursor: ew-resize;
}

/* Visual indicator when a horizontal section is completed */
.horizontal-scroll-section.scroll-complete {
    /* Change cursor to indicate vertical scrolling is now possible */
    cursor: default;
}

/* Add a subtle hint arrow to indicate horizontal scrolling is needed */
.horizontal-scroll-section::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: rgba(0, 0, 0, 0.4);
    animation: pulse 1.5s infinite;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Hide the arrow when scrolling is complete */
.horizontal-scroll-section.scroll-complete::after {
    opacity: 0;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* The container that will scroll horizontally */
.horizontal-scroll-container {
    position: absolute;
    height: 100%;
    display: flex;
    will-change: transform;
}

/* Individual panels within the horizontal scroll */
.horizontal-scroll-panel {
    position: relative;
    min-width: 100vw; /* Each panel is at least one viewport wide */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: Custom styles for alternating panels */
.horizontal-scroll-panel:nth-child(odd) {
    background-color: #f8f9fa;
}

.horizontal-scroll-panel:nth-child(even) {
    background-color: #e9ecef;
}

/* Container for content within each panel */
.horizontal-scroll-content {
    padding: 2rem;
    max-width: 80%;
    /* Allow scrolling within the content if needed */
    overflow-y: auto; 
    /* Prevent horizontal scrolling of the content */
    overflow-x: hidden;
    /* Ensure smooth scrolling */
    -webkit-overflow-scrolling: touch;
}

/* When locomotive scroll is active on a specific section */
[data-locomotive-instance="true"] {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .horizontal-scroll-section {
        height: 50vh; /* Shorter on mobile */
    }
    
    .horizontal-scroll-content {
        max-width: 90%;
        padding: 1rem;
    }
}
