/* Home Page Sections */
/* Self-introduction */
#self-intro {
    padding-top: 52px;
    background-image: linear-gradient(176deg, var(--purple-bg) 0%, var(--purple-bg) 36%, var(--blue-bg) 52%, var(--green-bg) 68%, #ffffff 84%, #ffffff 100%);
}
#self-intro .aligner {
    display: flex;
    flex-direction: column;
}
#self-intro-1 {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}
#self-intro-2 {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#self-intro-2 p {
    font-size: 20px;
    line-height: 24px;
}
#self-intro-2 p#self-intro-slogan {
    font-size: 30px;
    line-height: 34px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 24px;
}
#self-intro-2 p#self-intro-hi {
    font-size: 40px;
    line-height: 44px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 18px;
}
#self-intro-2 p#self-intro-pos {
    font-size: 32px;
    line-height: 36px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 8px;
}
#self-intro-2 p#self-intro-pos-t {
    font-size: 24px;
    line-height: 28px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
}
#self-intro-2 p.self-intro-desc {
    max-width: 800px;
    margin-top: 0;
    margin-bottom: 20px;
}
#self-intro-2 p#self-intro-sd {
    font-size: 22px;
    line-height: 26px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0;
}
/* About Me */
#about-me {
    background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 5%, var(--purple-bg) 35%, var(--purple-bg) 50%, var(--purple-bg) 65%, #ffffff 95%, #ffffff 100%);
}
#about-me-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
#about-me-l {
    width: 450px;
    max-width: 100%;
    margin-right: 32px;
}
#about-me-l img {
    width: 100%;
    border-radius: 25px;
    box-sizing: border-box;
}
#about-me-r {
    text-align: left;
    flex-grow: 1;
}
/* -i = info */
.about-me-i-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 16px;
}
.about-me-i-l {
    font-size: 20px;
    text-align: center;
    margin-right: 12px;
    width: 30px;
}
.about-me-i-r {
    flex-grow: 1;
}
.about-me-i-r p {
    font-size: 20px;
    margin-top: 1px;
    margin-bottom: 1px;
}
/* -ps = <p> with smaller font size */
.about-me-i-r p.about-me-i-ps {
    font-size: 16px;
}
/* Work Experience */
#work-exp {
    background-image: linear-gradient(176deg, #ffffff 0%, #ffffff 25%, var(--blue-bg) 38%, var(--green-bg) 50%, var(--blue-bg) 62%, #ffffff 75%, #ffffff 100%);
}
/* Projects */
#proj {
    background-image: linear-gradient(176deg, #ffffff 0%, #ffffff 20%, var(--blue-bg) 35%, var(--purple-bg) 50%, var(--purple-bg) 72%, #ffffff 85%, #ffffff 100%);
}
.proj-card-holder {
    width: 100%;
    display: flex;
    flex-direction: row;
    column-gap: 20px;
    margin-top: 36px;
}
.proj-card {
    width: 50%;
    padding: 8px 18px;
    box-sizing: border-box;
    box-shadow: 0 0 12px var(--purple);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
#proj-card-ksj {
    background-color: var(--purple-bg);
}
#proj-card-pll {
    background-color: var(--green-bg);
}
.proj-card-header {
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 0;
}
.proj-card-logo {
    margin-right: 12px;
}
.proj-card-logo img {
    width: 40px;
}
.proj-card-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}
.proj-card-title-main {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 2px;
}
.proj-card-title-sub {
    font-size: 17px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.proj-card-title-sub i {
    margin-right: 6px;
}
.proj-card-content {
    width: 100%;
    text-align: left;
    flex-grow: 1;
}
.proj-card-content p {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 17px;
}
.proj-card-content .btn {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Skills */
#skill {
    background-image: linear-gradient(176deg, #ffffff 0%, #ffffff 25%, var(--orange-bg) 40%, var(--red-bg) 45%, var(--red-bg) 50%, var(--red-bg) 55%, var(--orange-bg) 60%, #ffffff 75%, #ffffff 100%);
}
#skill .section-subtitle {
    margin-top: 24px;
    margin-bottom: 24px;
}

/* Research */
#research .we-faebox-info-box {
    width: 80px;
    font-size: 18px;
}
#research .we-faebox-header-r {
    width: 46px;
}
#research .we-faebox-info-box i {
    margin-right: 3px;
}
#research .we-faebox-content img {
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--purple);
    box-sizing: border-box;
    border-radius: 20px;
}

