:root {
    --primary-color: #0f0;
    --primary-dim: #003300;
    --secondary-color: #0ff;
    --bg-color: #050505;
    --glass-bg: rgba(10, 20, 10, 0.6);
    --glass-border: rgba(0, 255, 0, 0.2);
    --text-main: #e0ffe0;
    --text-dim: #80a080;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --card-padding: 2rem;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Matrix Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

/* Glass Container */
.glass-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: var(--card-padding);
    position: relative;
    overflow: hidden;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#header-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.header-content {
    z-index: 1;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    position: relative;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(33px, 9999px, 11px, 0); }
    20% { clip: rect(89px, 9999px, 99px, 0); }
    40% { clip: rect(12px, 9999px, 66px, 0); }
    60% { clip: rect(55px, 9999px, 22px, 0); }
    80% { clip: rect(4px, 9999px, 88px, 0); }
    100% { clip: rect(67px, 9999px, 33px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(22px, 9999px, 44px, 0); }
    20% { clip: rect(66px, 9999px, 11px, 0); }
    40% { clip: rect(99px, 9999px, 33px, 0); }
    60% { clip: rect(11px, 9999px, 55px, 0); }
    80% { clip: rect(88px, 9999px, 22px, 0); }
    100% { clip: rect(33px, 9999px, 77px, 0); }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* Profile Card */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.profile-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(15px);
    opacity: 0.5;
    z-index: 1;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 0.3; transform: scale(1); }
}

.profile-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.badge {
    background: var(--primary-dim);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
}

/* Info List */
.info-list {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.label {
    color: var(--text-dim);
    min-width: 60px;
    font-size: 0.9rem;
}

.neon-link {
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    transition: all var(--transition-speed);
}

.neon-link:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
}

/* Sections */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 2rem 0;
}

h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.grid-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid transparent;
    transition: all var(--transition-speed);
    text-align: center;
}

.grid-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* QR Section */
.qr-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.qr-card {
    text-align: center;
    color: var(--text-dim);
}

.qr-card img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid var(--primary-color);
    transition: transform var(--transition-speed);
}

.qr-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.brand {
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.beian {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.8rem;
}

.beian:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .label {
        font-size: 0.8rem;
        opacity: 0.7;
    }
}
