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

:root {
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --instagram: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    --telegram: #0088cc;
    --youtube: #ff0000;
    --whatsapp: #25d366;
    --phone: #667eea;
    --location: #ea4335;
    --shadow: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #2d3748;
    --text-secondary: #718096;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #f093fb;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #4facfe;
    bottom: 10%;
    right: 10%;
    animation-delay: -7s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #fcb045;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.container {
    max-width: 680px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar {
    text-align: center;
    margin-bottom: 25px;
}

.avatar-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease;
    border: 4px solid white;
}

.avatar-image:hover {
    transform: scale(1.05);
}

.brand-name {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.description {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
    overflow: hidden;
}

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

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

.link-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.link-card:active {
    transform: translateX(5px) scale(0.98);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.instagram .link-icon {
    background: var(--instagram);
}

.telegram .link-icon {
    background: var(--telegram);
}

.youtube .link-icon {
    background: var(--youtube);
}

.phone .link-icon {
    background: var(--phone);
}

.whatsapp .link-icon {
    background: var(--whatsapp);
}

.location .link-icon {
    background: var(--location);
}

.link-content {
    flex: 1;
    margin-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.link-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.link-arrow {
    font-size: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(5px);
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Адаптивность */
@media (max-width: 640px) {
    .profile-card {
        padding: 40px 25px;
        border-radius: 25px;
    }

    .brand-name {
        font-size: 28px;
    }

    .description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .link-card {
        padding: 16px 18px;
    }

    .link-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .link-title {
        font-size: 16px;
    }

    .link-subtitle {
        font-size: 13px;
    }

    .avatar-placeholder {
        width: 100px;
        height: 100px;
    }

    .avatar-placeholder i {
        font-size: 40px;
    }
}

/* Темная тема для системных настроек */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }

    .profile-card {
        background: rgba(45, 55, 72, 0.95);
    }

    .brand-name {
        color: #f7fafc;
    }

    .description {
        color: #cbd5e0;
    }

    .link-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
    }

    .link-card:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .link-title {
        color: #f7fafc;
    }

    .link-subtitle {
        color: #cbd5e0;
    }

    .footer p {
        color: #cbd5e0;
    }
}
