@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&display=swap');

:root {
    --primary: rgb(255, 132, 0);
    --background-color: #252e34;
    --serif: "Noto Serif TC", serif;
    --sans: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    --font-color:rgb(100,100,100);
}

body{
    padding-top: 85px;
    font-family: var(--sans);
    background-color:#F8F8F8;
    color: var(--font-color);
}
main{
    min-height: 300px;
}
h1,h2,h3,h4,p{
    margin: 0;
    padding: 0;
    color: rgb(80,80,80);
}
ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}
a{
    text-decoration: none;
    color: var(--font-color);
}

header{
    background-color: var(--background-color);
    color: white;
    position: fixed;
    top:0;
    left:0;
    z-index: 100;
    padding: 10px 20px;
    width: calc(100% - 40px);
    min-height: 65px;
}
header a{
    color: white;
}

#logo{
    position: relative;
    z-index: 1000;
    margin: 5px 0 0 25px;
    width: 150px;
}


.banner{
    position: relative;
    width: 100%;
    aspect-ratio:2/1; 
    /* max-height:300px; */
    overflow:hidden;
}
.banner img{
    display:block;
    width:100%;
    height: 100%;
    object-fit:cover;
}



.hero{
    position: relative;
    width: 100%;
    overflow: hidden;
}



.hero-text{
    z-index:10;
    padding: 30px 40px;
}
.hero-text h1{
    font-size: clamp(36px, 3.8vw, 7vw);
    color: var(--primary);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.663);
    font-weight: 800;

}

.hero-text h2{
    color: black;
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.921);
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.921);
    font-size: clamp(18px, 2.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.6em;
    margin: 12px 0 20px 0;
}


.hero-media{
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}
.hero-media img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-media img.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* ===== UI ===== */
.hero-ui {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-arrows {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    pointer-events: none;
}

.hero-arrow {
    pointer-events: auto;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(1px);
    transition: background 0.25s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-arrow svg {
    width: 22px;
    height: 22px;
    display: block;
}

.hero-arrow path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: scale(1.05);
}

.hero-arrow:active {
    transform: scale(0.98);
}

.hero-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    padding: 0 16px;
}

.hero-dots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    pointer-events: auto;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(246, 139, 0, 0.72);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-dot:hover {
    transform: scale(1.3);
    background: rgba(253, 104, 18, 0.5);
}

.hero-dot.is-active {
    background: rgba(254, 153, 0, 0.77);
    transform: scale(1.5);
}

.hero-counter {
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.28);
    padding: 8px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}


.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #fff;
    text-align: center;
    padding: 24px;
}

.hero-content-inner {
    max-width: 900px;   
}

.hero-content h1 {
    font-size: clamp(28px, 4vw, 64px);
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: clamp(14px, 1.4vw, 20px);
    opacity: 0.92;
}



.hero-cta{
    position: absolute;
    bottom:30px;
    left:0;
    width: 100%;
    text-align: right;
    z-index:99;
}
.hero-cta a{
    background-color: rgba(255, 166, 0, 0.6);
    color:white;
    font-size: clamp(14px, 2vw, 28px);
    padding: 1px 2em 4px;
    border-radius: 50px;
    margin-right: 3%;
    box-shadow: 0 0 12px white;
}

.btn-product{
    background-color: var(--primary);
    color: white;
}
.btn-contact{
    color: var(--primary);
    border: 1px solid var(--primary);
    background-color: #ffffffc7;
}

.bullets{
    display: flex;
    gap: 5vw;
}
.bullets div{
    padding: 5px 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid white;
    font-size: clamp(12px, 1.8vw, 1rem);
    border-radius: 8px;
    color: rgb(54, 54, 54);
}


#about,
#hot,
#products,
#apps{
    max-width: 960px;
    margin:0 auto;
    padding: 30px;
}

#about h3,
#hot h3,
#products h3,
#apps h3{
    font-size: 2.3em;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

#about{
    display: flex;
    flex-wrap: wrap;
}
#about h3{
    width: 100%;
}
#about .cta{
    flex:1;
    border:1px solid rgb(255, 202, 105);
    background: #fcefe4;
    padding: 20px;
    margin: 10px 20px;
    border-radius: 12px;
}
#about .cta h4{
    font-size: 1.3em;
    margin: 0 0 12px 0;
}
#about .cta div p{
    letter-spacing: 0.05em;

}

#hot{

}

.hotList{
    display: flex;
    flex-wrap:wrap;
}

.hotList article{
    border: 1px solid rgb(220, 220, 220);
    margin:10px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 3px 3px 26px rgba(0, 0, 0, 0.1);
    flex:1 0 calc(33.3% - 42px);
}


.card-media{
    width:100%;
    aspect-ratio:4/3; 
    background:#fff; 
    overflow:hidden;
}
.card-media img{
    height: 100%;
    width: 100%;
    object-fit:cover;
}

