/* Responsive layout adjustments for the Lochness Group website */

/* Hero section flex container */
.hero-flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1 1 50%;
    order: 1;
    min-width: 300px;
    padding-right: 30px;
}

.lochness-wordcloud {
    flex: 1 1 50%;
    order: 2;
    position: relative;
}

/* For medium and smaller screens, rearrange the order */
@media (max-width: 991px) {
    .hero-flex-container {
        flex-direction: column;
    }

    .hero-content {
        order: 2;
        text-align: center;
        width: 100%;
        padding-right: 0;
        margin-top: -30px;
        /* Negative margin to pull it up closer */
        flex: 0 0 auto;
        /* Prevent shrinking */
    }

    .lochness-wordcloud {
        order: 1;
        width: 100%;
        height: 280px;
        /* Reduced from 400px to match actual visual height */
        margin-bottom: 0;
        transform: scale(0.9);
        margin-top: -30px;
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
        /* Prevent shrinking */
    }

    /* Reset hero height to auto to prevent overlapping content */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }

    /* Adjust hero section padding to bring content closer to navbar */
    .hero.parallax-section {
        padding-top: 120px;
        /* More padding top for navbar clearance */
    }

    .scroll-indicator {
        position: relative;
        /* Change from absolute to flow naturally */
        margin-top: 40px;
        bottom: auto;
    }

    /* Force the AIOps section to clear below the wordcloud */
    .clearfix {
        clear: both;
        display: block;
        width: 100%;
        height: 15px;
        /* Add some space */
    }
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .lochness-wordcloud {
        transform: scale(0.8);
        margin-top: -40px;
        /* Move even closer to navbar on very small screens */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .word {
        font-size: 90%;
    }

    /* Ensure proper spacing between sections */
    .hero-content {
        margin-top: -30px;
        /* Keep consistent with larger mobile breakpoint */
    }

    /* Adjust hero section padding for smaller screens */
    .hero.parallax-section {
        padding-top: 120px;
        /* Maintain navbar clearance */
        padding-bottom: 80px;
    }
}