/* Старый градиент как слой (из old/style.css) */
.old-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #0a0a2a, #1a1a3a, #2d1b3d, #3a1b5f);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}
        
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
        
/* Canvas для дыма (новый фон) */
#smokeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
        
/* Когда новый фон активен */
body.new-bg .old-bg { opacity: 0; }
body.new-bg #smokeCanvas { opacity: 1; }
        
/* Заголовок в центре */
#title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #8a2be2, #4169e1, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    transition: all 0.5s ease;
    z-index: 5; /* Поднимаем выше, чтобы не перекрывался */
    opacity: 1; /* Явно устанавливаем видимость */
}
        
/* Фиксированная шапка */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: rgba(34, 34, 63, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 10;
}
        
#header h1 {
    font-size: 2rem;
    background: linear-gradient(to right, #8a2be2, #4169e1, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
        
#header.visible {
    transform: translateY(0);
}
        
/* Секции (используем твои .card) */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
        
.section.visible {
    opacity: 1;
    transform: translateY(0);
}
        
/* Футер */
#footer {
    text-align: center;
    padding: 50px;
    font-size: 1.5rem;
    color: #d4c6ff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}
        
#footer.visible {
    opacity: 1;
    transform: translateY(0);
}
    
/* Адаптив (из твоего style.css) */
@media (max-width: 768px) {
    #title { font-size: 2.5rem; }
    #header h1 { font-size: 1.5rem; }
}

.end-title {
    text-align: right; 
    margin-bottom: 20px;
    font-size: 0.8rem;
    color:rgba(100, 100, 169, 0.286)
}
