/* ========================================
   INFINITY MOVE - ANIMAÇÕES CUSTOMIZADAS
   ======================================== */

/* Container da seção para posicionamento relativo */
.mil-banner {
    position: relative;
    overflow: hidden;
}

/* Símbolos de Infinito Animados */
.mil-infinity-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.mil-infinity-symbols svg {
    position: absolute;
    width: 120px;
    height: 60px;
    opacity: 0.25;
    color: #00AEEF;
    animation: floatInfinity 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.4));
}

.mil-infinity-1 {
    top: 10%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.mil-infinity-2 {
    top: 25%;
    right: 12%;
    animation-delay: 3s;
    animation-duration: 11s;
    width: 100px;
    height: 50px;
    opacity: 0.2;
}

.mil-infinity-3 {
    top: 45%;
    left: 15%;
    animation-delay: 6s;
    animation-duration: 12s;
    width: 110px;
    height: 55px;
    opacity: 0.18;
}

.mil-infinity-4 {
    top: 60%;
    right: 20%;
    animation-delay: 9s;
    animation-duration: 13s;
    width: 95px;
    height: 48px;
    opacity: 0.22;
}

.mil-infinity-5 {
    bottom: 15%;
    left: 25%;
    animation-delay: 12s;
    animation-duration: 14s;
    width: 130px;
    height: 65px;
    opacity: 0.15;
}

.mil-infinity-6 {
    top: 35%;
    right: 30%;
    animation-delay: 15s;
    animation-duration: 9s;
    width: 105px;
    height: 52px;
    opacity: 0.19;
}

.mil-infinity-7 {
    bottom: 25%;
    right: 8%;
    animation-delay: 18s;
    animation-duration: 15s;
    width: 115px;
    height: 58px;
    opacity: 0.17;
}

@keyframes floatInfinity {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translateY(-40px) rotate(8deg) scale(1.15);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-60px) rotate(0deg) scale(1.1);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-30px) rotate(-8deg) scale(1.05);
        opacity: 0.28;
    }
}

/* Código Binário (Matrix) */
.mil-binary-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    padding-top: 50px;
}

.mil-binary-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: binaryFall 8s linear infinite;
    opacity: 0.15;
}

.mil-binary-column:nth-child(1) { animation-delay: 0s; animation-duration: 10s; }
.mil-binary-column:nth-child(2) { animation-delay: 1s; animation-duration: 12s; }
.mil-binary-column:nth-child(3) { animation-delay: 2s; animation-duration: 9s; }
.mil-binary-column:nth-child(4) { animation-delay: 3s; animation-duration: 11s; }
.mil-binary-column:nth-child(5) { animation-delay: 4s; animation-duration: 13s; }
.mil-binary-column:nth-child(6) { animation-delay: 5s; animation-duration: 10.5s; }
.mil-binary-column:nth-child(7) { animation-delay: 6s; animation-duration: 11.5s; }
.mil-binary-column:nth-child(8) { animation-delay: 7s; animation-duration: 9.5s; }
.mil-binary-column:nth-child(9) { animation-delay: 8s; animation-duration: 12.5s; }
.mil-binary-column:nth-child(10) { animation-delay: 9s; animation-duration: 10.8s; }

.mil-binary-column span {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #00AEEF;
    text-shadow: 0 0 15px rgba(0, 174, 239, 0.8);
    animation: binaryGlow 2s ease-in-out infinite;
    line-height: 1;
}

.mil-binary-column span:nth-child(odd) {
    color: #E10098;
    text-shadow: 0 0 15px rgba(225, 0, 152, 0.8);
}

@keyframes binaryFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes binaryGlow {
    0%, 100% {
        opacity: 0.6;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.5);
    }
}

/* Efeito de pulso nos símbolos de infinito */
.mil-infinity-symbols svg path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawInfinity 4s ease-in-out infinite;
}

.mil-infinity-1 path {
    animation-delay: 0s;
}

.mil-infinity-2 path {
    animation-delay: 1.5s;
}

.mil-infinity-3 path {
    animation-delay: 3s;
}

@keyframes drawInfinity {
    0%, 100% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 0;
    }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .mil-infinity-symbols svg {
        width: 80px;
        height: 40px;
    }
    
    .mil-infinity-3 {
        width: 100px;
        height: 50px;
    }
    
    .mil-binary-column span {
        font-size: 14px;
    }
    
    .mil-binary-column {
        gap: 10px;
    }
}

/* Modo escuro - ajustes de contraste */
.mil-dark-bg .mil-infinity-symbols svg {
    opacity: 0.2;
}

.mil-dark-bg .mil-binary-column {
    opacity: 0.12;
}

.mil-dark-bg .mil-binary-column span {
    text-shadow: 0 0 15px rgba(0, 174, 239, 0.7);
}

.mil-dark-bg .mil-binary-column span:nth-child(odd) {
    text-shadow: 0 0 15px rgba(225, 0, 152, 0.7);
}

/* Gradiente sutil de fundo para maior profundidade */
.mil-infinity-symbols::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 174, 239, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.mil-binary-matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(225, 0, 152, 0.03) 0%, transparent 50%);
    pointer-events: none;
}