:root {
    --primary-color: #211B19;
    --secondary-color: #666666;
    --accent-color: #eed9cd;
    --accent-color-hover: #4A3730;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --product-bg: #EDE9E4;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    font-size: 16px;
}

.mulberry-font-ch {
    font-family: "Microsoft JhengHei", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.mulberry-font-en {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.font-cn {
    font-family: "Noto Serif TC", serif !important;
    font-weight: bold;
}

.font-en {
    font-family: "Playfair Display", serif !important;
    font-weight: 500;
}

.header {
    padding: 10px 0;
}

.nav-link:hover {
    color: var(--accent-color-hover);
    transition: var(--transition);
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Product Image Hover Animation */
.mulberry-img {
    transition: all 0.3s ease;
}

.mulberry-img-fill,
.mulberry-img-fill1,
.mulberry-img-fill2,
.mulberry-img-fill3,
.mulberry-img-fill4 {
    transition: all 0.3s ease;
}

/* Service Item Hover Animation */
.service-item img {
    transition: all 0.3s ease-in-out;
}

.service-item h5 {
    transition: all 0.3s ease;
}

/* Form Input Focus Animation */
.form-floating {
    transition: all 0.3s ease;
}

/* Nav Link Hover Animation */
.nav-link {
    transition: all 0.3s ease;
}

/* Language Button Hover Animation */
.btn-link {
    transition: all 0.3s ease;
}

/* Back to Top Button Hover Animation */
.back-to-top {
    transition: all 0.3s ease;
}

/* Footer Social Icons Hover Animation */
.footer-bottom ul li a img {
    transition: all 0.3s ease;
}

.footer-bottom ul li a:hover img {
    transform: scale(1.2);
}

/* About Section Image Animation */
.about-content-img img {
    transition: all 0.5s ease;
}

.about-content-img:hover img {
    transform: scale(1.02);
}

/* Submit Button Hover Animation */
.btn-dark {
    transition: all 0.3s ease;
}

.btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (min-width: 992px) {
    .nav-link {
        margin: 0 10px;
    }
}

.btn-link {
    font-size: 16px;
    color: var(--primary-color);
}

.btn-link:hover,
.btn-link.active {
    color: var(--accent-color);
}

@media (max-width: 991px) {
    .btn-link:nth-child(1) {
        padding-left: 0;
    }
}

.navbar-toggler {
    border: none;
    background-color: transparent;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

#mainHeader.header-fixed {
    padding: 5px 0;
    transition: all .4s ease-in-out;
}

.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

#product {
    position: relative;
    padding: 80px 0 40px;
    background-color: var(--product-bg);
}

@media (min-width: 992px) {
    #product {
        padding: 100px 0;
    }
}

.product-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-10%);
}

.product-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.product-content p {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: normal;
    line-height: 1.6;
    margin-bottom: 0;
}

.product-img {
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
    z-index: 1;
    transform: scale(0.8);
    width: 365px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

@media (min-width: 992px) {
    .product-img {
        transform: scale(1);
    }
}

.product-img p {
    font-size: 150px;
    font-weight: 900;
    margin: 0;
    position: absolute;
    right: 70%;
    top: -50px;
    transform: translateX(-50%);
}

.product-img3 p {
    right: 50%;
}

.mulberry-img-fill {
    position: absolute;
    z-index: 2;
}

.mulberry-img-fill1 {
    top: -82px;
    left: 50%;
    transform: translateX(-54%);
}

.mulberry-img-fill2 {
    top: -70px;
    transform: translateX(-42%);
}

.mulberry-img-fill3 {
    top: -70px;
    left: 50%;
    transform: translateX(-74%);
}

.mulberry-img-fill4 {
    top: -68px;
    transform: translateX(-48%);
}

@media (max-width: 991px) {

    .product-content h2 {
        font-size: 26px;
        margin-bottom: 1rem;
    }

    .product-content p {
        font-size: 16px;
    }
}

.mulberry-gradient-m {
    background-image: linear-gradient(-90deg, rgba(255, 255, 255, 0) 14.423%, #eed9cd 70.673%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mulberry-img {
    width: 356px;
    height: 356px;
    border-radius: 230px;
    box-shadow: 10px 16px 0 0 #eed9cd;
}

.height-100 {
    padding: 25px 0;
}

@media (min-width: 992px) {
    .height-100 {
        padding: 35px 0;
    }
}

.position1 {
    position: absolute;
    bottom: 0px;
    right: 0;
    z-index: 1;
    font-size: 38px;
    font-weight: 900;
    color: var(--accent-color);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .position1 {
        font-size: 68px;
    }
}

@media (min-width: 992px) {
    .position1 {
        font-size: 88px;
        bottom: -20px;
    }
}

@media (min-width: 1400px) {
    .position1 {
        font-size: 108px;
    }
}

.mulberry-img-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .product-content-m {
        margin-top: 20px;
    }
}

#about {
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

@media (min-width: 992px) {
    #about {
        padding: 100px 0;
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* align-items: center; */
    height: 100%;
    padding-left: 0;
}

/* @media (min-width: 1200px) {
    .about-content {
        padding-left: 60px;
    }
} */

.title-content h2 {
    display: inline-block;
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 400;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.title-content h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 8px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.title-content h4 {
    font-size: 32px;
    color: var(--accent-color-hover);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1rem;
}

.title-content span {
    display: inline-block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-content-top {
    margin-top: 2rem;
}

/* @media (min-width: 992px) {
    .about-content-top {
        margin-top: 4rem;
    }
}

@media (min-width: 1400px) {
    .about-content-top {
        margin-top: 8rem;
    }
} */

.about-content-top p {
    font-size: 18px;
    font-weight: 400;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 0;
}

.about-content-bottom {
    margin: 14px 0;
    padding-top: 30px;
}

@media (min-width: 992px) {
    .about-content-bottom {
        padding-top: 0;
    }
}

.about-content-bottom ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

@media (min-width: 992px) {
    .about-content-bottom ul {
        justify-content: space-between;
    }
}

.about-content-bottom ul li {
    margin: 10px;
}

.about-content-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1200px) {
    .about-content-img {
        padding-right: 50px;
    }
}

#service {
    padding: 50px 0;
    position: relative;
    z-index: 1;
    background-attachment: fixed;
    background-image: url(../images/sbj.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

/* Fix for iOS background-attachment issue */
@media only screen and (max-device-width: 1024px) {
    #service {
        background-attachment: scroll;
    }
}

@media (min-width: 992px) {
    #service {
        padding: 100px 0 200px;
    }
}

@media (min-width: 1400px) {
    #service {
        padding: 100px 0 280px;
    }
}

