* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --bg: #0a0a0a;
    --fg: #111111;
    --fgo: rgba(20, 20, 20, 0.8);
    --border: #222222;
    --gray: #9ca3af;
    --pg: #e5e5e5;
    --card-hover: rgba(255, 255, 255, 0.03);
}
body.light {
    --bg: #f5f5f5;
    --fg: #ffffff;
    --fgo: rgba(240, 240, 240, 0.9);
    --border: #e5e7eb;
    --gray: #6b7280;
    --pg: #1f2937;
    --card-hover: rgba(0, 0, 0, 0.02);
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--pg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    transition: background 0.3s, color 0.3s;
    position: relative;
    overflow-x: hidden;
}
::selection {
    background: rgba(255, 255, 255, 0.08);
}
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.container {
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}
.avatar {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid var(--border);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    background: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 800;
    color: var(--gray);
    animation: avatarFloat 6s ease-in-out infinite;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.avatar:hover {
    transform: scale(1.02) translateY(-4px);
    border-color: var(--pg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.avatar:hover img {
    transform: scale(1.04);
}
@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.avatar-placeholder {
    font-size: 64px;
    font-weight: 800;
    color: var(--gray);
}
.name {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    line-height: 1.2;
}
.name span {
    background: linear-gradient(135deg, var(--pg) 0%, var(--gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bio {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.4;
}
.bio span {
    font-weight: 600;
    color: var(--pg);
}
.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.link-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--fgo);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--pg);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}
.link-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.link-btn:hover {
    transform: translateY(-3px);
    border-color: var(--pg);
    background: var(--card-hover);
}
.link-btn:hover::before {
    opacity: 1;
}
.link-btn i {
    font-size: 22px;
    width: 28px;
    text-align: center;
    color: var(--gray);
    transition: color 0.3s;
}
.link-btn:hover i {
    color: var(--pg);
}
.link-btn .arrow {
    margin-left: auto;
    font-size: 16px;
    color: var(--gray);
    opacity: 0.3;
    transition: all 0.3s;
}
.link-btn:hover .arrow {
    opacity: 1;
    transform: translateX(4px);
}
.link-btn .label {
    flex: 1;
    text-align: left;
}
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--fgo);
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    border-color: var(--pg);
    color: var(--pg);
    transform: scale(1.05) rotate(15deg);
}
.footer {
    margin-top: 28px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: 0.05em;
}
body.light .footer {
    color: rgba(0, 0, 0, 0.06);
}
body.light .link-btn {
    background: rgba(0, 0, 0, 0.02);
}
body.light .link-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}
body.light .avatar {
    border-color: rgba(0, 0, 0, 0.06);
}
body.light .avatar:hover {
    border-color: var(--pg);
}
body.light .name span {
    background: linear-gradient(135deg, #1a1a1a 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (max-width: 480px) {
    .container {
        padding: 0 4px;
    }
    .avatar {
        border-radius: 20px;
        margin-bottom: 16px;
    }
    .name {
        font-size: 28px;
    }
    .bio {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .link-btn {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }
    .link-btn i {
        font-size: 20px;
        width: 24px;
    }
    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .footer {
        font-size: 12px;
    }
}