.navbar.scrolled {
    opacity: 1;
}

@media (max-width: 847.9px) {
    #intro .banner::before {
        width: 22%;
        height: 8%;
    }
}
@media (max-width: 767.9px) {
    .banner .banner-title {
        width: 70vw;
    }
    #intro .banner::before {
        width: 30%;
        height: 10%;
    }
}
@media (max-width: 575.9px) {
    .banner .banner-title {
        width: 80vw;
    }
    #intro .banner::before {
        top: 50%;
        width: 30%;
        height: 12%;
        left: 54%;
    }
}
@media (max-width: 450.9px) {
    #intro .banner::before {
        top: 51%;
        width: 32%;
        height: 6%;
    }
}
@media (max-width: 263.9px) {
    #intro .banner::before {
        top: 50%;
        width: 32%;
        height: 5%;
    }
}

/*Banner*/
.banner {
    height: 100vh;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),url("../images/bannerBG-4.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0 0;
    margin-bottom: 2rem;
}
.banner-title {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50vw;
    transform: translate(-50%, -50%) scale(1.1) rotate(12deg);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 2s ease-in-out 2.4s, filter 2s ease-in-out 2.4s, transform 1.3s ease-in-out 2.4s;
}
.isLoad .banner-title {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: blur(0);
}
.banner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    width: 20%;
    height: 14%;
    transform: scale(1.3);
    background-image: url('../images/BannerTitleLine.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 2s ease-in-out 3s, transform 1.3s ease-in-out 3s;
}
.isLoad .banner::before {
    opacity: 1;
    transform: scale(1);
}
/*Go To Second*/
.GoToSecond {
    display: none;
}
.GoToSecond.show {
    display: block;
}
.fa-angles-down {
    font-size: 26px;
    text-align: center;
    position: absolute;
    bottom: 10%;
    left: 50%;
    animation: BannerDown 1.3s ease-in-out infinite;
    opacity: 0;
}
@keyframes BannerDown {
    0% {
        bottom: 10%;
        opacity: 0;
    }
    25% {
        bottom: 9.5%;
        opacity: 0.5;
    }
    50% {
        bottom: 9%;
        opacity: 1;
    }
    75% {
        bottom: 8.5%;
        opacity: 0.5;
    }
    100% {
        bottom: 8%;
        opacity: 0;
    }
}

