﻿*, *::before, *::after {
    margin: 0;
    padding: 0;
}

:root {
    --ghost-white: hsl(230, 60%, 98%);
    --cool-gray: hsl(225, 11%, 59%);
    --mustard: hsl(47, 100%, 69%);
    --raisin-black-1: hsl(240, 8%, 17%);
    --shadow-3: 0px 4px 4px hsla(231, 20%, 49%, 0.06);
    --mustard: hsl(47, 100%, 69%);
    --fw-500: 500;
    --fs-6: 1.8rem;
    --fs-9: 1.4rem;
    --radius-10: 10px;
    --transition-2: 0.5s ease;
}

html {
    font-size: 16px;
}

#About {
    background-color: ghostwhite;
}

#Project {
    background-color: white;
}

.container {
    /*padding: 0px;*/
}

.section-home{
    padding: 6rem 2rem;
}

.section-title {
    color: var(--cool-gray);
    font-size: 1.2rem;
    font-weight: var(--fw-500);
    line-height: 1.2;
    text-align: center;
}
.carousel-control-button {
    height: 85%;
    width: 50%;
}
.carousel-control-next {
    display: flex;
    justify-content: right;
    padding-right: 50px;
}
.carousel-control-prev {
    display: flex;
    justify-content: left;
    padding-left: 50px;
}
.carousel-caption {
    padding-top: 0px;
    padding-bottom: 0px;
    bottom: 3rem;
    width: 10rem;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
}
.section-title::before {
    content: "";
    position: static;
    width: 12px;
    height: 12px;
    background-color: var(--mustard);
    display: inline-block;
    border-radius: 50%;
    margin-inline-end: 10px;
}
.section-text {
    margin-inline: auto;
    margin-block: 30px 30px;
    font-size: 2.5rem;
    font-weight: bold;
    max-width: 32ch;
}
.section-light{
    display: inline-block;
    position: relative;
    z-index: 1;
}
.section-light::before {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100% !important;
    height: 6px;
    background-color: yellow;
    z-index: -1;
}


.card-image {
    transition: 0.5s ease;
    margin: 40px;
    width: 60px;
    height: 60px;
    background-color: hsla(var(--color), 0.15);
    border-radius: 8px;
}

    .card-image:hover {
        transform: scaleX(-1);
    }

.card-img-top {
    margin: 15px;
    width: 30px;
    height: 30px
}

.card {
    box-shadow: var(--shadow-3);
    border: 0px;
    border-radius: 20px;
    border-block-end: 3px solid transparent;
}

    .card:hover {
        border-color: hsl(var(--color));
    }

.card-body-style{
    height: 6rem;
}

.service-modal .container {
    display: grid;
}

.service-modal-banner {
    max-width: max-content;
}

.service-modal-content {
    padding: 40px 20px;
}

.w-100 {
    width: 100%;
}

body {
    /*background-color: var(--ghost-white);*/
}

.inline-about {
    width: 960px;
    overflow: hidden; /* 避免長方框下面顯示不正常 */
}

.about-image {
    width: 480px;
    height: 480px;
    float: left; /* 圖片在左邊 */
}

.about-text {
    float: right; /* 文字在右邊 */
    width: 480px;
    padding: 2rem;
}

    .about-text h1 {
        padding: 1rem 0px;
    }

    .about-text p {
        padding: 1rem 0px;
    }

.gslide-inline .ginlined-content {
    padding: 0;
}

.project-text {
    margin-block: 4rem 2rem;
    font-size: 2.5em;
    font-weight: bold;
    max-width: 19ch;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 17px;
    padding: 0px 0px;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin: auto;
    width: 250px;
    height: 250px;
}

    .project-card .card-content {
        position: absolute;
        top: 50%;
        left: 20px;
        right: 20px;
        background-color: var(--mustard);
        border-radius: var(--radius-10);
        padding: 60px 20px;
        text-align: center;
        opacity: 0;
        transform: translateY(calc(-50% + 20px));
        transition: var(--transition-2);
    }

    .project-card:is(:hover, :focus-within) .card-content {
        opacity: 1;
        transform: translateY(-50%);
    }

    .project-card .card-banner img {
        transition: var(--transition-2);
    }

    .project-card:hover .card-banner img {
        transform: scale(1.1);
        filter: brightness(0.8);
    }

    .text-center {
        text-align: center;
    }

#Contact {
    background-color: #28282f;
}

.tab-content {
    text-indent: 2em;
}

/* .container defaut 1320*/
@media screen and (max-width: 1400px) {
    /* .container defaut 1140*/
    .project-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    /* .container defaut 960*/
    .project-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    /* .container defaut 720*/
    .inline-about {
        width: 650px;
    }

    .about-image {
        width: 300px;
        height: 300px;
        float: left; /* 圖片在左邊 */
    }

    .about-text {
        float: right; /* 文字在右邊 */
        width: 350px;
        padding: 10px;
    }

        .about-text h1 {
            padding: 0rem 0px;
        }

        .about-text p {
            padding: 0rem 0px;
        }
    .project-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    /* .container defaut 540*/
    .inline-about {
        width: 414px;
    }

    .about-image {
        width: 414px;
        height: 414px;
        float: left; /* 圖片在左邊 */
    }

    .about-text {
        float: right; /* 文字在右邊 */
        width: 414px;
        padding: 10px;
    }

        .about-text h1 {
            padding: 0rem 0px;
        }

        .about-text p {
            padding: 0rem 0px;
        }
    .project-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 576px) {
    /* .container defaut 540*/
    .project-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

