/*
Theme Name: Hub Child
Theme URI: http://hub.liquid-themes.com/
Author: Liquid Themes
Author URI: https://themeforest.net/user/liquidthemes
Template: hub
Description: Smart, Powerful and Unlimited Customizable WordPress Theme.
Version: 1.0
License: GNU General Public License
License URI: license.txt
Text Domain: hub-child
Tags: responsive, retina, rtl-language-support, blog, portfolio, custom-colors, live-editor
*/

#ascrollhome {
    background-color: #eef6fa !important;
    border-bottom-width: 0px !important;
    min-height: auto !important;
}

#ascrolltop {
    position: relative;
    top: 0;
    min-height: 600px;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

#ascrollbottom {
    position: absolute;
    top: 0;
    min-height: 600px;
    height: 100vh;
}

#ascrolltop .ld-container,
#ascrollbottom .ld-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Add these for smoother rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0); /* Force hardware acceleration */
}

#ascrollspacer {
    height: 100vh;
    min-height: 600px;
}

#ascrolltop .row-bg {
    left: 15px;
    max-width: calc(100% - 30px);
    border-radius: 0 0 50px 50px;
}

/* Force GPU acceleration for smooth scrolling */
#ascrollhome * {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Additional smoothing for text elements */
#ascrolltop h1,
#ascrollbottom h1 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed; /* Prioritize speed over quality for scrolling */
}

/* fixed height for inner pages */
body:not(.home) #ascrolltop,
body:not(.home) #ascrollbottom,
body:not(.home) #ascrollspacer {
    height: 100vh;
    min-height: 100vh;
    padding-top: 300px !important;
}

@media screen and (max-width: 768px){
    #ascrolltop, #ascrollbottom {
        min-height: 400px;
        height: 80vh;
        top: 0;
    }
    
    body:not(.home) #ascrolltop,
    body:not(.home) #ascrollbottom,
    body:not(.home) #ascrollspacer {
        height: 50vh;
        min-height: 50vh;
        padding-top: 110px ! important;
    }
    
    body.home #ascrolltop,
    body.home #ascrollbottom,
    body.home #ascrollspacer {
        height: 60vh;
        min-height: 60vh;
        padding-top: 110px ! important;
    }
    
    #ascrolltop h1, #ascrollbottom h1 {
        font-size: clamp(2rem, 1.0695rem + 3.6313vw, 2.8125rem);
    }
}

#ascrolltop .row-bg:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.25);
    border-radius: 0 0 50px 50px;
}

#ascrollbottom + .wpb_raw_html {
    margin-bottom: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    #ascrolltop . ld-container,
    #ascrollbottom .ld-container {
        transform: none !important;
    }
}
