/* ========================================
   SYSTRIX - MELHORIAS VISUAIS
   Hero Mobile + Footer Espacial
   ======================================== */

/* ========================================
   FOOTER ESPACIAL - ANIMAÇÕES E EFEITOS
   ======================================== */

.footer-space {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0d0814 0%, #1a1122 50%, #0d0814 100%);
}

/* Grid de fundo tecnológico */
.footer-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(127, 19, 236, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 19, 236, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Órbitas do footer */
.footer-orbit {
    position: absolute;
    border: 1px solid rgba(127, 19, 236, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.footer-orbit-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    border-top-color: rgba(127, 19, 236, 0.4);
    border-right-color: transparent;
    animation: footerOrbitSpin 30s linear infinite;
}

.footer-orbit-2 {
    width: 800px;
    height: 800px;
    bottom: -300px;
    left: -200px;
    border-bottom-color: rgba(173, 146, 201, 0.3);
    border-left-color: transparent;
    animation: footerOrbitSpin 45s linear infinite reverse;
}

.footer-orbit-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(127, 19, 236, 0.1);
    animation: footerOrbitSpin 60s linear infinite;
}

@keyframes footerOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pontos orbitando no footer */
.footer-orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #7f13ec;
    border-radius: 50%;
    box-shadow: 0 0 15px #7f13ec, 0 0 30px rgba(127, 19, 236, 0.5);
}

.footer-dot-1 {
    top: 20%;
    right: 15%;
    animation: footerDotFloat 4s ease-in-out infinite;
}

.footer-dot-2 {
    bottom: 30%;
    left: 10%;
    background: #ad92c9;
    box-shadow: 0 0 15px #ad92c9, 0 0 30px rgba(173, 146, 201, 0.5);
    animation: footerDotFloat 5s ease-in-out infinite 1s;
}

.footer-dot-3 {
    top: 60%;
    right: 25%;
    background: #3b82f6;
    box-shadow: 0 0 15px #3b82f6, 0 0 30px rgba(59, 130, 246, 0.5);
    animation: footerDotFloat 6s ease-in-out infinite 2s;
}

@keyframes footerDotFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 1; }
}

/* Partículas do footer */
.footer-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.footer-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(127, 19, 236, 0.4);
    border-radius: 50%;
    animation: footerParticleFloat 15s linear infinite;
}

.footer-particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 18s; }
.footer-particle:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 22s; }
.footer-particle:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 16s; }
.footer-particle:nth-child(4) { left: 35%; animation-delay: 1s; animation-duration: 20s; }
.footer-particle:nth-child(5) { left: 45%; animation-delay: 3s; animation-duration: 19s; }
.footer-particle:nth-child(6) { left: 55%; animation-delay: 5s; animation-duration: 21s; }
.footer-particle:nth-child(7) { left: 65%; animation-delay: 2.5s; animation-duration: 17s; }
.footer-particle:nth-child(8) { left: 75%; animation-delay: 0.5s; animation-duration: 23s; }
.footer-particle:nth-child(9) { left: 85%; animation-delay: 3.5s; animation-duration: 15s; }
.footer-particle:nth-child(10) { left: 95%; animation-delay: 1.5s; animation-duration: 24s; }

@keyframes footerParticleFloat {
    0% { transform: translateY(100%) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(90%) scale(1); }
    90% { opacity: 1; }
    100% { transform: translateY(-10%) scale(0); opacity: 0; }
}

/* Glow effects do footer */
.footer-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.footer-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(127, 19, 236, 0.08);
    top: -150px;
    left: 10%;
    animation: footerGlowPulse 8s ease-in-out infinite;
}

.footer-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.06);
    bottom: -100px;
    right: 15%;
    animation: footerGlowPulse 10s ease-in-out infinite 2s;
}

@keyframes footerGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Logo animado do footer */
.footer-logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(127, 19, 236, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: logoGlowPulse 3s ease-in-out infinite;
}

@keyframes logoGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Links com efeito de underline animado */
.footer-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #7f13ec, #ad92c9);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Botões sociais com efeito de brilho */
.footer-social-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.footer-social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(127, 19, 236, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social-btn:hover::before {
    opacity: 1;
}

.footer-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(127, 19, 236, 0.3);
}

