* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fafafa;
    --card-bg: #ffffff;
    --text: #0a0a0a;
    --text-secondary: #737373;
    --border: #e5e5e5;
    --accent: #171717;
    --accent-light: #f5f5f5;
    --shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05), 0 12px 24px rgba(0,0,0,0.05);
    --shadow-hover: 0 0 0 1px rgba(0,0,0,0.03), 0 4px 8px rgba(0,0,0,0.08), 0 24px 48px rgba(0,0,0,0.08);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-inner {
    padding: 48px 40px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info {
    flex: 1;
    min-width: 0;
}

.name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    color: var(--text);
}

.title {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

.bio {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.meta {
    margin-bottom: 24px;
}

.location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--accent-light);
    padding: 6px 12px;
    border-radius: 100px;
}

.location svg {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-group {
    margin-bottom: 16px;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.group-header svg {
    opacity: 0.7;
}

.group-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--accent-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--accent);
    color: white;
    transform: translateX(4px);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-link span {
    flex: 1;
}

.nav-link .arrow {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.nav-link:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

.footer {
    margin-top: 32px;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .card-inner {
        padding: 32px 24px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .name {
        font-size: 22px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0a;
        --card-bg: #171717;
        --text: #fafafa;
        --text-secondary: #a3a3a3;
        --border: #262626;
        --accent: #fafafa;
        --accent-light: #262626;
        --shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 2px 4px rgba(0,0,0,0.3), 0 12px 24px rgba(0,0,0,0.3);
        --shadow-hover: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 8px rgba(0,0,0,0.4), 0 24px 48px rgba(0,0,0,0.4);
    }
    
    .avatar {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}
