* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

/*
:root {
  filter: invert(100%);
}
*/

html {
    /*
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
*/
}

body {
    background-color: #1F2123;
    color: white;
}


/*四個模糊泡泡飄動背景*/
.doodle1 {
    position: fixed;
    opacity: 0.6;

    --rule: ( :doodle {
            @grid: 2 / 100vmax;
            background: #101112;
        }

        filter: blur(@rand(2vmax, 4vmax));
        border-radius: @rand(50%, 100%) @rand(50%, 100%) @rand(50%, 100%) @rand(50%, 100%);
        background: hsla(@pick-d(197, 230, 260, 333), @rand(20%, 100%), @rand(0%, 45%), @rand(0.3, 0.5));

        animation: move 7s linear alternate infinite;

        @keyframes move {
            0% {
                transform: translate(@rand(-30%, 30%), @rand(-30%, 30%)) scale(@rand(0.5, 1.5));
            }

            100% {
                transform: translate(@rand(-50%, 50%), @rand(-50%, 50%));
            }
        }

    )
}


/*NAVBAR(Responsive)--START--*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 10%;
    display: flex;
    z-index: 100;
    justify-content: space-between;
    align-items: center;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 38, 39, 0.6);
    backdrop-filter: blur(3px);
    z-index: -1;
}

.navbarLogo img {
    height: 36px;
    margin: 10px;
    display: flex;
    align-items: center;
}

.navbarLink {
    display: flex;
    align-items: center;
}

.navbarItem a,
.langOptions a {
    user-select: none;
    cursor: pointer;
    padding: 0 1.25rem;
    color: white;
    text-decoration: none;
    transition: 0.2s ease;
}

.navbarItem a:hover,
.langOptions a:hover {
    text-shadow: 0 0 0.5rem #A9BAD5;
    /* 光暈效果*/
}

#itemCheck,
#langCheck {
    display: none;
}

.navbarIcon {
    display: flex;
    align-items: center;
    margin: 1rem 1.25rem;
    margin-right: 0;
}


.langIcon {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    border-radius: 50%;
}

.langIcon:hover {
    background-color: #A9BAD533;
    box-shadow: 0 0 0.4rem #A9BAD5;
    /* 光晕效果 */
}

.hamberger {
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
    display: none;
}

.langOptions {
    position: absolute;
    top: 100%;
    right: 7.5%;
    min-width: calc(5% + 3rem);
    height: 0;
    background-color: rgba(37, 38, 39, 0.6);
    backdrop-filter: blur(3px);
    overflow: hidden;
    transition: 0.3s ease;
}

#langCheck:checked ~ .langOptions {
    height: 8rem;
}

.langOptions a {
    height: 2.5rem;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-50px);
    opacity: 0;
    transition: 0.3s ease;
}

#langCheck:checked ~ .langOptions a {
    transform: translateY(0);
    opacity: 1;
}


/*BREAKPOINT FOR NAVBAR*/
@media (max-width: 992px) {
    .navbar {
        padding: 0 5%;
    }

    .langOptions {
        right: 2%;
    }
}

@media (max-width: 576px) {
    .hamberger {
        display: flex;
    }

    #itemCheck:checked ~ .navbarIcon .hamberger #openHamberger {
        display: none;
    }

    .hamberger #closeHamberger {
        display: none;
    }

    #itemCheck:checked ~ .navbarIcon .hamberger #closeHamberger {
        display: flex;
    }

    .navbarItem {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(37, 38, 39, 0.6);
        backdrop-filter: blur(3px);
        overflow: hidden;
        transition: 0.3s ease;
        border-radius: 0 0 16px 16px;
    }

    #itemCheck:checked ~ .navbarItem {
        height: 16rem;
    }

    .navbarItem a {
        height: 4rem;
        margin: 1rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: 0.3s ease;
    }

    #itemCheck:checked ~ .navbarItem a {
        transform: translateY(0);
        opacity: 1;
    }

    .langOptions {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(37, 38, 39, 0.6);
        backdrop-filter: blur(3px);
        overflow: hidden;
        transition: 0.3s ease;
        border-radius: 0 0 16px 16px;
    }

    #langCheck:checked ~ .langOptions {
        height: 11rem;
    }

    .langOptions a {
        height: 4rem;
        margin: 1rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: 0.3s ease;
    }

    #langCheck:checked ~ .langOptions a {
        transform: translateY(0);
        opacity: 1;
    }
}

