/* Custom Responsive Fixes for Hero Image */

/* Base hero image styles */
.hero-area .hero-banner img {
    max-width: 100%;
    height: auto;
    margin-top: 0;
}

/* XXL Screens (1400px and above) */
@media only screen and (min-width: 1400px) {
    .hero-area .hero-banner {
        right: 80px !important;
        top: 200px !important;
        width: 35% !important;
        max-width: 500px !important;
    }
    
    .hero-area .hero-banner img {
        max-width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
    }
}

/* Large Screens (1200px - 1399px) */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .hero-area .hero-banner {
        right: 40px !important;
        top: 220px !important;
        width: 38% !important;
        max-width: 450px !important;
    }
    
    .hero-area .hero-banner img {
        max-width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
    }
}

/* Medium Screens (768px - 1199px) */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .hero-area .hero-banner {
        right: 20px !important;
        top: 250px !important;
        width: 42% !important;
        max-width: 400px !important;
    }
    
    .hero-area .hero-banner img {
        max-width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
    }
}

/* Small Screens (576px - 767px) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .hero-area .hero-banner {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 350px !important;
        margin: 30px auto 0 !important;
        text-align: center !important;
    }
    
    .hero-area .hero-banner img {
        max-width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
    }
    
    .hero-area .hero-content {
        text-align: center !important;
        margin-bottom: 30px !important;
    }
}

/* Extra Small Screens (below 576px) */
@media only screen and (max-width: 575px) {
    .hero-area .hero-banner {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 20px auto 0 !important;
        text-align: center !important;
        display: block !important;
    }
    
    .hero-area .hero-banner img {
        max-width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
    }
    
    .hero-area .hero-content {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .hero-area .hero-content .title {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    
    .hero-area .hero-content .text {
        font-size: 14px !important;
        line-height: 22px !important;
    }
}

/* Fix for hero background images */
@media only screen and (max-width: 767px) {
    .hero-area .hero-bg-left,
    .hero-area .hero-bg-right {
        display: none !important;
    }
    
    .hero-area {
        padding: 80px 0 60px !important;
        text-align: center !important;
    }
}

/* Ensure proper container spacing */
@media only screen and (max-width: 1199px) {
    .hero-area .container {
        padding: 0 15px !important;
    }
}

/* Additional fixes for very large screens */
@media only screen and (min-width: 1600px) {
    .hero-area .hero-banner {
        right: 120px !important;
        top: 180px !important;
        width: 32% !important;
        max-width: 550px !important;
    }
}

/* Ultra-wide screens */
@media only screen and (min-width: 1920px) {
    .hero-area .hero-banner {
        right: 150px !important;
        top: 160px !important;
        width: 30% !important;
        max-width: 600px !important;
    }
}

/* Section Spacing Fixes */
.home5-why-area,
.home3-download-area,
.home3-device-aera {
    padding: 100px 0 !important;
}

/* Ensure consistent spacing between sections */
.hero-area + .home5-why-area,
.home5-why-area + .home3-download-area,
.home3-download-area + .home3-device-aera {
    margin-top: 0 !important;
}

/* Additional spacing improvements */
.hero-area {
    padding: 120px 0 100px !important;
}

/* Ensure consistent container spacing */
.container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Improve section visual separation */
.home5-why-area,
.home3-download-area,
.home3-device-aera {
    position: relative;
}

/* Remove visual separation between sections */
.home5-why-area::before,
.home3-download-area::before,
.home3-device-aera::before {
    display: none !important;
}

/* Navigation Fixes */
.main-menu ul li a.smoothscroll {
    cursor: pointer;
}

/* Fix for navigation from other pages */
.main-menu ul li a[href*="#_"] {
    transition: all 0.3s ease;
}

.main-menu ul li a[href*="#_"]:hover {
    color: #068fe0 !important;
}

/* Ensure the invisible reCAPTCHA badge is visible */
.grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Ensure proper scroll offset for fixed header */
section[id] {
    scroll-margin-top: 100px;
}
