/* 
 * Metalink - Responsive Styles 
 * Media Queries for different breakpoints
 */

/* Mobile Devices (< 576px) */
@media (max-width: 575.98px) {
    :root {
        --spacing-xl: 2rem;
    }

    /* Navbar Mobile Styles */
    .navbar {
        padding: 0 20px;
    }

    .navbar-logo {
        width: 180px;
        justify-content: flex-start;
    }

    .navbar-menu {
        display: none;
    }

   

    /* Hero Section Mobile Styles */
    #section-2 {
        height: auto;
        padding: 20px 0;
    }

    .section-2 {
        height: 420px;
        width: 94%;
        margin: 0 auto;
        border-radius: 30px;
        padding: 20px 25px;
        background-position: 95% center; /* Shift focus to the left side of the image */
        justify-content: flex-start; /* Align content towards top */
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        background-size: cover;
    }

    .hero-title {
        font-size: 24px;
        text-align: left;
        line-height: 1.4;
        margin-bottom: 30px;
        width: 100%;
        color: white;
        font-family: 'Gotham Black', sans-serif;
 /* Adjust right padding to prevent text from hitting the edge */
    }

    .hero-title br {
        display: block;
    }

    .animated-line {
        display: inline-block;
        width: auto;
        white-space: normal; /* Enable natural text wrapping */
        overflow-wrap: break-word; /* Ensure long words break if needed */
        margin-bottom: 5px;
    }

    .animated-line span {
        display: inline;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }

    .highlight-text {
        background-color: #22409a !important;
        color: white;
        padding: 4px 10px;
        border-radius: 4px;
        display: inline-block;
        margin: 0;
        box-shadow: none;
    }

    .hero-btn {
        margin-top: auto; /* Push to bottom of container if needed, or keep relative */
        margin-bottom: 20px;
        padding: 12px 25px;
        font-size: 17px;
        min-width: 160px;
        border-radius: 8px;
        text-align: center;
        background-color: #22409a;
        font-family: 'Gotham Book', sans-serif;
    }

    /* Partners Support Section */
    .partners-support-section {
        padding: 60px 0;
        overflow: hidden;
    }

    .partners-support-container {
        flex-direction: column;
        gap: 40px;
        text-align: left;
        width: 92%;
    }

    .partners-support-left, .partners-support-right {
        width: 100%;
    }

    .partners-support-heading {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .partners-support-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .partners-support-list li {
        text-align: left;
        font-size: 17px;
        margin-bottom: 16px;
    }

    .partners-support-subtext {
        font-size: 15px;
        margin-top: 16px;
    }

    .partners-support-right {
        justify-content: flex-start;
    }

    .vision-box-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .vision-box {
        padding: 24px 20px;
        text-align: left;
    }

    .vision-text {
        font-size: 16px;
        line-height: 1.5;
    }

    .vision-line {
        display: block;
        position: absolute;
        right: -60vw;
        top: 50%;
        width: 60vw;
        height: 16px;
        background: linear-gradient(90deg, #22409A, rgba(34, 64, 154, 0.2));
        transform: translateY(-50%);
    }

    /* ---- About Us Section (section-3) ---- */
    #section-3 {
        height: auto;
        flex-direction: column-reverse;
        padding: 30px 0 20px;
        background-size: cover;
    }

    /* Image area: stacked overlapping cards */
    .section-3-box1 {
        width: 100%;
        height: 360px;
        position: relative;
        margin-top: 40px; 
    }

    /* Top-left border card (background accent) */
    .section-3-box1-inner-box1 {
        height: 180px;
        width: 70%;
        margin-left: -30px; /* Move out of frame to the left */
        margin-top: 10px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        border-radius: 12px;
        border: 2px solid var(--secondary-color);
    }

    /* Top image over the border card */
    .section-3-box1-inner-box1-img {
        height: 180px;
        width: 70%;
        margin: 0;
        position: absolute;
        top: 15px;
        left: -15px; /* Move out of frame to the left */
        z-index: 2;
        border-radius: 12px;
        background-position: center;
        background-size: cover;
    }

    /* Bottom blue card (background accent) */
    .section-3-box1-inner-box2 {
        height: 180px;
        width: 75%;
        margin: 0;
        position: absolute;
        top: 140px;
        right: 0;
        left: auto;
        z-index: 3;
        border-radius: 12px;
        background-color: var(--primary-color);
    }

    /* Bottom image over the blue card */
    .section-3-box1-inner-box2-img {
        height: 180px;
        width: 75%;
        margin: 0;
        position: absolute;
        top: 130px;
        right: 15px;
        left: auto;
        z-index: 4;
        border-radius: 12px;
        background-position: center;
        background-size: cover;
    }

    /* Text content area */
    .section-3-box2 {
        width: 92%;
        height: auto;
        margin: 0 auto 10px; 
        padding-right: 20px; /* Prevent text touching right side */
    }

    .section-3-box2-inner-box1 {
        flex-direction: row;
        gap: 24px;
        margin: 20px 0 20px 0;
        margin-left: 0;
    }

    .section-3-box2-inner-box2 {
        width: 100%;
        height: auto;
        margin-left: 0;
    }

    .section-3-box2-inner-box2 h1 {
        font-size: 34px;
    }

    .section-3-box2-inner-box2 p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* ---- Litmus Industries Section (section-5) ---- */
    #section-5 {
        height: auto;
        padding: 40px 0;
        background-color: #ffffff;
    }

    .section-5 {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 0; /* No left/right padding so logo is flush left */
        gap: 24px;
    }

    .section-5-box1 {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .section-5-box1-content {
        height: auto;
        width: auto;
        flex-shrink: 0;
    }

    .s5-litmus-img {
        max-width: 120px;
        height: auto;
        display: block;
    }

    .section-5-counter {
        margin-left: 0;
        gap: 4px;
        align-items: baseline;
    }

    .section-5-box1 .section-5-box1-heading {
        font-size: 72px;
    }

    .section-5-years {
        font-size: 16px;
        margin-left: -8px;
    }

    .section-5-box2 {
        width: 100%;
        height: auto;
        margin-left: 0;
        padding: 0 20px; /* Padding only on text area */
    }

    .section-5-box2 h1 {
        font-size: 28px;
        line-height: 1.25;
        white-space: normal; /* Enable natural text wrapping */
        overflow-wrap: break-word; /* Ensure long words break if needed */
        display: inline; /* Keep text flowing naturally */
    }

    .section-5-box2 p {
        font-size: 14px;
        line-height: 1.7;
    }

    .section-5-box2 p:first-of-type {
        margin-top: 20px; /* Restores missing spacing below headings */
    }

    /* ---- Manufacturing Strength Section (section-7) ---- */
    #section-7 {
        height: auto;
        padding: 40px 0;
    }

    .section-7 {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 30px;
        padding: 0 16px;
    }

    .section-7-box1 {
        width: 100%;
        text-align: center;
    }

    .section-7-box1 h1 {
        font-size: 24px;
        line-height: 1.3;
        text-align: center;
    }

    .brand-block {
        margin-top: 24px;
        justify-content: center;
    }

    .brand-block img {
        max-width: 200px;
    }

    .section-7-box2 {
        width: 100%;
    }

    .row {
        gap: 12px;
        margin-bottom: 12px;
        justify-content:center;
    }

    .card {
        width: 47%;
        height: auto;
        min-height: 100px;
        font-size: 14px;
        text-align: center;
        padding: 12px 10px;
    }
}