/*Second*/
#second {
    color: #7D6342;
    cursor: default;
    margin-top: 50px;
    scroll-margin-top: 120px;
}
.About-Headshot {
    display: flex;
    justify-content: end;
    text-align: right;
    align-items: center;
}
.About-Headshot img {
    width: 240px;
    height: 240px;
}
.About-Text-wrap {
    display: flex;
    justify-content: start;
}
.AboutTitle h1{
    font-size: 1.72rem;
}
.Name-zh {
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    letter-spacing: .18em;
}
.Name-en {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    letter-spacing: .12em;
}
.About-zh {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 1rem;
    letter-spacing: .29em;
    line-height: 1.5;
    margin-top: .7em;
}
.About-zh p {
    margin-block-start: .15em;
    margin-block-end: .15em;
}
.About-en {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: .7rem;
    color: #B2A89C;
    margin-top: .5em;
    margin-bottom: .5em;
}
.About-en p {
    margin-block-start: .15em;
    margin-block-end: .15em;
}
/*Second-Btn*/
.btn {
    position: relative;
    z-index: 1;
    min-width: 100px;
    background: #7D6342 !important;
    color: #FFFBF5 !important;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    padding: 6px 10px;
    border-radius: 50px;
    text-decoration: none;
}
.btn span {
    display: inline-block;
    font-size: .8rem;
    color: #FFFBF5 !important;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transform: translate(0, -10px);
    transition: 0.25s cubic-bezier(0.5, -1, 0.5, 2);
    margin-left: -1.2px;
    margin-bottom: 5px;
}
.btn:before {
    content: attr(data-text);
    position: absolute;
    width: 100%;
    left: 0;
    top: 25%;
    font-size: .8rem;
    text-align: center !important;
    color: #FFFBF5 !important;
    text-decoration: none;
    letter-spacing: 2.2px;
    opacity: 1;
    transform: translate(0, 0px);
    transition: 0.25s cubic-bezier(0.5, -1, 0.5, 2);
}
.btn:hover:before,
.btn:focus:before {
    opacity: 0;
    transform: translate(0, 10px);
}
.btn:hover span,
.btn:focus span {
    opacity: 1;
    transform: translate(0, 0);
}
.btn:hover span:nth-child(1),
.btn:focus span:nth-child(1) {
    transition-delay: 0.025s;
}
.btn:hover span:nth-child(2),
.btn:focus span:nth-child(2) {
    transition-delay: 0.05s;
}
.btn:hover span:nth-child(3),
.btn:focus span:nth-child(3) {
    transition-delay: 0.075s;
}
.btn:hover span:nth-child(4),
.btn:focus span:nth-child(4) {
    transition-delay: 0.1s;
}
.btn:hover span:nth-child(5),
.btn:focus span:nth-child(5) {
    transition-delay: 0.125s;
}
.btn:hover span:nth-child(6),
.btn:focus span:nth-child(6) {
    transition-delay: 0.15s;
}
.btn:hover span:nth-child(7),
.btn:focus span:nth-child(7) {
    transition-delay: 0.175s;
}
.btn:hover span:nth-child(8),
.btn:focus span:nth-child(8) {
    transition-delay: 0.2s;
}
.btn:hover span:nth-child(9),
.btn:focus span:nth-child(9) {
    transition-delay: 0.225s;
}
.btn:hover span:nth-child(10),
.btn:focus span:nth-child(10) {
    transition-delay: 0.25s;
}
.btn:hover span:nth-child(11),
.btn:focus span:nth-child(11) {
    transition-delay: 0.275s;
}
.btn:hover span:nth-child(12),
.btn:focus span:nth-child(12) {
    transition-delay: 0.3s;
}

@media (max-width: 847.9px) {
    #second .About-Headshot img {
        width: 230px;
        height: 230px;
    }
    #second .AboutTitle h1{
        font-size: 1.68rem;
    }
    #second .About-zh {
        font-size: .95rem;
        letter-spacing: .29em;
    }
    #second .About-en {
        font-size: .68rem;
    }
    #second .btn span {
        font-size: .75rem;
    }
    #second .btn::before {
        font-size: .75rem;
    }
}
@media (max-width: 808.9px) {
    #second .About-Headshot {
        flex: 0 0 auto;
        width: 38%;
    }
    #second .About-Text-wrap {
        flex: 0 0 auto;
        width: 60%;
    }
}
@media (max-width: 768px) {
    #second {
        scroll-margin-top: 75px;
    }
}
@media screen and (max-width: 676.9px) and (hover: hover) and (pointer: fine) {
    main {
        position: relative;
        margin-top: 55px;
    }
    .banner {
        height: 90.5vh;
    }
}
@media (max-width: 676.9px) {
    #second .About-Headshot img {
        width: 220px;
        height: 220px;
    }
    #second .AboutTitle h1{
        font-size: 1.6rem;
    }
    #second .About-zh {
        font-size: .9rem;
        letter-spacing: .29em;
    }
    #second .btn {
        padding: 4px 10px;
    }
    #second .About-en {
        font-size: .65rem;
    }
    #second .btn span {
        font-size: .7rem;
    }
    #second .btn::before {
        font-size: .7rem;
    }
}
@media (max-width: 644.9px) {
    #second .About-Headshot {
        display: flex;
        justify-content: center;
        flex-direction: row;
        width: 100%;
        margin-bottom: 16px;
    }
    #second .About-Text-wrap {
        display: flex;
        justify-content: center;
        flex-direction: row;
        width: 100%;
    }
    #second .About-Text {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        justify-content: center;
        align-content: center;
        flex-wrap: wrap;
    }
    #second .col-sm-10 {
        display: flex;
        justify-content: center;
        flex-direction: row;
        width: 100%;
        margin-top: 6px;
    }
}
@media (max-width: 392.9px) {
    #second .About-Headshot img {
        width: 200px;
        height: 200px;
    }
    #second .AboutTitle h1{
        font-size: 1.5rem;
    }
    #second .About-zh {
        font-size: .85rem;
        letter-spacing: .29em;
    }
    #second .About-en {
        font-size: .6rem;
    }
    #second .btn span {
        font-size: .65rem;
        margin-bottom: 8px;
    }
    #second .btn::before {
        font-size: .65rem;
    }
}
@media (max-width: 372.9px) {
    #second .About-Headshot img {
        width: 180px;
        height: 180px;
    }
    #second .AboutTitle h1{
        font-size: 1.42rem;
    }
    #second .About-zh {
        font-size: .8rem;
        letter-spacing: .29em;
    }
    #second .About-en {
        font-size: .58rem;
    }
    #second .btn span {
        font-size: .6rem;
    }
    #second .btn::before {
        font-size: .6rem;
    }
}

