/* ========================================
   Dream Portfolio - Dreamy 3D Visual Style
   ======================================== */

/* ---- CSS Variables ---- */
:root {
    /* Colors - dreamy purple-blue tech glass */
    --bg-deep: #1B3A6B;
    --bg-mid: #244B82;
    --bg-soft: #2F5F9E;
    --accent-pink: #67E8F9;
    --accent-purple: #A5D8FF;
    --accent-blue: #7EE7FA;
    --accent-indigo: #818CF8;
    --accent-violet: #2563EB;
    --text-primary: #FFFFFF;
    --text-secondary: #DBEAFE;
    --text-muted: #93C5FD;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-hover: rgba(255, 255, 255, 0.16);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #67E8F9 0%, #7EE7FA 50%, #A5D8FF 100%);
    --grad-ocean: linear-gradient(180deg, #0B1B40 0%, #244B82 35%, #2F5F9E 70%, #3B82F6 100%);
    --grad-glow: radial-gradient(circle, rgba(103, 232, 249, 0.45) 0%, transparent 70%);

    /* Shadows */
    --shadow-glow: 0 0 50px rgba(103, 232, 249, 0.45);
    --shadow-card: 0 20px 60px -15px rgba(56, 189, 248, 0.42);
    --shadow-float: 0 8px 32px rgba(11, 21, 48, 0.55);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans SC', 'Space Grotesk', sans-serif;
    background: radial-gradient(ellipse at 50% 0%, #244B82 0%, #1B3A6B 40%, #0B1B40 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Container ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Loading Screen
   ======================================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-butterfly {
    width: 88px;
    height: 78px;
    animation: loaderFlutter 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(96, 165, 250, 0.7)) drop-shadow(0 0 48px rgba(56, 189, 248, 0.45));
}

.loader-butterfly svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.loader-butterfly .lb-wing-l {
    transform-origin: 40px 35px;
    animation: loaderWingFlap 0.55s ease-in-out infinite alternate;
}
.loader-butterfly .lb-wing-l2 {
    transform-origin: 40px 35px;
    animation: loaderWingFlap 0.55s ease-in-out infinite alternate 0.05s;
}
.loader-butterfly .lb-wing-r {
    transform-origin: 40px 35px;
    animation: loaderWingFlap 0.55s ease-in-out infinite alternate;
}
.loader-butterfly .lb-wing-r2 {
    transform-origin: 40px 35px;
    animation: loaderWingFlap 0.55s ease-in-out infinite alternate 0.05s;
}

@keyframes loaderFlutter {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(3deg); }
    50% { transform: translateY(4px) rotate(-2deg); }
    75% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes loaderWingFlap {
    0% { transform: scaleX(1) rotate(0deg); opacity: 0.9; }
    100% { transform: scaleX(0.45) rotate(-8deg); opacity: 0.65; }
}

.loader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ========================================
   Custom Cursor
   ======================================== */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-pink);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: screen;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(96, 165, 250, 0.5);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

.cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--accent-pink);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    padding: 12px 48px;
    background: rgba(6, 13, 36, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-mark {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.5)) drop-shadow(0 2px 4px rgba(56, 189, 248, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

.nav-logo-mark svg {
    width: 100%;
    height: 100%;
}

.nav-logo-butterfly .nav-bfly-wing-l,
.nav-logo-butterfly .nav-bfly-wing-l2 {
    transform-origin: 22px 22px;
    animation: bflyWingL 1.2s ease-in-out infinite;
}

.nav-logo-butterfly .nav-bfly-wing-r,
.nav-logo-butterfly .nav-bfly-wing-r2 {
    transform-origin: 22px 22px;
    animation: bflyWingR 1.2s ease-in-out infinite;
}

@keyframes bflyWingL {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.3); }
}

@keyframes bflyWingR {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.3); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-4px) rotate(3deg); }
}

.nav-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.nav-logo-accent {
    color: var(--accent-pink);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 13, 36, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--accent-pink);
}

/* ========================================
   Progress Bar
   ======================================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-primary);
    z-index: 1001;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
    transition: width 0.1s;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--grad-ocean);
}

/* ---- Hero Background ---- */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: auroraMove 20s ease-in-out infinite;
}

.aurora-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 70%);
    top: -10%;
    left: -5%;
}

.aurora-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.32), transparent 70%);
    top: 20%;
    right: -10%;
    animation-delay: -7s;
}

.aurora-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.35), transparent 70%);
    bottom: -5%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes auroraMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ---- Particles ---- */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(-20px) scale(0);
        opacity: 0;
    }
}

/* ---- Ocean Scene ---- */
.ocean-scene {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
}

.scene-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 0.8; }
}

