/**
 * Modern Lines Effect - Global Background
 * Dark white/light gray background with animated falling lines
 * Color: #3A33CE (blue/purple)
 *
 * @package MW_Marketing
 * @version 1.0.0
 */

/* ========================================
   Global Body Background
   ======================================== */

body {
    position: relative;
    overflow-x: hidden;
}

/* ========================================
   Lines Container
   ======================================== */

.lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    margin: auto;
    width: 90vw;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   Individual Line Elements
   ======================================== */

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: rgba(58, 51, 206, 0.1);
    overflow: hidden;
}

.line::after {
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, rgba(58, 51, 206, 0) 0%, rgba(58, 51, 206, 0.75) 75%, #3A33CE 100%);
    animation: drop 7s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

/* Line 1 - Left */
.line:nth-child(1) {
    margin-left: -25%;
}

.line:nth-child(1)::after {
    animation-delay: 2s;
}

/* Line 2 - Center */
.line:nth-child(2) {
    margin-left: 0;
}

.line:nth-child(2)::after {
    animation-delay: 0s;
}

/* Line 3 - Right */
.line:nth-child(3) {
    margin-left: 25%;
}

.line:nth-child(3)::after {
    animation-delay: 2.5s;
}

/* ========================================
   Drop Animation
   ======================================== */

@keyframes drop {
    0% {
        top: -50%;
    }
    100% {
        top: 110%;
    }
}

/* ========================================
   Content Z-Index Fix
   ======================================== */

/* Ensure all content is above lines */
header,
main,
footer,
.site-header,
.elementor-section {
    position: relative;
    z-index: 10;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 1024px) {
    .lines {
        width: 80vw;
    }
}

@media (max-width: 767px) {
    .lines {
        width: 70vw;
    }

    .line::after {
        height: 12vh;
    }
}
