@keyframes abstractBackgroundAnimation {
    0% {
        background-color: #2a2a2e;
    }

    25% {
        background-color: #3a3a42;
    }

    50% {
        background-color: #2c3e50;
    }

    75% {
        background-color: #34495e;
    }

    100% {
        background-color: #2a2a2e;
    }
}

.abstract-animated-bg {
    animation: abstractBackgroundAnimation 10s ease-in-out infinite;
    will-change: background-color;
}

body {
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.content-container {
    position: relative;
    z-index: 1;
    will-change: auto;
}

/* Raindrop styles */
.raindrop {
    position: absolute;
    top: -50px;
    opacity: 0;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Arial', sans-serif;
    user-select: none;
    pointer-events: none;

    animation-name: fallingRain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;

    font-size: 1.5em;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);

    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animation keyframes */
@keyframes fallingRain {
    0% {
        transform: translateY(0vh) rotate(165deg) translateZ(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(105vh) rotate(195deg) translateZ(0);
        opacity: 0;
    }
}

/* Accessibility support */
@media (prefers-reduced-motion: reduce) {
    .abstract-animated-bg {
        animation: none;
        background-color: #2a2a2e;
    }

    .raindrop {
        animation-duration: 20s !important;
        opacity: 0.3 !important;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .raindrop {
        font-size: 1.2em;
    }
}

/* High DPI optimization */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .raindrop {
        text-rendering: optimizeLegibility;
    }
}