/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', 'Segoe UI', monospace;
}

body {
    background: #000;
    color: #0f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Матрица на фоне */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
    overflow: hidden;
}

/* Анимация плавающих элементов */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0.5deg); }
    50% { transform: translateY(-5px) rotate(-0.5deg); }
}

/* Стиль матрицы */
.matrix-border {
    position: relative;
    border: 1px solid #0f0;
    box-shadow: 0 0 10px #0f0,
                0 0 20px #0f0,
                inset 0 0 10px #0f0;
}

.matrix-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #rgba(255, 255, 255, 0.3), #rgba(255, 255, 255, 0.3), #rgba(255, 255, 255, 0.3));
    z-index: -1;
    border-radius: inherit;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.matrix-text {
    text-shadow: 0 0 10px #0f0,
                 0 0 20px #0f0,
                 0 0 30px #0f0;
    animation: textFlicker 2s infinite alternate;
}

@keyframes textFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 10px #0f0,
                     0 0 20px #0f0,
                     0 0 30px #0f0;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Экран загрузки */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease;
}

.loading-container {
    width: 90%;
    max-width: 800px;
    background: rgba(0, 20, 0, 0.9);
    border-radius: 5px;
    padding: 30px;
    border: 1px solid #0f0;
    box-shadow: 0 0 40px #0f0;
    position: relative;
    overflow: hidden;
}

.loading-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0f0, transparent);
    animation: loadingBar 3s linear forwards;
}

@keyframes loadingBar {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #0f0;
    margin-bottom: 25px;
    color: #0f0;
}

.loading-title {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-title i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-body {
    min-height: 200px;
}

.loading-line {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

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

.loading-prompt {
    color: #0f0;
    margin-right: 12px;
    font-weight: bold;
    min-width: 150px;
}

.loading-text {
    color: #0f0;
    flex-grow: 1;
    font-family: monospace;
}

.loading-status {
    color: #0f0;
    margin-left: 10px;
    font-weight: bold;
    opacity: 0;
    animation: statusFade 0.3s ease forwards;
}

@keyframes statusFade {
    to { opacity: 1; }
}

.progress-container {
    margin-top: 30px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #0a0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 30, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #0f0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0a0, #0f0, #0a0);
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading-complete {
    text-align: center;
    margin-top: 30px;
    color: #0f0;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Основной контент */
#content {
    display: none;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    animation: contentFadeIn 1s ease;
}

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

/* Steam Header */
.steam-header {
    background: rgba(0, 20, 0, 0.8);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.3);
    animation: slideInDown 0.8s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

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

/* Аватарка */
.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    margin-right: 30px;
    position: relative;
    overflow: hidden;
    animation: avatarGlow 2s infinite alternate;
}

@keyframes avatarGlow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.5); }
    100% { box-shadow: 0 0 40px rgba(0, 255, 0, 0.8); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f0;
    font-size: 40px;
    opacity: 0.5;
}

.online-status {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    background-color: #0f0;
    border-radius: 50%;
    border: 3px solid #000;
    box-shadow: 0 0 15px #0f0;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 15px #0f0; }
    50% { box-shadow: 0 0 25px #0f0; }
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 3rem;
    color: #0f0;
    margin-bottom: 10px;
    font-weight: bold;
}

.profile-status {
    color: #0a0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.online {
    color: #0f0;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.profile-level {
    display: inline-block;
    background: linear-gradient(135deg, #003300, #006600);
    color: #0f0;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 15px;
    border: 1px solid #0f0;
}

.level-number {
    color: #0f0;
    font-size: 1.2rem;
}

/* Контейнер профиля */
.profile-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .steam-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Steam блоки */
.steam-block {
    background: rgba(0, 20, 0, 0.8);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: blockFadeIn 0.8s ease;
    animation-fill-mode: both;
    backdrop-filter: blur(5px);
}

.steam-block:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 35px rgba(0, 255, 0, 0.4);
}

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

.block-title {
    color: #9cffc4;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #9cffc4;
    display: flex;
    align-items: center;
}

.block-title i {
    margin-right: 12px;
    animation: iconFloat 3s infinite ease-in-out;
}

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

.bio-text {
    line-height: 1.6;
    color: #ffffff;
}

.bio-text p {
    margin-bottom: 15px;
}

.highlight {
    color: #0f0;
    font-weight: bold;
    text-shadow: 0 0 5px #0f0;
}

/* Контакты */
.contact-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .contact-buttons {
        grid-template-columns: 1fr;
    }
}

