/* ---------------- RESET ---------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #222;
}


/* ==================== CSS VARIABLES ==================== */
:root {
    --header-height: 5rem;

    /* Colors */
    --primary-color: #E41E25;
    --primary-color-alt: #c41a20;
    --title-color: #222222;
    --text-color: #555555;
    --body-color: #FFFFFF;
    --container-color: #F8F9FA;
    --dark-color: #111111;

    /* Font and typography */
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Font weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* Margins */
    --mb-0-5: 0.5rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;

    /* z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* ==================== BASE STYLES ==================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}


ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}


/* ---------------- LAYOUT ---------------- */
.main-header,
.hero-banner,
.products-section,
.main-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ---------------- HEADER ---------------- */


/* ==================== HEADER ==================== */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Header */
.navbar {
    /* background: #000; */
    color: #fff;
    padding: 15px 0;
    position: absolute;
    width: 100%;
    z-index: 11;
}


.address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 67px;
    padding-bottom: 13px;
    width: 83%;


}

.Add1 {
    display: flex;
    align-items: center;
    gap: 24px;
}

.Add1 .bi-geo-alt-fill,
.Add1 .bi-envelope-fill {
    color: #73393B;
}

.Add1 p {
    font-family: Exo;
    font-weight: 500;
    font-style: Medium;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: white;
}

.contact__info {
    display: flex;
    margin-top: 31px;
    gap: 10px;
}

.call {
    background: black;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.call .bi-telephone-fill {
    font-size: 19px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: url(./assets/Header.png);
    padding: 0;
 clip-path: polygon(0% 0%, 100% 0%, 97% 100%, 1% 100%);
}

.nav-background-shape {
    /* Position the shape absolutely within the wrapper */
    position: absolute;
    top: 0;
    right: 0;
    /* This dark area should cover from the start of the "Services" link to the right edge */
    width: 350px;
    /* Adjust this to cover the desired area (Services, Contact, and the overhang) */
    height: 100%;
    background-color: #6a1a1e;
    /* Dark red/maroon color from the image */
    z-index: 5;
    /* Below the links, above the main content */

    /* Creates the diagonal cut on the left side */
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    /* Adjust '15%' to control the steepness/position of the diagonal cut */
}

.logo {
    width: 80px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 69px;
    font-family: Exo;
    font-weight: 700;
    font-size: 17px;
    line-height: 22px;
    vertical-align: middle;
    margin-right: 48px;

}

.nav-links li a {
    color: black;
    font-weight: 700;
    font-size: 17px;
    line-height: 22px;
    vertical-align: middle;
}

.btn {
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    margin-left: 20px;
    font-family: Exo;
    font-weight: 800;
    font-style: ExtraBold;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    text-transform: uppercase;


}

.main-header {
    background-color: #111;
    padding: 10px 20px;
    max-width: none;
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 40px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.main-nav li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-size: 14px;
    font-weight: bold;
}

.main-nav li:first-child a {
    color: #ff3333;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    height: 30px;
    margin-top: 10px;
}

.search-box input {
    border: none;
    padding: 0 10px;
    height: 100%;
    outline: none;
    width: 150px;
}

.search-box button {
    background-color: #ff3333;
    color: white;
    border: none;
    padding: 0 10px;
    cursor: pointer;
    height: 100%;
}

/* ---------------- HERO ---------------- */
.hero-banner {
    background-image: url('/assets/Solution_Section.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    text-align: center;
    position: relative;
    max-width: none;
    margin: 0;
}

.hero-banner h2 {
    font-size: 3em;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5em;
    color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    z-index: 0;
}

/* ---------------- CARDS ---------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin: 20px 0 15px;
    text-align: center;
}

.infra-color,
.traders-color {
    color: #cc0000;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 101px;
}
.card-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.infra-card {
    display: flex;
    flex-direction: column;
}

.card-details-overlay {
    display: flex;
    justify-content: space-between;
    /* pushes left & right */
    align-items: center;
    /* vertically center */
    width: 100%;
    /* make flex take full card width */
    padding: 0 10px;
    /* add spacing from edges */
    position: absolute;
    /* keeps text inside image */
    bottom: 10px;
    /* align near bottom of image */
    left: 0;
    right: 0;
    color: #fff;
    font-family: Roboto;
    font-weight: 500;
    font-size: 26.48px;
    line-height: 130%;
    text-transform: capitalize;
}

.view-more {
    display: block;
    text-align: left;
    padding: 10px 10px;
    color: #73393B;
    text-decoration: none;
    border: 1px solid #ccc;
    font-family: Poppins;
    font-size: 16.65px;
    line-height: 170%;
    font-weight: 500;
    vertical-align: middle;

}

.view-more:hover {
    background: #73393B;
    color: white;
}

/* Materials */
.material-card .card-image-container {
    width: 100%;
    height: 362px;
}

.card-title-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0;
    padding: 11px;
    font-family: Roboto;
    font-weight: 500;
    font-size: 17.48px;
    line-height: 130%;
    text-transform: capitalize;
}