.rock-layer, .coral-layer, .wave-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.rock-far {
    bottom: 30%;
    height: 200px;
    opacity: 0.6;
}

.coral-layer {
    bottom: 15%;
    height: 250px;
}

.coral {
    animation: coralSway 6s ease-in-out infinite;
    transform-origin: bottom center;
}

.coral-2 { animation-delay: -2s; animation-duration: 7s; }
.coral-3 { animation-delay: -4s; animation-duration: 5s; }

@keyframes coralSway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

.wave-1 { height: 320px; z-index: 3; }
.wave-2 { height: 280px; z-index: 2; }
.wave-3 { height: 200px; z-index: 4; }

/* ---- Enhanced Ocean Elements ---- */
.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    pointer-events: none;
    z-index: 1;
}

.bubble-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    pointer-events: none;
    z-index: 2;
}

.fish-layer {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 50%;
    pointer-events: none;
    z-index: 2;
}

.jellyfish-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    pointer-events: none;
    z-index: 2;
}

.seaweed-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 3;
}

.rock-mid {
    bottom: 22%;
    height: 180px;
    z-index: 1;
}

.rock-near {
    bottom: 8%;
    height: 140px;
    z-index: 4;
}

.coral-4, .coral-5 {
    animation: coralSway 5.5s ease-in-out infinite;
    transform-origin: bottom center;
}

.coral-4 { animation-delay: -1.5s; }
.coral-5 { animation-delay: -3.5s; }

/* ---- Hero Content ---- */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 10px #4ADE80;
    animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #60A5FA, #60A5FA, #38BDF8);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-ghost {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--glass-hover);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    animation: wheelMove 2s ease-in-out infinite;
}

@keyframes wheelMove {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 18px; }
}

.scroll-text {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ---- Enhanced Scroll Indicator ---- */
.scroll-indicator {
    bottom: 24px;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 46px rgba(96, 165, 250, 0.28);
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--grad-primary);
    opacity: 0.14;
    filter: blur(14px);
    z-index: -1;
}

.scroll-mouse {
    width: 21px;
    height: 34px;
    border-color: rgba(191, 219, 254, 0.8);
}

.scroll-wheel {
    width: 4px;
    height: 9px;
    background: linear-gradient(180deg, #7EE7FA, #60A5FA);
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 3px;
    color: #BFDBFE;
    font-weight: 500;
}

.scroll-chev {
    width: 14px;
    height: 14px;
    color: #93C5FD;
    animation: chevPulse 2s ease-in-out infinite;
}

@keyframes chevPulse {
    0%, 100% { transform: translateY(0); opacity: 0.9; }
    50% { transform: translateY(4px); opacity: 0.4; }
}

/* ========================================
   Hero Stage — Crystal Butterfly & Chips
   ======================================== */
.hero-stage {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-rings {
    position: absolute;
    inset: 0;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(96, 165, 250, 0.28);
    opacity: 0.8;
}

.hero-ring-1 {
    width: 70vmin;
    height: 70vmin;
    left: calc(50% - 35vmin);
    top: calc(50% - 35vmin);
    animation: heroRingSpin 50s linear infinite;
}

.hero-ring-2 {
    width: 94vmin;
    height: 94vmin;
    left: calc(50% - 47vmin);
    top: calc(50% - 47vmin);
    border-color: rgba(56, 189, 248, 0.22);
    animation: heroRingSpin 70s linear infinite reverse;
}

.hero-ring-3 {
    width: 118vmin;
    height: 118vmin;
    left: calc(50% - 59vmin);
    top: calc(50% - 59vmin);
    border-color: rgba(96, 165, 250, 0.18);
    animation: heroRingSpin 95s linear infinite;
}

@keyframes heroRingSpin {
    to { transform: rotate(360deg); }
}

/* ---- Giant Crystal Butterfly ---- */
.hero-butterfly {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(340px, 64vw, 640px);
    z-index: 6;
    perspective: 1400px;
    filter: drop-shadow(0 0 55px rgba(103, 232, 249, 0.65)) drop-shadow(0 0 140px rgba(126, 231, 250, 0.45));
    animation: heroBflyFloat 8s ease-in-out infinite;
}

.hero-butterfly-halo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 150%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.34) 0%, rgba(126, 231, 250, 0.16) 40%, transparent 70%);
    filter: blur(34px);
    animation: heroHaloPulse 5s ease-in-out infinite;
}

.hero-butterfly-reflection {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -42%) scaleY(-0.62);
    width: 100%;
    opacity: 0.55;
    pointer-events: none;
    filter: blur(2px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.06) 45%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.06) 45%, transparent 100%);
}

.hero-butterfly-reflection svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

