@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,900;1,900&family=Roboto:ital,wght@0,900;1,900&display=swap");
:root {
  font-size: clamp(16px, 2.8vw, 18px);
}

h1 {
  font-size: clamp(3rem, 3.5vw, 5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.7rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.35rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.3rem);
  font-weight: 500;
}

h5 {
  font-size: clamp(1.125rem, 1.7vw, 1.2rem);
  font-weight: 400;
}

h6 {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
}

p,
a,
span {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
}

small {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  font-weight: 400;
}

li {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.4;
}

:root {
  --swiper-theme-color: #ff6a00;
}

body {
  font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: #0b0b0d;
  color: white;
}

/* CSS */
[data-aos=blur-up] {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px);
  transition: all 0.1s ease;
}

[data-aos=blur-up].aos-animate {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.h2-box {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .h2-box {
    margin-bottom: 2rem;
  }
}
.h2-box h2 {
  flex-shrink: 0;
}
.h2-box .line {
  height: 1.5px;
  background: #ff6a00;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(255, 106, 0, 0.8), 0 0 12px rgba(255, 106, 0, 0.6), 0 0 24px rgba(255, 106, 0, 0.4), 0 0 40px rgba(255, 106, 0, 0.3);
}
.h2-box .line.line-1 {
  width: 20%;
}
@media (max-width: 768px) {
  .h2-box .line.line-1 {
    width: 50%;
  }
}
.h2-box .line.line-2 {
  width: 100%;
}

#services {
  position: relative;
}
#services::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("../images/services/bg.avif") no-repeat;
  background-size: cover;
  z-index: -1;
  opacity: 0.4;
}
#services .service-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #212121;
}
#services .service-card img {
  width: 100%;
  height: 350px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 768px) {
  #services .service-card img {
    height: 300px;
  }
}
#services .service-card .text {
  padding: 2rem;
}
#services .service-card .text h3 {
  color: #ff6a00;
}
#services .service-card .text p {
  margin-bottom: 0;
  line-height: 1.5;
}

#process .process-card {
  border: 1px solid #ff6a00;
  border-radius: 1rem;
  text-align: center;
  padding: 1.5rem;
  height: 100%;
}
#process .process-card i {
  font-size: 3.5rem;
}
#process .process-card h3 {
  margin: 1.5rem 0 1rem;
}
#process .process-card p {
  text-align: start;
  margin-bottom: 0;
}

.split {
  display: inline-block;
  overflow: hidden;
  text-shadow: 0 1.3em currentColor; /* 和 JS 位移一致 */
  will-change: transform;
  padding: 1 1rem;
}

.char {
  display: inline-block;
  position: relative;
}

section {
  padding: 8rem 0rem;
  overflow: hidden;
}
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

a {
  text-decoration: none;
  color: #ff6a00;
}

img {
  -o-object-fit: cover;
     object-fit: cover;
}

.all-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: -1;
  opacity: 0.35;
}
.all-bg img {
  width: 100%;
  height: 100%;
}

