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

:root {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-hover: rgba(255, 255, 255, 1);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --accent: #667eea;
}

/* Theme: Dark */
[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #2d2d44 100%);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent: #00f5d4;
}

/* Theme: Minimal */
[data-theme="minimal"] {
    --bg-gradient: #fafafa;
    --card-bg: #ffffff;
    --card-hover: #f5f5f5;
    --text-primary: #111111;
    --text-secondary: #666666;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --accent: #111111;
}

/* Theme: Ocean */
[data-theme="ocean"] {
    --bg-gradient: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #023e8a;
    --text-secondary: #0077b6;
    --accent: #0077b6;
}

/* Theme: Sunset */
[data-theme="sunset"] {
    --bg-gradient: linear-gradient(135deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #3a0ca3;
    --text-secondary: #7209b7;
    --accent: #f72585;
}

/* Theme: Forest */
[data-theme="forest"] {
    --bg-gradient: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #74c69d 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1b4332;
    --text-secondary: #2d6a4f;
    --accent: #40916c;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 480px;
}

/* Profile */
.profile {
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar img.loaded {
    display: block;
}

.avatar-placeholder {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.avatar img.loaded + .avatar-placeholder {
    display: none;
}

.name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

[data-theme="dark"] .name,
[data-theme="dark"] .bio {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bio {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 300px;
    margin: 0 auto 20px;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--card-hover);
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-card:active {
    transform: translateY(-2px);
}

.link-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile {
    animation: fadeInUp 0.6s ease;
}

.link-card {
    animation: fadeInUp 0.6s ease backwards;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.15s; }
.link-card:nth-child(3) { animation-delay: 0.2s; }
.link-card:nth-child(4) { animation-delay: 0.25s; }
.link-card:nth-child(5) { animation-delay: 0.3s; }
.link-card:nth-child(6) { animation-delay: 0.35s; }
.link-card:nth-child(7) { animation-delay: 0.4s; }
.link-card:nth-child(8) { animation-delay: 0.45s; }

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 30px 16px;
    }

    .name {
        font-size: 1.5rem;
    }

    .link-card {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}