@keyframes heroHaloPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

.hero-butterfly svg {
    width: 100%;
    height: auto;
    overflow: visible;
    transform-style: preserve-3d;
    animation: heroBflyYaw 13s ease-in-out infinite;
}

.hero-butterfly .hb-l {
    transform-origin: 260px 150px;
    animation: heroWingFlap 4.2s ease-in-out infinite;
}

.hero-butterfly .hb-r {
    transform-origin: 260px 150px;
    animation: heroWingFlap 4.2s ease-in-out infinite 0.1s;
}

@keyframes heroBflyFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-18px); }
}

@keyframes heroBflyYaw {
    0%, 100% { transform: rotateY(-16deg); }
    50% { transform: rotateY(16deg); }
}

@keyframes heroWingFlap {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(0.68); opacity: 0.85; }
}

/* ---- Ability Chips ---- */
.hero-chips {
    position: absolute;
    inset: 0;
}

.hero-chip {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 8;
    opacity: 0;
    transform: translate(calc(var(--cx, 50%) - 50%), calc(var(--cy, 50%) - 50%));
    animation: heroChipIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--d, 0s);
    animation-play-state: paused;
}

body.hero-anim-ready .hero-chip {
    animation-play-state: running;
}

@keyframes heroChipIn {
    0% {
        opacity: 0;
        transform: translate(calc(var(--cx, 50%) - 50%), calc(var(--cy, 50%) - 50%)) translateY(70px) scale(0.4) rotate(-8deg);
    }
    55% { opacity: 1; }
    100% {
        opacity: 1;
        transform: translate(calc(var(--cx, 50%) - 50%), calc(var(--cy, 50%) - 50%)) translateY(0) scale(1) rotate(0deg);
    }
}

.hc-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 99px;
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.38) 0%, rgba(56, 130, 246, 0.30) 55%, rgba(165, 216, 255, 0.26) 100%);
    border: 1px solid rgba(165, 243, 252, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 26px rgba(4, 12, 40, 0.45), 0 0 20px rgba(103, 232, 249, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: heroChipBob 4.5s ease-in-out infinite;
    animation-delay: var(--bd, 0s);
    animation-play-state: paused;
}

body.hero-anim-ready .hc-inner {
    animation-play-state: running;
}

@keyframes heroChipBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hc-ico {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #A5F3FC;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.55), rgba(37, 75, 130, 0.42));
    border: 1px solid rgba(165, 243, 252, 0.4);
    box-shadow: 0 0 10px rgba(103, 232, 249, 0.25);
}

.hc-ico svg {
    width: 15px;
    height: 15px;
}

.hc-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left;
    max-width: 176px;
}

.hc-txt b {
    font-size: 13.5px;
    font-weight: 700;
    color: #F0FBFF;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(10, 32, 80, 0.55);
}