/*Projects*/
#third {
    margin: 80px 0;
}
.section-title {
    font-family: "Calistoga", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 2px;
    color: #b8a590;
}
@media (min-width: 992px) {
    #third .container-md {
        max-width: 720px;
    }
}
@media (max-width: 640.9px) {
    #third .container-md {
        max-width: 460px;
    }
}
#third .col-6 {
    margin-bottom: 16px;
}
.card {
    min-width: 350px;
}
@media (max-width: 730px) {
    #third .col-6 {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        justify-content: center;
        align-content: center;
        flex-wrap: wrap;
        padding: 0;
        margin-bottom: 20px;
    }
    #third .card {
        max-width: 430px;
        min-width: auto;
    }
}
.card-img {
    width: 100%;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    transition: .5s ease;
}
.card-img img:hover {
    overflow: clip;
    transform: scale(1.1);
}
.card-title {
    color: #8a663f;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-style: normal;
    letter-spacing: .8px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.card-subtitle {
    color: #ad9378;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .8px;
    font-size: .85rem;
}
.subtitle-tag {
    color: #fffbf5;
    background-color: #ad9378;
    margin-left: 8px;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .8px;
    font-size: .8rem;
}
.card-body .card-text {
    color: #8a663f;
    font-family: "Roboto", "Noto Sans TC", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 3px;
    font-size: .9rem;
    line-height: 2;
    padding-left: 1rem;
    margin-bottom: 8px;
}
.card-tag {
    margin-bottom: 8px;
}
.rounded-pill {
    color: #ad9378;
    background-color: #ffffff;
    border: 1.5px #ad9378 solid;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .8px;
    font-size: .8rem;
}
.card-link {
    color: #ad9378;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .8px;
    font-size: 1rem;
}
.card-link:hover {
    text-decoration: none;
}
.projects-link {
    font-family: "Calistoga", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 2px;
    color: #7D6342;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color .3s ease;
}
.projects-link:hover {
    color: #b8a590;
}
.projects-link span {
    padding-left: 10px;
    animation: MoveToRight 1.2s ease infinite;
}
@keyframes MoveToRight {
    0% {
        transform: translateX(-20%);
    }
    100% {
        transform: translateX(0%);
    }
}

/*contact*/
#fourth {
    margin-bottom: 50px;
}
.mail-title {
    font-family: "Calistoga", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 2px;
    color: #8a663f;
}
.f-mail {
    text-decoration: none;
}
.mail {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 2px;
    color: #8a663f;
    font-size: 14px;
}
.mail::before {
    content: "◊";
    position: relative;
    margin-right: 2px;
    font-size: 16px;
    opacity: 0;
}
.mail::after {
    content: "♦";
    position: relative;
    margin-left: 2px;
    font-size: 16px;
    opacity: 0;
}
.mail:hover::before,
.mail:hover::after {
    opacity: 1;
}
.c-btn img {
    transition: filter 0.2s ease-in-out, transform 0.3s ease-in-out;
}
.c-btn:hover img {
    filter: opacity(0.5);
    transform: translateY(-5px);
}