/* Unique Personality */
#personality-content-out {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#personality-content {
    width: 100%;
    max-width: 950px;
    font-size: 20px;
    text-align: center;
}
#personality .item-card-holder {
    margin-top: 32px;
    margin-bottom: 8px;
}
#personality-content-inner-out {
    width: 100%;
    display: inline-block;
}
body.lang-zh-cn #personality-content-inner-out {
    max-width: 700px;
}
.personality-item-box {
    width: 100%;
    margin-top: 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 12px;
}
.personality-item-no {
    width: 32px;
    height: 32px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: var(--purple);
    color: white;
    font-weight: bold;
    font-size: 22px;
}
.personality-item-text {
    flex-grow: 1;
    text-align: left;
    font-size: 18px;
    line-height: 24px;
}

/* Social Media */
#social-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 18px;
    margin-top: 28px;
}
.social-link {
    font-size: 32px;
    color: var(--purple);
}
.social-link:hover {
    color: var(--green);
}

/* Contact Me */
#contact {
    padding-bottom: 52px;
    background-image: linear-gradient(178deg, #ffffff 0%, #ffffff 16%, var(--green-bg) 32%, var(--blue-bg) 48%, var(--purple-bg) 64%, var(--purple-bg) 100%);
}
#contact-content-out {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#contact-content {
    width: 100%;
    max-width: 900px;
    font-size: 20px;
    text-align: center;
}
#contact-content p {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
}