/* Extra small devices (< 425px) */
@media (max-width: 425px) {
    .section-2 {
        padding: 30px 20px; /* Reduced right and left padding */
    }
    
    .hero-title {
        font-size: 20px;
    }
}

/* Extra small devices (< 425px) */
@media (max-width: 348px) {
    .section-2 {
        padding: 20px 10px; /* Reduced right and left padding */
    }
    
    .hero-title {
        font-size: 18px;
    }
}


/* Initially hide mobile menu icon on desktop */
.mobile-menu-icon {
    display: none;
}

/* Small devices — gap filler (576px – 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {

    /* Navbar */
    .navbar {
        padding: 0 24px;
    }
    .navbar-menu {
        display: none;
    }

    /* Hero Section */
    #section-2 {
        height: auto;
        padding: 24px 0;
    }

    .section-2 {
        height: 520px;
        width: 95%;
        margin: 0 auto;
        border-radius: 25px;
        padding: 50px 35px;
        background-position: center;
        background-size: cover;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 0.9;
        margin-bottom: 0;
        white-space: normal;
    }

    .animated-line {
        display: block;
        white-space: normal;
        overflow: visible;
    }

    .animated-line span {
        display: inline;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }

    .highlight-text {
        background-color: #22409a !important;
        color: white;
        padding: 4px 10px;
        border-radius: 4px;
        display: inline-block;
    }

    .hero-btn {
        margin-top: 0;
        margin-bottom: 10px;
        padding: 12px 28px;
        font-size: 17px;
        border-radius: 10px;
        background-color: #22409a;
    }

    /* Partners Support Section */
    .partners-support-section {
        padding: 60px 0;
        overflow: hidden;
    }

    .partners-support-container {
        flex-direction: column;
        gap: 40px;
        text-align: left;
        width: 90%;
    }

    .partners-support-left,
    .partners-support-right {
        width: 100%;
    }

    .partners-support-heading {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .partners-support-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .partners-support-list li {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .partners-support-subtext {
        font-size: 16px;
    }

    .partners-support-right {
        justify-content: flex-start;
    }

    .vision-box-wrapper {
        width: 100%;
        max-width: 420px;
    }

    .vision-box {
        padding: 28px 24px;
        text-align: left;
    }

    .vision-text {
        font-size: 17px;
        line-height: 1.55;
    }

    .vision-line {
        display: block;
        position: absolute;
        right: -60vw;
        top: 50%;
        width: 60vw;
        height: 16px;
        background: linear-gradient(90deg, #22409A, rgba(34, 64, 154, 0.2));
        transform: translateY(-50%);
    }

    /* About Us Section (section-3) — same layout as tablet */
    #section-3 {
        height: auto;
        flex-direction: column-reverse;
        padding: 40px 0 80px;
        gap: 20px;
        align-items: center;
        background-size: cover;
    }

    .section-3-box1 {
        width: 480px;
        height: 420px;
        margin-top: 30px;
        margin-left: -120px; /* Shift outside left, same style as tablet */
        transform: scale(1.05);
        transform-origin: left center;
    }

    /* Reset inner boxes to their desktop defaults so tablet layout works */
    .section-3-box1-inner-box1 {
        height: 270px;
        width: 400px;
        margin-left: 20px;
        margin-top: 20px;
        position: static;
        border: 2px solid var(--secondary-color);
        border-radius: 15px;
    }

    .section-3-box1-inner-box1-img {
        height: 270px;
        width: 450px;
        position: static;
        margin-left: -40px;
        margin-top: -280px;
        border-top-right-radius: 14px;
        border-bottom-right-radius: 14px;
        border-radius: 14px;
        background-position: center;
        background-size: cover;
    }

    .section-3-box1-inner-box2 {
        height: 270px;
        width: 400px;
        background-color: var(--primary-color);
        margin-top: -80px;
        margin-left: 180px;
        border-radius: 15px;
        position: static;
        top: auto;
        right: auto;
        left: auto;
    }

    .section-3-box1-inner-box2-img {
        height: 270px;
        width: 380px;
        position: static;
        margin-left: 175px;
        margin-top: -280px;
        border-radius: 15px;
        background-position: center;
        background-size: cover;
    }

    .section-3-box2 {
        width: 88%;
        height: auto;
        margin: 0 auto 10px;
        padding-right: 20px; /* Prevent text touching right side */
    }

    .section-3-box2-inner-box1 {
        flex-direction: row;
        gap: 30px;
        margin: 20px 0;
        margin-left: 0;
    }

    .section-3-box2-inner-box2 {
        width: 100%;
        height: auto;
        margin-left: 0;
    }

    .section-3-box2-inner-box2 h1 {
        font-size: 38px;
    }

    .section-3-box2-inner-box2 p {
        font-size: 16px;
        line-height: 1.7;
    }

    /* Litmus Industries Section (section-5) */
    #section-5 {
        height: auto;
        padding: 40px 0;
        background-color: #ffffff;
    }

    .section-5 {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 0;
        gap: 24px;
    }

    .section-5-box1 {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .section-5-box1-content {
        height: auto;
        width: auto;
        flex-shrink: 0;
    }

    .s5-litmus-img {
        max-width: 130px;
        height: auto;
        display: block;
    }

    .section-5-counter {
        margin-left: 0;
        gap: 6px;
        align-items: baseline;
    }

    .section-5-box1 .section-5-box1-heading {
        font-size: 80px;
    }

    .section-5-years {
        font-size: 18px;
        margin-left: -10px;
    }

    .section-5-box2 {
        width: 100%;
        height: auto;
        margin-left: 0;
        padding: 0 24px;
    }

    .section-5-box2 h1 {
        font-size: 30px;
        line-height: 1.25;
        white-space: normal; /* Enable natural text wrapping */
        overflow-wrap: break-word; /* Ensure long words break if needed */
        display: inline; /* Keep the span inline */
    }

    .section-5-box2 p {
        font-size: 15px;
        line-height: 1.7;
    }

    .section-5-box2 p:first-of-type {
        margin-top: 20px; /* Restores missing spacing below headings */
    }
}

/* Tablets (≥ 768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section Tablet Styles */
    #section-2 {
        height: auto;
        padding: 30px 0;
    }

    .section-2 {
        height: 700px; /* Taller height for tablet as shown in image */
        width: 95%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Space in middle */
        align-items: flex-start;
        padding: 60px 45px;
        background-position: center;
        background-size: cover;
        border-radius: 25px;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .hero-btn {
        margin-top: 0;
        margin-bottom: 10px;
    }

    /* ---- Litmus Industries Section (section-5) Tablet ---- */
    #section-5 {
        height: auto;
        padding: 50px 0;
        background-color: #ffffff;
    }

    .section-5 {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 0; /* No left/right padding so logo is flush left */
        gap: 30px;
    }

    .section-5-box1 {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }

    .section-5-box1-content {
        height: auto;
        width: auto;
        flex-shrink: 0;
    }

    .s5-litmus-img {
        max-width: 140px;
        height: auto;
        display: block;
    }

    .section-5-counter {
        margin-left: 0;
        gap: 8px;
        align-items: baseline;
    }

    .section-5-box1 .section-5-box1-heading {
        font-size: 90px;
    }

    .section-5-years {
        font-size: 20px;
        margin-left: -12px;
    }

    .section-5-box2 {
        width: 100%;
        height: auto;
        margin-left: 0;
        padding: 0 40px; /* Padding only on text area */
    }

    .section-5-box2 h1 {
        font-size: 36px;
        line-height: 1.2;
        white-space: normal; /* Enable natural text wrapping */
        overflow-wrap: break-word; /* Ensure long words break if needed */
        display: inline; /* Keep the span inline */
    }

    .section-5-box2 p {
        font-size: 16px;
        line-height: 1.75;
    }

    .section-5-box2 p:first-of-type {
        margin-top: 20px; /* Restores missing spacing below headings */
    }

    /* About Us Section Tablet Styles */
    #section-3 {
        height: auto;
        flex-direction: column-reverse;
        padding: 50px 0 100px 0; /* Added space at the bottom */
        gap: 20px;
        align-items: center;
    }

    .section-3-box1 {
        width: 580px; 
        height: 450px;
        margin-top: 30px;
        margin-left: -180px; /* Shift outside the frame towards left */
        transform: scale(1.1); /* Make it bigger */
        transform-origin: left center;
    }

    .section-3-box2 {
        width: 90%;
        height: auto;
        margin: 0 auto;
        padding-right: 20px; /* Prevent text touching right side */
        text-align: left;
    }

    .section-3-box2-inner-box1 {
        margin-left: 0;
        justify-content: flex-start;
        gap: 40px;
    }

    .section-3-box2-inner-box2 {
        width: 100%;
        margin-left: 0;
    }

    .section-3-box2-inner-box2 h1 {
        font-size: 40px;
    }

    .section-3-box2-inner-box2 p {
        font-size: 18px;
    }
}


