/* Glitch-Effekt */
.title::before,
.title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.title::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.title::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(32px, 9999px, 78px, 0); }
    20% { clip: rect(8px, 9999px, 28px, 0); }
    40% { clip: rect(72px, 9999px, 58px, 0); }
    60% { clip: rect(42px, 9999px, 36px, 0); }
    80% { clip: rect(88px, 9999px, 12px, 0); }
    100% { clip: rect(3px, 9999px, 98px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(66px, 9999px, 99px, 0); }
    20% { clip: rect(25px, 9999px, 55px, 0); }
    40% { clip: rect(15px, 9999px, 45px, 0); }
    60% { clip: rect(80px, 9999px, 88px, 0); }
    80% { clip: rect(5px, 9999px, 60px, 0); }
    100% { clip: rect(90px, 9999px, 18px, 0); }
}

/* Multiscreen-Effekt */
.multiscreen-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    z-index: 5;
    mix-blend-mode: lighten;
    opacity: 0.7;
    animation: fadeIn 0.5s ease;
}

.multiscreen-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.multiscreen-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}

.multiscreen-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: sepia(0.5) hue-rotate(20deg) contrast(1.2);
    transition: transform 0.3s ease;
}

.multiscreen-item:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
    .title::before,
    .title::after,
    .multiscreen-item {
        animation: none !important;
    }
}
