/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Anchor offset for fixed navigation */
#main1,
#main2,
#main3,
#main4,
#main5,
#main6,
#main7,
#main8 {
    scroll-margin-top: 100rem;
    padding: 20rem 0;
}

@media screen and (max-width: 768px) {
    /* Applications Page Styles */
    .top-bar{
        background-color: #144279;
        background-image: none;
    }

    .top-bar .hero {
        display: none;
    }

    /* banner */
    .banner{
        width: 100%;
        height: 300rem;
        position: relative;
        overflow: hidden;
        background-color: #ffffff;
    }

    .banner img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }

    .banner-content{
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20rem;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .breadcrumb{
        display: flex;
        align-items: center;
        gap: 8rem;
        padding-top: 15rem;
        font-size: 12rem;
        color: #ffffff;
        position: relative;
        z-index: 2;
        flex-wrap: wrap;
    }

    .breadcrumb-home{
        color: #ffffff;
        text-decoration: none;
        font-size: 12rem;
    }

    .breadcrumb-separator{
        color: #ffffff;
    }

    .breadcrumb-current{
        color: #ffffff;
    }

    .applications-hero{
        position: absolute;
        left: 20rem;
        top: 80rem;
        display: flex;
        flex-direction: column;
        z-index: 2;
    }

    .applications-title{
        font-size: 32rem;
        color: #ffffff;
        margin-bottom: 12rem;
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        font-style: normal;
        line-height: 1.2;
    }

    .applications-description{
        font-size: 16rem;
        color: #ffffff;
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        line-height: 1.3;
    }

    /* main */
    /* Marine Tab Section */
    .marine-tab-section{
        background-color: #ffffff;
        padding: 15rem 0;
    }

    /* Tab Navigation */
    .marine-tab-nav{
        border-bottom: 1px solid #e0e0e0;
        background-color: #ffffff;
    }

    .marine-tab-nav-inner{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        display: flex;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .marine-tab-link{
        padding: 14rem 16rem;
        font-size: 14rem;
        color: #333;
        text-decoration: none;
        position: relative;
        transition: color 0.3s ease;
        font-family: 'Arial', sans-serif;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .marine-tab-link::after{
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3rem;
        background-color: #004a80;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .marine-tab-link:hover::after{
        transform: scaleX(1);
    }

    .marine-tab-link.active{
        font-weight: 700;
    }

    .marine-tab-link.active::after{
        transform: scaleX(1);
    }

    /* Commercial Marine Content Sections */
    .commercial-marine-content{
        background-color: #ffffff;
    }

    .commercial-marine-section{
        padding:0;
    }

    .commercial-marine-inner{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20rem;
        display: flex;
        flex-direction: column;
        gap: 30rem;
    }

    .commercial-marine-section-top .commercial-marine-inner{
        flex-direction: column;
    }

    .commercial-marine-section-bottom .commercial-marine-inner{
        flex-direction: column;
    }

    .commercial-marine-text{
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .commercial-marine-title{
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        font-size: 20rem;
        color: #004a80;
        margin-bottom: 15rem;
        line-height: 1.3;
        text-transform: uppercase;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 20rem;
        padding: 0 20rem;
    }

    .commercial-marine-description{
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 14rem;
        color: rgba(51, 51, 51, 0.8);
        line-height: 1.6;
        max-width: 100%;
    }

    .commercial-marine-subtitle{
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        font-size: 20rem;
        color: #004a80;
        margin-bottom: 20rem;
    }

    .commercial-marine-features{
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .commercial-marine-features li{
        display: flex;
        align-items: flex-start;
        gap: 12rem;
        margin-bottom: 15rem;
    }

    .commercial-marine-features li:last-child{
        margin-bottom: 0;
    }

    .feature-checkmark{
        width: 20rem;
        height: 20rem;
        border-radius: 50%;
        background-color: #e3f2fd;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
    }

    .feature-checkmark::after{
        content: '✓';
        color: #004a80;
        font-size: 12rem;
        font-weight: bold;
    }

    .feature-text{
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 13rem;
        color: rgba(51, 51, 51, 0.7);
        flex: 1;
        line-height: 1.5;
    }

    .commercial-marine-image{
        flex: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
    }

    .commercial-marine-image img{
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .commercial-marine-video{
        flex: 1;
        max-width: 100%;
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .commercial-marine-video video{
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    /* Vessel Selection Section */
    .vessel-selection-section{
        background-color: #007fc8;
        padding: 30rem 0 40rem;
    }

    .vessel-selection-inner{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20rem;
    }

    .vessel-selection-instruction{
        font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
        font-weight: 700;
        font-size: 20rem;
        color: #ffffff;
        text-align: center;
        margin-bottom: 30rem;
        line-height: 1.3;
    }

    .vessel-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20rem;
    }

    .vessel-item{
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .vessel-item:hover{
        transform: translateY(-5rem);
    }

    .vessel-image{
        width: 100%;
        margin-bottom: 15rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vessel-image img{
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .vessel-label{
        font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
        font-weight: 700;
        font-size: 16rem;
        color: #ffffff;
        text-align: center;
        margin: 0;
        line-height: 1.3;
    }

    /* Applications Section */
    .applications-section{
        background-color: #ffffff;
        padding: 40rem 0;
    }

    .applications-inner{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20rem;
    }

    .applications-main-title{
        font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
        font-weight: 700;
        color: #144279;
        font-size: 20rem;
        text-align: center;
        margin-bottom: 15rem;
        text-transform: uppercase;
        line-height: 1.3;
    }

    .applications-subtitle{
        font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
        font-weight: 700;
        color: #144279;
        font-size: 14rem;
        text-align: center;
        margin-bottom: 30rem;
        line-height: 1.4;
    }

    .applications-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16rem;
        margin-bottom: 40rem;
    }

    .application-card{
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease;
    }

    .application-image{
        width: 100%;
        height: 150rem;
        overflow: hidden;
        margin-bottom: 15rem;
    }

    .application-image img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .application-title{
        font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
        font-weight: 700;
        color: #144279;
        font-size: 14rem;
        margin-bottom: 15rem;
        line-height: 1.4;
    }

    .application-arrow{
        width: 50rem;
        height: 35rem;
        border-radius: 20rem;
        border: 2rem solid #c57a1a;
        background-color: transparent;
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
    }

    .application-arrow::after{
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-40%, -50%);
        width: 0;
        height: 0;
        border-top: 5rem solid transparent;
        border-bottom: 5rem solid transparent;
        border-left: 7rem solid #c57a1a;
    }

    .application-arrow:hover{
        background-color: #c57a1a;
    }

    .application-arrow:hover::after{
        border-left-color: #ffffff;
    }

    .applications-show-more{
        text-align: center;
        position: relative;
    }

    .applications-show-more::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1rem;
        background-color: #f5f3f2;
    }

    .show-more-btn{
        padding: 12rem 30rem;
        background-color: #f5f5f5;
        color: #666666;
        border: none;
        border-radius: 5rem;
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 14rem;
        font-weight: 400;
        text-transform: uppercase;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    /* main4 */

    /* Products Section */
    .products-section{
        background-color: #ffffff;
    }

    .products-inner{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10rem 40rem 10rem;
    }

    .products-title-container{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20rem;
    }

    .products-title{
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        font-style: normal;
        font-size: 14rem;
        color: #333333;
        text-align: left;
        margin-bottom: 0;
        position: relative;
        padding-bottom: 12rem;
        display: inline-block;
    }

    .products-title::after{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 44%;
        height: 4rem;
        background-color: #004a80;
    }

    .products-separator{
        width: 100%;
        height: 1rem;
        background-color: #e0e0e0;
        margin-bottom: 30rem;
    }

    .products-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16rem;
    }

    .products-grid .product-card:nth-child(n+5){
        display: none;
    }

    .product-card{
        background-color: #ffffff;
        border: none;
        border-radius: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.3s ease;
    }

    .product-image{
        height: 200rem;
        overflow: hidden;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15rem 10rem;
    }

    .product-image img{
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .product-content{
        padding: 10rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .product-model{
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        font-size: 14rem;
        color: #333;
        margin-bottom: 10rem;
        line-height: 20rem;
        text-align: center;
        background: inherit;
        background-color: rgba(243, 248, 252, 1);
        padding: 8rem;
    }

    .product-description{
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 12rem;
        color: #333333;
        margin-bottom: 12rem;
        flex: 1;
        position: relative;
        padding-bottom: 12rem;
    }

    .product-description::after{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1rem;
        background-color: #e0e0e0;
    }

    .product-specs{
        list-style: none;
        padding: 0;
        margin: 0 0 20rem 0;
        position: relative;
        padding-bottom: 12rem;
    }

    .product-specs::after{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1rem;
        background-color: #e0e0e0;
    }

    .product-specs li{
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 12rem;
        color: rgba(51, 51, 51, 0.803921568627451);
        line-height: 1.6;
        margin-bottom: 4rem;
    }

    .product-specs li:last-child{
        margin-bottom: 0;
    }

    .product-specs li strong{
        font-weight: 700;
        color: rgba(51, 51, 51, 0.803921568627451);
    }

    .product-link{
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        font-style: normal;
        font-size: 14rem;
        color: #c57a1a;
        text-decoration: none;
        margin-top: auto;
        transition: color 0.3s ease;
    }

    .product-link:hover{
        color: #B8741A;
        text-decoration: underline;
    }

    /* Success Stories Section */
    .success-stories-section{
        position: relative;
        width: 100%;
        min-height: 400rem;
        overflow: hidden;
    }

    .success-stories-background{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .success-stories-background img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .success-stories-content{
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        min-height: 400rem;
        display: flex;
        align-items: center;
    }

    .success-stories-inner{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 40rem 20rem;
    }

    .success-stories-text{
        max-width: 100%;
    }

    .success-stories-title{
        font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
        font-weight: 700;
        font-size: 32rem;
        color: #ffffff;
        margin-bottom: 20rem;
        line-height: 1.2;
    }

    .success-stories-description{
        font-family: "Arial", sans-serif;
        font-size: 16rem;
        color: #ffffff;
        margin: 0;
        line-height: 1.5;
    }

    /* Success Stories Cards Section */
    .success-stories-cards-section{
        background-color: #ffffff;
        padding: 20rem 0;
    }

    .success-stories-cards-inner{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20rem;
    }

    .success-stories-cards-grid{
        display: grid;
        grid-template-columns: 1fr;
        gap: 30rem;
        margin-bottom: 40rem;
    }

    .success-story-card{
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease;
    }

    .success-story-card:hover{
        transform: translateY(-5rem);
    }

    .success-story-image{
        width: 100%;
        height: 200rem;
        overflow: hidden;
        margin-bottom: 20rem;
        background-color: #f5f5f5;
    }

    .success-story-image img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .success-story-title{
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        font-size: 16rem;
        color: #004a80;
        margin-bottom: 12rem;
        line-height: 1.4;
    }

    .success-story-description{
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 13rem;
        color: #333333;
        margin-bottom: 20rem;
        flex: 1;
        line-height: 1.6;
    }

    .success-story-arrow{
        width: 40rem;
        height: 40rem;
        border-radius: 50%;
        border: 2rem solid #c57a1a;
        background-color: transparent;
        cursor: pointer;
        position: relative;
        align-self: flex-start;
        transition: all 0.3s ease;
    }

    .success-story-arrow::after{
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-40%, -50%);
        width: 0;
        height: 0;
        border-top: 5rem solid transparent;
        border-bottom: 5rem solid transparent;
        border-left: 7rem solid #c57a1a;
    }

    .success-story-arrow:hover{
        background-color: #c57a1a;
    }

    .success-story-arrow:hover::after{
        border-left-color: #ffffff;
    }

    .success-stories-show-more{
        text-align: center;
    }

    /* Marine Service Section */
    .marine-service-section{
        background-color: #ffffff;
        padding: 40rem 0;
    }

    .marine-service-inner{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20rem;
        display: flex;
        flex-direction: column;
        gap: 30rem;
    }

    .marine-service-image{
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .marine-service-image img{
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .marine-service-content{
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .marine-service-title{
        font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
        font-weight: 700;
        color: #144279;
        font-size: 20rem;
        margin-bottom: 20rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 20rem;
        padding: 0 20rem;
        line-height: 1.3;
    }

    .marine-service-description{
        font-family: "Arial", sans-serif;
        color: rgba(51, 51, 51, 0.8);
        font-size: 14rem;
        margin-bottom: 20rem;
        line-height: 1.6;
    }

    .marine-service-description:last-of-type{
        margin-bottom: 20rem;
    }

    .marine-service-btn{
        width: 100%;
        max-width: 219rem;
        height: 45rem;
        line-height: 45rem;
        margin: 20rem auto 0;
        display: block;
        background-color: #c57a1a;
        color: #ffffff;
        border: none;
        border-radius: 5rem;
        font-family: "Arial Bold", "Arial Normal", "Arial", sans-serif;
        font-weight: 700;
        font-size: 16rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .marine-service-btn:hover{
        background-color: #B8741A;
    }

    /* Contact Section */
    .contact-section{
        background-color: #ffffff;
        padding-bottom: 40rem;
    }

    .contact-inner{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20rem;
        display: flex;
        flex-direction: column;
        gap: 40rem;
        align-items: stretch;
    }

    .contact-form-wrapper{
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .contact-form-title{
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        font-size: 20rem;
        color: #004a80;
        text-align: center;
        margin-bottom: 30rem;
        line-height: 1.3;
    }

    .contact-form{
        display: flex;
        flex-direction: column;
        gap: 16rem;
    }

    .form-group{
        display: flex;
        flex-direction: column;
        gap: 8rem;
    }

    .form-group label{
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 13rem;
        color:  rgba(51, 51, 51, 0.8);
        font-weight: 400;
    }

    .form-group input,
    .form-group select{
        width: 100%;
        padding: 12rem;
        border: 1px solid #e0e0e0;
        border-radius: 4rem;
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 14rem;
        color: #333333;
        background-color: #ffffff;
        box-sizing: border-box;
    }

    .form-group select{
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12rem center;
        padding-right: 40rem;
    }

    .form-group input:focus,
    .form-group select:focus{
        outline: none;
        border-color: #004a80;
    }

    .submit-btn{
        background-color: #c57a1a;
        color: #ffffff;
        border: none;
        border-radius: 5rem;
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 16rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s ease;
        margin-top: 10rem;
        width: 100%;
        max-width: 219rem;
        height: 45rem;
        line-height: 45rem;
        margin: 20rem auto;
    }

    .submit-btn:hover{
        background-color: #B8741A;
    }

    .contact-empty{
        height: 50rem;
    }

    .contact-info-wrapper{
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .contact-info-image{
        width: 100%;
        max-width: 512rem;
        margin: 0 auto 20rem;
    }

    .contact-info-image img{
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8rem;
    }

    .contact-info-title{
        font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
        font-weight: 700;
        font-size: 20rem;
        color: #004a80;
        margin-bottom: 20rem;
        text-align: center;
        line-height: 1.3;
    }

    .contact-details{
        display: flex;
        flex-direction: column;
        gap: 8rem;
    }

    .contact-details p{
        font-family: 'Arial Normal', 'Arial', sans-serif;
        font-size: 14rem;
        color: rgba(51, 51, 51, 0.8);
        margin: 0;
        width: 100%;
        max-width: 300rem;
        margin: 0 auto;
        text-align: center;
        line-height: 1.6;
    }
}
