@charset "UTF-8";
body {
  padding-top: 80px; /* Adjust this value based on the height of your navbar */
  /*padding-left: 70px;
  /*padding-right: 70px;*/
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

/* Navbar container */
.navbar, .navbar2 {
  background-color: #ffffff;
  overflow: hidden;
  top: 0; /* Position it at the top */
  left: 0; /* Align it to the left */
  padding-top: 30px;
  padding-left: 70px;
  padding-right: 70px;
  height: 100px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000; /* Ensure it's above other content */
  box-sizing: border-box;
}

.navbar2 {
  display: none;
}

/* Links inside the navbar */
.navbar a, .navbar2 a {
  float: right;
  display: block;
  color: #202733;
  text-align: center;
  padding: 8px 20px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 5px;
}

/* Change color on hover */
.navbar a:hover, .navbar2 a:hover {
  background-color: #ddd;
  color: #343434;
  border-radius: 5px;
}

/* Active/current link */
.navbar a.active, .navbar2 a.active {
  background-color: #343434;
  color: white;
  border-radius: 5px;
}

/* Logo in the navbar */
.navbar img, .navbar2 img {
  float: left;
  height: 50px; /* Adjust the height of the logo */
  /* align-items: flex-start;*/
  margin-right: 20px; /* Space between the logo and the links */
  margin-top: 0%;
}

.humberger-menu {
  width: 30px;
  float: right;
  padding-right: 20px;
}

/* Banner styling */
.banner {
  /*background-image: url('banner.jpg'); /* Replace with your banner image URL */
  /*background-size: cover; /* Ensure the image covers the entire banner area */
  width: 100%;
  background-position: center; /* Center the image */
  color: #0553DD; /* Text color */
  text-align: left; /* Center-align text */
  padding: 20px auto; /* Vertical and horizontal padding */
  border-radius: 0px; /* Optional: rounded corners */
  /*margin: 0 auto; /* Optional: margin around the banner */
  /* position: relative; /* Position relative to allow absolute positioning of the image */
  /*overflow: hidden; /* Ensure that any overflow content is hidden */
}

.slogan {
  width: 100%;
  max-width: 1300px;
  margin-left: 70px;
  align-items: center;
}

.banner-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.banner h1 {
  font-size: 5.5em; /* Font size for the main heading */
  margin-bottom: 20px; /* Space below the heading */
  margin-top: 20px;
}

.banner p {
  font-size: 1.25em; /* Font size for the subheading */
  margin-top: 80px;
  font-weight: 300;
  padding-top: 40px;
  padding-bottom: 20px;
  padding-left: 70px;
}

.small-image {
  display: block; /* Ensure the image is treated as a block element */
  margin: 0 auto; /* Center the image horizontally and add vertical spacing */
  max-width: 400px; /* Optional: limit the size of the small image */
  height: auto;
}

.about-us {
  padding-bottom: 40px;
}

.card1 {
  background-color: #0553DD; /* 卡片背景色 */
  border-radius: 10px; /* 圓角邊框 */
  /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 陰影效果 */
  overflow: hidden; /* 隱藏超出邊界的內容 */
  /*width: 1300px auto; /* 最大寬度 */
  width: 90%;
  height: 900px;
  /* margin: 40px; /* 外邊距 */
  margin: 0 auto;
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; /* 過渡效果 */
}

/* Card image */
.card1-image {
  width: 100%; /* 圖片寬度 */
  height: auto; /* 圖片高度自動調整 */
}

/* Card content */
.card1-content {
  padding: 220px; /* 內邊距 */
  text-align: center; /* 文字居中 */
}

/* Card title */
.card1-title {
  font-size: 6em; /* 標題字體大小 */
  margin: 0 0 10px; /* 外邊距 */
  color: #ffffff;
}

/* Card description */
.card1-description {
  font-size: 1.25em; /* 描述字體大小 */
  margin: 0 0 30px; /* 外邊距 */
  color: #ffffff; /* 描述文字顏色 */
  font-weight: 300;
  /* padding-left: 80px;*/
  text-align: left;
}

.card1-minititle {
  font-size: 1em; /* 描述字體大小 */
  margin: 0 0 30px; /* 外邊距 */
  color: #ffffff; /* 描述文字顏色 */
  font-weight: 300;
  /*padding-left: 80px;*/
  text-align: center;
}

/* Card button */
.card1-button {
  display: inline-block; /* 使按鈕內聯顯示 */
  /*padding: 8px 20px; /* 內邊距 */
  background-color: #ffffff; /* 按鈕背景色 */
  color: #343434; /* 按鈕文字顏色 */
  text-decoration: none; /* 去掉下劃線 */
  border-radius: 5px; /* 按鈕圓角 */
  font-weight: 700;
  transition: background-color 0.3s ease; /* 背景色過渡效果 */
  width: 250px;
  height: 50px;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  padding-bottom: 40px;
}

/* 服務項目 */
.service {
  /*background-image: url('banner.jpg'); /* Replace with your banner image URL */
  background-size: cover; /* Ensure the image covers the entire banner area */
  background-position: center; /* Center the image */
  background-color: #f4f4f4;
  color: #343434; /* Text color */
  font-weight: 300;
  text-align: center; /* Center-align text */
  padding: 120px 0px 40px 0px; /* Vertical and horizontal padding */
  border-radius: 0px; /* Optional: rounded corners */
  margin: 0 auto; /* Optional: margin around the banner */
  position: relative; /* Position relative to allow absolute positioning of the image */
  overflow: hidden; /* Ensure that any overflow content is hidden */
}

.service-text {
  font-weight: 300;
  font-size: 1.25rem;
  padding-left: 70px;
  padding-right: 70px;
}

/* 基本畫廊樣式 */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 40px; /* 每組之間的間距 */
  /*width: 90%;*/
  /* max-width: 1300px;*/
  margin: 0 auto; /* 置中整個畫廊 */
  padding-bottom: 40px;
  padding-top: 40px;
  /*padding-left: 70px;
  padding-right: 70px;

  padding-top: 80px;*/
}

