* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, #000428 0%, #004e92 100%);
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff,
                0 0 16px #fff,
                0 0 24px #fff;
    animation: shoot 3s linear;
    opacity: 0;
    z-index: -1;
}

@keyframes shoot {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(-100px);
        opacity: 0;
    }
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000 url('../img/stars.png') repeat top center;
    z-index: -3;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('../img/twinkling.png') repeat top center;
    z-index: -2;
    animation: move-twinkle 200s linear infinite;
}

@keyframes move-twinkle {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.profile {
    background: rgba(13, 13, 56, 0.7);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(72, 149, 239, 0.2),
                inset 0 0 30px rgba(72, 149, 239, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(72, 149, 239, 0.3);
    animation: glowPulse 3s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 30px rgba(72, 149, 239, 0.2),
                     inset 0 0 30px rgba(72, 149, 239, 0.1); }
    50% { box-shadow: 0 0 50px rgba(72, 149, 239, 0.4),
                      inset 0 0 50px rgba(72, 149, 239, 0.2); }
    100% { box-shadow: 0 0 30px rgba(72, 149, 239, 0.2),
                       inset 0 0 30px rgba(72, 149, 239, 0.1); }
}

.avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(72, 149, 239, 0.8);
    box-shadow: 0 0 30px rgba(72, 149, 239, 0.5),
                inset 0 0 20px rgba(72, 149, 239, 0.5);
    animation: avatarGlow 4s ease-in-out infinite;
    transform: translateZ(50px);
}

@keyframes avatarGlow {
    0% { box-shadow: 0 0 30px rgba(72, 149, 239, 0.5),
                     inset 0 0 20px rgba(72, 149, 239, 0.5); }
    50% { box-shadow: 0 0 50px rgba(72, 149, 239, 0.8),
                      inset 0 0 40px rgba(72, 149, 239, 0.8); }
    100% { box-shadow: 0 0 30px rgba(72, 149, 239, 0.5),
                       inset 0 0 20px rgba(72, 149, 239, 0.5); }
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(72, 149, 239, 0.8),
                 0 0 20px rgba(72, 149, 239, 0.4),
                 0 0 30px rgba(72, 149, 239, 0.2);
    letter-spacing: 8px;
    animation: titleGlow 5s ease-in-out infinite;
    transform: translateZ(30px);
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(72, 149, 239, 0.8),
                          0 0 20px rgba(72, 149, 239, 0.4),
                          0 0 30px rgba(72, 149, 239, 0.2); }
    50% { text-shadow: 0 0 20px rgba(72, 149, 239, 0.8),
                       0 0 40px rgba(72, 149, 239, 0.4),
                       0 0 60px rgba(72, 149, 239, 0.2); }
}

.bio-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateZ(20px);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    padding: 0.8rem;
    background: rgba(72, 149, 239, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(72, 149, 239, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(72, 149, 239, 0.2);
    transform: scale(1.05) translateZ(10px);
    box-shadow: 0 0 20px rgba(72, 149, 239, 0.3);
}

.contact-item a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.icon {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 5px rgba(72, 149, 239, 0.8));
    animation: iconPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.contact-item:hover .icon {
    transform: scale(1.2);
}

/* Мобильная версия */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .profile {
        padding: 1.5rem;
        margin: 1rem;
        width: 90%;
        max-width: 400px;
    }

    .avatar {
        width: 150px;
        height: 150px;
        margin: 0 auto 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        letter-spacing: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bio-info {
        gap: 1rem;
        width: 100%;
    }

    .contact-item {
        font-size: 1rem;
        padding: 0.8rem;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        justify-content: flex-start;
        overflow: hidden;
    }

    .contact-item span, 
    .contact-item a {
        font-size: 0.9rem;
        word-break: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100% - 40px);
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 380px) {
    .profile {
        padding: 1rem;
        width: 95%;
        margin: 0.5rem;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .contact-item {
        padding: 0.7rem;
    }
    
    .contact-item span, 
    .contact-item a {
        font-size: 0.85rem;
    }

    .icon {
        min-width: 24px;
        margin-right: 8px;
    }
}

@keyframes iconPulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(72, 149, 239, 0.8)); }
    50% { filter: drop-shadow(0 0 10px rgba(72, 149, 239, 1)); }
}

.email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234895ef'%3E%3Cpath d='M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z'/%3E%3C/svg%3E");
}

.telegram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234895ef'%3E%3Cpath d='M20.665 3.717l-17.73 6.837c-1.21.486-1.203 1.161-.222 1.462l4.552 1.42l10.532-6.645c.498-.303.953-.14.579.192l-8.533 7.701l-.335 5.069c.491 0 .708-.226.98-.494l2.353-2.289l4.894 3.608c.902.498 1.552.241 1.777-.932l3.316-15.615c.338-1.363-.517-1.98-1.663-1.314Z'/%3E%3C/svg%3E");
}

.discord {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234895ef'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028c.39-.533.74-1.094 1.04-1.682a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.3.588.65 1.15 1.04 1.682a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z'/%3E%3C/svg%3E");
}