.contact-button {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.contact-button:active {
    transform: translateY(-2px);
}

.contact-button i {
    font-size: 1.5rem;
    margin-right: 12px;
    width: 30px;
    text-align: center;
}

.contact-button-text {
    flex-grow: 1;
    text-align: left;
}

.contact-button-arrow {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Цвета кнопок */
.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #00bfff);
}

.steam-btn {
    background: linear-gradient(135deg, #000, #006600);
}

.github-btn {
    background: linear-gradient(135deg, #333, #fffff);
}

.email-btn {
    background: linear-gradient(135deg, #006600, #fffff);
}

.discord-btn {
    background: linear-gradient(135deg, #5865f2, #fffff);
}

.linkedin-btn {
    background: linear-gradient(135deg, #0077b5, #fffff);
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 30, 0, 0.5);
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid #0a0;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0f0;
    margin-bottom: 5px;
    text-shadow: 0 0 10px #0f0;
}

.stat-label {
    font-size: 0.9rem;
    color: #0a0;
}

/* Навыки */
.skills-list {
    margin-top: 20px;
}

.skill-item {
    margin-bottom: 20px;
    position: relative;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #0f0;
    font-size: 0.9rem;
}

.skill-bar {
    height: 10px;
    background: rgba(0, 30, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #0a0;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #0a0, #ffffff, #0a0);
    border-radius: 5px;
    width: 0;
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: skillShimmer 2s infinite;
}

@keyframes skillShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skill-percent {
    position: absolute;
    right: 0;
    top: 0;
    color: #ffffff;
    font-size: 0.8rem;
}

/* Комментарии */
.comments-section {
    margin-top: 20px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-title {
    font-size: 1.3rem;
    color: #0f0;
}

.comments-count {
    background: rgba(0, 30, 0, 0.7);
    color: #0f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid #0f0;
}

.comment-form {
    background: rgba(0, 30, 0, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.comment-form h3 {
    color: #0f0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #0a0;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #0a0;
    border-radius: 6px;
    color: #0f0;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: monospace;
}

.form-input:focus {
    outline: none;
    border-color: #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-comment {
    background: linear-gradient(135deg, #003300, #006600);
    color: #0f0;
    border: 1px solid #0f0;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.4);
    background: linear-gradient(135deg, #006600, #009900);
}

.message-sent {
    background: linear-gradient(135deg, #003300, #006600);
    color: #0f0;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s;
    border: 1px solid #0f0;
}

/* Список комментариев */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: rgba(0, 30, 0, 0.5);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #0a0;
    animation: commentAppear 0.5s ease;
    transition: transform 0.3s;
}

.comment-item:hover {
    transform: translateX(5px);
    border-color: #0f0;
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003300, #006600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0f0;
    border: 2px solid #0f0;
    font-weight: bold;
}

.author-info h4 {
    color: #0f0;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.comment-date {
    color: #0a0;
    font-size: 0.85rem;
}

.comment-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-btn {
    background: transparent;
    border: 1px solid #0a0;
    color: #0a0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.rating-btn:hover {
    border-color: #0f0;
    color: #0f0;
    transform: scale(1.1);
}

.rating-count {
    color: #0f0;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.comment-content {
    color: #0f0;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 20, 0, 0.3);
    border-radius: 5px;
    border-left: 3px solid #0f0;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: transparent;
    border: 1px solid #0a0;
    color: #0a0;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    border-color: #0f0;
    color: #0f0;
    transform: translateY(-2px);
}

/* Футер */
.steam-footer {
    margin-top: 40px;
    text-align: center;
    padding: 25px;
    color: #0a0;
    font-size: 0.9rem;
    border-top: 1px solid #0a0;
    animation: fadeIn 1.5s ease;
}

.steam-footer p {
    margin-bottom: 10px;
}

.online-text {
    color: #0f0;
    font-weight: bold;
}

.matrix-quote {
    color: #0f0;
    font-style: italic;
    margin-top: 15px;
    font-size: 1.1rem;
    text-shadow: 0 0 10px #0f0;
}

/* Кнопки */
.steam-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #003300, #006600);
    color: #0f0;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid #0f0;
    cursor: pointer;
    font-size: 1rem;
}

.steam-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(0, 255, 0, 0.4);
    background: linear-gradient(135deg, #006600, #009900);
}

/* Анимация задержки для блоков */
.steam-block:nth-child(1) { animation-delay: 0.1s; }
.steam-block:nth-child(2) { animation-delay: 0.2s; }
.steam-block:nth-child(3) { animation-delay: 0.3s; }
.steam-block:nth-child(4) { animation-delay: 0.4s; }
.steam-block:nth-child(5) { animation-delay: 0.5s; }
.steam-block:nth-child(6) { animation-delay: 0.6s; }

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: notificationSlide 0.5s ease, notificationFade 0.5s ease 2.5s forwards;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    border: 1px solid #0f0;
}

.notification.success {
    background: rgba(0, 50, 0, 0.9);
    color: #0f0;
}

.notification.error {
    background: rgba(50, 0, 0, 0.9);
    color: #f00;
}

.notification.info {
    background: rgba(0, 30, 50, 0.9);
    color: #0af;
}

@keyframes notificationSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes notificationFade {
    to { opacity: 0; transform: translateX(100%); }
}

/* Анимация цифр */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}