/* 每一組圖文的樣式 */
.gallery-item {
  display: flex;
  align-items: flex-start;
  gap: 0 40px; /* 圖片和文字之間的間距 */
  position: relative;
  z-index: 10;
  padding-left: 70px;
  padding-right: 70px;
}


.gallery-item2 {
  display: flex;
  align-items: flex-start;
  gap: 0 40px; /* 圖片和文字之間的間距 */
}

/* 底圖色塊 */
.bg-colorBox::after {
  content: "";
  display: block;
  width: 70%;
  height: 650px;
  top: 40%;
  left: 0;
  position: absolute;
  z-index: -1;
  background-color: #E1E6EC;
  border-radius: 5px;
  
}

.bg-colorBox2::after {
  content: "";
  display: block;
  width: 70%;
  height: 600px;
  top: 0px;
  right: 0;
  position: absolute;
  z-index: -1;
  background-color: #E1E6EC;
  border-radius: 5px;
}

.bg-colorBox3::after {
  content: "";
  display: block;
  width: 55%;
  height: 800px;
  top: -20%;
  left: 0;
  position: absolute;
  z-index: -1;
  background-color: #E1E6EC;
  border-radius: 5px;
}

.bg-colorBox4::after {
  content: "";
  display: block;
  width: 50%;
  height: 580px;
  top: 20px;
  right: 0;
  position: absolute;
  z-index: -1;
  background-color: #E1E6EC;
  border-radius: 5px;
}

/* 圖片樣式 */
.gallery-image {
  width: 60%; /* 圖片佔用一半空間 */
  height: auto;
  border-radius: 5px; /* 圓角效果 */
}

.gallery-image2 {
  width: 50%; /* 圖片佔用一半空間 */
  height: auto;
  border-radius: 5px; /* 圓角效果 */
}

.gallery-image-s1 {
  width: 30%;
  border-radius: 5px;
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 100;
}

.gallery-image-s2 {
  width: 30%;
  border-radius: 5px;
  position: absolute;
  top: 42%;
  left: 30%;
  z-index: 100;
}

.gallery-image-s3 {
  width: 30%;
  border-radius: 5px;
  position: absolute;
  top: 45%;
  left: 40%;
  z-index: 100;
}

/* 文字內容樣式 */
.gallery-text {
  width: 40%; /* 文字佔用一半空間 */
  font-weight: 300;
  font-size: 1.25rem;
  text-align: left;
  
}