.hc-txt i {
    font-style: normal;
    font-size: 11px;
    color: #CDEEFE;
    opacity: 0.95;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Hero stage responsive ---- */
@media (max-width: 768px) {
    .hero-stage {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 92px 20px 210px;
    }

    .hero-brand {
        top: 6px;
    }

    .hero-brand-kicker {
        font-size: 11px;
        padding: 8px 20px;
        letter-spacing: 0.28em;
    }

    .hero-butterfly {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: clamp(280px, 76vw, 400px);
        margin: 6px 0 0;
        animation: heroBflyFloatM 8s ease-in-out infinite;
    }

    @keyframes heroBflyFloatM {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-14px); }
    }

    .hero-ring {
        border-width: 1px;
        opacity: 0.6;
    }

    .hero-ring-1 {
        width: 56vw;
        height: 56vw;
        left: calc(50% - 28vw);
        top: 10%;
    }

    .hero-ring-2 {
        width: 76vw;
        height: 76vw;
        left: calc(50% - 38vw);
        top: 2%;
    }

    .hero-ring-3 {
        width: 96vw;
        height: 96vw;
        left: calc(50% - 48vw);
        top: -10%;
    }

    .hero-chips {
        position: absolute;
        inset: 0;
        display: block;
        max-width: none;
        margin: 0;
    }

    .hero-chip {
        position: absolute;
        left: 0;
        top: 0;
        transform: translate(calc(var(--cx, 50%) - 50%), calc(var(--cy, 50%) - 50%));
        animation: heroChipIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-delay: var(--d, 0s);
    }

    .hc-inner {
        padding: 6px 12px;
        gap: 7px;
    }

    .hc-ico {
        width: 22px;
        height: 22px;
    }

    .hc-txt b { font-size: 11.5px; }
    .hc-txt i { font-size: 9.5px; }

    /* AI pill — mirrors kicker design, placed below bottom orbit chip */
    .hero-chip.is-ai-pill {
        position: absolute !important;
        left: 50% !important;
        top: auto !important;
        bottom: 96px !important;
        transform: translate(-50%, 0) !important;
        animation: heroChipInM 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-delay: 0.6s;
    }

    .hero-chip.is-ai-pill .hc-inner {
        background: rgba(6, 13, 36, 0.42);
        border: 1px solid rgba(191, 219, 254, 0.18);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 18px rgba(4, 12, 40, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        animation: none;
        padding: 9px 24px;
        border-radius: 100px;
        flex-direction: column;
        gap: 2px;
    }

    .hero-chip.is-ai-pill .hc-ico {
        display: none;
    }

    .hero-chip.is-ai-pill .hc-txt b {
        font-size: 11px;
        letter-spacing: 0.28em;
        text-transform: uppercase;
        color: #BFDBFE;
        text-shadow: 0 1px 8px rgba(0,0,0,0.35);
        font-weight: 500;
        white-space: nowrap;
    }

    .hero-chip.is-ai-pill .hc-txt i {
        display: block;
        font-size: 9.5px;
        color: rgba(219, 234, 254, 0.65);
        letter-spacing: 0.06em;
        font-style: normal;
        white-space: nowrap;
    }

    @keyframes heroChipInM {
        0% {
            opacity: 0;
            transform: translate(-50%, 30px) scale(0.6);
        }
        55% { opacity: 1; }
        100% {
            opacity: 1;
            transform: translate(-50%, 0) scale(1);
        }
    }

    .scroll-indicator {
        bottom: 8px;
        flex-direction: row;
        align-items: center;
        padding: 7px 14px;
        gap: 8px;
    }

    .scroll-indicator .scroll-mouse {
        width: 16px;
        height: 22px;
    }

    .scroll-indicator .scroll-text {
        font-size: 10.5px;
    }

    .scroll-indicator .scroll-chev {
        width: 14px;
        height: 14px;
    }
}

/* ========================================
   Section Common
   ======================================== */
section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-pink);
    top: -100px;
    right: -100px;
    animation: blobMove 15s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    bottom: -50px;
    left: -50px;
    animation: blobMove 18s ease-in-out infinite reverse;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: var(--accent-violet);
    top: 20%;
    right: -100px;
    animation: blobMove 16s ease-in-out infinite;
}

.blob-4 {
    width: 500px;
    height: 500px;
    background: var(--accent-pink);
    top: -100px;
    left: 20%;
    animation: blobMove 20s ease-in-out infinite;
}

.blob-5 {
    width: 350px;
    height: 350px;
    background: var(--accent-indigo);
    bottom: 10%;
    right: -50px;
    animation: blobMove 14s ease-in-out infinite reverse;
}

@keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 50px) scale(0.9); }
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-pink);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    background: var(--bg-deep);
}

.projects-bg {
    z-index: 0;
}

/* ---- Project Category Filters ---- */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0 0 52px;
    position: relative;
    z-index: 2;
}

.project-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.35s var(--ease-out);
}

.project-filter .pf-ico {
    display: flex;
    width: 18px;
    height: 18px;
    opacity: 0.75;
    flex-shrink: 0;
}

.project-filter .pf-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.project-filter .pf-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.project-filter .pf-sub {
    font-size: 10.5px;
    opacity: 0.55;
    letter-spacing: 0.1em;
}

.project-filter:hover {
    border-color: rgba(56, 189, 248, 0.55);
    color: #fff;
    transform: translateY(-2px);
}

.project-filter.active {
    background: linear-gradient(120deg, rgba(56, 189, 248, 0.9), rgba(96, 165, 250, 0.9));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.35);
}

.project-filter.active .pf-ico {
    opacity: 1;
}

.project-filter.active .pf-sub {
    opacity: 0.85;
}