/* Divider animado */
.footer-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(127, 19, 236, 0.3) 20%, 
        rgba(173, 146, 201, 0.5) 50%, 
        rgba(127, 19, 236, 0.3) 80%, 
        transparent 100%);
    overflow: hidden;
}

.footer-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: dividerShine 4s ease-in-out infinite;
}

@keyframes dividerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Status indicator pulsante */
.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #22c55e;
}

.footer-status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ========================================
   HERO MOBILE - AJUSTES DE ALINHAMENTO
   ======================================== */

/* Ajustes para telas médias (tablets) - 768px a 1023px */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero-visual-container {
        height: 380px !important;
        margin-top: 2rem;
    }
    
    .tech-illustration {
        width: 340px !important;
        height: 340px !important;
    }
    
    .main-hub {
        width: 120px !important;
        height: 120px !important;
    }
    
    .ring-1 {
        width: 220px !important;
        height: 220px !important;
    }
    
    .ring-2 {
        width: 300px !important;
        height: 300px !important;
    }
    
    .ring-3 {
        width: 380px !important;
        height: 380px !important;
    }
    
    .floating-badge {
        font-size: 0.8rem !important;
        padding: 10px 16px !important;
    }
    
    .badge-1 { top: 0% !important; right: -5% !important; }
    .badge-2 { bottom: 20% !important; left: -10% !important; }
    .badge-3 { top: 20% !important; left: -15% !important; }
    .badge-4 { bottom: 5% !important; right: 0% !important; }
}

/* Ajustes para telas pequenas (mobile) - até 767px */
@media (max-width: 767px) {
    .hero-visual-container {
        height: 320px !important;
        margin-top: 1.5rem;
    }
    
    .tech-illustration {
        width: 280px !important;
        height: 280px !important;
    }
    
    .main-hub {
        width: 95px !important;
        height: 95px !important;
    }
    
    .ring-1 {
        width: 180px !important;
        height: 180px !important;
    }
    
    .ring-2 {
        width: 240px !important;
        height: 240px !important;
    }
    
    .ring-3 {
        width: 300px !important;
        height: 300px !important;
    }
    
    .floating-badge {
        font-size: 0.7rem !important;
        padding: 8px 12px !important;
    }
    
    .badge-1 { top: -5% !important; right: 0% !important; }
    .badge-2 { bottom: 15% !important; left: -5% !important; }
    .badge-3 { top: 15% !important; left: -10% !important; }
    .badge-4 { bottom: 0% !important; right: 5% !important; }
    
    .status-dot {
        width: 6px !important;
        height: 6px !important;
    }
}

/* Ajuste específico para telas muito pequenas - até 480px */
@media (max-width: 480px) {
    .hero-visual-container {
        height: 280px !important;
        margin-top: 1rem;
        transform: scale(0.9);
    }
    
    .tech-illustration {
        width: 240px !important;
        height: 240px !important;
    }
    
    .main-hub {
        width: 80px !important;
        height: 80px !important;
    }
    
    .ring-1 {
        width: 150px !important;
        height: 150px !important;
    }
    
    .ring-2 {
        width: 200px !important;
        height: 200px !important;
    }
    
    .ring-3 {
        width: 250px !important;
        height: 250px !important;
    }
    
    .floating-badge {
        font-size: 0.6rem !important;
        padding: 6px 10px !important;
    }
}

/* Ajuste para telas extra pequenas - até 380px */
@media (max-width: 380px) {
    .hero-visual-container {
        height: 250px !important;
        transform: scale(0.85);
    }
    
    .tech-illustration {
        width: 220px !important;
        height: 220px !important;
    }
    
    .main-hub {
        width: 70px !important;
        height: 70px !important;
    }
    
    .ring-1 {
        width: 130px !important;
        height: 130px !important;
    }
    
    .ring-2 {
        width: 180px !important;
        height: 180px !important;
    }
    
    .ring-3 {
        width: 220px !important;
        height: 220px !important;
    }
}

/* ========================================
   ANIMAÇÕES ADICIONAIS
   ======================================== */

/* Fade in suave para elementos */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Efeito de brilho nos cards */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(127, 19, 236, 0.3), rgba(59, 130, 246, 0.3));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card-glow:hover::before {
    opacity: 1;
}

/* Botão com efeito de onda */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-ripple:active::after {
    width: 200%;
    height: 200%;
}

