/* Disable horizontal scrolling across the whole site on mobile */
html,
body {
    /* Provide overflow-x hidden on root for main pages */
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure images and videos are responsive */
img,
video {
    max-width: 100%;
    height: auto;
}

/* The hero section needs margin and padding fixes for mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        min-height: auto;
    }

    .hero-preview {
        margin: 2rem auto 0 auto !important;
        width: 100% !important;
        transform: none !important;
    }

    .preview-window {
        width: 100% !important;
        height: auto !important;
        min-height: 250px !important;
        border-radius: var(--radius-lg) !important;
    }

    .preview-content {
        min-height: 250px !important;
    }

    /* Nav Links fixing */
    .navbar {
        padding: 10px 15px !important;
    }

    .navbar-nav {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        /* give scrollbar room */
        justify-content: flex-start;
    }

    /* Features Grid fixes */
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem !important;
    }

    .feature-card {
        width: 100%;
        margin: 0;
    }
}