/* Background animado com formas geométricas */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Cubos animados */
.cube {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 4px;
    animation: floatCube 8s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cube:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: -10s;
    animation-duration: 12s;
}

.cube:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: -10s;
    animation-duration: 10s;
}

.cube:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 14s;
}

.cube:nth-child(4) {
    bottom: 15%;
    right: 25%;
    animation-delay: -10s;
    animation-duration: 11s;
}

.cube:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: -10s;
    animation-duration: 13s;
}

/* Círculos animados */
.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(52, 152, 219, 0.2);
    background: rgba(52, 152, 219, 0.05);
    animation: floatCircle 10s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.circle:nth-child(6) {
    width: 60px;
    height: 60px;
    top: 15%;
    right: 10%;
    animation-delay: -10s;
    animation-duration: 15s;
}

.circle:nth-child(7) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
    animation-duration: 12s;
}

.circle:nth-child(8) {
    width: 50px;
    height: 50px;
    top: 60%;
    right: 20%;
    animation-delay: -10s;
    animation-duration: 16s;
}

.circle:nth-child(9) {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 50%;
    animation-delay: -10s;
    animation-duration: 11s;
}

/* Traços/linhas animadas */
.line {
    position: absolute;
    background: linear-gradient(90deg, rgba(155, 89, 182, 0.3), rgba(155, 89, 182, 0.1));
    border-radius: 2px;
    animation: floatLine 9s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.line.horizontal {
    height: 2px;
    width: 100px;
}

.line.vertical {
    width: 2px;
    height: 100px;
}

.line.diagonal {
    width: 120px;
    height: 2px;
    transform-origin: left center;
}

.line:nth-child(10) {
    top: 25%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 13s;
}

.line:nth-child(11) {
    bottom: 40%;
    right: 30%;
    animation-delay: -10s;
    animation-duration: 11s;
}

.line:nth-child(12) {
    top: 70%;
    left: 40%;
    transform: rotate(45deg);
    animation-delay: -10s;
    animation-duration: 14s;
}

.line:nth-child(13) {
    top: 40%;
    right: 40%;
    transform: rotate(-30deg);
    animation-delay: -10s;
    animation-duration: 12s;
}

/* Triângulos animados */
.triangle {
    position: absolute;
    width: 0;
    height: 0;
    animation: floatTriangle 11s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.triangle:nth-child(14) {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(46, 204, 113, 0.2);
    top: 35%;
    left: 25%;
    animation-delay: -10s;
    animation-duration: 15s;
}

.triangle:nth-child(15) {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(46, 204, 113, 0.15);
    bottom: 25%;
    right: 35%;
    animation-delay: -10s;
    animation-duration: 13s;
}

.triangle:nth-child(16) {
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid rgba(46, 204, 113, 0.1);
    top: 55%;
    right: 15%;
    animation-delay: -10s;
    animation-duration: 16s;
}

/* Animações com parallax */
@keyframes floatCube {
    0% {
        opacity: 0;
        transform: translateY(100px) translateX(0px) rotate(0deg);
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50px) translateX(30px) rotate(180deg);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) translateX(60px) rotate(360deg);
    }
}

@keyframes floatCircle {
    0% {
        opacity: 0;
        transform: translateY(80px) translateX(0px) scale(0.5);
    }
    15% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
        transform: translateY(-40px) translateX(-20px) scale(1.2);
    }
    85% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-160px) translateX(-40px) scale(0.8);
    }
}

@keyframes floatLine {
    0% {
        opacity: 0;
        transform: translateY(60px) translateX(0px) scaleX(0.3);
    }
    20% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
        transform: translateY(-30px) translateX(20px) scaleX(1.1);
    }
    80% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) translateX(40px) scaleX(0.7);
    }
}

@keyframes floatTriangle {
    0% {
        opacity: 0;
        transform: translateY(70px) translateX(0px) rotate(0deg) scale(0.7);
    }
    12% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
        transform: translateY(-35px) translateX(-15px) rotate(120deg) scale(1.1);
    }
    88% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-140px) translateX(-30px) rotate(240deg) scale(0.9);
    }
}

/* Efeito parallax no scroll */
.parallax-slow {
    animation-duration: 20s !important;
}

.parallax-medium {
    animation-duration: 15s !important;
}

.parallax-fast {
    animation-duration: 10s !important;
}

/* Responsividade para formas geométricas */
@media (max-width: 768px) {
    .cube {
        width: 30px;
        height: 30px;
    }
    
    .circle {
        transform: scale(0.8);
    }
    
    .line {
        transform: scale(0.7);
    }
    
    .triangle {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .cube {
        width: 25px;
        height: 25px;
    }
    
    .circle {
        transform: scale(0.6);
    }
    
    .line {
        transform: scale(0.5);
    }
    
    .triangle {
        transform: scale(0.6);
    }
}

