/* Файл: /css/under-construction.css - Финальная версия с цикличной анимацией */

:root {
    --accent-color: #ff4d4d;
    --glow-color: rgba(255, 77, 77, 0.7);
    --bg-color: #121212;
}

html, body { height: 100%; margin: 0; }
body {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
}

.studio-wrapper {
    flex-grow: 1;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.background-layer {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://media1.tenor.com/m/Mle3dtAOrfEAAAAd/cat-keyboard.gif');
    background-size: cover;
    background-position: center center;
    z-index: 1;
}
.background-layer::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
}

.content-panel {
    position: relative; z-index: 2;
    width: 100%; max-width: 800px;
    padding: 50px; text-align: center;
}

.main-title {
    font-family: 'Teko', sans-serif;
    font-size: 5rem; color: #fff;
    line-height: 1.1; text-transform: uppercase;
    margin: 0 0 20px;
}
.description {
    color: #ccc; font-size: 1.1rem; line-height: 1.7;
    max-width: 600px; margin: 0 auto 40px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
}

.glitch { position: relative; text-shadow: 0 0 10px var(--glow-color); }
.glitch:before, .glitch:after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.glitch:before { left: 2px; text-shadow: -2px 0 var(--accent-color); animation: glitch-anim 2s infinite linear alternate-reverse; }
.glitch:after { left: -2px; text-shadow: 2px 0 #00f, -1px -1px var(--accent-color); animation: glitch-anim 3s infinite linear alternate-reverse; }
@keyframes glitch-anim { from { clip: rect(42px, 9999px, 44px, 0); } to { clip: rect(50px, 9999px, 92px, 0); } }

/*
 * =========================================================================
 *                         НОВАЯ АНИМАЦИЯ НОТ
 * =========================================================================
 */
.music-notation {
    display: flex;
    justify-content: center;
    gap: 30px;
    height: 120px;
    width: 80%;
    margin: 0 auto;
}

/* Контейнер для ноты (SVG) */
.note {
    width: 60px;
    opacity: 0; /* Изначально нота невидима */
    /* Применяем новую, зацикленную анимацию */
    animation: note-lifecycle 5s infinite;
}

/* Сама нота (линия) */
.note path {
    stroke: #fff;
    stroke-width: 8;
    stroke-linecap: round;
    fill: none;
    /* Убраны все свойства для анимации прорисовки */
}

/* Новая, более интересная и зацикленная анимация */
@keyframes note-lifecycle {
    /* 1. Появление */
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.7);
    }
    15% {
        opacity: 1;
        transform: translateY(0) scale(1.1);
    }
    25% {
        transform: scale(1); /* Успокаивается после появления */
    }

    /* 2. Пульсация и свечение */
    40% {
        /* filter: drop-shadow - создает эффект свечения */
        filter: drop-shadow(0 0 15px var(--accent-color));
        transform: scale(1.05);
    }
    60% {
        filter: drop-shadow(0 0 5px var(--accent-color));
        transform: scale(1);
    }
    
    /* 3. Исчезновение */
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.7);
    }
}

/* Задаем разную задержку для каждой ноты, чтобы они играли мелодию */
.note:nth-child(1) { animation-delay: 0s; }
.note:nth-child(2) { animation-delay: 1s; }
.note:nth-child(3) { animation-delay: 2s; }
/* ========================================================================= */

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .main-title { font-size: 3.5rem; }
    .content-panel { padding: 40px 30px; }
}
@media (max-width: 480px) {
    .main-title { font-size: 2.2rem; }
    .content-panel { padding: 30px 20px; }
    .description { font-size: 1rem; }
    .music-notation { height: 100px; }
}
