/* ADD this to ensure padding and borders are included in the element's total width */
*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'FetteGotisch';
    src: url('font/FETTE___.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Instagram Sans';
    src: url('font/Instagram Sans.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.nav_bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 100%; /* Change from 100vw to 100% */
}

.nav_title a {
    cursor: pointer;
    font-family: "FetteGotisch", "Asset", "sans-serif";
    font-weight: 200;
    color: #00aeff;
    font-style: normal;
    letter-spacing: 1.5px;
    font-size: 35px;
    float: left;
    width: auto;
    display: flex;
    text-align: left;
    padding: 20px 20px;
    text-decoration: none;
}

.nav_opt a {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 2px;
    display: inline-block;
    color: #fff;
    text-align: center;
    padding: 20px 20px 10px 20px;
    text-decoration: none;
    transition: 0.5s;
    position: relative;
}

.nav_opt a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: #fff;
    transition: width 0.2s ease-out;
}

.nav_opt a:hover::after {
  width: 100%;
}

.nav_toggle {
  display: none;
  font-size: 32px;
  color: #fff;
  padding: 20px;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 1440px) {

.main_bar{
  display: flex;
  width: 100vw;
  flex-direction: row;
  justify-content: space-between;
  z-index: 1000000000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
  
  .nav_toggle {
    display: block;
    font-size: 32px;
    color: #fff;
    padding: 20px;
    cursor: pointer;
    z-index: 1001;
  }


.nav_opt {
    flex-direction: column;
    width: 100vw;
    height: fit-content;
    position: absolute; /* Keep absolute positioning */
    top: 85px;
    left: 0;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.3s ease;
    display: none;
    position: relative;
}

.nav_opt.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

  .nav_opt.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav_opt a {
    font-size: 25px;
    font-weight: 500;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transform: translateY(-90px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav_opt a::after {
    background-color: #00aeff;
    transition: width 0.5s ease-out;
}

}

.landing_con {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Ensure no overflow */
}

.video_background {
    position: absolute; /* Change from fixed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Send it behind everything */
    overflow: hidden;
}

.video_background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: 1; /* Ensure it's above the video */
}

.video_background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure video covers the entire background */
}

.landing_text_layout1 {
    display: flex;
    flex-direction: row;
    margin: 30px;
    z-index: 2;
}

.landing_text1 {
    font-family: "FetteGotisch" , "Asset", "sans-serif";
    font-size: 130px;
    font-weight: 200;
    color: #00aeff;
    text-align: left;
    padding: 20px;
}

.landing_text2 {
    display: flex;
    font-family: "Noto Serif", serif;
    font-size: 45px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    justify-content: center;
    align-items: center;
}

.landing_text_layout2 {
    font-family: "Montserrat", sans-serif;
    color: #fff;
    font-size: 26px;
    font-weight: 300;
    line-height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding-top: 15px;
}

.about_con {
    padding: 100px;
    background-color: #070914;
    height: fit-content;
}

.about_title {
    font-family: 'Instagram Sans', sans-serif;
    font-size: 60px;
    line-height: 50px;
    font-weight: 400;
    color: #00aeff;
    padding-bottom: 40px;
}

.about_layout{
    display: flex;
    flex-direction: column;
    text-align: left;
}
    
.about_desc {
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #0b080f;
    margin-bottom: 100px;
    line-height: 70px;
    letter-spacing: 3px;
    border-left: 4px solid #0b080f;
    padding-left: 20px;
}

.about_video{
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom_bullet {
  list-style: none; /* Remove default bullets */
  padding-left: 1em;
}

.custom_bullet li::before {
  content: "✦"; /* Your custom symbol */
  color: #efe9eb;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.custom_bullet li{
    margin-bottom: 20px;
}

.about_title {
    color: var(--about-text-color, #efe9eb);
    transition: color 0.5s ease-in-out;
}

.about_desc {
    color: var(--about-text-color, #efe9eb);
    border-left: 4px solid var(--about-border-color, #efe9eb);
    transition: color 0.5s ease-in-out, border-left-color 0.5s ease-in-out;
}

.milestones_con {
  background-color: #FFF;
  padding: 100px 100px; 
}

.milestones_title {
  font-family: "Instagram Sans", sans-serif;
  font-size: 60px;
  line-height: 50px;
  font-weight: 400;
  color: #000;
}

.milestones_desc {
  font-family: "Montserrat", sans-serif;
  font-size: 23px;
  line-height: 40px;
  font-weight: 400;
  color: #000;
  padding: 50px;
}

.milestones_img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 0;
  max-width: none;  /* important: remove automatic shrinking */
}


.milestones_img img {
  width: 80vw;
  height: auto;
  max-width: 100%;
}

@media (max-width: 1441px) {
  .milestones_img img {
    width: 100vw;
    height: auto;
  }

  .milestones_con {
    padding: 50px 20px;
  }

  .milestones_desc {
    font-size: 20px;
  }
}

@media (max-width: 1000px) {
  .milestones_con {
    padding: 0; /* avoid extra white padding */
    margin-bottom: 100px;
    overflow-x: hidden;
  }

  .milestones_title{
    padding: 50px 30px;
  }

  .milestones_img {
    width: 100%;
    overflow-x: scroll;   /* always show scrollbar */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 20px;
    display: block; 
    text-align: left;
    padding-right: 40px;
  }

  .milestones_img img {
    display: block;
    width: 1000px;       /* fixed width */
    max-width: none;     /* prevent shrinking */
    height: auto;
  }

  /* Optional: style the scrollbar for nicer look */
  .milestones_img::-webkit-scrollbar {
    height: 10px;  /* scrollbar thickness */
  }
  .milestones_img::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 5px;
  }
  .milestones_img::-webkit-scrollbar-thumb:hover {
    background: #555; 
  }
}


.product_con {
    background-color: #070914;
    padding: 50px 0 100px;
}

.prod_title {
    font-family: "Instagram Sans", sans-serif;
    font-size: 60px;
    line-height: 50px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    padding: 50px 0 30px;
}

.prod_desc {
    font-family: "Montserrat", sans-serif;
    font-size: 23px;
    line-height: 40px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    /* Adjust this padding to prevent overflow */
    padding: 20px 50px 0;
}

.btn_layout {
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.download_btn {
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    background-color: #070914;
    color: #fff;
    padding: 20px 30px;
    border: 2px solid #FFF;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    display: inline-block;  
    min-width: 250px;        
    box-sizing: border-box; 
}

.download_btn:hover {
    background-color: #0065d8;
    border: 2px solid #00aeff;
}

.shopee_btn {
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    background-color: #070914;
    color: #fff;
    padding: 20px 30px;
    border: 2px solid #FFF;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    display: inline-block;  
    min-width: 250px;        
    box-sizing: border-box; 
}

.shopee_btn:hover {
    background-color: #f6422d;
    border: 2px solid #f59c53;
}

.prod_overview_img{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 70px 0 70px 0;
}

.prod_overview_img img{
  max-height: 450px;
  width: auto;
}

.prod_page_nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.prod_page_nav div {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  color: #fff;
  padding: 10px 30px;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #ccc;
}

.prod_page_nav div:hover {
  color: #00a0e9;
  border-bottom: 2px solid #00a0e9;
  transition: 0.2s ease-in-out;
}

.prod_page_nav div.active {
  color: #00aeff;
  border-bottom: 2px solid #00a0e9;
}

.product_content {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 3px;
  text-wrap: wrap;
  /* Adjust these margins to prevent overflow */
  margin: 70px 150px;
  color: #fff;
  opacity: 1;
  transition: color 0.4s ease-in, opacity 0.4s ease-in;
}

.product_content p b{
  color: #00aeff;
}

.product_content p i{
  color: #00aeff;
  display: block;
  text-align: center;
  font-size: 22px;
}

.bearing_image_wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  transition: opacity 0.4s ease-in;
}

/* Intermediate "fading out" state */
.product_content.fade-out {
  opacity: 0;
}

/* New content will appear with updated color */
.product_content.fade-in {
  opacity: 1;
}

.services_con {
    background-color: #fff; 
    padding-bottom: 150px;
}

.services_title {
    font-family: 'Instagram Sans', sans-serif;
    font-size: 60px;
    line-height: 50px;
    font-weight: 400;
    color: #000;
    /* Adjust this padding to prevent overflow */
    padding: 100px 100px 0 100px;
}

.services_desc {
    font-family: "Montserrat", sans-serif;
    font-size: 23px;
    line-height: 45px;
    font-weight: 400;
    color: #000;
    text-align: left;
    margin: 40px 0 60px;
    /* Adjust this padding to prevent overflow */
    padding: 50px 150px;
}

.grid_container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 equal columns */
    width: 100%;  /* match background image width */
    height: 60vh; /* match background image height */
    background-image: url('./img/service1.jpg');
    background-size: cover;  /* stretch exactly to grid */
    background-repeat: no-repeat;
    background-position: center;
}

.grid_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    justify-content: space-between;
    border-top: 1px solid #0b080f;
    border-bottom: 1px solid #0b080f;
    border-left: none;
    border-right: none;
}

.grid_item div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 23px;
    line-height: 40px;
    font-weight: 700;
    color: #000;
}