/*NAVBAR(Responsive)--END--*/



/*WELCOME PAGE --START--*/
.bgCanvas {
    width: 100%;
    height: 100vh;
    /*        border: 2px solid white;*/
    object-fit: cover;

}

.welcomePage {
    text-align: center;
    transition: opacity 0.2s ease-out;
    /*    scroll-snap-align: start;*/
    /*    scroll-snap-align: end;*/
}

.welcomePage .P1 {
    font-size: 1.25rem;
    letter-spacing: 0.02rem;
    margin-bottom: 1.5rem;
    color: #AAA;
}

.welcomePage .P2 {
    font-size: 1.5rem;
    letter-spacing: 0.02rem;
}

.welcomePage .P2 .P2-1 {
    margin-bottom: 0.5rem;
    letter-spacing: 0.05rem;
}

.welcomePage .P2 .P2-2 {
    margin-bottom: 0.5rem;
    display: inline-block;
    letter-spacing: 0.05rem;
}

.textOverlay {
    color: #DADADA;
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
        
}

.arrowDown {
    cursor: pointer;
    width: 2rem;
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@media (max-width: 576px),
(max-height:576px) {
    .welcomePage .P1 {
        font-size: 1rem;
        letter-spacing: 0.02rem;
        margin-bottom: 1.5rem;
    }

    .welcomePage .P2 {
        font-size: 1.25rem;
        letter-spacing: 0.02rem;
        margin-bottom: 0.5rem;
    }

    .arrowDown {
        width: 1.5rem;
    }
}

/*歡迎頁文字淡入動畫*/
.welcomePage .bgCanvas,
.welcomePage .P1,
.welcomePage .P2,
.welcomePage .arrowDown {
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-iteration-count: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*WELCOME PAGE --END--*/





/*SECTION--START--*/
.section {
    min-height: 80vh;
    padding-top: 4.5rem;
    margin-bottom: 30vh;
    position: relative;
    z-index: 10;
    transition: opacity 0.2s ease-out;
    /* 設定過渡效果*/
}

@media (max-width: 576px) {

    .section {
        margin-bottom: 15vh;
    }
}

.section .sectionTitle {
    margin-bottom: 1rem;
}

.section h1 {
    font-size: 1.75rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
    text-align: center;
}

.section p {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}




/*PORTFOLIO--START--*/
.cardLink {
    text-decoration: none;
}


.card {
    color: white;
    position: relative;
    height: auto;
    margin: 0.5rem 0rem 3rem 0rem;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(128, 128, 128, 0.3);

    background-image: linear-gradient(120deg, #3A414F33 0%, #3A414F99 50%, #2d316033 100%);
    transition: 0.3s ease;
}

.card:hover {
    box-shadow: 0 0 0.75rem #93a1b7BB;
    background-color: rgba(58, 65, 79, 0.3);
}

.cardCaution {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    /*    width: 100%;*/
    /*    background-color: brown;*/
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    border-radius: 16px;
}

.cardCaution img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cardLightArea {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 16px;
    overflow: hidden;
}

.cardLight {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    /*    background-color:brown;*/
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.00) 35%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.00) 65%);
    transition: 0.6s ease;
}

.card:hover .cardLight {
    left: -100%;
}

.card .cardRow1 {
    height: 8rem;
    margin: 1% 0;
    font-size: 1.75rem;
    display: flex;
    position: relative;
    /*    background-color: #7b4e19;*/
}

.card .cardRow1 .cardTitle {
    padding-right: 0.2rem;
    width: 40%;
    /* 設置卡片寬度的一半 */
    display: flex;
    align-items: center;
    /*            background-color: #581e4d*/
}

.card .cardRow1 p {
    font-size: 1.75rem;
}

.card .cardRow1 .cardImg {
    position: absolute;
    right: -1rem;
    top: -2rem;
    width: calc(50% + 1.75rem);
    height: calc(100% + 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    /*    background-color: aquamarine;*/
    transition: 0.2s ease;
    /* 添加過渡效果 */
}

.card:hover .cardRow1 .cardImg {
    right: -3rem;
    top: -3rem;
    width: calc(70% + 1.75rem);
    height: calc(110% + 2rem);
    animation: floating 3s infinite ease-in-out;
    /*    在懸停時觸發漂浮動畫 */
}

@keyframes floating {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, -0.3rem);
    }
}

