:root {
    --bg: #0a0a0a;
    --bg-secondary: #1a0f1f;
    --text: #e0e0ff;
    --text-dim: #9d8fb3;
    --accent: #9333ea;
    --accent-light: #a855f7;
    --accent-dark: #7c3aed;
    --border: #2d1b4e;
    --purple-glow: rgba(147, 51, 234, 0.3);
}

[data-theme="light"] {
    --bg: #faf8ff;
    --bg-secondary: #f3e8ff;
    --text: #1e0936;
    --text-dim: #6b5b8c;
    --accent: #7c3aed;
    --accent-light: #9333ea;
    --accent-dark: #6d28d9;
    --border: #ddd6fe;
    --purple-glow: rgba(147, 51, 234, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 4rem;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) brightness(1.1);
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px var(--purple-glow);
}

.avatar:hover {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--purple-glow);
}

.name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.username {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.bio {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-dim);
    text-transform: lowercase;
}

.info-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
}

.info-item i {
    font-size: 0.9rem;
}

.info-item a {
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.info-item a:hover {
    border-bottom-color: var(--text-dim);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent-light);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: lowercase;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.btn:hover {
    color: var(--bg);
    box-shadow: 0 0 20px var(--purple-glow);
    transform: translateY(-2px);
}

.btn:hover::before {
    width: 120%;
    height: 120%;
}

.btn-secondary {
    border-color: var(--border);
    color: var(--text-dim);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--bg);
}

.repos-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-transform: lowercase;
    color: var(--text-dim);
}

.repos-grid {
    display: grid;
    gap: 1rem;
    background: transparent;
}

.repo-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.repo-card:hover {
    background: var(--bg);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--purple-glow);
}

.repo-card:hover::before {
    transform: translateX(0);
}

.repo-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-light);
}

.repo-description {
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.repo-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.language-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.languages-section {
    margin-bottom: 4rem;
}

.language-bar {
    display: flex;
    height: 6px;
    background: var(--bg-secondary);
    margin-bottom: 1.5rem;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.language-segment {
    transition: opacity 0.2s ease;
}

.language-bar:hover .language-segment {
    opacity: 0.7;
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
}


.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
}

.theme-toggle button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle button:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 20px var(--purple-glow);
    transform: rotate(180deg);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    font-size: 0.875rem;
}

.heart {
    color: var(--accent);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .info-section {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 3rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}