/* Overflow and Scrollbar Fixes */

/* Mobile: Hide all scrollbars */
@media (max-width: 767px) {
    * {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    *::-webkit-scrollbar {
        display: none;  /* Chrome, Safari, Opera */
    }
}

/* Desktop: Show scrollbar */
@media (min-width: 768px) {
    html, body {
        -ms-overflow-style: auto !important;
        scrollbar-width: thin !important;
    }
    
    body::-webkit-scrollbar {
        display: block !important;
        width: 10px;
    }
    
    body::-webkit-scrollbar-track {
        background: #0a0e27;
    }
    
    body::-webkit-scrollbar-thumb {
        background: #3B82F6;
        border-radius: 5px;
    }
    
    body::-webkit-scrollbar-thumb:hover {
        background: #2563eb;
    }
}

/* Exception: Keep scrollbar for testimonials horizontal scroll */
.testimonials-scroll {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
}

.testimonials-scroll::-webkit-scrollbar {
    display: block;
    height: 6px;
}

/* Prevent horizontal overflow */
html {
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
}

body {
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
}

section {
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
}

/* Fix floating stats on mobile */
@media (max-width: 767px) {
    .floating-stat {
        display: none;
    }
    
    .hero-bg-logo {
        right: -20%;
        width: 60%;
    }
}

/* Ensure all images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix phone mockups */
.phone-mockup {
    max-width: 100%;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fix any grid overflow */
.proof-grid,
.steps-grid,
.features-grid,
.benefits-grid,
.streaks-grid {
    width: 100%;
    max-width: 100%;
}

/* Clean mobile spacing */
@media (max-width: 767px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    section {
        padding-left: 0;
        padding-right: 0;
    }
}