.project-card.filter-hidden {
    display: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: var(--grad-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    background: var(--glass-hover);
}

.project-card:hover::before {
    opacity: 1;
}

/* ---- 项目视觉区 ---- */
.project-visual {
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #38BDF8 0%, #60A5FA 50%, #2563EB 100%);
}

.project-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

/* 右上角蓝色粒子蝴蝶装饰 */
.project-cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.project-cover-overlay svg {
    position: absolute;
    width: 42%;
    height: 42%;
    top: -6%;
    right: -6%;
    opacity: 0.5;
    filter: drop-shadow(0 0 10px rgba(56,189,248,0.75)) drop-shadow(0 0 22px rgba(56,189,248,0.3));
    /* 蝴蝶固定不动，移除 butterflyFloat 动画 */
    transform: rotate(-6deg);
    animation: none;
}

@keyframes butterflyFloat {
    0%,100% { transform: translate(0,0) rotate(-6deg); }
    25%     { transform: translate(3px,-5px) rotate(2deg); }
    50%     { transform: translate(-2px,3px) rotate(-3deg); }
    75%     { transform: translate(-3px,-2px) rotate(4deg); }
}

/* 隐藏原渐变占位（在用真实图时） */
.project-visual .project-cover[style*="linear-gradient"] {
    display: none;
}

.project-gradient {
    position: absolute;
    inset: 0;
    transition: transform 0.5s var(--ease-out);
}

.project-card:hover .project-gradient {
    transform: scale(1.1);
}

.project-gradient-1 {
    background: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%);
}
.project-gradient-2 {
    background: linear-gradient(135deg, #818CF8 0%, #1D4ED8 100%);
}
.project-gradient-3 {
    background: linear-gradient(135deg, #818CF8 0%, #1D4ED8 100%);
}
.project-gradient-4 {
    background: linear-gradient(135deg, #67E8F9 0%, #2563EB 100%);
}

.project-icon {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    animation: iconFloat 4s ease-in-out infinite;
}

.project-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.project-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s var(--ease-out);
}

.project-card:hover .project-shine {
    left: 150%;
}

.project-info {
    padding: 24px;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(96, 165, 250, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-pink);
    transition: gap 0.3s;
}

.project-link:hover {
    gap: 12px;
}

/* ---- Project Media ---- */
.project-visual {
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235,0.2), rgba(56, 189, 248,0.1));
}

.project-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-poster {
    transform: scale(1.08);
}

.project-play {
    position: absolute;
    z-index: 3;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(6, 13, 36, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.project-play svg {
    width: 100%;
    height: 100%;
}

.project-card:hover .project-play {
    transform: scale(1.1);
    background: rgba(56, 189, 248, 0.25);
}

.gallery-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    transform: scale(1.02);
}

.gallery-img.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
}

.gallery-nav button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(6, 13, 36, 0.5);
    color: white;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gallery-nav button:hover {
    background: rgba(56, 189, 248, 0.7);
}

.gal-dots {
    display: flex;
    gap: 6px;
}

.gal-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: all 0.3s;
}

.gal-dots span.active {
    background: var(--accent-pink);
    width: 18px;
    border-radius: 4px;
}

.link-icon-bg {
    width: 90px;
    height: 90px;
    opacity: 0.7;
    animation: iconFloat 4s ease-in-out infinite;
}

.link-icon-bg svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.link-list-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.mini-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 100px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--accent-purple);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s;
}

.mini-link:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tag-highlight {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--accent-pink);
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--bg-mid);
}

.about-bg {
    z-index: 0;
}

/* ---- Founder Section (创始人王申) ---- */
.founder-block {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
    padding: 48px 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(96, 165, 250, 0.06) 50%, rgba(165, 216, 255, 0.04) 100%);
    border: 1px solid rgba(165, 243, 252, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 18px 60px rgba(4, 12, 40, 0.35), 0 0 40px rgba(103, 232, 249, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.founder-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-photo {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(165, 243, 252, 0.32);
    box-shadow: 0 18px 50px rgba(4, 12, 40, 0.55), 0 0 28px rgba(103, 232, 249, 0.28);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.founder-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.founder-kicker {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12.5px;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--accent-pink);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.founder-name {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.founder-meta {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.85;
}

.founder-meta b {
    color: #93C5FD;
    font-weight: 600;
}

.founder-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(165, 243, 252, 0.35), transparent);
    margin: 8px 0 4px;
}

.founder-message-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-pink);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 4px;
}

.founder-message {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-style: italic;
    border-left: 3px solid rgba(165, 243, 252, 0.45);
    padding-left: 16px;
}

@media (max-width: 1024px) {
    .founder-block {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 36px 28px;
    }

    .founder-visual {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .founder-block {
        padding: 28px 22px;
        margin-bottom: 56px;
        gap: 28px;
    }

    .founder-meta {
        font-size: 14.5px;
    }

    .founder-message {
        font-size: 0.95rem;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ---- About Visual ---- */
.about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-avatar {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-core {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(96, 165, 250, 0.2));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glow);
}

.avatar-core svg {
    width: 100%;
    height: 100%;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(96, 165, 250, 0.3);
    animation: ringRotate 20s linear infinite;
}

.avatar-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.avatar-orbit-1 {
    inset: -20px;
    animation: ringRotate 15s linear infinite;
}

.avatar-orbit-2 {
    inset: -40px;
    animation: ringRotate 25s linear infinite reverse;
}

.avatar-orbit-1::before,
.avatar-orbit-2::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-pink);
    top: 50%;
    left: -4px;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--accent-pink);
}

