/* Responsive Design for IW-Portfolio */

/* ==========================================================================
   Ultra Large Screens (< 1600px)
   ========================================================================== */
@media (max-width: 1600px) {
    .new-hero h1 {
        font-size: 90px;
        /* Scale down so it doesn't get hidden behind 3D model */
    }

    .new-container {
        max-width: 1350px;
    }

    .new-project-details-section,
    .new-golden-harbour-section {
        padding: 80px 0;
    }

    .new-brand-text-header h2 {
        font-size: 74px;
    }

    .new-brand-text-header {
        margin-bottom: 44px;
    }

    .new-mt_100 {
        margin-top: 80px;
    }
}

/* ==========================================================================
   Extra Large Screens (< 1400px)
   ========================================================================== */
@media (max-width: 1441px) {
    .new-hero h1 {
        font-size: 80px;
    }

    .new-hero p {
        font-size: 22px;
    }

    .new-brand-text-header h2 {
        font-size: 75px;
    }

    .new-container {
        max-width: 1270px;
    }

    .new-project-details-section,
    .new-golden-harbour-section {
        padding: 60px 0;
    }

    .new-section-heading {
        font-size: 32px;
        margin: 0 0 20px 0;
    }

    .new-mt_100 {
        margin-top: 60px;
    }
}

/* ==========================================================================
   Desktop / Laptop (< 1200px)
   ========================================================================== */
@media (max-width: 1281px) {
    /*.new-hero h1 {*/
    /*    font-size: 100px;*/
    /*}*/

    .new-hero p {
        font-size: 20px;
    }

    .new-brand-text-header h2 {
        font-size: 64px;
    }

    .new-section-heading {
        font-size: 34px;
    }

    .new-container {
        max-width: 1180px;
    }
}

/* ==========================================================================
   Tablet (< 992px)
   ========================================================================== */
@media (max-width: 992px) {

    /* Layout Adjustments */
    .new-top-row,
    .new-bottom-row {
        flex-direction: column;
        gap: 20px;
    }

    .new-overview-col,
    .new-industry-col,
    .new-challenges-col,
    .new-approach-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .new-brand-text-header {
        flex-direction: column;
        gap: 20px;
    }

    .new-brand-text-header h2,
    .new-brand-text-header p {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Hero Section Stacking (Option A) */
    .new-hero {
        flex-direction: column;
        align-items: flex-start;
        /* height: auto; */
        padding-top: 36px;
    }

    .new-hero-bg-line {
        top: 200px;
    }

    .new-hero-content {
        max-width: 100%;
        margin-bottom: 20px;
        position: relative;
    }

    #canvas-container {
        position: relative;
        /* Stack it below text */
        width: 100vw;
        height: 50vh;
        right: auto;
        left: 0;
    }

    /* Spacing Adjustments */
    .new-mt_100 {
        margin-top: 60px;
    }
}

/* ==========================================================================
   Large Mobile (< 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Typography Scaling */
    .new-hero h1 {
        font-size: 70px;
        margin-bottom: 15px;
    }

    .new-hero p {
        font-size: 20px;
    }

    .new-brand-text-header h2 {
        font-size: 50px;
    }

    .new-section-heading {
        font-size: 28px;
    }

    /* Spacing */
    .new-container {
        padding: 0 20px;
    }

    /* Zoom Hint adjustment */
    #zoom-hint {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 11px;
    }

    .new-products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ==========================================================================
   Small Mobile (< 576px)
   ========================================================================== */
@media (max-width: 576px) {

    /* Typography Scaling */
    .new-hero h1 {
        font-size: 32px;
    }

    .new-hero p {
        font-size: 16px;
    }

    .new-brand-text-header h2 {
        font-size: 36px;
    }

    .new-section-heading {
        font-size: 24px;
        margin-bottom: 12px;
    }

    /* Spacing Adjustments */
    .new-mt_100 {
        margin-top: 40px;
    }

    .new-services-tags .new-tag {
        font-size: 13px;
        padding: 8px 16px;
    }

    .new-project-details-section p,
    .new-project-details-section li {
        font-size: 14px;
        line-height: 1.6;
    }

    .new-project-details-section h3 {
        margin: 0 0 8px 0;
    }


    .new-threejs-model-container {
        position: relative;
    }


    .new-threejs-model-container::after {
        content: '';
        position: absolute;
        background-color: transparent;
        height: 80px;
        width: 100%;
        left: 0;
        top: 0;
        z-index: 2;
    }

    .new-threejs-model-container::before {
        content: '';
        position: absolute;
        background-color: transparent;
        height: 100%;
        width: 80px;
        right: 0;
        top: 0;
        z-index: 2;
    }

    .left-bar {
        content: '';
        position: absolute;
        background-color: transparent;
        height: 100%;
        width: 80px;
        left: 0;
        top: 0;
        z-index: 2;
    }
    
        .new-connect-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .new-connect-title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .new-connect-section {
        padding: 60px 0;
    }

}