/* This CSS file fixes the infinite scrolling issue and ensures proper document dimensions */

html, body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Special fix for Samsung Galaxy devices */
@media screen and (min-width: 400px) and (max-width: 420px) {
    html, body {
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        position: relative !important;
    }
}

footer {
    margin-bottom: 0;
}

/* Ensure no element creates excess vertical space */
.cursor-follower, .cursor, .scroll-progress {
    position: fixed; /* Use fixed instead of absolute */
    pointer-events: none; /* Prevent interference with page elements */
    z-index: 9999;
}

/* Scroll to top button needs pointer events */
.scroll-to-top {
    position: fixed;
    pointer-events: auto !important; /* Enable clicking */
    z-index: 9999;
}

/* Ensure no excess height in container divs */
.container {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Fix potential spacing issues in sections */
section:last-of-type {
    margin-bottom: 0;
}

/* Fix for any hidden elements that might be causing extra space */
[style*="display:none"], [style*="display: none"] {
    position: absolute;
    visibility: hidden;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
