:root {
    --soft-pink: #FFD1DC;
    --light-mauve: #E0BBE4;
    --deep-rose: #C96092;
    --accent-gold: #FFD700;
    --bg-cream: #FDFBFB;
    --text-dark-primary: #2C2C2C;
    --text-light-secondary: #5A5A5A;
    --footer-text: #888888;
    --pink-base: #FF6B8A;
    --pink-accent: #FF4081;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, #FFC0CB 0%, #D8BFD8 50%, #ADD8E6 100%);
    background-size: 400% 400%;
    animation: gradient-shift 20s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    color: var(--text-dark-primary);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes profile-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 192, 203, 0.7), 0 0 30px rgba(255, 192, 203, 0.4), 0 0 45px rgba(255, 192, 203, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 192, 203, 0.9), 0 0 40px rgba(255, 192, 203, 0.6), 0 0 60px rgba(255, 192, 203, 0.3); }
}

@keyframes button-press {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.98); }
}

@keyframes slide-fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes icon-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.005); }
}

.container {
    max-width: 500px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: slide-fade-in 0.8s ease-out forwards;
    align-self: center;
}

.cover-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    transition: transform 0.5s ease;
}
.cover-image:hover {
    transform: scale(1.05);
}

.profile-section {
    position: relative;
    margin-top: -70px;
    padding-bottom: 30px;
    z-index: 10;
}

.profile-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--soft-pink);
    margin: 0 auto 15px;
    box-shadow: 0 0 15px rgba(255, 192, 203, 0.7), 0 0 30px rgba(255, 192, 203, 0.4);
    transition: transform 0.3s ease;
    animation: profile-glow 5s ease-in-out infinite;
}
.profile-image:hover {
    transform: scale(1.08);
    animation-play-state: paused;
}

.profile-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark-primary);
    margin-bottom: 0.25rem;
}

.profile-subtitle {
    color: var(--text-light-secondary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    line-height: 1.375;
}

.profile-age {
    color: var(--text-light-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 25px;
    margin-bottom: 40px;
}

.social-icon-link {
    font-size: 2.2rem;
    color: var(--deep-rose);
    transition: color 0.3s ease, transform 0.3s ease;
    animation: icon-breathe 3.5s ease-in-out infinite;
}
.social-icon-link:hover {
    color: var(--pink-accent);
    transform: translateY(-7px) scale(1.15);
    animation-play-state: paused;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 80px);
    padding: 18px 25px;
    margin: 0 auto 20px;
    background: linear-gradient(90deg, var(--pink-base) 0%, var(--pink-accent) 100%);
    color: white;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: subtle-pulse 4s ease-in-out infinite;
}
.link-button:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, var(--pink-accent) 0%, var(--pink-base) 100%);
}
.link-button:active {
    animation: button-press 0.2s ease-out;
}
.link-button i {
    margin-right: 15px;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}
.link-button:hover i {
    transform: translateX(-10px) rotate(5deg);
}
.link-button span {
    transition: transform 0.3s ease;
}
.link-button:hover span {
    transform: translateX(10px);
}

.footer-text {
    color: var(--footer-text);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
}
.footer-text .fa-heart {
    color: #ef4444;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 640px) {
    body {
        padding: 0;
        align-items: flex-start;
    }
    .container {
        border-radius: 30px;
        box-shadow: none;
        border: none;
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
    .cover-image {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .profile-section {
        padding-bottom: 25px;
    }
    .profile-image {
        width: 110px;
        height: 110px;
        border-width: 4px;
    }
    .link-button {
        font-size: 1.05rem;
        padding: 15px 15px;
        width: calc(100% - 60px);
        margin: 0 auto 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    .link-button:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    }
    .link-button i {
        font-size: 1.2rem;
        margin-right: 10px;
    }
    .link-button:hover i {
        transform: translateX(-5px);
    }
    .link-button:hover span {
        transform: translateX(5px);
    }
    .social-icons {
        gap: 18px;
        margin-top: 20px;
        margin-bottom: 25px;
    }
    .social-icon-link {
        font-size: 1.8rem;
    }
    .social-icon-link:hover {
        transform: translateY(-3px) scale(1.08);
    }
    .profile-image, .link-button, .social-icon-link {
        animation-play-state: running !important;
    }
}