.card .cardRow1 .cardImg img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card .cardRow1 span {
    font-family: "Roboto Slab";
    font-weight: 300;
    /*    font-size: 1.5rem;*/
    margin: 0 0.25rem;
    text-shadow: 0 0 0.5rem #A9BAD5;
    /*    background-color: aqua;*/
}

.card .cardRow2 {
    height: 4rem;
    width: 100%;
    margin: 1% 0;
    color: #DADADA;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    line-height: 1.75rem;
    /*    background-color: #28745a;*/
}

.card .cardRow3 {
    height: 1rem;
    margin: 1% 0;
    font-size: 1rem;
    color: #AAA;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*    background-color: #00124d;*/
}

.cardForFun {
    position: relative;
}

.cardForFun .cardRow1 {
    height: 4rem;

}

.cardForFun .cardRow3 {
    position: absolute;
    bottom: 0.75rem;
    right: 1.5rem;
}

.cardForFun .cardRow2 {
    height: 2rem;
    line-height: 1rem;
    line-height: 1.25rem;
}



@media (max-width: 1200px) {
    .card .cardRow1 {
        font-size: 1.5rem;
    }

    .card .cardRow1 p {
        font-size: 1.5rem;
    }

    .card .cardRow2 {
        font-size: 1rem;
    }

    .card .cardRow3 {
        font-size: 0.875rem;
    }
}

/*PORTFOLIO--END--*/




/*ABOUT ME--START--*/
.section2 {}

.section2 .row2 {
    /*    background-color: #2e2c33;*/
}

.section2 .profilePhoto {
    width: 200px;
    height: 200px;
    background-color: #592c71;
    background-image: url(../images/profilePhoto.jpg);
    background-size: contain;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.section2 .biography {
    margin-bottom: 2rem;
}

.section2 .biography p {
    color: #DADADA;
    line-height: 1.5rem;
    /*        background-color: #115f5f;*/
    margin-bottom: 1rem;
    text-align: justify;
}

.section2 .skill {
    color: #AAA;
    line-height: 1.5rem;
    display: flex;
}

.section2 .skillTitle {
    margin-right: 1rem;
    /*    background-color: #592c71;*/
}

@media (max-width: 576px) {
    .section2 .profilePhoto {
        width: 150px;
        height: 150px;
        /*        margin-bottom: 1rem;*/
    }
}

.aboutMe1 {
    /*    background-color: brown;*/
}

.aboutMe2 {
    /*    background-color: brown;*/
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.section2 .exCard {
    width: 80%;
    /*        background-color: #225253;*/
    background-image: linear-gradient(120deg, #3A414F33 0%, #3A414F99 50%, #2d316033 100%);
    border-radius: 16px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    padding: 1rem;
    margin-bottom: 1rem;
    flex-grow: 0.1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 576px) {
    .section2 .exCard {
        width: 100%;
    }
}

.section2 .exCard .exTitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.75rem;
}

.section2 .exCard .exDetails {
    font-size: 1rem;
    color: #DADADA;
    margin-bottom: 0.75rem;
}

.section2 .exCard .exDate {
    font-size: 1rem;
    color: #AAA;
    display: flex;
    align-items: flex-end;
}

.section2 .exCard .googleExArea {
    display: flex;
    justify-content: space-between;
}

.section2 .certificateLink {
    text-decoration: none;
    position: relative;
    background-color: rgba(101, 101, 101, 0.5);
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s ease;
}

.section2 .certificateLink::after {
    content: "";
    position: absolute;
    left: 100%;
    bottom: 0;
    width: 200%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.00) 35%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.00) 65%);
    z-index: 1;
    transition: 0.2s ease;
}

.section2 .certificateLink:hover {
    background-color: rgba(5, 206, 214, 0.5);
}

.section2 .certificateLink:hover::after {
    left: -100%;
}

.section2 .certificate {
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}





