* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d9ff;
    --secondary-color: #0099cc;
    --accent-color: #00ff88;
    --danger-color: #ff3366;
    --bg-color: #0a0e27;
    --bg-dark: #050811;
    --bg-card: #0f1629;
    --text-color: #00d9ff;
    --text-light: #66e0ff;
    --text-dim: #4a90a4;
    --border-color: #1a2a3a;
    --shadow-color: rgba(0, 217, 255, 0.15);
    --glow-color: rgba(0, 217, 255, 0.5);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    color: var(--text-color);
}

.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 217, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 217, 255, 0.03) 3px
        );
    pointer-events: none;
    z-index: 0;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.container {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 1;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanLine 3s linear infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes scanLine {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.profile-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 
        0 0 30px var(--shadow-color),
        inset 0 0 30px rgba(0, 217, 255, 0.05);
    position: relative;
    animation: fadeIn 0.8s ease-out;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.status-text {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), var(--primary-color), var(--border-color));
    margin-left: 15px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-container {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.avatar {
    width: 120px;
    height: 120px;
    border: 3px solid var(--primary-color);
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 
        0 0 20px var(--glow-color),
        inset 0 0 20px rgba(0, 217, 255, 0.1);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-inner {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    letter-spacing: 3px;
    z-index: 2;
}

.avatar-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: scanAvatar 2s linear infinite;
}

@keyframes scanAvatar {
    0% { top: 0; opacity: 1; }
    50% { opacity: 0.5; }
    100% { top: 100%; opacity: 1; }
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.name {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 4px;
    margin: 15px 0 5px;
    text-shadow: 0 0 20px var(--glow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.name-prefix {
    color: var(--accent-color);
    font-weight: 400;
}

.name-main {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px var(--glow-color); }
    50% { text-shadow: 0 0 30px var(--glow-color), 0 0 40px var(--glow-color); }
}

.name-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-top: 5px;
}

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-item:hover::before {
    left: 100%;
}

.info-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color);
    transform: translateY(-2px);
}

.label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    animation: pulseDot 1.5s ease-in-out infinite;
}

.divider {
    margin: 25px 0;
    text-align: center;
}

.divider-line {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 2px;
}

.textbox-container {
    margin: 30px 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.textbox-header {
    background: var(--bg-dark);
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
}

.textbox-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.textbox {
    background: var(--bg-dark);
    padding: 20px;
    min-height: 120px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    line-height: 1.8;
}

.terminal-line {
    color: var(--text-color);
    margin: 8px 0;
    animation: typeIn 0.5s ease-out;
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prompt {
    color: var(--accent-color);
    margin-right: 8px;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-btn:hover::before {
    left: 100%;
}

.link-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-color);
    transform: translateX(5px);
}

.btn-icon {
    color: var(--accent-color);
    font-size: 16px;
}

.btn-text {
    flex: 1;
    text-align: left;
    margin-left: 12px;
}

.btn-arrow {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.link-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.footer {
    margin-top: 30px;
    text-align: center;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin-bottom: 15px;
}

.footer-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.footer-prefix,
.footer-suffix {
    color: var(--primary-color);
}

.footer-version {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: var(--text-dim);
    margin-top: 8px;
    opacity: 0.6;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary-color);
    animation: floatParticle 10s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .profile-card {
        padding: 20px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar-inner {
        font-size: 14px;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
}