/* Основные переменные */
:root {
    --bg-dark: #0d1117;
    --text-light: #e1e4e8;
    --primary-color: #58a6ff;
    --secondary-color: #7ee787;
    --shadow-dark: rgba(0, 0, 0, 0.7);
}

/* Основные стили для body */
body {
    margin: 0;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-light);
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

/* Основной контейнер */
.container {
    width: 90%;
    max-width: 1000px;
    background: rgba(30, 34, 39, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-dark);
    padding: 30px;
    color: var(--text-light);
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 1s ease-out;
}

/* Анимация fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Заголовки */
h1 {
    margin: 0;
    font-size: 36px;
    color: var(--primary-color);
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.5);
    text-align: center;
}

h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-top: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    text-align: center;
    font-weight: 700;
    position: relative;
}

/* Кнопка воспроизведения */
.play-button {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-dark);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.play-button:hover {
    background: var(--secondary-color);
    box-shadow: 0 6px 15px var(--shadow-dark);
}

/* Контроль громкости */
.volume-control {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: auto;
}

.volume-control input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
}

.volume-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--shadow-dark);
    cursor: pointer;
}

.volume-control input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--shadow-dark);
    cursor: pointer;
}

/* Параграфы */
p {
    margin: 15px 0;
    font-size: 18px;
    line-height: 1.6;
    color: #b0b0b0;
    text-align: center;
}

/* Списки */
ul {
    list-style-type: disc;
    padding-left: 30px;
    margin: 20px auto;
    max-width: 700px;
    font-size: 18px;
    text-align: center;
}

li {
    font-size: 18px;
    margin: 10px 0;
}

/* Ссылки */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 12px var(--secondary-color);
}

/* Проекты */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: rgba(45, 49, 54, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px var(--shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-dark);
}

.project-card h3 {
    margin: 0;
    font-size: 20px;
    color: var(--primary-color);
}

.project-card p {
    margin: 10px 0;
    font-size: 16px;
    color: #b0b0b0;
}

/* Социальные иконки */
.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: none;
    box-shadow: 0 4px 8px var(--shadow-dark);
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    background: rgba(0, 0, 0, 0.1);
}

.social-icons img {
    width: 28px;
    height: 28px;
    transition: filter 0.3s ease;
}

.social-icons a:hover img {
    filter: brightness(1.5);
}

/* Меню */
.menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.menu-button {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-dark);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.menu-button:hover {
    background: var(--secondary-color);
    box-shadow: 0 6px 15px var(--shadow-dark);
}

.menu-content {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(30, 34, 39, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.menu-content.active {
    max-height: 300px;
    opacity: 1;
}

.menu-content a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: background 0.3s ease;
}

.menu-content a:hover {
    background: var(--secondary-color);
}

/* Загрузочный экран */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .play-button {
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .volume-control {
        right: 10px;
    }

    .social-icons {
        flex-direction: column;
        gap: 10px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
    }

    .social-icons img {
        width: 24px;
        height: 24px;
    }

    .menu-content {
        top: 60px;
        right: 0;
    }
}