.width-lg {
    padding-top: 20px;
}

@media (min-width: 992px) {
    .width-lg {
        max-width: 1100px;
        margin: 0 auto;
    }

    .width-900 {
        max-width: 900px;
        margin: 0 auto;
    }
}

.service-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 991px) {
    .service-item {
        margin-bottom: 30px;
    }
}

.service-item img {
    transition: all 0.3s ease-in-out;
}

.service-item h5 {
    margin: 15px 0 20px;
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .service-item h5 {
        margin: 25px 0 30px;
    }
}

.service-item p {
    font-size: 16px;
    color: var(--secondary-color);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0;
}

#serviceimg {
    padding: 14px 0 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    #serviceimg {
        padding: 100px 0;
    }

    .service-img {
        position: absolute;
        transform: translateY(-50%);
    }

    .height-service {
        height: 140px;
    }
}

@media (min-width: 1300px) {
    .height-service {
        height: 200px;
    }
}

.position2 img {
    display: none;
}

@media (min-width: 992px) {
    .position2 {
        width: 30%;
        bottom: 0;
    }

    .position2 img {
        display: block;
    }
}

@media (min-width: 1200px) {
    .position2 {
        width: 34%;
    }
}

@media (min-width: 1900px) {
    .position2 img {
        display: block;
        transform: scale(1);
    }
}

.service-col-img img {
    transition: all 0.3s ease-in-out;
}

.service-col-img:hover img {
    transform: rotateY(4deg) rotateX(6deg) translateZ(5px) scale(1.04);
}

#serviceimg .service-img img.d-lg-none.d-block {
    transition: all 0.3s ease-in-out;
}

#serviceimg .service-img img.d-lg-none.d-block:hover {
    transform: scale(1.02);
}

#contact {
    padding: 50px 0;
    z-index: 1;
}

@media (min-width: 992px) {
    #contact {
        padding: 100px 0;
    }
}

.label-title {
    font-size: 16px;
    font-weight: 400;
    color: #999;
}

#footer {
    background-image: url(../images/footer-bj.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    padding: 50px 0 10px;
}

@media (min-width: 992px) {
    #footer {
        padding: 80px 0 15px;
    }
}

.footer-top ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.list-inline-item {
    width: 100%;
}

.footer-item p {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: normal;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (min-width:768px) {
    .footer-top ul {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .list-inline-item {
        width: 50%;
    }

    .list-inline-item:nth-child(1) {
        padding-right: 50px;
    }

    .list-inline-item:nth-child(1) .footer-item p {
        width: 400px;
    }

    .list-inline-item:nth-child(2) {
        padding-left: 50px;
        display: flex;
        justify-content: flex-end;
    }
}

.footer-item-box h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.footer-info-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.footer-info-item p {
    margin-bottom: 0;
    font-size: 16px;
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(246, 221, 207, 0.7);
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.footer-bottom ul li {
    margin: 5px;
}

.footer-text {
    font-size: 14px;
    color: var(--secondary-color);
    padding: 10px 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top img {
    width: 24px;
    height: 24px;
}


@media (max-width: 1200px) {
    .about-content-top p {
        font-size: 16px;
    }
}

.form-control:focus {
    border: 1px solid #EDE9E4;
    box-shadow: 0 0 0 0.25rem rgba(237, 233, 228, 0.685);
}