/* -faebox = Fold & Expand Box */
.we-faebox-holder-out {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.we-faebox-holder {
    width: 100%;
    max-width: 900px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 20px;
}
.we-faebox-card {
    width: 100%;
    border-radius: 16px;
    background-color: var(--purple-bg);
    overflow: hidden;
}
.we-faebox-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 16px;
    padding: 12px 18px;
    box-sizing: border-box;
    background-color: var(--purple);
    color: white;
    position: relative;
    z-index: 1;
    cursor: pointer;
}
.we-faebox-header:after{
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    border-radius: 16px;
    background-color: var(--green);
    transition: width 0.5s ease;
    z-index: -1;
}
.we-faebox-header:hover:after,
.we-faebox-card-expanded .we-faebox-header:after
{
    width: 100%;
}
.we-faebox-header-l {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}
.we-faebox-role-box {
    text-align: left;
    flex-grow: 1;
}
.we-faebox-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 2px;
}
.we-faebox-role {
    color: #33ffff;
}
.we-faebox-info-box {
    width: 172px;
    text-align: left;
    margin-left: 24px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.we-faebox-info-box i {
    width: 20px;
    text-align: center;
}
.we-faebox-loc {
    margin-bottom: 2px;
}
.we-faebox-header-r {
    width: 30px;
    text-align: right;
    font-size: 22px;
}
.we-faebox-content {
    text-align: left;
    padding: 8px 18px;
    display: none;
}
.we-faebox-content-note {
    font-size: 14px;
}
.we-faebox-content p,
.we-faebox-content ul,
.we-faebox-content ol,
.we-faebox-content div
{
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Item Card */
.item-card-holder {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    row-gap: 16px;
    column-gap: 16px;
    flex-wrap: wrap;
}
.item-card {
    /* width: 150px; */
    max-width: 100%;
    padding: 6px 16px 6px 12px;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.item-card-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.item-card-icon img {
    width: 24px;
    height: 24px;
}
.item-card-text p {
    margin-top: 0;
    margin-bottom: 0;
}
.item-card-title {
    font-size: 20px;
    font-weight: bold;
}
/* red */
.item-card-red {
    box-shadow: 0 0 12px var(--red);
    background-color: var(--red-bg);
}
/* orange */
.item-card-orange {
    box-shadow: 0 0 12px var(--orange);
    background-color: var(--orange-bg);
}
/* yellow */
.item-card-yellow {
    box-shadow: 0 0 12px var(--yellow);
    background-color: var(--yellow-bg);
}
/* green */
.item-card-green {
    box-shadow: 0 0 12px var(--green);
    background-color: var(--green-bg);
}
/* dark blue */
.item-card-blue {
    box-shadow: 0 0 12px var(--blue);
    background-color: var(--blue-bg);
}
/* light blue */
.item-card-blue-light {
    box-shadow: 0 0 12px var(--blue-light);
    background-color: var(--cyan-bg);
}
/* purple */
.item-card-purple {
    box-shadow: 0 0 12px var(--purple);
    background-color: var(--purple-bg);
}

/* Phone View */
/* < 800 px */
@media screen and (max-width: 799px) {
    /* About Me */
    #about-me-box {
        flex-direction: column;
    }
    #about-me-l {
        margin-right: 0;
        margin-top: 12px;
        margin-bottom: 12px;
    }
    /* Work Experience */
    .we-faebox-header-l {
        flex-direction: column;
        align-items: flex-start;
    }
    .we-faebox-info-box {
        width: 100%;
        margin-left: 0;
        margin-top: 2px;
        flex-direction: row;
    }
    .we-faebox-loc {
        width: 124px;
        margin-bottom: 0;
    }
    .we-faebox-date {
        flex-grow: 1;
    }
    /* Projects */
    .proj-card-holder {
        flex-direction: column;
        column-gap: 0;
        row-gap: 20px;
    }
    .proj-card {
        width: 100%;
    }
}
/* < 450 px */
@media screen and (max-width: 449px) {
    .we-faebox-info-box {
        flex-direction: column;
    }
    .we-faebox-loc {
        margin-bottom: 2px;
    }
}

/* Dark Mode (Auto, System) */
@media (prefers-color-scheme: dark) {
    /* Self-introduction */
    #self-intro {
        padding-top: 52px;
        background-image: linear-gradient(176deg, var(--purple-bg-dark) 0%, var(--purple-bg-dark) 36%, var(--blue-bg-dark) 52%, var(--green-bg-dark) 68%, #000000 84%, #000000 100%);
    }
    /* About Me */
    #about-me {
        background-image: linear-gradient(180deg, #000000 0%, #000000 5%, var(--purple-bg-dark) 35%, var(--purple-bg-dark) 50%, var(--purple-bg-dark) 65%, #000000 95%, #000000 100%)
    }
    /* Work Experience */
    #work-exp {
        background-image: linear-gradient(176deg, #000000 0%, #000000 25%, var(--blue-bg-dark) 38%, var(--green-bg-dark) 50%, var(--blue-bg-dark) 62%, #000000 75%, #000000 100%);
    }
    /* Projects */
    #proj {
        background-image: linear-gradient(176deg, #000000 0%, #000000 20%, var(--blue-bg-dark) 35%, var(--purple-bg-dark) 50%, var(--purple-bg-dark) 72%, #000000 85%, #000000 100%);
    }
    .proj-card {
        box-shadow: 0 0 12px var(--purple-light);
    }
    #proj-card-ksj {
        background-color: var(--purple-bg-dark);
    }
    #proj-card-pll {
        background-color: var(--green-bg-dark);
    }
    /* Skill */
    #skill {
        background-image: linear-gradient(176deg, #000000 0%, #000000 25%, var(--orange-bg-dark) 40%, var(--red-bg-dark) 45%, var(--red-bg-dark) 50%, var(--red-bg-dark) 55%, var(--orange-bg-dark) 60%, #000000 75%, #000000 100%);
    }
    /* Social Media */
    .social-link {
        color: var(--purple-light);
    }
    .social-link:hover {
        color: var(--green-light);
    }
    /* Contact */
    #contact {
        background-image: linear-gradient(178deg, #000000 0%, #000000 16%, var(--green-bg-dark) 32%, var(--blue-bg-dark) 48%, var(--purple-bg-dark) 64%, var(--purple-bg-dark) 100%);
    }
    /* Fold & Expand Box */
    .we-faebox-card {
        background-color: var(--purple-bg-dark);
    }
    /* Item Card */
    /* red */
    .item-card-red {
        box-shadow: 0 0 12px var(--red);
        background-color: var(--red-bg-dark);
    }
    /* orange */
    .item-card-orange {
        box-shadow: 0 0 12px var(--orange);
        background-color: var(--orange-bg-dark);
    }
    /* yellow */
    .item-card-yellow {
        box-shadow: 0 0 12px var(--yellow);
        background-color: var(--yellow-bg-dark);
    }
    /* green */
    .item-card-green {
        box-shadow: 0 0 12px var(--green);
        background-color: var(--green-bg-dark);
    }
    /* dark blue */
    .item-card-blue {
        box-shadow: 0 0 12px var(--blue);
        background-color: var(--blue-bg-dark);
    }
    /* light blue */
    .item-card-blue-light {
        box-shadow: 0 0 12px var(--blue-light);
        background-color: var(--cyan-bg-dark);
    }
    /* purple */
    .item-card-purple {
        box-shadow: 0 0 12px var(--purple-light);
        background-color: var(--purple-bg-dark);
    }
}

