:root {
  --text-color: #ffffff;
  --grey: #a6a6a6;
  --footer-grey: rgba(166, 166, 166, 0.45);
}

* {
  box-sizing: border-box;
  position: relative;
}
html,
body {
  font-family: 微軟正黑體;
  color: var(--text-color);
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  padding: 0;
  margin: 0;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: var(--text-color);
}

/*------------------------------------*\
    Layout
\*------------------------------------*/
.container {
  margin: 0 auto;
  max-width: 1200px;
  height: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
.row {
  margin: 0 -16px;
}
.row:after {
  content: "";
  display: block;
  clear: both;
}
.col-1-2,
.col-1-4,
.col-1-3 {
  display: flex;
  padding: 0 16px;
  width: 33.33333%;
  float: none;
  margin-bottom: 30px;
}
.col-1-2 {
  width: 50%;
}
.col-1-4 {
  width: 25%;
}
.col-1-3 {
  width: 33.33333%;
}
@media (max-width: 820px) {
  .col-md-1-1 {
    width: 100%;
  }
  .col-md-1-2 {
    width: 50%;
  }
}
@media (max-width: 576px) {
  .col-sm-1-1 {
    width: 100%;
  }
}

.header {
  position: fixed;
  z-index: 100;
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  transition: all 0.3s ease-in-out;
}

/* hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav {
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  background-color: var(--grey);
  z-index: 1000;
  padding: 15px 0;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
  font-weight: bolder;
}

.wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}
.hero-image {
  width: 100%;
  max-width: 650px;
  padding: 0 20px;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.sub-bg {
  position: relative;
  overflow: hidden;
}
.sub-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/sub-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
  pointer-events: none;
}

.sub-bg .container {
  position: relative;
  z-index: 2;
}

.sub-bg .container {
  position: relative;
  z-index: 2;
}
.services-section,
.process-slider,
.app-service {
  position: relative;
  background: transparent;
}
.service-card,
.services-swiper .slider-item,
.process-swiper .slider-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.about {
  padding: 120px 0;
  background-color: #f5f5f5;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: end;
  padding: 45px;
}

.about-text {
  flex: 1;
}

.about-text h5 {
  font-size: 16px;
  margin-bottom: 10px;
}

.about-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.about-text p {
  line-height: 1.6;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
}

.services-slider {
  padding: 80px 0;
  color: var(--white);
}
.process-slider {
  padding: 80px 0;
  color: var(--white);
}
.process-slider .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.slider-item ul {
  list-style: none;
}

.slider-item li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.services-swiper {
  width: 100%;
  padding: 20px 50px;
}

.services-swiper .swiper-slide {
  height: auto;
  padding: 20px 32px 20px 37px;
}

.services-swiper .slider-item {
  height: 100%;
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.services-swiper .slider-item h3 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: bold;
}

.services-swiper .slider-item h4 {
  font-size: 24px;
  margin-bottom: 20px;
}

.services-swiper .slider-item ul {
  list-style: none;
  padding: 0;
}

.services-swiper .slider-item li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.services-swiper .swiper-button-next,
.services-swiper .swiper-button-prev {
  color: var(--text-color);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.services-swiper .swiper-button-next:hover,
.services-swiper .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.3);
}

.services-swiper .swiper-button-next::after,
.services-swiper .swiper-button-prev::after {
  font-size: 20px;
}

@media (max-width: 768px) {
  .services-swiper {
    padding: 20px 40px;
  }

  .services-swiper .slider-item {
    padding: 20px;
  }

  .services-swiper .slider-item h3 {
    font-size: 28px;
  }

  .services-swiper .slider-item h4 {
    font-size: 20px;
  }

  .services-swiper .slider-item li {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .services-swiper {
    padding: 20px 30px;
  }

  .services-swiper .slider-item {
    padding: 20px;
  }
}

.process-icon-layout {
  position: relative;
  height: 200px;
  margin: 60px 0;
  padding: 0 30px;
}

.connection-line {
  position: absolute;
  top: 50%;
  left: 5%;
  width: 90%;
  height: 100%;
  transform: translateY(-50%);
  z-index: 1;
}

.connection-line path {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
  stroke-dasharray: 8;
  fill: none;
}

.process-icons-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 60px;
}

.process-icon {
  position: absolute;
  z-index: 2;
  width: 60px;
  height: 60px;
}

.process-icon:nth-child(1) {
  left: 3%;
  top: 18%;
}

.process-icon:nth-child(2) {
  left: 50%;
  top: 14%;
}

.process-icon:nth-child(3) {
  right: 2%;
  top: 5%;
}

.process-icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .process-icon-layout {
    height: 160px;
  }

  .process-icons-container {
    padding: 0 40px;
  }

  .process-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .process-icon-layout {
    height: 120px;
  }

  .process-icons-container {
    padding: 0 20px;
  }

  .process-icon {
    width: 40px;
    height: 40px;
  }
}

.process-swiper {
  width: 100%;
  padding: 20px 50px;
}

.process-swiper .swiper-slide {
  height: auto;
  padding: 20px;
}

.process-swiper .slider-item {
  height: 100%;
  padding: 30px 40px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.process-swiper .slider-item h4 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.process-swiper .slider-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

.process-swiper .swiper-button-next,
.process-swiper .swiper-button-prev {
  color: var(--text-color);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.process-swiper .swiper-button-next:hover,
.process-swiper .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.3);
}

.process-swiper .swiper-button-next::after,
.process-swiper .swiper-button-prev::after {
  font-size: 20px;
}

@media (max-width: 768px) {
  .process-swiper {
    padding: 20px 40px;
  }

  .process-swiper .slider-item {
    padding: 20px 40px;
  }

  .process-swiper .slider-item h4 {
    font-size: 20px;
  }

  .process-swiper .slider-item p {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .process-swiper {
    padding: 20px 30px;
  }
}
.service-title {
  margin-bottom: 40px;
}

.services-section {
  padding: 160px 0;
  color: var(--white);
}

.services-section .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -16px;
  &:after {
    content: none;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 10px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
}

.service-icon img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.service-title {
  font-size: 20px;
  margin: 0;
}
@media (max-width: 768px) {
  .services-section .row {
    margin: 0 -8px;
  }

  .services-section [class*="col-"] {
    padding: 0 8px;
  }

  .service-card {
    margin-bottom: 16px;
  }
}

@media (max-width: 576px) {
  .service-card {
    margin-bottom: 16px;
  }
}

.service-list {
  flex: 1;
  list-style: none;
  margin: 0 54px;
  padding: 0;
}

.service-list li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.4;
}

.service-list-special .main-item {
  line-height: 1.4;
  margin-bottom: 8px;
}

.service-list-special .sub-item {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.app-service {
  padding: 160px 0;
  color: var(--white);
}
.app-service-content {
  display: flex;
  align-items: stretch;
  gap: 50px;
  padding: 0 20px;
}

.app-service-info {
  flex: 1;
  padding: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.app-service-info .service-header {
  margin-bottom: 20px;
}
.app-service-info .service-list {
  margin: 0 54px;
}

.app-service-image {
  flex: 1;
}

.app-service-image img {
  width: 100%;
  border-radius: 15px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 50px;
  padding: 0 20px 60px 45px;
  margin: 40px 0 40px 0;
}

.contact-info {
  flex: 1;
}

.contact-item {
  margin: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
}

.contact-text {
  font-size: 16px;
  line-height: 1.4;
}

.contact-image {
  flex: 1;
}

.contact-image img {
  width: 100%;
  border-radius: 8px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}
.contact-section {
  padding: 140px 0 0 0;
  position: relative;
  overflow: hidden;
  color: var(--white);
  flex: 1;
}
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

footer {
  background: var(--footer-grey);
  padding: 15px 0;
  text-align: center;
  color: var(--white);
  margin-top: auto;
  z-index: 99;
}

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  body {
    font-size: 20px;
    line-height: 1.6;
  }

  h1 {
    font-size: 48px;
    line-height: 1.3;
  }

  h2 {
    font-size: 40px;
    line-height: 1.4;
  }
  .hero-image {
    max-width: 1200px;
  }
  .about-text h5 {
    font-size: 20px;
  }

  .about-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .about-text p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 24px;
  }

  .services-swiper .slider-item h3 {
    font-size: 42px;
  }

  .services-swiper .slider-item h4 {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .services-swiper .slider-item li {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .process-swiper .slider-item h4 {
    font-size: 32px;
    margin-bottom: 25px;
  }

  .process-swiper .slider-item p {
    font-size: 20px;
    line-height: 1.8;
  }

  .service-title {
    font-size: 24px;
  }

  .service-list li {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 12px;
    margin-left: 13px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }
  .service-list-special .sub-item {
    font-size: 20px;
  }

  .contact-text {
    font-size: 20px;
    line-height: 1.6;
  }

  .contact-icon {
    width: 25px;
    height: 25px;
  }

  .process-icon {
    width: 80px;
    height: 80px;
  }

  .process-icon-layout {
    height: 250px;
  }

  .services-section,
  .app-service {
    padding: 200px 0;
  }

  .about {
    padding: 160px 0;
  }

  .about-content,
  .app-service-content,
  .contact-content {
    gap: 80px;
    padding: 60px;
  }

  .nav {
    height: 80px;
  }

  .nav-links a {
    font-size: 20px;
  }

  .logo img {
    height: 50px;
  }

  footer {
    font-size: 16px;
    padding: 20px 0;
  }
}

@media (max-width: 1024px) {
  .about-content,
  .app-service-content {
    flex-direction: row;
    align-items: center;
  }

  .hero-image {
    width: 90%;
  }
}

@media (max-width: 576px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--grey);
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    z-index: 1000;
  }
  .nav-links.active {
    height: auto;
    padding: 20px 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
    width: 100%;
    text-align: center;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 20px;
  }

  .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links li:nth-child(5) {
    transition-delay: 0.5s;
  }

  .slider-item {
    flex: 0 0 100%;
  }
  .process-slider .slider-item {
    flex: 0 0 100%;
  }

  .slider-item h3 {
    font-size: 24px;
  }

  .slider-item h4 {
    font-size: 20px;
  }

  .service-card {
    min-width: 100%;
  }

  .contact-content,
  .app-service-content {
    flex-direction: row;
  }
}

@media (max-width: 576px) {
  .hero-image {
    width: 95%;
  }

  .slider-wrapper {
    padding: 0 20px;
  }

  .service-card {
    padding: 20px 8px 20px 42px;
  }
  .about-content,
  .contact-content,
  .app-service-content {
    flex-direction: column;
    padding: 16px;
  }
}