.cta-link {
  position: fixed;
  right: 1rem;
  bottom: 2rem;
  z-index: 999;
  flex-direction: column;
  display: flex;
  gap: 1rem;
  /* 避免子項目被等寬拉伸，同時維持靠右貼齊 */
  align-items: flex-end;
}
@media (max-width: 768px) {
  .cta-link {
    bottom: 1rem;
    right: 0.5rem;
  }
}
.cta-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 2rem;
  overflow: hidden;
}
.cta-link a.line {
  background: #39cd00;
}
.cta-link a.tel {
  background: #ff6a00;
}
.cta-link a.tel svg #background {
  fill: #ff6a00;
}
.cta-link a.tel svg #icon {
  fill: white;
}
.cta-link a .icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.cta-link a .icon svg {
  width: 50px;
}
.cta-link a .label {
  white-space: nowrap;
  overflow: hidden;
  color: white;
  /* 用可動畫屬性取代 display */
  opacity: 0;
  visibility: hidden;
  max-width: 0; /* 或用 width，依喜好 */
  margin-left: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, max-width 0.3s ease, margin-left 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.cta-link a:hover {
  gap: 0.5rem;
}
.cta-link a:hover .label {
  opacity: 1;
  visibility: visible;
  max-width: 200px;
  margin-left: 0rem;
  padding-right: 1rem;
  transform: translateX(0);
  transition: opacity 0.3s ease, max-width 0.3s ease, margin-left 0.3s ease, transform 0.3s ease, visibility 0s;
}
.cta-link .dropdown-menu {
  margin-right: 0.25rem;
  margin-left: 0;
}

.navbar.scrolled {
  background: #0f1a2d;
}
.navbar.scrolled .navbar-brand span {
  transform: translateX(0rem);
}
.navbar.scrolled .navbar-brand img {
  width: 100px;
  transition: 0.5s;
}
@media (max-width: 768px) {
  .navbar.scrolled .navbar-brand img {
    width: 70px;
  }
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  z-index: 1049;
  transition: 0.5s;
  padding: 0;
}
.navbar .navbar-toggler {
  border-color: rgb(203, 203, 203);
}
.navbar .navbar-toggler .navbar-toggler-icon {
  filter: invert(1);
}
.navbar .container-fluid {
  padding-left: 0;
}
.navbar .navbar-brand {
  transition: 0.5s;
  display: flex;
  align-items: center;
  gap: 0rem;
  padding: 1rem;
}
.navbar .navbar-brand svg {
  width: 100px;
  fill: white;
}
.navbar .navbar-brand span {
  color: white;
  font-size: 1.5rem;
  padding-left: 0.5rem;
  font-weight: 500;
  z-index: -1;
}
@media (max-width: 768px) {
  .navbar .navbar-brand span {
    font-size: 1.3rem;
  }
}
.navbar .navbar-brand img {
  width: 125px;
  transition: 0.5s;
}
@media (max-width: 768px) {
  .navbar .navbar-brand img {
    width: 90px;
  }
}
.navbar .navbar-collapse {
  flex-grow: 0;
}
@media (max-width: 768px) {
  .navbar .navbar-collapse {
    padding-top: 1rem;
    padding: 2rem 1rem 1rem;
  }
}
.navbar .navbar-collapse .navbar-nav {
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .navbar .navbar-collapse .navbar-nav {
    gap: 0.5rem;
  }
}
.navbar .navbar-collapse .navbar-nav .nav-item .nav-link {
  color: white;
}
.navbar .navbar-collapse .navbar-nav .nav-item.cta {
  background: #ff6a00;
}

.parallax-fixed {
  position: relative;
  height: 100vh; /* 可自行調整高度 */
  overflow: hidden;
}
.parallax-fixed .parallax-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 120%;
}
.parallax-fixed .parallax-img img {
  width: 100%;
  height: 100%;
}

.parallax-dynamic {
  position: relative;
  /* 高度交給圖片本身決定 */
}
.parallax-dynamic .parallax-media {
  overflow: hidden;
  line-height: 0; /* 移除 img 作為 inline 元素的行高縫隙 */
}
.parallax-dynamic .parallax-media img {
  display: block;
  width: 100%;
  height: auto;
  /* 關鍵：先往上、並放大一點，避免上下兩端出現空白 */
  transform: translateY(-12%) scale(1.12);
  transform-origin: center;
  will-change: transform;
}

