/* ========== Minimalist Loading Screen ========== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f4f4f5;
    /* matches body background */
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.8s;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-bar-container {
    width: 240px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.08);
    /* light subtle background */
    border-radius: 3px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background-color: #1d1d1f;
    /* minimalist black */
    border-radius: 3px;
    transition: width 0.3s ease-out;
}

html {
    user-select: none;
    transition: 0.5s cubic-bezier(0.68, -1, 0.265, 1.55);
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* Lenis Recommended Styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

body {
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f4f5;
    color: #1d1d1f;
    transition: 0.5s;
}

.no-scroll {
    overflow: hidden !important;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    color: #212121;
    opacity: 0;
    transition: 0.5s;
}

body.is-loaded h1 {
    opacity: 1;
}

#home h1 {
    color: #1d1d1f;
}

h3 {
    opacity: 0;
    transition: 0.5s;
}

body.is-loaded h3 {
    opacity: 1;
}

p {
    color: #86868b;
    line-break: 0.9;
    transition: 0.5s;
}

#home p {
    color: #515154;
}

img {
    background-color: #ebebeb;
}

#home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #ffffff;
    overflow: hidden;
    cursor: default;
}

.hero-content {
    position: relative;
    z-index: 1000;
    text-align: center;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    /* Reduced max size slightly */
    line-height: 1.1;
    font-weight: 300;
    margin: 0;
    color: #1d1d1f;
    font-family: 'Google Sans', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -2px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 2.5rem;
    border-radius: 32px;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
        padding: 0.8rem 1.2rem !important;
        border-radius: 20px !important;
        letter-spacing: -1px !important;
    }
}

.title-line {
    overflow: hidden;
    display: block;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
}

.hero-title span {
    display: inline-block;
    will-change: transform;
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #1d1d1f;
    border: 1px solid rgba(29, 29, 31, 0.2);
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-family: 'Google Sans', 'Helvetica Neue', Arial, sans-serif;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.trail-image {
    position: absolute;
    width: 200px;
    height: 200px;
    /* Forced to square */
    object-fit: cover;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    border-radius: 50%;
    /* Initially a perfect circle */
    opacity: 0;
    z-index: 5;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease-out, border-radius 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.trail-image.active {
    transform: translate(-50%, -50%) scale(1);
    border-radius: 16px;
    /* Morph into rounded square */
    opacity: 1;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    border-radius: 999px;
    padding: 4px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 16px;
    z-index: 10086;
    max-width: 95%;
    transition: all 0.3s cubic-bezier(0.68, -0.21, 0.265, 1.21);
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #1d1d1f;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    outline: none;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-category {
    display: none;
}

.navbar img {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    margin-right: 4px;
    flex-shrink: 0;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    text-align: center;
    padding: 8px 14px;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.68, -0.21, 0.265, 1.21);
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar a i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 0;
    opacity: 0;
    margin-right: 0;
    transform: translateX(-10px) scale(0.5);
    transition: 0.3s cubic-bezier(0.68, -0.21, 0.265, 1.21);
    font-size: 1rem;
    overflow: hidden;
    white-space: nowrap;
}

.navbar a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
    padding: 8px 20px;
}

.navbar a:hover i {
    width: 1.2rem;
    opacity: 1;
    margin-right: 6px;
    transform: translateX(0) scale(1);
}

.navbar a:active {
    background-color: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
    scale: 0.95;
}

