/* Real Rain Effect + Trickling Glass Drops */

/* Real Rain Effect + Trickling Glass Drops */

/* Real Rain Effect + Trickling Glass Drops */

.rain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    /* Glass Material Feel - Made subtler */
    background: rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(0.5px) brightness(1.05);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background Falling Rain */
.drop {
    position: absolute;
    bottom: 100%;
    width: 2px;
    height: 80px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4));
    animation: drop 0.5s linear infinite;
}

@keyframes drop {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(1000px);
    }
}

/* The Realistic Glass Droplets */
/* The Realistic Glass Droplets */
/* The Realistic Glass Droplets */
/* Glass Drops - SVG Implementation */

.glass-drop-svg {
    position: absolute;
    /* SourceAlpha is used, so we need opacity but NOT visible fill color that interferes with the lighting */
    fill: rgb(245 245 245 / 97%);
    /* Force the detailed water filter */
    filter: url(#glass-drop-filter);
    z-index: 10;
    opacity: 0.4;
    overflow: visible;
    /* Basic backdrop blur for the area "under" the drop (limited support in some SVG contexts but good to have) */
    backdrop-filter: blur(2px);
}

.static-drop {
    opacity: 0;
    transition: opacity 2s ease;
}

.static-drop.fade-in {
    opacity: 0.8;
}

/* Wrapper for trickling drops to handle animation of both drop and trail */
.trickle-wrapper {
    position: absolute;
    z-index: 10;
    animation: trickle linear infinite;
    pointer-events: none;
}

.water-trail {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    /* Narrower trail */
    height: 800%;
    /* Long tail */
    /* Glossy wet streak */
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 40%,
            rgba(255, 255, 255, 0) 100%);
    border-radius: 999px;
    filter: blur(0.5px);
    /* Less blur for cleaner look */
    opacity: 0.5;
}

@keyframes trickle {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(120vh);
        /* Fall off screen */
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}