* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #ffffff;
    --shadow: rgba(255, 255, 255, 0.1);
    --border-color: #333;
}

body.light-theme {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --accent-color: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    background: 
        radial-gradient(ellipse at top left, rgba(120, 119, 198, 0.1), transparent 50%),
        radial-gradient(ellipse at top right, rgba(255, 75, 145, 0.1), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(72, 219, 251, 0.1), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(252, 176, 69, 0.1), transparent 50%);
    animation: gradientShift 15s ease infinite;
}

body.light-theme::before {
    background: 
        radial-gradient(ellipse at top left, rgba(120, 119, 198, 0.05), transparent 50%),
        radial-gradient(ellipse at top right, rgba(255, 75, 145, 0.05), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(72, 219, 251, 0.05), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(252, 176, 69, 0.05), transparent 50%);
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Grid pattern */
body::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

body.light-theme::after {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating shapes for professional aesthetic */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 10%;
    left: 10%;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 60%;
    right: 10%;
    animation: float2 15s ease-in-out infinite;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: 10%;
    left: 15%;
    animation: float3 18s ease-in-out infinite;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    top: 30%;
    right: 20%;
    animation: float4 22s ease-in-out infinite;
}

body.light-theme .shape {
    opacity: 0.15;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, 30px) rotate(-120deg); }
    66% { transform: translate(20px, -25px) rotate(-240deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(25px, 35px) rotate(90deg); }
    66% { transform: translate(-30px, -20px) rotate(180deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-35px, -25px) rotate(-90deg); }
    66% { transform: translate(40px, 30px) rotate(-180deg); }
}

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

#themeBtn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px var(--shadow);
    animation: rotateIn 0.6s ease;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

#themeBtn:hover {
    transform: scale(1.2) rotate(180deg);
    border-color: var(--accent-color);
    box-shadow: 0 6px 25px var(--shadow);
}

#themeBtn:active {
    transform: scale(0.95) rotate(180deg);
}

.container {
    padding: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    animation: bounceIn 0.8s ease 0.2s backwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        transform: scale(1.05) rotate(10deg);
    }
    70% {
        transform: scale(0.9) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.profile-image:hover::before {
    transform: translateX(100%);
}

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 50px var(--shadow);
    border-color: var(--text-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    margin-bottom: 40px;
}

.name {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-color);
    letter-spacing: 1.5px;
    animation: slideInLeft 0.6s ease 0.4s backwards;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    position: relative;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: glowLine 2s ease-in-out infinite;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: glowLine 2s ease-in-out infinite;
}

.name .emoji {
    display: inline-block;
    font-style: normal;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

@keyframes glowLine {
    0%, 100% { opacity: 0.5; width: 60px; }
    50% { opacity: 1; width: 100px; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bio {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.5s backwards;
    font-weight: 700;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.bio:hover {
    opacity: 1;
    transform: translateY(-2px);
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

body.light-theme .bio {
    color: #666;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

.social-btn:nth-child(1) { animation-delay: 0.6s; }
.social-btn:nth-child(2) { animation-delay: 0.7s; }
.social-btn:nth-child(3) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-btn:active {
    transform: translateY(-4px) scale(1.05);
}

/* Click animation */
@keyframes clickBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    75% { transform: scale(0.95); }
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.facebook {
    background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.telegram {
    background: linear-gradient(135deg, #0088cc, #005f8c);
}

@media (max-width: 600px) {
    .profile-card {
        padding: 40px 25px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .name {
        font-size: 26px;
    }

    .bio {
        font-size: 14px;
    }

    .theme-toggle {
        top: 20px;
        right: 20px;
    }

    #themeBtn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .social-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}