.gallery-text2 {
  width: 50%; /* 文字佔用一半空間 */
  font-weight: 300;
  text-align: left;
  max-width: 400px;
  font-size: 1.25rem;
}

.gallery-title {
  width: auto; /* 文字佔用一半空間 */
  font-weight: 400;
  font-size: 2.5rem;
  text-align: center;
}

/* 反向佈局 */
.gallery-item.reverse {
  flex-direction: row-reverse;
} /* 反轉圖片和文字的位置 */
/* technology styling */
.technology {
  /*background-image: url('banner.jpg'); /* Replace with your banner image URL */
  background-size: cover; /* Ensure the image covers the entire banner area */
  background-position: center; /* Center the image */
  background-color: #FFFFFF;
  color: #343434; /* Text color */
  font-weight: 300;
  text-align: center; /* Center-align text */
  padding: 120px 70px; /* Vertical and horizontal padding */
  /*padding-bottom: 40px;*/
  border-radius: 0px; /* Optional: rounded corners */
  margin: 0px; /* Optional: margin around the banner */
  position: relative; /* Position relative to allow absolute positioning of the image */
  overflow: hidden; /* Ensure that any overflow content is hidden */
}

.extra-image {
  width: 100%; /* 圖片寬度根據容器寬度調整 */
  height: auto;
  margin-top: 80px; /* 與上方文字的間距 */
  border-radius: 10px; /* 圓角效果 */
  max-width: 400px;
}

.technology-text {
  font-weight: 300;
  font-size: 1.25rem;
  max-width: 350px;
  text-align: left;
}

/* Banner2 styling */
.partner {
  /*background-image: url('banner.jpg'); /* Replace with your banner image URL */
  background-size: cover; /* Ensure the image covers the entire banner area */
  background-position: center; /* Center the image */
  background-color: #f4f4f4;
  color: #343434; /* Text color */
  text-align: center; /* Center-align text */
  padding: 120px 70px 40px; /* Vertical and horizontal padding */
  border-radius: 0px; /* Optional: rounded corners */
  margin: 0px; /* Optional: margin around the banner */
  position: relative; /* Position relative to allow absolute positioning of the image */
  overflow: hidden; /* Ensure that any overflow content is hidden */
}

.partner-minititle {
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
}

.contact-us {
  /*background-image: url('banner.jpg'); /* Replace with your banner image URL */
  background-size: cover; /* Ensure the image covers the entire banner area */
  background-position: center; /* Center the image */
  background-color: #0553DD;
  color: #ffffff; /* Text color */
  text-align: center; /* Center-align text */
  padding: 120px 70px; /* Vertical and horizontal padding */
  border-radius: 0px; /* Optional: rounded corners */
  margin: 0px; /* Optional: margin around the banner */
  position: relative; /* Position relative to allow absolute positioning of the image */
  overflow: hidden; /* Ensure that any overflow content is hidden */
}

.contact-us-text {
  font-size: 1.25rem;
  font-weight: 300;
}

.image-grid {
  display: grid;
  padding-top: 20px;
  grid-template-columns: repeat(3, 1fr); /* 三列 */
  grid-template-rows: repeat(2, auto); /* 兩行 */
  gap: 0px; /* 圖片之間的間距 */
}

.image-grid img {
  width: 100%; /* 使圖片自動適應容器寬度 */
  max-height: 100px;
  /*border-radius: 8px; /* 添加圓角效果 */
  -o-object-fit: contain;
     object-fit: contain; /* 保持圖片不變形並覆蓋整個容器 */
}

/* footer */
.footer {
  background-color: #202733;
  color: white;
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: flex-start;
}

.footer-logo h2,
.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.footer-links ul,
.footer-social ul {
  list-style: none;
  padding: 0;
}

.footer-contact p {
  font-weight: 300;
}

.footer-links ul li,
.footer-social ul li {
  margin-bottom: 10px;
  font-weight: 300;
}

.footer-links ul li a,
.footer-social ul li a {
  color: white;
  text-decoration: none;
}

.footer-links ul li a:hover,
.footer-social ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background-color: none;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-bottom p {
  margin: 0;
}

.footer-logo-img {
  max-width: 100%; /* 確保圖片不會超出容器 */
  height: auto; /* 保持圖片比例 */
  width: 150px; /* 你可以根據需要設置具體的寬度 */
}

