/* Advanced Tech Animated Background for intelgates */

/* Hero Background Animation Container */
.hero-animated {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0a1528 0%, #0d1b2a 30%, #0a0e1a 60%, #000000 100%);
    box-shadow: inset 0 0 100px rgba(0, 255, 136, 0.08);
}

/* Floating Particles Animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--electric-green);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 20%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    left: 30%;
    animation-duration: 22s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    left: 40%;
    animation-duration: 16s;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    left: 50%;
    animation-duration: 20s;
    animation-delay: 8s;
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 60%;
    animation-duration: 19s;
    animation-delay: 10s;
}

.particle:nth-child(7) {
    width: 3px;
    height: 3px;
    left: 70%;
    animation-duration: 21s;
    animation-delay: 12s;
}

.particle:nth-child(8) {
    width: 5px;
    height: 5px;
    left: 80%;
    animation-duration: 17s;
    animation-delay: 14s;
}

.particle:nth-child(9) {
    width: 4px;
    height: 4px;
    left: 90%;
    animation-duration: 23s;
    animation-delay: 16s;
}

.particle:nth-child(10) {
    width: 6px;
    height: 6px;
    left: 15%;
    animation-duration: 18s;
    animation-delay: 18s;
}

/* Circuit Lines Animation */
.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent 0%, var(--electric-green) 50%, transparent 100%);
    opacity: 0.3;
}

.circuit-line-horizontal {
    height: 1px;
    width: 100%;
    animation: slideHorizontal 15s infinite linear;
}

.circuit-line-vertical {
    width: 1px;
    height: 100%;
    animation: slideVertical 12s infinite linear;
}

.circuit-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.circuit-line:nth-child(2) {
    top: 40%;
    animation-delay: 3s;
}

.circuit-line:nth-child(3) {
    top: 60%;
    animation-delay: 6s;
}

.circuit-line:nth-child(4) {
    top: 80%;
    animation-delay: 9s;
}

.circuit-line:nth-child(5) {
    left: 15%;
    animation-delay: 2s;
}

.circuit-line:nth-child(6) {
    left: 35%;
    animation-delay: 5s;
}

.circuit-line:nth-child(7) {
    left: 55%;
    animation-delay: 8s;
}

.circuit-line:nth-child(8) {
    left: 75%;
    animation-delay: 11s;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.geometric-shape {
    position: absolute;
    border: 1px solid var(--electric-green);
    opacity: 0.2;
    animation: rotate 30s infinite linear;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid var(--electric-green);
    opacity: 0.15;
    top: 20%;
    left: 10%;
    animation: float 25s infinite ease-in-out;
}

.shape-square {
    width: 20px;
    height: 20px;
    border: 1px solid var(--electric-green);
    top: 30%;
    right: 15%;
    animation: rotate 20s infinite linear reverse;
}

.shape-circle {
    width: 30px;
    height: 30px;
    border: 1px solid var(--electric-green);
    border-radius: 50%;
    top: 60%;
    left: 20%;
    animation: pulse 8s infinite ease-in-out;
}

.shape-hexagon {
    width: 25px;
    height: 15px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 7px solid var(--electric-green);
    position: relative;
    top: 70%;
    right: 10%;
    opacity: 0.2;
    animation: float 35s infinite ease-in-out reverse;
}

/* Data Stream Effect */
.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.data-point {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--electric-green);
    border-radius: 50%;
    animation: dataFlow 8s infinite linear;
    opacity: 0.7;
}

.data-point:nth-child(odd) {
    animation-direction: reverse;
    background: rgba(0, 255, 136, 0.4);
}

.data-point:nth-child(1) { left: 5%; top: 10%; animation-delay: 0s; }
.data-point:nth-child(2) { left: 15%; top: 20%; animation-delay: 1s; }
.data-point:nth-child(3) { left: 25%; top: 30%; animation-delay: 2s; }
.data-point:nth-child(4) { left: 35%; top: 40%; animation-delay: 3s; }
.data-point:nth-child(5) { left: 45%; top: 50%; animation-delay: 4s; }
.data-point:nth-child(6) { left: 55%; top: 60%; animation-delay: 5s; }
.data-point:nth-child(7) { left: 65%; top: 70%; animation-delay: 6s; }
.data-point:nth-child(8) { left: 75%; top: 80%; animation-delay: 7s; }
.data-point:nth-child(9) { left: 85%; top: 90%; animation-delay: 8s; }
.data-point:nth-child(10) { left: 95%; top: 15%; animation-delay: 9s; }

/* Network Connection Lines */
.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--electric-green), transparent);
    opacity: 0.3;
    transform-origin: left center;
    animation: networkPulse 6s infinite ease-in-out;
}

/* Gradient Overlay Animation */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 255, 136, 0.1) 25%,
        transparent 50%,
        rgba(0, 255, 136, 0.05) 75%,
        transparent 100%
    );
    animation: gradientShift 20s infinite ease-in-out;
    z-index: 1;
}

/* Animation Keyframes */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes slideHorizontal {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes slideVertical {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}

@keyframes dataFlow {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-20px) translateX(20px);
        opacity: 0;
    }
}

@keyframes networkPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 0.4;
        transform: scaleX(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* Binary Rain Effect */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--electric-green);
    opacity: 0.1;
    overflow: hidden;
}

.binary-column {
    position: absolute;
    animation: binaryDrop 10s infinite linear;
    white-space: nowrap;
}

@keyframes binaryDrop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .particle {
        animation-duration: 15s !important;
    }
    
    .circuit-line {
        opacity: 0.2;
    }
    
    .geometric-shape {
        opacity: 0.1;
    }
    
    .data-point {
        opacity: 0.5;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .circuit-line,
    .geometric-shape,
    .data-point,
    .network-line,
    .gradient-overlay,
    .binary-column {
        animation: none;
    }
}