:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 25, 0.6);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #777bb3;
    --accent-glow: rgba(119, 123, 179, 0.4);
    --highlight: #00ff9d;
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(119, 123, 179, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(119, 123, 179, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-move 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, #050505 100%);
    pointer-events: none;
    z-index: 0;
}

.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(119, 123, 179, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
    will-change: transform;
}

.glass-effect:hover {
    border-color: rgba(119, 123, 179, 0.2);
    box-shadow: 0 25px 50px -12px rgba(119, 123, 179, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.status-badge {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--highlight);
    background: rgba(0, 255, 157, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--highlight);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 157, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

.theme-toggle {
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--accent);
}

.profile {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.avatar-glitch img {
    width: 100%;
    height: 100%;
}

h1.glitch-text {
    font-family: var(--font-code);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.role {
    font-family: var(--font-code);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.bio {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.highlight {
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
}

.stack {
    margin-bottom: 30px;
}

.stack h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-family: var(--font-code);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 0.8rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    transition: var(--transition);
    font-family: var(--font-code);
}

.tag:hover {
    background: rgba(119, 123, 179, 0.1);
    color: var(--accent);
    border-color: rgba(119, 123, 179, 0.3);
    transform: translateY(-2px);
}

.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(119, 123, 179, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
}

.card-footer code {
    font-family: var(--font-code);
    font-size: 0.5rem;
    color: var(--text-muted);
    opacity: 0.7;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    .glass-effect {
        padding: 30px 20px;
    }
}