/* Dark Mode (Dark, Manual) */
/* Self-introduction */
body.dark-mode-dark #self-intro {
    padding-top: 52px;
    background-image: linear-gradient(176deg, var(--purple-bg-dark) 0%, var(--purple-bg-dark) 36%, var(--blue-bg-dark) 52%, var(--green-bg-dark) 68%, #000000 84%, #000000 100%);
}
/* About Me */
body.dark-mode-dark #about-me {
    background-image: linear-gradient(180deg, #000000 0%, #000000 5%, var(--purple-bg-dark) 35%, var(--purple-bg-dark) 50%, var(--purple-bg-dark) 65%, #000000 95%, #000000 100%)
}
/* Work Experience */
body.dark-mode-dark #work-exp {
    background-image: linear-gradient(176deg, #000000 0%, #000000 25%, var(--blue-bg-dark) 38%, var(--green-bg-dark) 50%, var(--blue-bg-dark) 62%, #000000 75%, #000000 100%);
}
/* Projects */
body.dark-mode-dark #proj {
    background-image: linear-gradient(176deg, #000000 0%, #000000 20%, var(--blue-bg-dark) 35%, var(--purple-bg-dark) 50%, var(--purple-bg-dark) 72%, #000000 85%, #000000 100%);
}
body.dark-mode-dark .proj-card {
    box-shadow: 0 0 12px var(--purple-light);
}
body.dark-mode-dark #proj-card-ksj {
    background-color: var(--purple-bg-dark);
}
body.dark-mode-dark #proj-card-pll {
    background-color: var(--green-bg-dark);
}
/* Skill */
body.dark-mode-dark #skill {
    background-image: linear-gradient(176deg, #000000 0%, #000000 25%, var(--orange-bg-dark) 40%, var(--red-bg-dark) 45%, var(--red-bg-dark) 50%, var(--red-bg-dark) 55%, var(--orange-bg-dark) 60%, #000000 75%, #000000 100%);
}
/* Social Media */
body.dark-mode-dark .social-link {
    color: var(--purple-light);
}
body.dark-mode-dark .social-link:hover {
    color: var(--green-light);
}
/* Contact */
body.dark-mode-dark #contact {
    background-image: linear-gradient(178deg, #000000 0%, #000000 16%, var(--green-bg-dark) 32%, var(--blue-bg-dark) 48%, var(--purple-bg-dark) 64%, var(--purple-bg-dark) 100%);
}
/* Fold & Expand Box */
body.dark-mode-dark .we-faebox-card {
    background-color: var(--purple-bg-dark);
}
/* Item Card */
/* red */
body.dark-mode-dark .item-card-red {
    box-shadow: 0 0 12px var(--red);
    background-color: var(--red-bg-dark);
}
/* orange */
body.dark-mode-dark .item-card-orange {
    box-shadow: 0 0 12px var(--orange);
    background-color: var(--orange-bg-dark);
}
/* yellow */
body.dark-mode-dark .item-card-yellow {
    box-shadow: 0 0 12px var(--yellow);
    background-color: var(--yellow-bg-dark);
}
/* green */
body.dark-mode-dark .item-card-green {
    box-shadow: 0 0 12px var(--green);
    background-color: var(--green-bg-dark);
}
/* dark blue */
body.dark-mode-dark .item-card-blue {
    box-shadow: 0 0 12px var(--blue);
    background-color: var(--blue-bg-dark);
}
/* light blue */
body.dark-mode-dark .item-card-blue-light {
    box-shadow: 0 0 12px var(--blue-light);
    background-color: var(--cyan-bg-dark);
}
/* purple */
body.dark-mode-dark .item-card-purple {
    box-shadow: 0 0 12px var(--purple-light);
    background-color: var(--purple-bg-dark);
}