.grid_item:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.9);
}


.top_sec{
    padding: 50px 0;
}

.top_sec_title {
    font-size: 30px;
    text-align: center;
}

.top_sec_desc {
    font-size: 20px;
    display:none;
}

.bottom_sec {
    padding: 30px;
    font-size: 20px;
    display: none;
}

/* .grid_item:hover{
    transition: 0.2s ease-in;
    background-color: rgba(255, 255, 255, 0.9);
} */

/* .grid_item:hover .top_sec_title{
    color: #00a0e9;
}

.grid_item:hover .top_sec_desc{
    display: flex;
    padding: 0 30px;
}

.grid_item:hover .bottom_sec{
    display: flex;
    color: #17225e;
    text-align: center;
}

.grid_item a:hover{
    justify-content: space-between;
} */

.industries_con {
    background-color: #070914;
    /* Adjust this padding to prevent overflow */
    padding: 100px;
}

.industry_title {
    font-family: 'Instagram Sans', sans-serif;
    font-size: 60px;
    line-height: 70px;
    font-weight: 400;
    color: #fff;
    text-align: left;
    padding-bottom: 40px;
    text-align: center;
}

.industry_desc {
    font-family: "Montserrat", sans-serif;
    font-size: 23px;
    line-height: 35px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    padding-bottom: 70px;
}

