﻿/* Parallax Tech Background */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.tech-element {
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    will-change: transform;
}

.tech-element.active {
    opacity: 1;
}

/* Estrelas */
.star {
    width: 3px;
    height: 3px;
    background: rgba(255, 107, 53, 0.6);
    border-radius: 50%;
    box-shadow: 
        0 0 4px rgba(255, 107, 53, 0.8),
        0 0 8px rgba(255, 107, 53, 0.4);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Planetas */
.planet {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 107, 53, 0.3), 
        rgba(255, 107, 53, 0.1));
    box-shadow: 
        inset -5px -5px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 107, 53, 0.2);
}

.planet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Galáxias */
.galaxy {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(255, 107, 53, 0.2) 0%,
        rgba(247, 147, 30, 0.1) 30%,
        transparent 70%);
    filter: blur(2px);
    animation: rotate-galaxy 20s linear infinite;
}

@keyframes rotate-galaxy {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Nebulosas */
.nebula {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(255, 107, 53, 0.15) 0%,
        rgba(247, 147, 30, 0.08) 40%,
        transparent 70%);
    filter: blur(8px);
    animation: pulse-nebula 5s ease-in-out infinite;
}

@keyframes pulse-nebula {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* Cometas */
.comet {
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 53, 0.8);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(255, 107, 53, 0.6),
        -30px 0 20px rgba(255, 107, 53, 0.2),
        -50px 0 30px rgba(255, 107, 53, 0.1);
}

/* Anéis orbitais */
.orbital-ring {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 50%;
    animation: rotate-orbit 15s linear infinite;
}

@keyframes rotate-orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Constelações (linhas) */
.tech-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.15) 50%, 
        transparent 100%);
    opacity: 0.4;
    transform-origin: left center;
}

/* Partículas estelares */
.tech-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 107, 53, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 107, 53, 0.8);
    animation: particle-float 4s ease-in-out infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0.9;
    }
}

/* Formas geométricas espaciais */
.tech-shape {
    position: absolute;
    opacity: 0.05;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.tech-shape.circle {
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 107, 53, 0.05) 0%, 
        transparent 70%);
}

.tech-shape.square {
    border-radius: 8px;
    transform: rotate(45deg);
}

/* Otimizaçéo de performance */
.parallax-container * {
    backface-visibility: hidden;
    perspective: 1000px;
}
