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

body {
    min-height: 100vh;
    background: #0a0a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    position: relative;
}

/* Matrix rain canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

/* Scan line effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 4px
    );
    pointer-events: none;
    z-index: 100;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Profile picture */
.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #00ff41,
        #00d4ff,
        #0ff,
        #00ff41
    );
    animation: rotate-border 3s linear infinite;
}

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

.avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #00ff41;
    text-shadow: 0 0 20px #00ff41, 0 0 40px #00ff4180;
    z-index: 1;
}

/* Name */
.name {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #00ff41, 0 0 30px #00ff4150;
    text-align: center;
    animation: glitch-text 4s infinite;
}

@keyframes glitch-text {
    0%, 92%, 100% { text-shadow: 0 0 10px #00ff41, 0 0 30px #00ff4150; transform: translate(0); }
    93% { text-shadow: -2px 0 #ff0040, 2px 0 #00d4ff; transform: translate(-2px, 1px); }
    95% { text-shadow: 2px 0 #ff0040, -2px 0 #00d4ff; transform: translate(2px, -1px); }
    97% { text-shadow: 0 0 10px #00ff41, 0 0 30px #00ff4150; transform: translate(0); }
}

/* Bio */
.bio {
    color: #00d4ff;
    font-size: 13px;
    text-align: center;
    opacity: 0.8;
    line-height: 1.6;
}

.bio .cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Terminal-style decoration */
.terminal-header {
    width: 100%;
    color: #555;
    font-size: 11px;
    text-align: left;
    padding: 0 5px;
}

/* Links */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-btn:hover::before {
    left: 100%;
}

.link-btn:hover {
    background: rgba(0, 255, 65, 0.08);
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15), inset 0 0 15px rgba(0, 255, 65, 0.05);
    transform: translateX(4px);
}

.link-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-icon svg {
    width: 20px;
    height: 20px;
    fill: #00ff41;
    filter: drop-shadow(0 0 4px #00ff4180);
    transition: all 0.3s ease;
}

.link-btn:hover .link-icon svg {
    filter: drop-shadow(0 0 8px #00ff41);
}

.link-label {
    flex: 1;
}

.link-arrow {
    color: #00ff41;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 14px;
}

.link-btn:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    margin-top: 20px;
    color: #333;
    font-size: 11px;
    text-align: center;
}

/* Glow dot */
.glow-dot {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: float-dot 8s ease-in-out infinite;
}

.glow-dot:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.glow-dot:nth-child(2) { bottom: 10%; right: 10%; animation-delay: -4s; background: radial-gradient(circle, rgba(0, 212, 255, 0.06), transparent 70%); }

@keyframes float-dot {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Entry animations */
.container > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 0.6s forwards;
}

.container > *:nth-child(1) { animation-delay: 0.1s; }
.container > *:nth-child(2) { animation-delay: 0.2s; }
.container > *:nth-child(3) { animation-delay: 0.3s; }
.container > *:nth-child(4) { animation-delay: 0.4s; }
.container > *:nth-child(5) { animation-delay: 0.5s; }
.container > *:nth-child(6) { animation-delay: 0.6s; }

.link-btn:nth-child(1) { animation-delay: 0.5s; }
.link-btn:nth-child(2) { animation-delay: 0.6s; }
.link-btn:nth-child(3) { animation-delay: 0.7s; }
.link-btn:nth-child(4) { animation-delay: 0.8s; }
.link-btn:nth-child(5) { animation-delay: 0.9s; }
.link-btn:nth-child(6) { animation-delay: 1.0s; }

.links .link-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 0.6s forwards;
}

@keyframes fade-in {
    to { opacity: 1; transform: translateY(0); }
}