.industry_main_layout {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.industry_sub_layout {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    font-size: 23px;
    letter-spacing: 3px;
    color: #fff;
    width: 80%;
}

.industry_sub_layout a{
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.industry {
    border-bottom: 2px solid #fff;
    font-weight: 600;
    text-align: left;
    padding: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.arrow_industry {
    display: flex;
    height: 25px;
    width: 50px;
    object-fit: contain;
    opacity: 1;
    transform: translateX(-5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    filter: brightness(0) invert(1);
    pointer-events: none; /* so it's not clickable when invisible */
    margin-left: auto; 
}

.industry:hover {
    background-color: #fff;
    color: #00a0e9;
    transition: 0.2s ease-in;
    border-bottom: 2px solid #00a0e9;
}

.industry:hover .arrow_industry{
    opacity: 1;
    transform: translateX(0);
    filter: invert(49%) sepia(85%) saturate(3920%) hue-rotate(175deg) brightness(97%) contrast(102%);
}

.footer_con {
    padding: 100px 50px 20px;
    width: auto;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #000;
}

.footer_desc{
    font-family: 'Montserrat', sans-serif;
    font-size: 23px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 3px;
    text-align: left;
}

.footer_links{
  padding: 20px 50px 0 50px;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
}

.footer_links a{
  color: #00aeff;
}

.bottom_footer h2.footer_title {
    font-family: 'Instagram Sans', sans-serif !important;
    font-size: 95px !important;
    font-weight: 400 !important;
    color: #fff !important;
}

.bottom_footer{
    margin-top: 80px;
    padding-top: 20px;
    border-top: 2px solid #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.copyright{
  padding: 20px 0 20px 0;
  text-align: end;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
}


/* =========================================== */
/*                INDUSTRIES PAGE              */
/* =========================================== */

.split_section {
    display: flex;
    align-items: flex-start;
    height: fit-content;
    background-color: #fff;
}

.left_sticky {
    flex: 1;
    position: sticky;
    top: 0;
    height: fit-content;
    font-family: 'Instagram Sans', sans-serif;
    font-size: 60px;
    line-height: 80px;
    font-weight: 400;
    color: #000;
    padding: 120px 100px;
    display: flex;
    flex-direction: column;
}

.left_machine_img img{
  height: 480px; 
  width: 390px; 
  padding-top: 30px;
}

.right_scroll {
    flex: 2;
    padding: 150px 0;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.right_scroll div[id] {
    padding-top: 80px; /* Height of your navbar */
    margin-top: -80px; /* Negative margin to counteract the padding */
}

.right_content {
    font-family: "Montserrat", sans-serif;
    font-size: 23px;
    line-height: 50px;
    font-weight: 400;
    color: #000;
    margin: 30px 0px 80px;
    padding: 40px;
    text-align: justify;
    border-left: 3px solid #00aeff;
}

.right_content b{
  color: #0065d8;
}

.right_content_title{
    font-weight: 500;
    color: #00aeff;
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    line-height: 60px;
}

.right_sub_box{
    margin-bottom: 25px;
}

.right_sub_box div{
  margin: 20px;
}

.bottom_footer h2 {
    font-family: 'Instagram Sans', sans-serif;
    font-size: 120px;
    font-weight: 400;
    color: #fff;
    text-align: left;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

.landing_text1, .landing_text2 {
  display: inline-block; /* behave like your original divs */
}

@keyframes rToL {
    0% {
        left: 0;
    }
    100% {
        left: -100%;
    }
}

@media (max-width: 602px) {
  .landing_text_layout1 {
    flex-direction: column;
    padding-top: 100px;
  }

  .landing_text2{
    padding-top: 10px;
    font-size: 45px;
    text-align: center;
  }

  .landing_text_layout2{
    padding: 20px 30px 30px 40px;
    font-size: 20px;
  }

}

@media (max-width: 768px) {
  .landing_text1 {
    font-size: 40px;
    line-height: 60px;
  }

}

@media (max-width: 1441px) {
  .landing_text1 {
    font-size: 95px;
  }

  .landing_text2{
    font-size: 35px;
  }
}

@media (max-width: 1441px) {
  .about_con {
    padding: 70px 50px;
  }

  .about_desc {
    font-size: 25px;
    line-height: 60px;
  }

}

@media (max-width: 768px) {
  .about_con {
    padding: 40px 20px;
  }

  .about_desc {
    font-size: 18px;
    line-height: 30px;
  }

}

@media (max-width: 1770px){
  .product_content{
    margin: 100px 90px 100px 90px;
  }

  .prod_desc{
    font-size: 20px;
  }
}

@media (max-width: 466px){
  .prod_overview_img img{
    width: 90vw;
    height: auto;
  }
}

@media (max-width: 1180px) {
  .split_section {
    display: flex;
    flex-direction: column;
  }

  .left_sticky{
    position: static;
    padding: 100px 100px 60px 20px;
  } 
  
  .right_scroll {
    position: static;
    overflow: visible; /* Allow overflow */
    position: relative;
  }

  .right_content {
    font-size: 18px;
    line-height: 28px;
    padding-left: 50px;
  }
  
}

@media (max-width: 768px) {
  .bearing_image_wrapper img{
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .services_title {
    padding: 100px 100px 30px 20px;
  }

  .services_desc{
    padding: 30px 50px 30px 50px;
  }
}

@media (max-width: 1024px) {
  .grid_container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1485px) {
  .grid_container {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .grid_item {
    min-height: 200px;
  }

  .top_sec, .bottom_sec, .top_sec_desc {
    padding: 10px;
  }
}

@media (max-width: 980px) {
    .industry{
        flex-wrap: wrap;
        font-size: 18px;
    }

    .arrow_industry{
        height: 20px;
    }
}

@media (max-width: 770px) {
  .industries_con{
    padding: 100px 30px 100px 30px;
  }

  .industry_desc{
    font-size: 20px;
  }

  .industry_main_layout {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .industry_sub_layout {
    width: 90%;
    margin-bottom: 30px;
    font-size: 15px;
  }

  .arrow_industry {
    height: 13px;
  }

  .industry{
    text-align: left;
  }
}

@media (max-width: 1400px) {
  .bottom_footer{
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }

  .copyright{
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .footer_con {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .footer_con div {
    margin: 20px 0;
  }

  .footer_links{
    padding: 0 10px 0 10px;
    overflow-wrap: break-word;
  }

  .footer_title {
    font-size: 70px;
  }
}

@media (max-width: 1510px) {
  .split_section{
    display: flex;
    flex-direction: column;
  }

  .left_sticky{
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 120px 0 60px 0;
  }

  .right_scroll{
    padding: 0 15px 50px 25px;
    width: 100%;
  }

  .left_machine_img img {
    height: 500px; 
    width: 400px; 
    padding-top: 30px;
  }

}

@media (max-width: 768px) {
  .left_machine_img img {
    width: 90%; 
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .left_sticky{
    padding-left: 20px;
  }

}