#hero {
  width: 100%;
  height: 100vh;
  position: relative;
}
@media (max-width: 768px) {
  #hero {
    height: auto;
  }
}
#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #0f1a2d;
  z-index: 0;
  -webkit-clip-path: polygon(0 0, 80% 0%, 100% 100%, 0% 100%);
          clip-path: polygon(0 0, 80% 0%, 100% 100%, 0% 100%);
}
@media (max-width: 768px) {
  #hero::after {
    display: none;
  }
}
#hero .img-box-car {
  position: absolute;
  bottom: -4.5rem;
  right: 0;
  z-index: 10;
  width: 55%;
  overflow: hidden;
}
@media (max-width: 768px) {
  #hero .img-box-car {
    top: 12rem;
    width: 85%;
  }
}
@media (max-width: 560px) {
  #hero .img-box-car {
    bottom: auto;
    top: 8rem;
    width: 85%;
  }
}
#hero .img-box-car img {
  width: 100%;
  -o-object-position: left;
     object-position: left;
  animation: driveLoop 0.8s ease-out;
}
#hero .img-box-2 {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  z-index: -2;
}
@media (max-width: 768px) {
  #hero .img-box-2 {
    position: relative;
  }
}
#hero .img-box-2 img {
  width: 100%;
  height: 100%;
  -o-object-position: top;
     object-position: top;
}
#hero .text-box {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 7rem 5rem;
}
@media (max-width: 768px) {
  #hero .text-box {
    padding: 0;
    padding: 3rem 0rem;
    background: #0f1a2d;
    text-align: center;
    align-items: center;
  }
}
#hero .text-box .display {
  font-size: 11rem;
  white-space: nowrap;
  font-weight: bolder;
  font-weight: 900;
  padding-bottom: 3.5rem;
  color: rgba(255, 255, 255, 0.192);
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}
@media (max-width: 768px) {
  #hero .text-box .display {
    font-size: 3.5rem;
    text-align: center;
    padding-bottom: 1rem;
  }
}
@media (max-width: 768px) {
  #hero .text-box .content {
    padding: 0 1rem;
  }
}
#hero .text-box .content .logo {
  margin-bottom: 4rem;
}
#hero .text-box .content .logo svg {
  width: 100%;
  fill: white;
  fill: #ff6a00;
}
@media (max-width: 768px) {
  #hero .text-box .content .logo svg {
    width: 80%;
  }
}
#hero .text-box .content p {
  line-height: 2;
}
#hero .text-box .content .btn-box {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
#hero .text-box .content .btn-box a {
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10rem;
  transition: 0.5s;
}
@media (max-width: 768px) {
  #hero .text-box .content .btn-box a {
    padding: 0.5rem 1rem;
  }
}
#hero .text-box .content .btn-box a i {
  padding-left: 0.5rem;
  font-size: 1.3rem;
}
#hero .text-box .content .btn-box a:first-child {
  background: #ff6a00;
  color: white;
}
#hero .text-box .content .btn-box a:last-child {
  border: 1px solid white;
  color: white;
}
#hero .text-box .content .btn-box a:last-child:hover {
  background: white;
  color: #ff6a00;
}

/* 桌機版動畫 */
@keyframes driveLoop {
  0% {
    transform: translateX(40rem);
  }
  70% {
    transform: translateX(0rem);
  }
  82% {
    transform: translateX(-0.9rem);
  } /* 過衝 */
  90% {
    transform: translateX(0.4rem);
  } /* 往回震動 */
  100% {
    transform: translateX(0rem);
  }
}
#about video {
  width: 100%;
  height: 600px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 768px) {
  #about video {
    height: 400px;
  }
}
#about .text {
  padding: 0 8rem;
}
@media (max-width: 768px) {
  #about .text {
    padding: 2rem 1rem 0;
  }
}
#about .text h4 {
  color: #ffc52c;
  font-weight: 500;
  margin-bottom: 2rem;
}
#about .text p {
  line-height: 2;
  margin-bottom: 2rem;
}

.auto-carousel {
  padding: 0;
}
.auto-carousel .swiper {
  width: 100%;
  transform: rotate(0deg);
  position: relative;
}
.auto-carousel .swiper .swiper-wrapper {
  transition-timing-function: linear !important; /* 平滑線性移動 */
}
.auto-carousel .swiper .swiper-slide {
  width: 600px;
  aspect-ratio: 3/2;
}
@media (max-width: 768px) {
  .auto-carousel .swiper .swiper-slide {
    width: 300px;
  }
}
.auto-carousel .swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

#works {
  position: relative;
}
#works .swiper .swiper-button-prev,
#works .swiper .swiper-button-next {
  background: rgba(0, 0, 0, 0.563);
  width: 40px;
  height: 60px;
}
#works .swiper img,
#works .swiper video {
  width: 100%;
  height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 768px) {
  #works .swiper img,
  #works .swiper video {
    height: 300px;
  }
}

@media (max-width: 768px) {
  #contact {
    padding-bottom: 1rem;
  }
}
#contact .contact-box {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  #contact .contact-box {
    margin-bottom: 1rem;
  }
}
#contact .contact-box:last-child {
  margin-bottom: 0;
}
#contact .contact-box .icon-box {
  background: #ff6a00;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
}
#contact .contact-box .icon-box i {
  color: white;
  font-size: 2rem;
}
#contact .contact-box a {
  color: #ff6a00;
  font-weight: 600;
}
#contact .contact-box span {
  display: block;
  color: gray;
  margin-top: 0.5rem;
}

footer {
  padding-bottom: 1rem;
}
footer a {
  text-decoration: underline;
}/*# sourceMappingURL=all.css.map */