/* ===== TEMA ESCURO FUTURISTA PARA IA ===== */

body {
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

.dark-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Partículas de fundo animadas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 8s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Grade tecnológica de fundo */
.tech-grid-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes grid-pulse {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Efeito de brilho pulsante */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glow-pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Cards futuristas */
.ai-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.ai-card:hover::before {
    transform: scaleX(1);
}

.ai-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

/* Ícones com efeito de brilho */
.ai-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.ai-card:hover .ai-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Título principal com efeito de gradiente */
.ai-title {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Subtítulo com efeito de fade */
.ai-subtitle {
    color: #cccccc;
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Botões futuristas */
.ai-button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.ai-button:hover::before {
    left: 100%;
}

.ai-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Elemento central 3D */
.ai-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    perspective: 1000px;
}

.ai-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 10s linear infinite;
}

@keyframes rotate-cube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #FFD700;
}

.cube-face:nth-child(1) { transform: rotateY(0deg) translateZ(150px); }
.cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(150px); }
.cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(150px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(150px); }
.cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(150px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(150px); }

/* Responsividade */
@media (max-width: 768px) {
    .ai-title {
        font-size: 2.5rem;
    }
    
    .ai-subtitle {
        font-size: 1.1rem;
    }
    
    .ai-visual {
        width: 250px;
        height: 250px;
    }
    
    .ai-card {
        padding: 1.5rem;
    }
}

/* Animações de entrada */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

/* Estatísticas */
.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-number:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Efeito de brilho durante a animação do contador */
.stat-number.animating {
    animation: counter-glow 0.5s ease-in-out;
}

@keyframes counter-glow {
    0% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { text-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
    100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
}

/* Botão de voltar */
.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 9999;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #FFD700;
    transform: translateX(-5px);
}