/* Laptops (992px – 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

    /* About Us Section — scale down for smaller laptops */
    #section-3 {
        height: auto;
        min-height: 600px;
        padding: 40px 0;
        justify-content: center;
        align-items: center;
        padding-right: 80px; /* Restored safety gutter */
        box-sizing: border-box;
    }

    .section-3-box1 {
        width: 420px;
        height: 380px;
        flex-shrink: 0;
    }

    .section-3-box1-inner-box1 {
        height: 210px;
        width: 300px;
        margin-left: 15px;
        margin-top: 15px;
    }

    .section-3-box1-inner-box1-img {
        height: 210px;
        width: 340px;
        margin-left: -30px;
        margin-top: -220px;
    }

    .section-3-box1-inner-box2 {
        height: 210px;
        width: 300px;
        margin-top: -60px;
        margin-left: 150px;
    }

    .section-3-box1-inner-box2-img {
        height: 210px;
        width: 300px;
        margin-left: 140px;
        margin-top: -220px;
    }

    .section-3-box2 {
        height: auto;
        width: auto;
        flex: 1;
        margin-left: 60px; /* Restored 60px gap */
        min-width: 0;
        padding-right: 20px; 
        box-sizing: border-box;
    }

    .section-3-box2-inner-box1 {
        margin-left: 0;
        gap: 30px;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .section-3-box2-inner-box2 {
        width: 100%;
        max-width: 650px;
        height: auto;
        margin-left: 0;
        box-sizing: border-box;
    }

    .section-3-box2-inner-box2 h1 {
        font-size: 38px;
    }

    .section-3-box2-inner-box2 p {
        font-size: 16px;
        line-height: 1.65;
    }

    /* ---- Litmus Industries Section (section-5) — 992px–1199px ---- */
    #section-5 {
        height: auto;
        padding: 50px 0;
        background-color: #ffffff;
    }

    .section-5 {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 0;
        gap: 28px;
        margin-left: 0; /* Remove any inherited left margin */
    }

    .section-5-box1 {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 28px;
    }

    .section-5-box1-content {
        height: auto;
        width: auto;
        flex-shrink: 0;
    }

    .s5-litmus-img {
        max-width: 135px;
        height: auto;
        display: block;
    }

    .section-5-counter {
        margin-left: 0;
        gap: 7px;
        align-items: baseline;
    }

    .section-5-box1 .section-5-box1-heading {
        font-size: 85px;
    }

    .section-5-years {
        font-size: 19px;
        margin-left: -11px;
    }

    .section-5-box2 {
        width: 100%;
        height: auto;
        margin-left: 0;
        padding: 0 32px;
        box-sizing: border-box;
    }

    .section-5-box2 h1 {
        font-size: 32px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: break-word;
        display: inline;
    }

    .section-5-box2 p {
        font-size: 15px;
        line-height: 1.72;
    }

    .section-5-box2 p:first-of-type {
        margin-top: 20px;
    }
}

