/* Основные стили страницы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    background: #0a0e17;
}

/* Минималистичный градиентный фон с анимацией */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c1425 0%, #161c2b 50%, #152340 100%);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
    z-index: -2;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Сетка на фоне */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 30px 30px;
    z-index: -1;
}

/* Контейнер для частиц */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Тонкая акцентная линия с пульсацией */
.accent-line {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(120, 150, 255, 0) 0%, 
        rgba(120, 150, 255, 0.2) 30%, 
        rgba(120, 150, 255, 0.2) 70%, 
        rgba(120, 150, 255, 0) 100%);
    z-index: -1;
    animation: lineGlow 10s ease-in-out infinite;
}

@keyframes lineGlow {
    0% { box-shadow: 0 0 5px rgba(120, 150, 255, 0.1); }
    50% { box-shadow: 0 0 15px rgba(120, 150, 255, 0.3); }
    100% { box-shadow: 0 0 5px rgba(120, 150, 255, 0.1); }
}

/* Контейнер основного содержимого */
.container {
    max-width: 1000px;
    width: 90%;
    padding: 40px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .profile h1 {
        font-size: 2.8rem;
    }
}

/* Дополнительная адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .profile h1 {
        font-size: 2.2rem;
    }
}

/* Профиль пользователя */
.profile {
    text-align: center;
    margin-bottom: 60px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 150, 255, 0.15);
}

.profile-img:hover {
    transform: scale(1.03);
}

.profile h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, 
        #332e77 0%, 
        #2c4986 25%, 
        #2e77e4 50%,
        #7b3ab8 75%, 
        #405cb1 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: subtleGradient 6s ease infinite;
}

@keyframes subtleGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Улучшенная линия под ником */
.profile h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 30%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(120, 150, 255, 0.8), 
        rgba(191, 123, 255, 0.8), 
        rgba(120, 150, 255, 0.8), 
        transparent);
    opacity: 0.8;
    animation: lineExpand 3s ease-in-out forwards;
    box-shadow: 0 0 10px rgba(120, 150, 255, 0.5);
}

@keyframes lineExpand {
    0% { width: 0; left: 50%; }
    100% { width: 80%; left: 50%; }
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 28px;
    min-width: 220px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 150, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(120, 150, 255, 0.2);
}

.btn:hover::before {
    transform: translateX(100%);
}

.telegram:hover {
    border-color: rgba(0, 136, 204, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 136, 204, 0.2);
}

.steam:hover {
    border-color: rgba(111, 148, 186, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(111, 148, 186, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.social-icon {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn:hover .social-icon {
    transform: scale(1.1) rotate(-5deg);
    opacity: 1;
}

/* Футер с анимацией */
footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    animation: subtle-glow 5s infinite alternate;
}

@keyframes subtle-glow {
    from { text-shadow: 0 0 2px rgba(120, 150, 255, 0); }
    to { text-shadow: 0 0 5px rgba(120, 150, 255, 0.3); }
}

/* Виджет погоды */
.weather-widget {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 180px;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.weather-widget:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(120, 150, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(120, 150, 255, 0.1);
}

.weather-city {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.weather-icon {
    font-size: 2.5rem;
    margin: 8px 0;
}

.weather-temp {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.weather-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

.weather-info {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.weather-info-item {
    text-align: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin-top: 120px;
        margin-bottom: 80px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .profile h1 {
        font-size: 2.8rem;
    }
    
    .weather-widget {
        position: fixed;
        top: 20px;
        right: 20px;
        left: 20px;
        width: calc(100% - 40px);
        max-width: none;
        padding: 15px;
    }
    
    footer {
        position: absolute;
        bottom: 0;
        padding: 15px 0;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
}

/* Дополнительная адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .profile h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .weather-widget {
        padding: 12px;
    }
    
    .weather-temp {
        font-size: 1.5rem;
    }
    
    .weather-icon {
        font-size: 2.2rem;
    }
}