/* Основной фон с градиентом и логотипом */
#code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  background: linear-gradient(135deg, #e6f7ff, #b3e0ff);
    overflow: hidden;
}

/* Добавляем логотип IT-Куб поверх фона */
#code-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%; /* Можно настроить размер логотипа */
    opacity: 0.5; /* 50% прозрачность */
    z-index: 1;
    pointer-events: none;
}

/* Анимированный код поверх всего */
.code-snippet {
    position: absolute;
    color: rgba(0, 0, 0, 0.6); /* Более темный цвет для лучшей видимости */
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    animation: fadeInOut 8s linear infinite;
    z-index: 0; /* Код под контентом, но поверх фона */
    text-shadow: 
        2px 2px 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.5),
        0 0 12px rgba(0, 0, 0, 0.3); /* Многослойная тень для лучшей видимости */
    pointer-events: none;
    background: rgba(255, 255, 255, 0.1); /* Легкий фон для контраста */
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 0.85; } /* Увеличена непрозрачность */
}

/* Фон матрица (если нужен) */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2; /* Под основным фоном */
    pointer-events: none;
    background: #000;
    overflow: hidden;
}

.matrix-char {
    position: absolute;
    color: rgba(0, 255, 0, 0.7);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    opacity: 0;
    white-space: nowrap;
    animation: fall linear infinite;
    z-index: -1;
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}