/* Dark Mode (Light, Manual) */
/* Self-introduction */
body.dark-mode-light #self-intro {
    padding-top: 52px;
    background-image: linear-gradient(176deg, var(--purple-bg) 0%, var(--purple-bg) 36%, var(--blue-bg) 52%, var(--green-bg) 68%, #ffffff 84%, #ffffff 100%);
}
/* About Me */
body.dark-mode-light #about-me {
    background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 5%, var(--purple-bg) 35%, var(--purple-bg) 50%, var(--purple-bg) 65%, #ffffff 95%, #ffffff 100%)
}
/* Work Experience */
body.dark-mode-light #work-exp {
    background-image: linear-gradient(176deg, #ffffff 0%, #ffffff 25%, var(--blue-bg) 38%, var(--green-bg) 50%, var(--blue-bg) 62%, #ffffff 75%, #ffffff 100%);
}
/* Projects */
body.dark-mode-light #proj {
    background-image: linear-gradient(176deg, #ffffff 0%, #ffffff 20%, var(--blue-bg) 35%, var(--purple-bg) 50%, var(--purple-bg) 72%, #ffffff 85%, #ffffff 100%);
}
body.dark-mode-light .proj-card {
    box-shadow: 0 0 12px var(--purple);
}
body.dark-mode-light #proj-card-ksj {
    background-color: var(--purple-bg);
}
body.dark-mode-light #proj-card-pll {
    background-color: var(--green-bg);
}
/* Skill */
body.dark-mode-light #skill {
    background-image: linear-gradient(176deg, #ffffff 0%, #ffffff 25%, var(--orange-bg) 40%, var(--red-bg) 45%, var(--red-bg) 50%, var(--red-bg) 55%, var(--orange-bg) 60%, #ffffff 75%, #ffffff 100%);
}
/* Social Media */
body.dark-mode-light .social-link {
    color: var(--purple);
}
body.dark-mode-light .social-link:hover {
    color: var(--green);
}
/* Contact */
body.dark-mode-light #contact {
    background-image: linear-gradient(178deg, #ffffff 0%, #ffffff 16%, var(--green-bg) 32%, var(--blue-bg) 48%, var(--purple-bg) 64%, var(--purple-bg) 100%);
}
/* Fold & Expand Box */
body.dark-mode-light .we-faebox-card {
    background-color: var(--purple-bg);
}
/* Item Card */
/* red */
body.dark-mode-light .item-card-red {
    box-shadow: 0 0 12px var(--red);
    background-color: var(--red-bg);
}
/* orange */
body.dark-mode-light .item-card-orange {
    box-shadow: 0 0 12px var(--orange);
    background-color: var(--orange-bg);
}
/* yellow */
body.dark-mode-light .item-card-yellow {
    box-shadow: 0 0 12px var(--yellow);
    background-color: var(--yellow-bg);
}
/* green */
body.dark-mode-light .item-card-green {
    box-shadow: 0 0 12px var(--green);
    background-color: var(--green-bg);
}
/* dark blue */
body.dark-mode-light .item-card-blue {
    box-shadow: 0 0 12px var(--blue);
    background-color: var(--blue-bg);
}
/* light blue */
body.dark-mode-light .item-card-blue-light {
    box-shadow: 0 0 12px var(--blue-light);
    background-color: var(--cyan-bg);
}
/* purple */
body.dark-mode-light .item-card-purple {
    box-shadow: 0 0 12px var(--purple);
    background-color: var(--purple-bg);
}
