@font-face {
    font-family: 'CustomFont';
    src: url('font.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'CustomFont', 'Arial', sans-serif;
}

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Звездный фон */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -2;
}

.gradient-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.3;
}

/* Размытый фон */
.gradient-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(100, 100, 100, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(80, 80, 80, 0.2) 0%, transparent 50%);
    filter: blur(100px);
}

/* Кнопка звука */
.sound-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle:hover {
    background: rgba(40, 40, 40, 0.9);
    transform: scale(1.05);
}

.sound-toggle:hover .volume-popup {
    opacity: 1;
    pointer-events: all;
}

.volume-popup {
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.volume-popup:hover {
    opacity: 1;
    pointer-events: all;
}

.volume-slider-popup {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-fill-popup {
    height: 100%;
    background: #fff;
    width: 100%;
    border-radius: 2px;
    pointer-events: none;
}

/* Экран входа */
.entrance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.entrance-content {
    text-align: center;
}

.entrance-title {
    font-size: 4rem;
    margin-bottom: 40px;
    color: #fff;
    letter-spacing: 3px;
    font-weight: normal;
}

.entrance-button {
    font-size: 1rem;
    padding: 12px 35px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.entrance-button:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Контейнер */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

/* Заголовок */
header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.6;
    letter-spacing: 1px;
    color: #fff;
}

/* Секции */
section {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 20px;
    max-width: 700px;
    width: 100%;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    font-weight: normal;
    letter-spacing: 1px;
}

/* Био секция */
.bio-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.bio-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bio-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.bio-text p {
    line-height: 1.6;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Статистика */
.bio-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item span:first-child {
    font-size: 1.1rem;
}

/* Проекты справа */
.projects-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.project-card-side {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.project-card-side:hover {
    background: rgba(40, 40, 40, 0.7);
    transform: translateX(5px);
}

.project-thumb {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.project-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: normal;
}

.project-info p {
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Иконки */
.bio-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.icon-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Медиа плеер */
.media-player {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 35px;
    margin-bottom: 20px;
    max-width: 700px;
    width: 100%;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.album-art {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    opacity: 0.6;
    font-size: 0.8rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: 15px;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.control-btn.play-pause {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

/* Проекты справа */.control-btn.play-pause {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    min-width: 200px;
}

.progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 120px;
}

.volume-control span {
    font-size: 1rem;
    opacity: 0.7;
}

.volume-slider {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-fill {
    height: 100%;
    background: #fff;
    width: 100%;
    border-radius: 2px;
}

/* Проекты */
.projects-grid {
    display: grid;
    gap: 15px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: normal;
}

.project-card p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 25px;
    }
    
    .media-player {
        padding: 15px 20px;
    }
    
    .entrance-title {
        font-size: 3rem;
    }
}