.footer-logo {
  min-width: 600px;
  height: auto;
}

.footer-contact {
  max-width: 300px;
}

/* Hide the overlay menu initially */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-color: #0553DD;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left 0.3s ease;
}

.overlay-logo {
  width: 300px;
  height: auto;
}

.overlay-menu ul {
  list-style-type: none;
  text-align: center;
  position: fixed;
}

.overlay-menu ul li {
  margin: 0 auto;
  text-align: center;
  font-weight: 300;
}

.overlay-menu ul li a {
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  font-size: 1.5rem;
  display: inline-block; /* 確保 a 標籤能夠在其父元素中居中 */
  width: 100%; /* 讓 a 元素與父元素相同寬度 */
  padding: 20px;
}

/* Active state for overlay */
.overlay-active {
  left: 0;
}

/* Styling the menu icon */
.menu-icon {
  position: relative;
  cursor: pointer;
}

.menu-icon img {
  width: 30px;
  height: 30px;
}

.contact-form {
  background-color: #fff;
  padding-bottom: 80px;
  /*border-radius: 10px;*/
  /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
  width: 100%;
  /*max-width: 500px;*/
}

.form-title {
  margin-top: 80px;
}

.contact-form h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #343434;
  font-weight: 300;
}

/* 表單項目容器樣式 */
.form-group {
   padding-bottom: 20px;
   /*margin-bottom: 20px; 下邊距 */
   font-weight: 300;
}

/* 標籤樣式 */
.form-group label {
  display: block; /* 設置為塊級元素 */
  margin-bottom: 5px; /* 底部外邊距 */
  color: #343434; /* 文字顏色 */
}

/* 輸入框和文本框樣式 */
.form-group input[type=text],
.form-group input[type=email],
.form-group textarea {
  width: calc(100% - 20px); /* 修正容器寬度，要注意空格 */
  padding: 10px; /* 內邊距 */
  /*border: 1px solid #ccc;  邊框顏色 */
  /*border-radius: 5px;  圓角邊框 */
  font-size: 16px; /* 字體大小 */
  
}

/* 文本框樣式，增加可調整大小 */
.form-group textarea {
  resize: vertical; /* 垂直方向可調整大小 */
}

/* 送出按鈕樣式 */
.button1 {
  display: block; /* 設置為塊級元素 */
  width: 500px;
  height: 70px;
  padding: 10px; /* 內邊距 */
  /*margin-left: 10px;
  border: none; /* 去掉邊框 */
  border-color: none;
  background-color: #202733; /* 背景顏色 */
  color: white; /* 文字顏色 */
  font-size: 18px; /* 字體大小 */
  border-radius: 5px; /* 圓角邊框 */
  cursor: pointer; /* 鼠標懸停時顯示手型 */
}

/* 送出按鈕懸停效果 */
.button1:hover {
  background-color: #0553DD; /* 背景顏色變暗 */
  border-color: none;
  width: calc(100%-20px);
}

.form-container1 {
  display: flex; /* 使用 Flexbox 進行對齊 */
  justify-content: center; /* 水平居中對齊 */
  align-items: center; /* 垂直居中對齊 */
  /*min-height: 50vh;*/
  
}

.icon {
  display: none;
}