/* Card Container */
.card-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Image */
.card-image-container img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.card-image-container {
  position: relative;
  overflow: hidden;
}
.card-description-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100%;
  background: #00000099;
  color: #fff;
  font-size: 13px;
  padding: 12px;
  transition: bottom 0.4s ease; /* smooth transition */
}

.card-image-container:hover .card-description-overlay {
  bottom: 0; /* hover時 smooth slide-up */
}
.description-title{
    font-weight: 900;
}
.card-image-container:hover img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

.card-image-container:hover .card-title-bottom {
  opacity: 0;
}

.view-more {
    display: block;
    text-align: left;
    padding: 10px 10px;
    color: #73393B;
    text-decoration: none;
    border: 1px solid #ccc;
    font-family: Poppins;
    font-size: 16.65px;
    line-height: 170%;
    font-weight: 500;
    vertical-align: middle;

}

.view-more:hover {
    background: #73393B;
    color: white;
}

/* Materials */
.material-card .card-image-container {
    height: 100%;
}

.card-title-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
   margin: 0;
    padding: 11px;
    font-family: Roboto;
    font-weight: 500;
    font-size: 17.48px;
    line-height: 130%;
    text-transform: capitalize;
}


/* footer */

.footer {
    background-color: #B5B5B5;
    color: #ccc;
    padding-top: 4rem;
    font-family: Arial, sans-serif;
}

.footer-col.contact {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0px 2rem 2rem;
    flex-wrap: wrap;
}

.touch {
    font-family: Exo;
    font-weight: 500;
    font-style: Medium;
    font-size: 17px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #5D0003;
}


.footer__subscribe {
    display: flex;
    margin-top: 1rem;
}

.footer__subscribe input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 200px;
}

.footer__subscribe .button {
    padding: 0.5rem 1rem;
    background-color: #73393B;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 2rem;
    /* border-top: 1px solid #444; */
}

.footer__logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer__col h4 {
    font-family: Exo;
    font-weight: 800;
    font-style: ExtraBold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 28.6px;
    letter-spacing: 0%;
    vertical-align: middle;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-offset: 0%;
    text-decoration-thickness: 0%;
    color: #000000;

}

.footer__col p {
    font-family: Exo;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #000000;

}

.footer__col ul {
    list-style: none;
    padding: 0;
}

.footer__col ul li {
    margin-bottom: 0.5rem;
}

.footer__col a {
    font-family: Exo;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #000000
}

.footer__col a:hover {
    color: #73393B;
}

.footer__bottom {
    padding: 1.5rem 2rem;
    border-top: 1px solid #444;
    text-align: center;
    color: #000000;
}

.container .footer__bottom p {
    font-family: Exo;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;

}

.social {
    display: flex;
    align-items: center;
    justify-content: end;
    padding-right: 50px;
    gap: 10px;
    padding-bottom: 10px;
}



.footerHeading {
    font-family: Exo;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 25.8px;
    leading-trim: NONE;
    line-height: 25px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: black
}

.footer__col .footerPara {
    font-family: Exo;
    font-weight: 400;
    font-style: Regular;
    font-size: 15.1px;
    leading-trim: NONE;
    line-height: 20.5px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #5D0003;
}
/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-banner h2 {
        font-size: 2.2em;
    }

    .overlay-text {
        font-size: 3em;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav li a {
        padding: 10px;
    }

    .search-box {
        margin: 10px 0 0;
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .card {
        max-width: 350px;
        width: 100%;
    }

    .hero-banner h2 {
        font-size: 1.8em;
    }

    .overlay-text {
        font-size: 2.5em;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        min-width: 100%;
    }
}




/* Mobile Responsive */
@media (max-width: 784px) {
      .nav-links {
        display: none;
   }
    .address {
        flex-direction: column;
        text-align: center;
        display: none;
    }

    .navbar .container {
        position: fixed;
        top: 0;
        width: 100%;
        background: transparent;
        clip-path: none;
        z-index: 11;
    }

    .nav-links {
        /* display: none; */
        z-index: 10000;
        height: 100vh;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 1px;
        right: -1px;
        width: 200px;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
          margin-right: 0;
              gap: 37px;
    }

    .nav-links.active {
        display: flex;
        height: 100vh;
        position: fixed;
    }

    .menu-toggle {
        display: flex;
        color: black;
        position: absolute;
        right: 24px;

    }

    .hero__title {
        font-size: 35.8px;
        width: 100%;
    }

    #mobilescreen {
        clip-path: none !important;
        width: 100% !important;
    }

    .btn {
        display: none;
    }

    .contact__container {
        display: flex;
    }

    .contact__form-container {
        width: 100%
    }

    .main-wrap {
        flex-direction: column;
    }
}






.input-group-custom {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    /* field background */
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 34px;
}

.input-group-custom .icon-box {
    background: #600000;
    /* dark red */
    /* color: #fff; */
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group-custom input,
.input-group-custom select {
    border: none;
    outline: none;
    flex: 1;
    padding: 4px 19px;
    background: #f2f2f2;
}



/* Hide menu and overlay by default */
/* #navMenu .nav-links {
  display: none;
  background: white;
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  z-index: 1001;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
} */

#menuOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* transparent black */
  z-index: 1000;
}
.active1 {
        display: flex !important;
    }