.avatar-orbit-2::before {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-stats {
    display: flex;
    gap: 32px;
}

/* ---- Life Photo Gallery ---- */
.life-gallery {
    width: 100%;
    max-width: 420px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(96, 165, 250, 0.22), 0 8px 24px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(56, 189, 248, 0.1));
}

.about-visual .life-gallery {
    max-width: 100%;
}

.life-gallery-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.life-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transform: scale(1.04);
}

.life-gallery-img.active {
    opacity: 1;
    transform: scale(1);
}

.life-gallery-nav {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
}

.life-gallery-nav button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(6, 13, 36, 0.55);
    color: white;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.life-gallery-nav button:hover {
    background: rgba(56, 189, 248, 0.8);
}

.life-gal-dots {
    display: flex;
    gap: 7px;
}

.life-gal-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    cursor: pointer;
}

.life-gal-dots span.active {
    background: var(--accent-pink);
    width: 20px;
    border-radius: 4px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- About Content ---- */
.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.8;
}

.bio-item {
    margin-bottom: 24px;
}

.bio-item .about-text + .about-text {
    margin-top: 12px;
}

.bio-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.skills {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.skill-header span:last-child {
    color: var(--accent-purple);
    font-family: 'Space Grotesk', sans-serif;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0%;
    background: var(--grad-primary);
    border-radius: 3px;
    transition: width 1.2s var(--ease-out);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--bg-deep);
    padding-bottom: 0;
}

.contact-bg {
    z-index: 0;
}

.contact-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 64px 48px;
    border-radius: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

/* ---- Contact Self Assessment ---- */
.contact-assessment {
    position: relative;
    text-align: left;
    margin-bottom: 48px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--glass-border);
}

.contact-assessment .section-tag {
    margin-bottom: 0;
}

.contact-assessment-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 12px 0 28px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.assessment-item {
    margin-bottom: 24px;
}

.assessment-item:last-child {
    margin-bottom: 0;
}

.assessment-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.assessment-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    position: relative;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    transition: all 0.3s var(--ease-out);
    text-align: left;
}

.contact-method:hover {
    background: var(--glass-hover);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateX(8px);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(96, 165, 250, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    flex-shrink: 0;
    transition: all 0.3s;
}

.contact-method:hover .method-icon {
    background: var(--grad-primary);
    color: white;
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 12px;
    color: var(--text-muted);
}

.method-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---- Wangshen consultant method ---- */
.method-wangshen {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(96, 165, 250, 0.03));
    border-color: rgba(96, 165, 250, 0.22);
}

.method-wangshen .method-info {
    min-width: 0;
}

.method-wangshen .method-value {
    font-weight: 600;
    color: var(--accent-purple);
}

.method-qr-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
    margin-left: auto;
    cursor: pointer;
    transition: box-shadow 0.3s var(--ease-out), opacity 0.2s;
}

.method-qr-thumb:hover {
    box-shadow: 0 6px 18px rgba(96, 165, 250, 0.45);
}