/* Media Queries should come after base styles */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        top: 0;
        left: 0;
        box-sizing: border-box;
        background-color: rgba(255, 255, 255, 0.8);
        transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
            background-color 0.4s ease,
            backdrop-filter 0.4s ease;
    }

    .navbar.menu-open {
        background-color: #ffffff;
        height: 100vh;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        backdrop-filter: blur(20px);
    }

    .nav-header {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 20px;
        box-sizing: border-box;
        align-items: flex-start !important;
        margin-top: 0;
        transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.4s ease,
            margin-top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navbar.menu-open .nav-links {
        max-height: 100vh;
        opacity: 1;
        margin-top: 20px;
    }

    .nav-category {
        display: block;
        font-size: 0.8rem;
        color: #86868b;
        margin-bottom: 24px;
        font-weight: 500;
        text-transform: capitalize;
        text-align: left !important;
        width: 100%;
    }

    .navbar a {
        width: 100% !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 8px 0 !important;
        font-size: 2rem !important;
        font-weight: 600 !important;
        color: #1d1d1f !important;
        opacity: 0;
        transform: translateY(8px);
        background: none !important;
        border-radius: 0;
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navbar a i {
        display: none;
        /* Hide icons on mobile menu to match image */
    }

    .navbar.menu-open a {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar.menu-open a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .navbar.menu-open a:nth-child(3) {
        transition-delay: 0.26s;
    }

    .navbar.menu-open a:nth-child(4) {
        transition-delay: 0.32s;
    }

    .navbar.menu-open a:nth-child(5) {
        transition-delay: 0.38s;
    }

    .navbar.menu-open a:nth-child(6) {
        transition-delay: 0.44s;
    }
}



@media (max-width: 480px) {
    .navbar {
        top: 0;
    }
}



/* Editorial About Section */
.editorial-about {
    position: relative;
    padding: 10rem 4rem;
    overflow: hidden;
    background-color: #f4f4f5;
}

@media (max-width: 768px) {
    .editorial-about {
        padding: 4rem 1.5rem;
    }
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 768px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Left Column */
.editorial-left {
    padding-top: 2rem;
}

.editorial-heading {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.05;
    margin: 0 0 2.5rem 0;
    letter-spacing: -1px;
}

.editorial-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6b6b6b;
    margin: 0 0 3rem 0;
    max-width: 460px;
}

.editorial-cta {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 4px;
    transition: color 0.3s, border-color 0.3s;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .editorial-cta:hover {
        color: #3ddc84;
        border-color: #3ddc84;
    }
}

.editorial-cta.copied {
    color: #3ddc84;
    border-color: #3ddc84;
}

/* Right Column */
.editorial-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 480px;
    position: relative;
}

.skills-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #b0b0b0;
    margin: 0 0 3rem 0;
    letter-spacing: 0.5px;
}