/* Mid-desktops & Desktops (1160px – 1920px) */
@media (min-width: 1160px) {

    /* About Us Section — matching the 4-line paragraph layout with fluid safety */
    #section-3 {
        height: auto;
        min-height: 650px;
        align-items: center;
        padding-right: 80px; /* Restored safety gutter */
        box-sizing: border-box;
    }

    .section-3-box1 {
        width: 580px;
        height: 450px;
        flex-shrink: 0;
        margin-left: 20px;
    }

    .section-3-box1-inner-box1 {
        height: 270px;
        width: 400px;
        margin-left: 20px;
        margin-top: 20px;
    }

    .section-3-box1-inner-box1-img {
        height: 270px;
        width: 450px;
        margin-left: -40px;
        margin-top: -280px;
    }

    .section-3-box1-inner-box2 {
        height: 270px;
        width: 400px;
        margin-top: -80px;
        margin-left: 200px;
    }

    .section-3-box1-inner-box2-img {
        height: 270px;
        width: 400px;
        margin-left: 190px;
        margin-top: -280px;
    }

    .section-3-box2 {
        height: auto;
        width: auto;
        flex: 1;
        max-width: 750px; 
        margin-left: 60px; /* Restored 60px gap */
        min-width: 0;
        padding-right: 40px;
        box-sizing: border-box;
    }

    .section-3-box2-inner-box1 {
        margin-left: 0;
        gap: 60px;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .section-3-box2-inner-box2 {
        width: 100%;
        max-width: 650px;
        height: auto;
        margin-left: 0;
        box-sizing: border-box;
    }

    .section-3-box2-inner-box2 h1 {
        font-size: 48px;
    }

    .section-3-box2-inner-box2 p {
        font-size: 18px; /* Increased for the requested look */
        line-height: 1.7;
        color: #383838;
    }
}

/* Large screens — grow gap between images and text in About Us */
@media (min-width: 1500px) {
    .section-3-box2 {
        margin-left: 100px;
    }
}

@media (min-width: 1700px) {
    .section-3-box2 {
        margin-left: 140px;
    }
}

@media (min-width: 1920px) {
    .section-3-box2 {
        margin-left: 180px;
    }
}

