/* 
 * Cyberpunk / Digital Rebirth Theme
 * For www.sunjianyin.com
 * Design Philosophy: System Reboot, High-Tech, Dark Mode, Neon
 */

:root {
    /* Core Colors */
    --bg-deep: #05050a;
    --bg-dark: #0a0a12;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-card-hover: rgba(30, 30, 50, 0.8);

    /* Neon Accents */
    --neon-cyan: #00f3ff;
    --neon-blue: #0066ff;
    --neon-purple: #bc13fe;
    --neon-red: #ff003c;

    /* Text Colors */
    --text-main: #e0e0e0;
    --text-muted: #8a8a9b;
    --text-highlight: #ffffff;

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-glow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --purple-glow: 0 0 10px rgba(188, 19, 254, 0.5), 0 0 20px rgba(188, 19, 254, 0.3);

    /* Fonts */
    --font-tech: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0a0a12 0%, #000000 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Typography Utilities */
.tech-font {
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

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

/* 
 * Header / Nav 
 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '_';
    animation: blink 1s infinite;
}

/* 
 * Hero Section - System Reboot 
 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.system-status {
    font-family: var(--font-tech);
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

.glitch-active {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--neon-red);
}

/* Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
    border-color: var(--neon-cyan);
}

.stat-number {
    display: block;
    font-family: var(--font-tech);
    font-size: 2.5rem;
    color: var(--neon-purple);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* 
 * Section Styles 
 */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    color: var(--text-highlight);
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-title::before {
    content: '<';
    color: var(--neon-blue);
    margin-right: 10px;
}

.section-title::after {
    content: ' />';
    color: var(--neon-blue);
    margin-left: 10px;
}

/* 
 * Blog / Recent Thoughts - Holographic Cards 
 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
    border-color: rgba(0, 243, 255, 0.3);
}

.post-card:hover::before {
    transform: translateX(100%);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
    font-family: var(--font-tech);
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-highlight);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--neon-cyan);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* 
 * Timeline - Circuit Board Style 
 */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(188, 19, 254, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Alternating Layout */
.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

/* Connector Nodes */
.timeline-node {
    position: absolute;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-deep);
    border: 2px solid var(--neon-purple);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--neon-purple);
}

.timeline-year {
    font-family: var(--font-tech);
    color: var(--neon-purple);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--text-highlight);
    margin-bottom: 10px;
}

.timeline-item:hover .timeline-content {
    border-color: var(--neon-purple);
    box-shadow: var(--purple-glow);
}

/* 
 * About - HUD Interface 
 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.profile-hud {
    background: rgba(10, 10, 18, 0.8);
    border: 1px solid var(--neon-blue);
    padding: 30px;
    border-radius: 4px;
    position: relative;
}

/* HUD Corners */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    transition: all 0.3s ease;
}

.top-left {
    top: -2px;
    left: -2px;
    border-right: 0;
    border-bottom: 0;
}

.top-right {
    top: -2px;
    right: -2px;
    border-left: 0;
    border-bottom: 0;
}

.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: 0;
    border-top: 0;
}

.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: 0;
    border-top: 0;
}

.profile-hud:hover .hud-corner {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.avatar-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    padding: 5px;
    position: relative;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(50%);
    transition: filter 0.3s;
}

.avatar-container:hover img {
    filter: grayscale(0%);
}

.profile-name {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-highlight);
}

.profile-title {
    text-align: center;
    color: var(--neon-cyan);
    font-family: var(--font-tech);
    margin-bottom: 30px;
    display: block;
}

.skill-bar {
    margin-bottom: 15px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--neon-blue);
    width: 0;
    transition: width 1.5s ease-out;
    box-shadow: 0 0 10px var(--neon-blue);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-main);
}

.about-text p {
    margin-bottom: 20px;
}

/* 
 * Footer 
 */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
}

.footer-tech {
    margin-top: 20px;
    font-family: var(--font-tech);
    color: var(--neon-cyan);
    opacity: 0.7;
}

/* 
 * Responsive 
 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
        text-align: left !important;
    }

    .timeline-node {
        left: 20px;
    }

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

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Neural Feed (Weibo) Section */
#neural-feed {
    position: relative;
    padding: 60px 0;
    background: rgba(10, 10, 20, 0.5);
}

.weibo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.weibo-card {
    background: rgba(16, 20, 30, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 4px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.weibo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-cyan), transparent);
    opacity: 0.5;
}

.weibo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 243, 255, 0.6);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.1);
}

.weibo-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.weibo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-family: var(--font-tech);
    font-size: 0.85rem;
}

.weibo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.weibo-time {
    color: var(--neon-cyan);
}

.weibo-location {
    font-size: 0.8rem;
    opacity: 0.8;
}

.weibo-mood {
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 0 5px currentColor;
}

.weibo-content {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 60px;
}

.weibo-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.system-tag {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.cyber-link {
    display: inline-block;
    padding: 10px 25px;
    color: var(--neon-cyan);
    text-decoration: none;
    border: 1px solid var(--neon-cyan);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyber-link:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* Empty State */
.weibo-card.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    border-style: dashed;
    opacity: 0.7;
}

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