* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Noto San TC', 'Arial', sans-serif;
    text-decoration: none;
}

body {
    background: #f8f8f8;
    color: #333;
    text-align: center;
}




/*Top Header＋menu區塊*/
header{
    width: 100%;
    background: #ffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100000;
}


.menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;

  }
li{
    margin: 20px ;
    
}

a{
    color:#005C78 ;
}
a:hover{
    color: palevioletred;
}



/*大banner區塊*/

.slider{
    width: 100%;
    height: auto;
    text-align: center;
    padding-top: 100px;
}

.banner{
    max-width: 1920px;
    height: auto;
}

.banner img{
    width: 100%;
}

/*Portfolio 區塊*/

.work{
    width:100%;
    width: 100%;
    margin: 0 auto;
}


/*sub menu 區塊*/

.sub-menu {
    list-style: none;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
}

.sub-menu li {
    display: inline;
}

.sub-menu li a {
    text-decoration: none;
    padding: 10px 15px;
    color:  #005C78;
    border-radius: 20px;
    transition: 0.3s;
}

.sub-menu li a:hover {
    color: #005C78;
    
    
}

.portfolio-grid{
    width: 1200px;
    height: auto;
    display: flex;
    justify-self: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 10px;
  
}

.grid-item{
    margin: auto;
    padding: 10px 10px;


}

.grid-item img{
    width: 350px ;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: transform 0.3s ease-in-out;
    
}

.grid-item h3{
    padding: 10px 10px;
}
.grid-item p{
    padding-top: 2px;
    padding-bottom: 10px;
}

/* 滑鼠懸停效果 */
.grid-item:hover img {
    transform: scale(1.05); /* 滑鼠懸停時放大 */
    
}


/* Hide elements when filtering */
.hidden {
    display: none;
}

@media screen and (max-width: 768px) {
.portfolio-grid {
    width: 100%;
    /* 若需要可改成垂直排列 */
    flex-direction: column;
    margin: 0 auto;
}

.grid-item {
    width: 90%;
    margin: 10px auto;
}

.grid-item img {
    width: 100%;
    height: auto;
}
}





/* Hide elements when filtering */
.hidden {
    display: none;
}




/* Footer 區塊*/

footer {
    width: 100%;
    background-color: #005C78;  /* 深藍色背景 */
    color: white;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container {
    display: flex;
    justify-content: space-between; /* 讓文字與社群 icon 分開對齊 */
    align-items: center;
    width: 90%;
    max-width: 1200px; /* 最大寬度 */
}

/* 版權文字樣式 */
.footer-text {
    text-align: left;
    font-size: 18px;
}

.footer-text p {
    margin: 5px 0;
}

/* 社群媒體圖示樣式 */
.social-icons {
    display: flex;
    gap: 15px; /* 圖示間距 */
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* 讓圖示變圓 */
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.social-icons a:hover {
    transform: scale(1.2); /* 滑鼠懸停時放大 */
}

/* 圖示顏色 */
.social-icons i {
    font-size: 20px;
    color: #fff;
}

/* 針對不同平台設定品牌顏色 */
.social-icons a:nth-child(1) { background-color:palevioletred; } /* Instagram */

/* 響應式設計（手機版） */
@media (max-width: 768px) {
    footer{
        width: 100%;
    }
    .footer-container {
        flex-direction: column; /* 手機版讓內容垂直排列 */
        text-align: center;
    }

    .footer-text {
        margin-bottom: 15px;
    }
    .about-container{
        width: 80%;
        flex-direction: column; /* 手機版讓內容垂直排列 */
        text-align: center;
    }
}

/*About區塊*/
.about-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding-top: 50px;
    padding-bottom: 20px;
    margin: auto;

}

.about-img{
    width: 100%;
    height: auto;
    padding: 10px 10px;
}
.about-img img{
    width: 350px;
    height: auto;
    border-radius: 200px ;
}

.about-text{
    width: 100%;
    height: auto;
    padding: 10px 30px;
    text-align: left;
}

.about-text h1{
    padding:10px 10px;
    color:#005C78;
}

.about-text h2{
    padding:10px 10px;
    color:#005C78;
}
.about-text p{
    padding:10px 10px;
    line-height: 2;
}

a[href^="mailto:"] {
    color: #005C78; /* 設定 Email 文字顏色 */
    font-weight: bold;
    text-decoration: none; /* 取消底線 */
}

a[href^="mailto:"]:hover {
    color: palevioletred; /* 滑鼠懸停時變色 */
    text-decoration: underline;
}

/*Responsive 區塊*/


/*sub-menu mobile*/

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px 5px;
      }
    .menu {
        flex-direction:row;
        gap: 10px;
      }

    .slider{
        width: 100%;
        height: auto;
        padding-top: 169px;

    }
    
    .banner{
        width: 100%;
        height: auto;
    }
    

    .sub-menu {
        display: flex;
        overflow-x: auto; /* 可左右滑動 */
        white-space: nowrap; /* 防止換行 */
        gap: 10px;
        scrollbar-width: none; /* 隱藏滾動條 */
    }

    .sub-menu::-webkit-scrollbar {
        display: none; /* 隱藏滾動條 */
    }

    .about-text h1{
        text-align: center;
    }
    
    .about-text h2{
        text-align: center;
    }
    .about-text p{
        text-align: center;
    }
}