/* QR lightbox */
.qr-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 13, 31, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
    backdrop-filter: blur(6px);
}
.qr-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.qr-lightbox img {
    width: min(80vw, 360px);
    height: auto;
    aspect-ratio: 1;
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.qr-lightbox-hint {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(219, 234, 254, 0.7);
    font-size: 13px;
    letter-spacing: 0.06em;
}

/* ---- Email contact: subtle clickable cue ---- */
    .contact-method-mail {
        cursor: pointer;
        position: relative;
    }
    .contact-method-mail::after {
        content: '唤起邮件客户端';
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 11px;
        color: rgba(96, 165, 250, 0.65);
        letter-spacing: 0.06em;
        opacity: 0;
        transition: opacity 0.3s var(--ease-out);
        pointer-events: none;
    }
    .contact-method-mail:hover::after {
        opacity: 1;
    }
    @media (max-width: 640px) {
        .contact-method-mail::after {
            display: none;
        }
    }

@media (max-width: 640px) {
    .method-qr-thumb {
        width: 48px;
        height: 48px;
    }
    .qr-lightbox img {
        width: min(85vw, 320px);
    }
}

/* ---- Footer Wave ---- */
.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-deep);
    padding: 48px 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-pink);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ========================================
   Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }

    .life-gallery {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 16px 24px;
    }

    .nav.scrolled {
        padding: 10px 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    section {
        padding: 80px 0;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 40px 24px;
    }

    .about-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .ocean-scene {
        height: 35%;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cursor-dot, .cursor-ring {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .life-gallery,
    .life-gallery-section .life-gallery {
        max-width: 100%;
        border-radius: 18px;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .contact-method {
        padding: 12px 16px;
    }

    .method-icon {
        width: 40px;
        height: 40px;
    }

    .project-filters {
        gap: 10px;
        margin-bottom: 40px;
    }

    .project-filter {
        padding: 8px 14px;
        gap: 8px;
    }

    .project-filter .pf-ico {
        width: 15px;
        height: 15px;
    }

    .project-filter .pf-name {
        font-size: 13px;
    }

    .project-filter .pf-sub {
        font-size: 9.5px;
    }
}

/* ========================================
   Lightbox Modal
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-inner {
    position: relative;
    z-index: 2;
    width: 90vw;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: white;
    transform: rotate(90deg);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
}

.lightbox-arrow:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.lightbox-arrow.hidden {
    display: none;
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-media {
    width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    margin-top: 18px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 600px;
}

@media (max-width: 768px) {
    .lightbox-inner {
        width: 96vw;
        padding: 12px;
    }

    .lightbox-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .lightbox-prev { left: -6px; }
    .lightbox-next { right: -6px; }
}

/* ========================================
   Glass Butterflies & Floating Orbs
   ======================================== */
.glass-creatures {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* ---- Glass Butterfly ---- */
.glass-butterfly {
    position: absolute;
    left: var(--bx, 50%);
    top: var(--by, 20%);
    width: 80px;
    height: 70px;
    transform: scale(var(--bscale, 1));
    animation: butterflyFloat var(--bd, 25s) ease-in-out infinite var(--bdel, 0s);
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.22));
}

.glass-butterfly svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.glass-butterfly .b-wing-l,
.glass-butterfly .b-wing-r {
    transform-origin: 40px 35px;
    animation: wingFlapL 0.8s ease-in-out infinite alternate;
    fill: rgba(56, 189, 248, 0.06);
    backdrop-filter: blur(2px);
}

.glass-butterfly .b-wing-r {
    animation-name: wingFlapR;
    fill: rgba(96, 165, 250, 0.06);
}

.glass-butterfly .b-wing-l2,
.glass-butterfly .b-wing-r2 {
    transform-origin: 40px 35px;
    animation: wingFlapL2 0.8s ease-in-out infinite alternate;
    fill: rgba(96, 165, 250, 0.05);
}

.glass-butterfly .b-wing-r2 {
    animation-name: wingFlapR2;
}

@keyframes wingFlapL {
    0% { transform: rotateY(0deg) scaleX(1); }
    100% { transform: rotateY(55deg) scaleX(0.5); }
}
@keyframes wingFlapR {
    0% { transform: rotateY(0deg) scaleX(1); }
    100% { transform: rotateY(-55deg) scaleX(0.5); }
}
@keyframes wingFlapL2 {
    0% { transform: rotateY(0deg) scaleX(1); }
    100% { transform: rotateY(40deg) scaleX(0.6); }
}
@keyframes wingFlapR2 {
    0% { transform: rotateY(0deg) scaleX(1); }
    100% { transform: rotateY(-40deg) scaleX(0.6); }
}

@keyframes butterflyFloat {
    0% {
        transform: translate(0, 0) scale(var(--bscale, 1)) rotate(0deg);
    }
    10% {
        transform: translate(30px, -25px) scale(var(--bscale, 1)) rotate(5deg);
    }
    20% {
        transform: translate(60px, 15px) scale(var(--bscale, 1)) rotate(-3deg);
    }
    30% {
        transform: translate(20px, 40px) scale(var(--bscale, 1)) rotate(8deg);
    }
    40% {
        transform: translate(-30px, 20px) scale(var(--bscale, 1)) rotate(-5deg);
    }
    50% {
        transform: translate(-50px, -30px) scale(var(--bscale, 1)) rotate(3deg);
    }
    60% {
        transform: translate(-20px, -50px) scale(var(--bscale, 1)) rotate(-8deg);
    }
    70% {
        transform: translate(40px, -40px) scale(var(--bscale, 1)) rotate(5deg);
    }
    80% {
        transform: translate(50px, 10px) scale(var(--bscale, 1)) rotate(-3deg);
    }
    90% {
        transform: translate(15px, 30px) scale(var(--bscale, 1)) rotate(2deg);
    }
    100% {
        transform: translate(0, 0) scale(var(--bscale, 1)) rotate(0deg);
    }
}

/* ---- Glass Orb / Bubble ---- */
.glass-orb {
    position: absolute;
    left: var(--ox, 50%);
    bottom: 0;
    width: var(--os, 40px);
    height: var(--os, 40px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(56, 189, 248, 0.08) 40%,
        rgba(96, 165, 250, 0.04) 70%,
        transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(3px);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.08),
                0 0 20px rgba(96, 165, 250, 0.1);
    animation: orbRise var(--od, 15s) ease-in infinite var(--odel, 0s);
}

@keyframes orbRise {
    0% {
        transform: translateY(0) translateX(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50vh) translateX(20px) scale(1);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(-15px) scale(1.1);
        opacity: 0;
    }
}

/* ---- Glass creatures on mobile ---- */
@media (max-width: 768px) {
    .glass-butterfly {
        width: 50px;
        height: 44px;
    }
    .glass-orb {
        width: calc(var(--os, 40px) * 0.7);
        height: calc(var(--os, 40px) * 0.7);
    }
}

/* ---- Lightbox Video Support ---- */
.lightbox-media video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(96, 165, 250, 0.3);
    outline: none;
}

.lightbox-media video::-webkit-media-controls-panel {
    background: rgba(11, 22, 54, 0.7);
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   四嘉壹新媒体全案服务商 - 定制样式
   ======================================== */

/* ---- Hero 品牌标题 ---- */
.hero-brand {
    position: absolute;
    top: 3.2%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 50;
    pointer-events: none;
    padding: 0 20px;
}
.hero-brand-kicker {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #BFDBFE;
    background: rgba(6, 13, 36, 0.42);
    border: 1px solid rgba(191, 219, 254, 0.18);
    padding: 9px 24px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    margin-bottom: 6px;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.hero-brand-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #F0F9FF;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45), 0 0 60px rgba(96, 165, 250, 0.35);
}
.hero-brand-sub {
    font-size: clamp(13px, 1.5vw, 16px);
    color: #DBEAFE;
    letter-spacing: 0.08em;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.9;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
    .hero-brand { top: 6px; }
    .hero-brand-title { font-size: 28px; }
    .hero-brand-sub { font-size: 12px; }
}

/* ---- 项目封面（渐变品牌卡）---- */
.project-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: inherit;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.project-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.28) 0%, transparent 55%);
    opacity: 0.7;
    transition: opacity 0.5s;
}
.project-cover-initial {
    position: relative;
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}
.project-cover-name {
    position: relative;
    font-size: clamp(15px, 1.8vw, 19px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.06em;
    padding: 0 16px;
    text-align: center;
}
.project-cover-hint {
    position: relative;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.15em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s, transform 0.4s;
}
.project-card:hover .project-cover {
    transform: scale(1.06);
    box-shadow: 0 24px 60px -12px rgba(37, 99, 235, 0.55);
}
.project-card:hover .project-cover-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ---- About 能力卡片 ---- */
.cap-card {
    position: relative;
    border-radius: 24px;
    padding: 40px 32px;
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.28) 0%, rgba(6, 13, 36, 0.6) 60%);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 28px;
}
.cap-card-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 80%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.35) 0%, transparent 70%);
    pointer-events: none;
}
.cap-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: #fff;
    margin-bottom: 18px;
    box-shadow: var(--shadow-glow);
}
.cap-card-icon svg { width: 26px; height: 26px; }
.cap-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.cap-card-text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.cap-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cap-card-tags span {
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* ---- Footer 静态文本 ---- */
.footer-static {
    display: block;
    font-size: 14px;
    line-height: 2;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    cursor: default;
}
.footer-col { display: flex; flex-direction: column; gap: 2px; }

/* 联系卡片方法列宽适配 */
.contact-methods { align-items: stretch; }

/* ---- Team Gallery 团队介绍 ---- */
.team-gallery-section {
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}
.team-gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(96, 165, 250, 0.06) 0%, transparent 40%);
    pointer-events: none;
}
.team-gallery-header {
    text-align: center;
    margin-bottom: 60px;
}
.team-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.team-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.team-gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.12);
}
.team-gallery-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(96, 165, 250, 0.15), transparent 60%);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s;
}
.team-gallery-item:hover .team-gallery-glow {
    opacity: 1;
}
.team-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .team-gallery-section {
        padding: 70px 0 90px;
    }
    .team-gallery-header {
        margin-bottom: 40px;
    }
    .team-gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- Show More / Fold Projects ---- */
.show-more-row {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}

.show-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
    color: #38BDF8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    backdrop-filter: blur(8px);
}

.show-more:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.show-more::after {
    content: '↓';
    font-size: 12px;
    transition: transform 0.25s var(--ease-out);
}

.show-more.expanded::after {
    content: '↑';
}

.project-card.hidden-project {
    display: none;
}

.project-card.hidden-project.expanded {
    display: block;
    animation: cardFadeIn 0.45s var(--ease-out) forwards;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