.section2 .resume {
    width: 200px;
    color: white;
    background-color: #076495;
    border: none;
    border-radius: 2rem;
    margin: 1rem auto 0.5rem auto;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.125rem;
    transition: 0.2s ease;
}

.section2 .resume:hover {
    background-color: #2d83b1;
}

.section2 .resumeEn {
    display: none;
}




/*ABOUT ME--END--*/












/*CONTACT ME--START--*/
.section3 {
    margin-bottom: 4rem;
    /*        scroll-snap-align: start;*/
}

.contactMeText {
    margin: 0 0.3rem;
    /*    background-color: aquamarine;*/
}

.contactMeText p {
    color: #DADADA;
    text-align: justify;
}

form {
    display: flex;
    flex-direction: column;
    position: relative;
}

input,
textarea,
#submitBtn {
    margin: 1rem;
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: 4px;
}

textarea {
    height: 10rem;
}

.rating {
    font-size: 1.125rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.ratingStar {
    margin: 0 1rem;
}

.ratingStar input {
    display: none;
}

.ratingStar label {
    cursor: pointer;
    float: right;
    color: #435364;
    font-size: 1.75rem;
    margin: 0 0.3rem;
}

.ratingStar label::before {
    content: '★';
}

.ratingStar input:checked ~ label {
    color: gold;
    text-shadow: 0 0 0.25rem #A9BAD5;
}

.ratingStar:not(:checked) > label:hover,
.ratingStar:not(:checked) > label:hover ~ label {
    color: gold;
}

.ratingStar input:checked > label:hover,
.ratingStar input:checked > label:hover ~ label {
    color: gold;
}


#submitBtn {
    width: 200px;
    color: white;
    background-color: #076495;
    border: none;
    border-radius: 2rem;
    margin-right: auto;
    margin-left: auto;
    cursor: pointer;
    transition: 0.2s ease;
    z-index: 2;
}

#submitBtn:hover {
    background-color: #2d83b1;
}


@media (max-width: 576px) {

    input,
    textarea,
    #submitBtn,
    .rating {
        font-size: 1rem;
    }

    .rating {
        display: flex;
        flex-direction: column;
    }

}

#confetti {
    display: flex;
    /*    border: 2px solid #d33a3a;*/
    position: absolute;
    width: 300px;
    z-index: -1;
    object-fit: cover;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    /* 使用 transform 調整位置，使其保持居中 */
}

/*CONTACT ME--END--*/



/*SECTION--END--*/




/*FOOTER--START--*/
.footer {
    width: 100%;
    height: 10vw;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
}

svg {
    width: 100%;
    height: 100%;
    /*    z-index: -1;*/
}

svg text {
    font-family: "Roboto";
    font-size: 7vw;
    font-weight: bold;
}

svg rect {
    height: 100%;
    fill: white;
}

svg > rect {
    -webkit-mask: url(#mask);
    mask: url(#mask);
    fill: rgb(19, 25, 25);
}

.footer .footerInfo {
    display: flex;
    align-items: center;
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    /*        background-color: #15674b;*/

}

.footer .footerInfo .footerLogo {
    margin-right: 15%;
    /*        background-color: #5e1567;*/
}

.footer .footerInfo .footerLogo .logo {
    height: 7rem;
    /*            background-color: #f5357f;*/
}

.footer .footerInfo .footerText {
    color: #808080;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1.2rem;
    /*    background-color: #2c2886;*/
    align-items: center;
}

@media (max-width: 768px) {
    .footer {
        height: 25vw;
    }

    .footer .footerInfo {
        flex-direction: column;
        position: absolute;
        left: 50%;
        top: 40%;
        transform: translate(-50%, -50%);
    }

    .footer .footerInfo .footerLogo {
        margin-right: 0;
        height: 3rem;

    }

    .footer .footerInfo .footerLogo .logo {
        height: 4rem;
    }

    .footer .footerInfo .footerText {
        text-align: center;
        font-size: 0.5rem;
        line-height: 1rem;
    }
}



/*FOOTER--END--*/







.figma-embed {
    display: flex;
    width: 100%;
    height: 800px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.figma-embed-mobile {
    width: 400px;
    margin: auto;
}

/*媒體查詢*/
@media screen and (max-width: 420px) {
    .figma-embed-mobile {
        width: 100%;
        margin: auto;
    }
}