/* Geometric Canvas 鈥?Physics Container */
.geo-canvas {
    position: relative;
    width: 100%;
    flex-grow: 1;
    min-height: 400px;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.geo-canvas:active {
    cursor: grabbing;
}

/* Physics-driven skill shapes */
.physics-skill-shape {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    pointer-events: none;
    user-select: none;
    z-index: 5;
    transition: box-shadow 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .editorial-about {
        padding: 6rem 2rem;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .editorial-right {
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .editorial-heading {
        font-size: 2.5rem;
    }

    .geo-canvas {
        min-height: 320px;
    }

    .geo-square {
        width: 90px;
        height: 90px;
    }
}




.playful-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 800;
    color: #202124;
    margin: 0;
    letter-spacing: -1px;
}

.highlight-pill {
    display: inline-block;
    background-color: #d3e3fd;
    /* Light Blue */
    color: #0b57d0;
    padding: 0.2rem 1.5rem;
    border-radius: 999px;
    transform: rotate(-2deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
    .highlight-pill:hover {
        transform: rotate(2deg) scale(1.05);
    }
}

.playful-bento-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(240px, auto);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Base Playful Card */
.play-card {
    border-radius: 32px;
    /* Extra large rounded corners */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
    .play-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    }
}

/* Vibrant Surface Colors */
.play-surface-mixed {
    background: linear-gradient(135deg, #fef7ff, #f3edf7);
    border-color: rgba(234, 221, 255, 0.5);
}

.play-surface-light {
    background-color: #ffffff;
    border-color: #f1f3f4;
}

.play-surface-mint {
    background-color: #c4eed0;
}

.play-surface-primary {
    background-color: #0b57d0;
    color: #ffffff;
}

/* Specific Cards Setup */
.bio-card {
    grid-column: span 2;
    grid-row: span 2;
}

.stack-card {
    grid-column: span 2;
    grid-row: span 1;
    justify-content: center;
}

.location-card,
.contact-card {
    grid-column: span 1;
    grid-row: span 1;
    padding: 0;
}

/* Bio Card Details */
.bio-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.play-avatar {
    width: 90px;
    height: 90px;
    border-radius: 36px;
    /* Squircle feeling */
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .play-card:hover .play-avatar {
        transform: scale(1.05) rotate(5deg);
    }
}

/* Bubbly Badges */
.play-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.badge-mint {
    background-color: #c4eed0;
    color: #0f5223;
}

.pulse-ring {
    width: 10px;
    height: 10px;
    background-color: #1ea362;
    border-radius: 50%;
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid #1ea362;
    border-radius: 50%;
    opacity: 0;
    animation: bouncePulse 2s infinite;
}

@keyframes bouncePulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Typography */
.play-role-tag {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #611f69;
    background-color: #f4ede4;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.play-body {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4a4a4a;
    font-weight: 500;
    margin: 0;
}

.play-highlight-text {
    color: #e51c23;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #f8bbd0;
    text-decoration-thickness: 4px;
}

/* Floating Action Bubbles */
.play-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.play-fab {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .play-fab:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

.fab-coral {
    background-color: #ffdad6;
    color: #410002;
}

.fab-blue {
    background-color: #d3e3fd;
    color: #041e49;
}

/* Ripple Effect */
[data-ripple] {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.md-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: playful-ripple 600ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.4);
}

[data-ripple]:not(.contact-card) .md-ripple {
    background-color: rgba(0, 0, 0, 0.1);
}

@keyframes playful-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Stack Card */
.play-card-header h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #202124;
    margin: 0 0 1.5rem 0;
}

.play-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.play-chip {
    padding: 0.6rem 1.2rem;
    border-radius: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
    .play-chip:hover {
        transform: translateY(-3px) scale(1.02);
    }
}

.chip-figma {
    background-color: #fbeee6;
    color: #f24e1e;
    border-color: #f24e1e33;
}

.chip-html {
    background-color: #fcece8;
    color: #e34f26;
    border-color: #e34f2633;
}

.chip-css {
    background-color: #eaf3f9;
    color: #1572b6;
    border-color: #1572b633;
}

.chip-js {
    background-color: #fefce8;
    color: #b59f00;
    border-color: #f7df1e33;
}

.chip-gsap {
    background-color: #f3fae6;
    color: #5f9e01;
    border-color: #88ce0233;
}

/* Location Card */
.play-map-bg {
    position: absolute;
    inset: 0;
    background: url('https://c.xiayan.icu/image/icon/logo.jpg') center/cover;
    filter: sepia(0.5) hue-rotate(90deg) opacity(0.5);
    /* Minty tint */
    transition: 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
    .location-card:hover .play-map-bg {
        transform: scale(1.2) rotate(-5deg);
        filter: sepia(0) hue-rotate(0deg) opacity(0.8);
    }
}

.play-loc-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: #0f5223;
    color: #c4eed0;
    padding: 0.6rem 1.2rem;
    border-radius: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 16px rgba(15, 82, 35, 0.3);
}

/* Contact Card */
.contact-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.icon-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: #0842a0;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morphBlob 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes morphBlob {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

.contact-icon {
    font-size: 2.5rem;
    color: #d3e3fd;
    transform: translate(-10px, 10px) rotate(-15deg);
}

.play-contact-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.play-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #d3e3fd;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.play-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.play-state-layer {
    position: absolute;
    inset: 0;
    background-color: transparent;
    transition: background-color 0.3s;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .contact-card:hover .play-state-layer {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.contact-card.copied {
    background-color: #1ea362;
}

.contact-card.copied .icon-blob {
    background-color: #0f5223;
}

.contact-card.copied .play-label,
.contact-card.copied .contact-icon {
    color: #c4eed0;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .playful-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bio-card,
    .stack-card {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .playful-bento-grid {
        grid-template-columns: 1fr;
    }

    .bio-card,
    .stack-card,
    .location-card,
    .contact-card {
        grid-column: span 1;
    }

    .playful-title {
        font-size: 2.5rem;
    }

    .highlight-pill {
        padding: 0.2rem 1rem;
    }
}


.final-footer {
    padding: 0 2rem 4rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1.5rem;
}


.footer-brand-huge {
    grid-column: span 12;
    overflow: hidden;
    margin-top: 2rem;
    position: relative;
    user-select: none;
    pointer-events: none;
    display: flex;
}

.marquee-track {
    display: inline-flex;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
    font-size: clamp(4rem, 15vw, 15rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: rgba(0, 0, 0, 0.8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.marquee-part {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
}

.marquee-dot {
    opacity: 0.3;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.footer-bottom-bar {
    grid-column: span 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #86868b;
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

@media (hover: hover) {
    .back-to-top:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
        background: rgba(0, 0, 0, 0.8);
    }
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* Responsive */

@media (max-width: 600px) {
    .final-footer {
        padding: 0 1rem 2rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}


/* 绉诲姩绔€傞厤 */
@media (max-width: 600px) {
    .list-item {
        padding: 1rem;
        gap: 1rem;
    }

    .icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .content h4 {
        font-size: 1rem;
    }

    .content p {
        font-size: 0.9rem;
    }
}

/* 绉诲姩绔€傞厤 */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }
}

/* 绉诲姩绔€傞厤 */
@media only screen and (max-width: 600px) {
    .about-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-content ul li {
        font-size: 0.9rem;
    }
}

/* 鐜颁唬鍒楄〃鏍峰紡 */
.modern-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: 0.4s cubic-bezier(0.68, -0.21, 0.265, 1.21);
}

.list-item:hover {
    background: rgba(0, 0, 0, 0.06);
    border-left-color: #b41434;
    transform: translateX(8px);
}

.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(180, 20, 52, 0.1);
    border-radius: 50%;
    color: #b41434;
    font-size: 1.2rem;
}

.content h4 {
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.content p {
    color: #86868b;
    margin: 0;
    font-size: 0.95rem;
}

/* 绉诲姩绔€傞厤 */
@media (max-width: 600px) {
    .list-item {
        padding: 1rem;
        gap: 1rem;
    }

    .icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .content h4 {
        font-size: 1rem;
    }

    .content p {
        font-size: 0.9rem;
    }
}

/* 鏂板鍐呭 */
.about-card {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    padding: 3rem;
    border-radius: 24px;
    max-width: 600px;
    margin: 2rem auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
}

.about-content h2 {
    color: #1d1d1f;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #86868b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content ul li {
    color: #1d1d1f;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: 0.3s cubic-bezier(0.68, -0.21, 0.265, 1.21);
}

.about-content ul li:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateX(8px);
}

.about-content ul strong {
    color: #1d1d1f;
    margin-right: 0.5rem;
}

.social-links a {
    color: #1d1d1f;
    font-size: 1.8rem;
    transition: 0.3s cubic-bezier(0.68, -0.21, 0.265, 1.21);
    padding: 0.5rem;
    border-radius: 50%;
}

.social-links a:hover {
    color: #b41434;
    /* 涓庣偣璧炴寜閽悓鑹茬郴 */
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

/* 绉诲姩绔€傞厤 */
@media only screen and (max-width: 600px) {
    .about-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-content ul li {
        font-size: 0.9rem;
    }
}

/* 娣辫壊妯″紡閫傞厤锛堜繚鎸佷笌鐜版湁妯″紡涓€鑷达級 */



@keyframes FadeInUp {
    0% {
        opacity: 0;
        scale: 0.9;
        transform: translateY(20px);
        text-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    }

    100% {
        opacity: 1;
        scale: 1;
        transform: translateY(0px);
        text-shadow: 0 0 10px rgba(0, 0, 0, 0);
    }
}

@keyframes FadeInUpImage {
    0% {
        opacity: 0;
        scale: 0.9;
        transform: translateY(20px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        scale: 1;
        transform: translateY(0px);
        filter: blur(0px);
    }
}

@keyframes FadeInDownNav {
    0% {
        opacity: 0;
        scale: 0.9;
        transform: translateY(-100px);
        filter: blur(25px);
    }

    100% {
        opacity: 1;
        scale: 1;
        transform: translateY(0px);
        filter: blur(0px);
    }
}



@media only screen and (max-width: 600px) {
    #home {
        background-color: #ffffff;
        background-image: none;
        gap: 16px;
        padding: 2rem;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    #home p {
        font-size: 1rem;
    }

    .content {
        padding: 16px;
    }

    .content p {
        font-size: 2rem;
    }

    .author {
        padding: 16px;
    }


    .cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .card {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 16px;
        background-color: #00000010;
        transition: 0.2s cubic-bezier(0.68, -0.21, 0.265, 1.21);
        transition-property: background, opacity, transform, scale;
    }

    .card:hover {
        background-color: #00000005;
    }

    .card:active {
        scale: 0.9;
        background-color: #00000020;
    }

}

/* Editorial Article List */
.editorial-article-list {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.editorial-article-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

@media (max-width: 768px) {
    .editorial-article-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem 0;
    }
}

.editorial-article-row:hover {
    padding-left: 20px;
    padding-right: 20px;
    background-color: #fcfcfc;
    border-radius: 16px;
    border-bottom-color: transparent;
}

.article-meta {
    flex-shrink: 0;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-date {
    font-size: 0.95rem;
    font-family: "DM Serif Display", serif;
    color: #1a1a1a;
}

.article-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content {
    flex-grow: 1;
    max-width: 500px;
    margin-right: 2rem;
}

@media (max-width: 768px) {
    .article-content {
        margin-right: 0;
    }
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: "Google Sans", sans-serif;
    color: #1a1a1a;
    margin: 0 0 0.8rem 0;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

@media (hover: hover) and (pointer: fine) {
    .editorial-article-row:hover .article-title {
        color: #0b57d0;
    }
}

.article-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #6b6b6b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
    .editorial-article-row:hover .article-arrow {
        background-color: #1a1a1a;
        color: #ffffff;
        border-color: #1a1a1a;
        transform: rotate(-45deg);
    }
}

.editorial-article-row.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.editorial-article-row.disabled .article-title {
    color: #6b6b6b;
}

.editorial-article-row.disabled .article-arrow {
    background-color: #f4f4f5;
    color: #86868b;
    border-color: transparent;
}

/* ========== Page Transitions (Minimalist) ========== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f4f4f5;
    /* Matches site background */
    z-index: 9999999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========== Custom Cursor ========== */
html.custom-cursor,
html.custom-cursor * {
    cursor: none !important;
}

#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, width 0.2s ease, height 0.2s ease;
}

#cursor-dot.hover {
    width: 64px;
    height: 64px;
}

#cursor-dot .cursor-arrow {
    display: none;
    font-size: 20px;
}

#cursor-dot.hover .cursor-arrow {
    display: var(--fa-display, inline-block);
}

#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    mix-blend-mode: difference;
    opacity: 0.45;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.15s ease;
}

#cursor-ring.hover {
    opacity: 0;
}

#cursor-ring.clicking {
    width: 20px;
    height: 20px;
}

#cursor-dot.hidden,
#cursor-ring.hidden {
    opacity: 0;
}