/* RWD 手機設置 */
@media (max-width: 768px) {
  body {
    padding-top: 20px;
  }
  .icon {
    display: block;
    cursor: pointer;
    font-size: 24px;
  }
  .navbar {
    padding-left: 10px;
    padding-right: 10px;
    display: none;
  }
  .navbar2 {
    display: block;
    padding-left: 10px;
    padding-right: 10px;
  }
  .gallery-item, .gallery-item2 {
    flex-direction: column; /* 手機視窗下，圖文上下排列 */
  }
  .gallery-item {
    padding: 10px;
  }
  .gallery-item.reverse {
    flex-direction: column; /* 手機視窗下的反向排版 */
  }
  .gallery-image, .gallery-image2, .gallery-text, .gallery-text2 {
    width: 100%; /* 手機視窗下，圖片和文字各佔一行 */
  }
  .gallery-text2 {
    text-align: center;
    max-width: 450px;
  }
  

  .bg-colorBox::after,.bg-colorBox2::after,.bg-colorBox3::after,.bg-colorBox4::after{
    content: none;
  }
  
  .service {
    padding-top: 80px;
  }
  .random-box::after {
    background-color: #E1E6EC;
    width: 1000px;
    position: absolute; /* 色塊絕對定位以跨越區域 */
    bottom: 0; /* 固定在父容器底部 */
    left: 0;
    z-index: -1; /* 色塊位於圖片下方 */
  }
  .banner-img {

    content: url("../img/banner-mobile.png");
    padding-bottom: 20px;
  }
  .image-grid {
    grid-template-columns: repeat(2, 1fr); /* 兩列 */
    grid-template-rows: repeat(2, auto); /* 三行 */
  }
  .card1-content {
    padding-left: 30px;
    padding: 40px;
    padding-top: 80px;
  }
  .card1 {
    max-height: 600px;
  }
  .slogan {
    margin-left: 0px;
    content: url("../img/slogan-small.svg");
    padding-left: 10px;
    padding-right: 0px;
    width: 90%;
  }
  .card1, .gallery, .gallery-item2 {
    margin: 0px;
    width: 100%;
  }
  .banner p {
    text-align: left;
    font-size: 0.9rem;
    padding-left: 10px;
  }
  .title {
    height: 40px;
    width: auto;
    padding-bottom: 20px;
  }
  .technology, .partner, .contact-us {
    padding: 20px;
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .extra-image {
    display: none;
  }
  .card1-button {
    width: 150px;
    height: 40px;
    font-size: 1rem;
  }
  .gallery-image {
    padding-bottom: 20px;
  }
  .small-image {
    max-width: 150px;
    height: auto;
  }
  .button1 {
    width: 300px;
  }
  .footer-links {
    padding-left: 0px;
  }
  /*footer*/
  .footer-container {
    flex-direction: column;
    text-align: left;
  }
  .footer-links,
  .footer-contact,
  .footer-social {
    margin-bottom: 30px;
    margin-left: 20px;
    min-width: 300px;
  }
  .service {
    padding-bottom: 20px;
  }
  .footer-logo {
    min-width: 320px;
  }
  /*聯絡表單*/
  .contact-form {
    padding-top: 15px;
    padding-bottom: 80px;
  }
  .form-group input[type=text],
  .form-group inp-ut[type=email],
  .form-group textarea {
    font-size: 14px;


    
  }
  /*手機字體調整*/
  .about-us {
    padding-left: 10px;
    padding-right: 10px;
  }
  .card1-description {
    font-size: 1rem;
  }
  .gallery-title {
    font-size: 1.5rem;
  }
  .service-text, .gallery-text p, .gallery-text2 p, .contact-us-text {
    padding-left: 40px;
    padding-right: 40px;
    font-size: 1rem;
    text-align: left;
  }
  .gallery-text {
    font-size: 1.25rem;
  }
  .gallery-image-s1,.gallery-image-s2,.gallery-image-s3{
    display: none;
  }

  
}
/* 平板樣式 */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-links {
    width: 400px;
    padding-left: 40px;
  }

  .footer-logo {
    min-width: 500px;
    padding-left: 20px;
  }
  .navbar {
    display: none;
  }
  .navbar2 {
    display: block;
    padding-left: 40px;
    padding-right: 40px;
  }
  .slogan {
    max-width: 650px;
    content: url("../img/slogan-small.svg");
  }
  .technology {
    padding-bottom: 20px;
  }
  .card1-content {
    padding: 120px;
  }
  .card1 {
    height: 720px;
  }
  .overlay-logo {
    width: 400px;
    height: auto;
  }
  .overlay-menu ul li a {
    font-size: 2rem;
    padding: 40px;
  }
  .gallery-title {
    font-size:1.5rem; ;
  }



  .gallery-image-s1,.gallery-image-s2,.gallery-image-s3{
    display: none;
  }

  .bg-colorBox::after{
    height: 300px;
    top: 20%;
  }

  .bg-colorBox2::after{
    width: 70%;
    height: 450px;
  }

  .bg-colorBox3::after{
    top: -30%;
    width: 50%;
    height: 900px;
  }

  .bg-colorBox4::after{
   content: none;

  }
  
}
