@font-face {
    font-family: 'PT Sans Caption';
    src: url('../fonts/PTSansCaption-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PT Sans Caption';
    src: url('../fonts/PTSansCaption-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Playfair Display */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Regular.woff2') format('woff2'),
        url('../fonts/PlayfairDisplay-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Italic.woff2') format('woff2'),
        url('../fonts/PlayfairDisplay-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

/* Source Sans Pro */
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../fonts/SourceSansPro-Regular.woff2') format('woff2'),
        url('../fonts/SourceSansPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('../fonts/SourceSansPro-Italic.woff2') format('woff2'),
        url('../fonts/SourceSansPro-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

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

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    min-height: 100vh;
}

body::before {
    content: "";
    background-image: url('../images/bg@2x.webp');
    background-size: cover;
    filter: saturate(20%);
    position: fixed;
    left: 0;
    width: 70%;
    height: 100%;
    background-position: center;
    transform: scaleX(-1);
    z-index: -2;
}

body::after {
    content: "";
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    will-change: transform, background;
    backface-visibility: hidden;
    transition: background 0.3s ease;
}

body.dark-bg::after {
    background: rgba(0, 0, 0, .75);
}

.card-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    justify-content: center;
    padding-left: 26px;
    perspective: 1000px;
    max-width: 408px;
    gap: 0;
    margin-top: 6%;
}

.card {
    width: 375px;
    height: 248px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    cursor: grab;
    transform-origin: center center;
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 14px;
    backface-visibility: hidden;
    transition: opacity 0.3s ease;
    background: white;
}

.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: grab;
    transition: opacity 0.3s ease;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transform: translateZ(0) rotateY(180deg) translateX(0px);
    -webkit-transform: translateZ(0) rotateY(180deg);
    background: #212121;
    z-index: 1;
}

.card-back-content {
    font-size: 18px;
    color: white;
    transform: rotateY(180deg);
    width: 100%;
    height: 100%;
    padding: 50px 40px 50px 60px;
    line-height: 28px;
    font-family: serif;
    font-style: italic;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #212121;
    z-index: 2;
}

.card-back-content::before {
    content: "";
    background-image: url('../images/bg@2x.webp');
    background-size: cover;
    filter: saturate(5%);
    position: absolute;
    top: 0;
    left: 0;
    width: 178px;
    height: 248px;
    background-position: center;
    transform: scaleX(-1);
    z-index: -2;
    will-change: transform;
    backface-visibility: hidden;
}

.card-back-content::after {
    content: "";
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    will-change: transform;
    backface-visibility: hidden;
    border-radius: 24px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.card-back-content svg {
    display: flex;
    margin-bottom: 8px;
}

.card:not(.flipped) .card-back {
    opacity: 0;
    pointer-events: none;
}

.card.dragging {
    cursor: grabbing;
    transition: none;
}

.card.dragging .card-back {
    cursor: grabbing;
}

.card.flipped {
    transform: translateX(-50px) rotateY(-180deg);
}

.card.flipped .card-content {
    opacity: 0;
    pointer-events: none;
    background: #212121;
}

.card.flipped .card-back {
    opacity: 1;
    pointer-events: auto;
    transform: translateZ(0) rotateY(0deg);
    -webkit-transform: translateZ(0) rotateY(0deg);
    background: #212121;
    z-index: 1;
}

.card.flipped .card-back-content {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 2;
}

.card.flipped .card-back-content::after {
    z-index: -1;
}

.card-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: opacity 0.3s ease;
    cursor: pointer;
    animation: arrowPulse 2s infinite;
}

.card-icon svg {
    width: 15px;
    height: 8px;
}

.card-icon path {
    fill: #333;
}


.left-lion {
    position: absolute;
    left: 10px;
    top: 18px;
    width: 134px;
    height: 134px;
    background-image: url('../images/card/light/avatar@2x.webp');
    background-size: cover;
    background-position: center;
    z-index: 2;
}

.right-lion {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 178px;
    height: 248px;
    background-image: url('../images/bg@2x.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.card-info {
    position: absolute;
    left: 19px;
    bottom: 22px;
    z-index: 2;
}

.name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.name {
    font-family: 'PT Sans Caption', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
}

.verified-icon {
    width: 18px;
    height: 20px;
}

.info-section {
    margin-top: 5px;
}

.info-section h3 {
    font-size: 10px;
    color: #666;
    margin-bottom: 2px;
    font-weight: 400;
    border-bottom: 1px solid #333;
    display: inline-flex;
    margin-left: 1px;
}

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

.info-icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
}

.info-icon.male {
    margin-right: 12px;
}

.badges-group {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 28px;
}

.badges-group .info-icon:last-child {
    margin-right: 0;
}

.nav-links {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
}

.nav-item {
    background-color: #212121;
    border: 1px solid #000;
    width: 346px;
    height: 76px;
    border-radius: 4px 38px 38px 24px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    transition: stroke 1.3s ease;
}

.nav-item.black {
    background-color: #e3e3e3;
    border: 1px solid #fff;
    border-radius: 4px 38px 38px 24px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition: stroke 1.3s ease;
}

.nav-item.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nav-item .icon,
.nav-item.black .icon {
    display: flex;
    align-items: center;
    background-color: #131313;
    border-radius: 3px 23px 23px 23px;
    color: white;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: stroke 1.3s ease;
}

.nav-item.black .icon {
    background-color: #f3f3f3;
    border-radius: 3px 23px 23px 23px;
    color: #131313;
}

.nav-item .text,
.nav-item.black .text {
    color: white;
    font-size: 16px;
    padding-left: 24px;
    position: relative;
    z-index: 1;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.nav-item.black .text {
    color: #131313;
}

.nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-item:nth-child(2) {
    transition-delay: 0.12s;
}

.nav-item:nth-child(3) {
    transition-delay: 0.14s;
}

.nav-item:nth-child(4) {
    transition-delay: 0.16s;
}

.nav-item.black:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-item.black:nth-child(2) {
    transition-delay: 0.12s;
}

.nav-item.black:nth-child(3) {
    transition-delay: 0.14s;
}

.nav-item.black:nth-child(4) {
    transition-delay: 0.16s;
}

.link-left {
    display: flex;
    align-items: center;
    background-color: #131313;
    border-radius: 3px 23px 23px 23px;
    color: white;
    padding: 25px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.link-right {
    color: white;
    font-size: 14px;
    padding-left: 24px;
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.linkdein_icon {
    padding: 25px;
}

.portfolio_icon {
    padding: 29px 24px;
}

.portfolio_icon path,
.portfolio_icon g {
    stroke: #e3e3e3;
    transition: stroke 1.9s ease;
}

.nav-item.black .portfolio_icon path,
.nav-item.black .portfolio_icon g {
    stroke: #131313;
}

.discord_icon {
    padding: 25px 23px;
}

.discord_icon path,
.linkdein_icon path {
    fill: #e3e3e3;
    transition: fill 1.9s ease;
}

.nav-item.black .discord_icon path,
.nav-item.black .linkdein_icon path {
    fill: #131313;
}

.coffee_icon {
    /* padding: 21px; */
    width: 74px;

}

footer {
    text-align: center;
    margin-top: 40px;
    color: #1d1d1d;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer:hover {
    opacity: 1;
}

footer p {
    margin: 0;
    line-height: 1.5;
}

footer a {
    color: #1d1d1d;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-style: italic;
}

footer a:hover {
    color: #000;
}

footer.dark-bg {
    text-align: center;
    margin-top: 40px;
    color: #e9e9e9;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer.dark-bg a {
    color: #e9e9e9;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-style: italic;
}

footer a:hover {
    color: #fff;
}

@media (hover: none) and (pointer: coarse) {
    .card {
        touch-action: pan-y pinch-zoom;
    }
}

/* @supports (-webkit-touch-callout: none) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
} */

.portfolio_icon,
.portfolio_icon.black,
.discord_icon,
.discord_icon.black,
.linkdein_icon,
.linkdein_icon.black {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 改变 Lottie 箭头颜色为白色 */
#lottie-arrow {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    /* 添加阴影 */
    width: 30px;
    rotate: -56deg;
}

.arrow {
    z-index: -2;
}

.arrow svg path {
    stroke: #131313;
    /* 设置描边颜色为白色 */
    stroke-width: 8;
    /* 设置描边宽度加粗 */
}

.arrow.black {
    transform: scaleX(-1);
    position: absolute;
    overflow: hidden;
    right: 8px;
    z-index: -2;
}

.arrow.black svg path {
    stroke: #eee;
    /* 设置描边颜色为白色 */
    stroke-width: 8;
    /* 设置描边宽度加粗 */
}