/* Animated Background with Floating Dots and Connecting Lines */

body {
    position: relative;
    overflow-x: hidden;
}

/* Background Container */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    overflow: hidden;
}

/* Floating Dots */
.dot {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.dot:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.dot:nth-child(2) {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.dot:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 30%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.dot:nth-child(4) {
    width: 10px;
    height: 10px;
    top: 70%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.dot:nth-child(5) {
    width: 14px;
    height: 14px;
    top: 10%;
    left: 60%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.dot:nth-child(6) {
    width: 8px;
    height: 8px;
    top: 80%;
    left: 30%;
    animation-delay: 5s;
    animation-duration: 7s;
}

.dot:nth-child(7) {
    width: 12px;
    height: 12px;
    top: 40%;
    left: 50%;
    animation-delay: 1.5s;
    animation-duration: 8.5s;
}

.dot:nth-child(8) {
    width: 6px;
    height: 6px;
    top: 15%;
    left: 40%;
    animation-delay: 2.5s;
    animation-duration: 7.5s;
}

.dot:nth-child(9) {
    width: 10px;
    height: 10px;
    top: 85%;
    left: 85%;
    animation-delay: 3.5s;
    animation-duration: 6.5s;
}

.dot:nth-child(10) {
    width: 8px;
    height: 8px;
    top: 50%;
    left: 15%;
    animation-delay: 4.5s;
    animation-duration: 8s;
}

/* Orange Dots */
.dot.orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.dot:nth-child(11) {
    width: 10px;
    height: 10px;
    top: 25%;
    left: 35%;
    animation-delay: 0.5s;
    animation-duration: 7s;
}

.dot:nth-child(12) {
    width: 14px;
    height: 14px;
    top: 65%;
    left: 55%;
    animation-delay: 1.5s;
    animation-duration: 8s;
}

.dot:nth-child(13) {
    width: 6px;
    height: 6px;
    top: 45%;
    left: 75%;
    animation-delay: 2.5s;
    animation-duration: 9s;
}

.dot:nth-child(14) {
    width: 12px;
    height: 12px;
    top: 75%;
    left: 25%;
    animation-delay: 3.5s;
    animation-duration: 6s;
}

.dot:nth-child(15) {
    width: 8px;
    height: 8px;
    top: 35%;
    left: 5%;
    animation-delay: 4.5s;
    animation-duration: 8.5s;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
    }
    75% {
        transform: translateY(-30px) translateX(15px);
    }
}

/* Connecting Lines */
.line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    opacity: 0.3;
    animation: linePulse 4s ease-in-out infinite;
}

.line:nth-child(16) {
    width: 200px;
    top: 25%;
    left: 10%;
    transform: rotate(15deg);
    animation-delay: 0s;
}

.line:nth-child(17) {
    width: 150px;
    top: 60%;
    left: 20%;
    transform: rotate(-20deg);
    animation-delay: 1s;
}

.line:nth-child(18) {
    width: 180px;
    top: 40%;
    left: 50%;
    transform: rotate(30deg);
    animation-delay: 2s;
}

.line:nth-child(19) {
    width: 120px;
    top: 70%;
    left: 70%;
    transform: rotate(-15deg);
    animation-delay: 3s;
}

.line:nth-child(20) {
    width: 160px;
    top: 15%;
    left: 60%;
    transform: rotate(45deg);
    animation-delay: 4s;
}

/* Orange Lines */
.line.orange {
    background: linear-gradient(90deg, transparent, #f97316, transparent);
}

.line:nth-child(21) {
    width: 140px;
    top: 35%;
    left: 35%;
    transform: rotate(-30deg);
    animation-delay: 0.5s;
}

.line:nth-child(22) {
    width: 190px;
    top: 55%;
    left: 55%;
    transform: rotate(20deg);
    animation-delay: 1.5s;
}

.line:nth-child(23) {
    width: 110px;
    top: 80%;
    left: 30%;
    transform: rotate(-45deg);
    animation-delay: 2.5s;
}

.line:nth-child(24) {
    width: 170px;
    top: 45%;
    left: 75%;
    transform: rotate(10deg);
    animation-delay: 3.5s;
}

/* Line Pulse Animation */
@keyframes linePulse {
    0%, 100% {
        opacity: 0.1;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.4;
        transform: scaleX(1.2);
    }
}

/* Floating Shapes */
.shape {
    position: absolute;
    opacity: 0.1;
    animation: shapeFloat 10s ease-in-out infinite;
}

.shape:nth-child(25) {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.shape:nth-child(26) {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 4px;
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.shape:nth-child(27) {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    top: 80%;
    left: 60%;
    animation-delay: 4s;
}

.shape:nth-child(28) {
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 4px;
    top: 30%;
    left: 30%;
    animation-delay: 6s;
}

/* Shape Float Animation */
@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-40px) rotate(270deg);
        opacity: 0.25;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dot {
        opacity: 0.4;
    }
    
    .line {
        opacity: 0.2;
    }
    
    .shape {
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .dot {
        opacity: 0.3;
    }
    
    .line {
        opacity: 0.15;
    }
    
    .shape {
        opacity: 0.03;
    }
}

/* Subtle Gradient Overlay */
.animated-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
