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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
}

/* Фоновое изображение с затемнением */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.snaklilopin.ru/images/poletushka.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.3) blur(2px);
    z-index: -1;
    animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% {
        filter: brightness(0.3) blur(2px);
    }
    50% {
        filter: brightness(0.25) blur(3px);
    }
}

/* Контейнер */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    animation: containerFadeIn 1s ease-out;
    max-width: 100%;
    width: 100%;
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Секция профиля */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: profileSlideIn 1s ease-out;
}

@keyframes profileSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Аватарка */
.avatar-wrapper {
    position: relative;
    animation: avatarBounce 3s ease-in-out infinite;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(100, 200, 255, 0.5),
                0 0 60px rgba(100, 200, 255, 0.3),
                inset 0 0 20px rgba(100, 200, 255, 0.2);
    object-fit: cover;
    animation: avatarGlow 2s ease-in-out infinite;
}

@keyframes avatarBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes avatarGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(100, 200, 255, 0.5),
                    0 0 60px rgba(100, 200, 255, 0.3),
                    inset 0 0 20px rgba(100, 200, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(100, 200, 255, 0.7),
                    0 0 80px rgba(100, 200, 255, 0.5),
                    inset 0 0 30px rgba(100, 200, 255, 0.3);
    }
}

/* Ник */
.nickname {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
    letter-spacing: 1px;
    animation: nicknameFadeIn 1.2s ease-out;
}

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

/* Выпадающий список */
.links-dropdown {
    position: relative;
    width: 100%;
    max-width: 280px;
    animation: dropdownSlideIn 1.2s ease-out;
}

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

/* Кнопка выпадающего списка */
.dropdown-toggle {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.2), rgba(150, 100, 255, 0.2));
    border: 2px solid rgba(100, 200, 255, 0.5);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(100, 200, 255, 0.1);
}

.dropdown-toggle:hover {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.3), rgba(150, 100, 255, 0.3));
    border-color: rgba(100, 200, 255, 0.8);
    box-shadow: 0 8px 32px rgba(100, 200, 255, 0.3),
                0 0 20px rgba(100, 200, 255, 0.2);
    transform: translateY(-2px);
}

.dropdown-toggle:active {
    transform: translateY(0);
}

.toggle-text {
    display: inline-block;
}

/* Карусель иконок */
.icons-carousel {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 24px;
    overflow: hidden;
}

.carousel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 0.6;
    transform: translateX(-30px);
    animation: iconSlideIn 0.5s ease-out forwards;
}

@keyframes iconSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 0.6;
        transform: translateX(0);
    }
}

.carousel-icon.youtube-icon {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    animation-delay: 0s;
}

.carousel-icon.vk-icon {
    background: rgba(0, 119, 255, 0.2);
    color: #0077ff;
    animation-delay: 0.1s;
}

.carousel-icon.telegram-icon {
    background: rgba(0, 136, 204, 0.2);
    color: #0088cc;
    animation-delay: 0.2s;
}

.carousel-icon.tiktok-icon {
    background: rgba(37, 244, 238, 0.2);
    color: #25f4ee;
    animation-delay: 0.3s;
}

.carousel-icon.discord-icon {
    background: rgba(88, 101, 242, 0.2);
    color: #5865f2;
    animation-delay: 0.4s;
}

.dropdown-toggle:hover .carousel-icon {
    opacity: 1;
    animation: iconRotate 0.6s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
    }
}

/* Меню выпадающего списка */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 30, 0.95));
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(100, 200, 255, 0.2);
    max-height: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top center;
    pointer-events: none;
    width: 100%;
    min-width: 280px;
    max-width: 320px;
    z-index: 1000;
}

.dropdown-menu.active {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    animation: menuDropDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes menuDropDown {
    from {
        transform: translateX(-50%) scaleY(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) scaleY(1);
        opacity: 1;
    }
}

/* Элементы списка */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 200, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, transparent, currentColor);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover {
    background: rgba(100, 200, 255, 0.15);
    padding-left: 24px;
}

.dropdown-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(100, 200, 255, 0.2);
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-item:hover .icon {
    background: rgba(100, 200, 255, 0.4);
    transform: scale(1.15);
}

.dropdown-item .text {
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.dropdown-item:hover .text {
    letter-spacing: 0.5px;
}

/* Цветовые варианты для разных платформ */
.dropdown-item.youtube:hover {
    color: #ff0000;
}

.dropdown-item.youtube:hover .icon {
    background: rgba(255, 0, 0, 0.3);
}

.dropdown-item.vk:hover {
    color: #0077ff;
}

.dropdown-item.vk:hover .icon {
    background: rgba(0, 119, 255, 0.3);
}

.dropdown-item.telegram:hover {
    color: #0088cc;
}

.dropdown-item.telegram:hover .icon {
    background: rgba(0, 136, 204, 0.3);
}

.dropdown-item.tiktok:hover,
.dropdown-item.tiktok2:hover {
    color: #25f4ee;
}

.dropdown-item.tiktok:hover .icon,
.dropdown-item.tiktok2:hover .icon {
    background: rgba(37, 244, 238, 0.3);
}

.dropdown-item.discord:hover {
    color: #5865f2;
}

.dropdown-item.discord:hover .icon {
    background: rgba(88, 101, 242, 0.3);
}

/* Анимация появления элементов */
.dropdown-menu.active .dropdown-item {
    animation: itemSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.dropdown-menu.active .dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu.active .dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu.active .dropdown-item:nth-child(3) { animation-delay: 0.15s; }
.dropdown-menu.active .dropdown-item:nth-child(4) { animation-delay: 0.2s; }
.dropdown-menu.active .dropdown-item:nth-child(5) { animation-delay: 0.25s; }
.dropdown-menu.active .dropdown-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes itemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .container {
        gap: 40px;
        padding: 20px;
    }

    .avatar {
        width: 130px;
        height: 130px;
    }

    .nickname {
        font-size: 24px;
    }

    .links-dropdown {
        max-width: 260px;
    }

    .dropdown-toggle {
        padding: 14px 16px;
        font-size: 15px;
    }

    .dropdown-item {
        padding: 12px 14px;
    }

    .dropdown-item:hover {
        padding-left: 20px;
    }

    .dropdown-menu {
        min-width: 260px;
        max-width: 300px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        gap: 30px;
        padding: 10px;
    }

    .avatar {
        width: 110px;
        height: 110px;
        border-width: 3px;
    }

    .nickname {
        font-size: 20px;
    }

    .links-dropdown {
        max-width: 100%;
        width: 100%;
    }

    .dropdown-toggle {
        padding: 12px 14px;
        font-size: 14px;
        width: 100%;
    }

    .dropdown-item {
        padding: 10px 12px;
        font-size: 14px;
    }

    .dropdown-item:hover {
        padding-left: 18px;
    }

    .dropdown-item .icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .dropdown-menu {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
        max-height: 400px;
    }

    .icons-carousel {
        gap: 6px;
    }

    .carousel-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .avatar {
        width: 100px;
        height: 100px;
    }

    .nickname {
        font-size: 18px;
    }

    .dropdown-toggle {
        padding: 11px 12px;
        font-size: 13px;
    }

    .dropdown-item {
        padding: 9px 11px;
        font-size: 13px;
        gap: 10px;
    }

    .toggle-text {
        font-size: 13px;
    }

    .icons-carousel {
        gap: 4px;
    }

    .carousel-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
}