.card-body .meta{
    color:rgb(146, 146, 146);
}
.card-body h4{
    font-size: 1.8em;
    font-weight: 500;
    margin: 0;
}
.card-body .btn{
    color: white;
    background-color: var(--primary);
    margin: 20px 5px 10px auto;
    padding: 10px;
    border-radius: 12px;
    display: block;
    width: 120px;
    text-align: center;
}

.hoverScale img{
    transition: 0.6s;
}
.hoverScale:hover img{
    transform: scale(1.2);
}

#products{
    min-height: 300px;
}
.cate{
    display: flex;
    flex-wrap: wrap;
    align-content:stretch ;
    max-width: 900px;
    margin: auto;
}

.cate article{
    border: 1px solid rgb(220, 220, 220);
    margin:30px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 3px 3px 26px rgba(0, 0, 0, 0.1);
    flex:1 1 calc(50% - 82px);
}

.cate .card-media{
    width:100%;
    aspect-ratio:16/9; 
    overflow:hidden;
}
.cate img{
    height: 100%;
    width: 100%;
    object-fit:contain;
}


#apps .app-list{
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
    align-content:stretch ;
    justify-content: space-evenly;
}

#apps .app-list .app{
    border: 1px solid rgb(220, 220, 220);
    margin:10px;
    width:calc(25% - 42px);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 3px 3px 26px rgba(0, 0, 0, 0.1);
    flex:1 0 200px;
}

#apps .app h4{
    font-size:1.4em;
    margin: 0;
}


.cta{
    background: linear-gradient(135deg, #0059b3, #003d80);
    padding: clamp(26px, 4vw, 46px);
    text-align: center;
    max-width: 960px;
    margin: 50px auto;
    border-radius: 12px;
}
.cta h3,
.cta p,
.cta a{
    color: #fff;
}
.cta h3{
    font-size:1.8em;
    margin-bottom: 16px;
}
.cta p{
}
.cta a{
    background-color: #fff;
    padding: 10px 30px;
    display: inline-block;
    margin: 20px 0;
    border-radius: 999px;
    color:var(--primary);
}
.cta a:hover{
    background-color: var(--primary);
    color:#fff
}




footer{
    background-color: var(--background-color);
    padding: 30px 50px;
    color: white;
}

footer .container{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 30px;
}
footer .container div{
    flex: 1;
    padding: 0 30px;
}
footer .container .logo{
    width: 160px;
}
footer .container h2,
footer .container h4,
footer .container p{
    padding-left: 12px;
    color: white;
}
footer .container h2{
    font-size: 2.1em;
    color: var(--primary);
    position: relative;
    top:-8px;
    line-height: 1.1em;
}

footer .container em{
    font-style: normal;
    font-size: 1.5em;
}


footer .info{
    margin-top: 1.5em;
}

footer .CTAbtn{
    background-color: #fff;
    padding: 6px 30px;
    display: inline-block;
    margin: 20px 0;
    border-radius: 999px;
    color:var(--primary);
}


footer .CTAbtn:hover{
    background-color: var(--primary);
    color:#fff
}





footer .copyright{
    border-top: 1px solid white;
    margin-top: 20px;
    padding-top: 25px;
    text-align: center;
}
footer .copyright p{
    color: white;
}


/* WhatsApp Button */
.wa-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: waBreath 2.8s ease-in-out infinite;
}

.wa-icon {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  animation-play-state: paused;
}

.wa-btn:active {
  transform: scale(0.96);
}

@keyframes waBreath {
  0%, 100% {
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.16),
      0 0 0 0 rgba(37, 211, 102, 0.00),
      0 0 0 0 rgba(37, 211, 102, 0.00);
  }
  50% {
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.18),
      0 0 0 8px rgba(37, 211, 102, 0.10),
      0 0 18px 6px rgba(37, 211, 102, 0.18);
  }
}

@media (max-width: 768px) {
  .wa-btn {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .wa-icon {
    width: 24px;
    height: 24px;
  }
}

.contact{
    position: absolute;
    top: 600px;
    right: 10px;

}

@media (max-width: 768px) {
  .wa-btn {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }

  .wa-icon {
    width: 28px;
    height: 28px;
  }
}



@media screen and (max-width: 1061px){
    #logo{
        position: fixed;
    }
    
}



@media screen and (max-width: 600px){

    .hero-text h1 br{
        display: inline-block;
    }

    #about .cta{
        display: block;
    }

    #about .cta a{
        color: white;
        background-color: var(--primary);
        margin: 20px 5px 10px auto;
        padding: 10px;
        border-radius: 12px;
        display: block;
        width: 120px;
        text-align: center;
    }


    .bullets{
        display: block;
    }
    .bullets div{
        margin-bottom: 12px;
        
    }

    footer{
        padding: 30px ;
    }
    footer .container{
        display: block;  
        padding: 0 10px;
    }
    footer .container div{
        padding: 0 10px 20px 0;
        
    }

}


