/* --- VARIÁVEIS (Paleta CYBER NOIR) --- */
:root {
    /* Fundo: Azul petróleo profundo, quase preto */
    --fundo-escuro: #020a0f;
    
    /* Destaque Principal: Ciano Neon Vibrante */
    --azul-neon: #00ffe7;
    
    /* NOVO! Destaque Secundário: Vermelho Neon (Baseado na referência) */
    --vermelho-neon: #ff0055; 

    /* Painéis de Vidro: Mais escuros e neutros */
    --azul-painel: rgba(10, 25, 35, 0.85);
    --glass-border: rgba(0, 255, 231, 0.2); /* Borda sutil ciano */

    /* Textos */
    --branco: #ffffff;
    --cinza-azulado: #b8cdd6; /* Texto secundário mais neutro */
    
    /* Cores de Accent para os Cards (Ajustadas) */
    --accent-purple: #d600ff;
    --accent-green: #00ff91;
    
    /* Tipografia e Layout (Mantidos) */
    --font-titulo: 'Orbitron', sans-serif;
    --font-texto: 'Rajdhani', sans-serif;
    --header-height: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--fundo-escuro);
    color: var(--cinza-azulado);
    font-family: var(--font-texto);
    font-size: 18px;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* --- VÍDEO INTRO --- */
#intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 20000;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column; /* Organiza botão e vídeo */
    transition: opacity 1s ease, visibility 1s ease;
}

#intro-video {
    width: 100%;
    height: 100%;
    /* MUDANÇA AQUI: 'contain' mostra o vídeo todo (com faixas pretas se necessário), 
       ao invés de dar zoom e cortar ('cover') */
    object-fit: contain; 
    display: none; /* Começa escondido até clicar */
}

/* Botão para garantir o SOM */
#start-btn-container {
    position: absolute;
    z-index: 20002;
    text-align: center;
}

#start-btn {
    padding: 20px 60px;
    font-family: var(--font-titulo);
    font-size: 1.5rem;
    color: var(--azul-neon);
    background: rgba(1, 28, 64, 0.8);
    border: 2px solid var(--azul-neon);
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#start-btn:hover {
    background: var(--azul-neon);
    color: var(--fundo-escuro);
    box-shadow: 0 0 50px var(--azul-neon);
}

#skip-intro {
    position: absolute; bottom: 30px; right: 30px; z-index: 20001;
    padding: 10px 20px; background: rgba(0,0,0,0.5); border: 1px solid #555;
    color: #aaa; font-family: var(--font-texto); cursor: pointer;
    text-transform: uppercase; transition: 0.3s; font-size: 0.8rem;
    display: none; /* Só aparece quando o vídeo começa */
}
#skip-intro:hover { border-color: var(--branco); color: var(--branco); }
/* --- PRELOADER --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--fundo-escuro); display: flex; justify-content: center; align-items: center; z-index: 10001; transition: opacity 1s ease, visibility 1s ease; opacity: 0; visibility: hidden; }
#loading-container { text-align: center; transition: opacity 0.5s ease; position: absolute; bottom: 20%; width: 100%; }
#loading-text { font-family: var(--font-titulo); color: var(--cinza-azulado); font-size: 1rem; letter-spacing: 5px; margin-bottom: 20px; }
#loading-bar-frame { width: 250px; height: 6px; border: 1px solid var(--azul-neon); border-radius: 5px; overflow: hidden; margin: 0 auto; }
#loading-bar-fill { width: 0%; height: 100%; background: var(--azul-neon); border-radius: 5px; animation: fill-loading-bar 2.5s ease-out forwards; }
@keyframes fill-loading-bar { to { width: 100%; } }

#animated-photo-container { position: absolute; width: 250px; max-width: 80vw; opacity: 0; transition: opacity 0.8s ease; }
#animated-photo { width: 100%; height: auto; animation: photo-emerge 3s ease-out forwards; animation-play-state: paused; filter: drop-shadow(0 0 20px var(--azul-neon)); }

#curtain-transition { position: fixed; bottom: -100%; left: 0; width: 100%; height: 100%; background-color: var(--fundo-escuro); z-index: 10000; transition: bottom 0.8s cubic-bezier(0.86, 0, 0.07, 1); }
#curtain-transition.active { bottom: 0; }

@keyframes photo-emerge { 0% { opacity: 0; filter: blur(20px) drop-shadow(0 0 0 transparent); transform: scale(0.9); } 100% { opacity: 1; filter: blur(0) drop-shadow(0 0 20px var(--azul-neon)); transform: scale(1); } }

/* --- FUNDO MATRIX --- */
#matrix-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.3; pointer-events: none; }

/* --- CONTEÚDO PRINCIPAL --- */
#main-site-content { opacity: 0; transition: opacity 1.5s ease; padding-top: var(--header-height); }

/* --- CABEÇALHO --- */
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height); }

/* Robô Central */
.nav-center-plate {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 140px; height: 100px;
    background: var(--fundo-escuro);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    border-bottom: 3px solid var(--azul-neon);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    z-index: 1002;
}
.robot-logo { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 0 10px var(--azul-neon)); transition: 0.3s; }
.robot-logo:hover { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--accent-purple)); }

.main-header nav {
    display: flex; justify-content: center; align-items: center;
    background: rgba(1, 28, 64, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px; width: 100%;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.nav-container { display: flex; width: 100%; max-width: 1200px; justify-content: space-between; padding: 0 40px; }
.nav-group { display: flex; gap: 50px; }
.nav-spacer { width: 160px; }

.nav-link {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: var(--cinza-azulado); transition: 0.3s; position: relative;
}
.nav-link span { font-family: var(--font-titulo); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.nav-link i { font-size: 1.2rem; margin-bottom: 4px; color: #fff; }

.nav-link:hover { color: var(--azul-neon); text-shadow: 0 0 10px var(--azul-neon); transform: translateY(-2px); }
.nav-link:hover i { color: var(--azul-neon); }

/* Menu Mobile Toggle */
.menu-toggle { display: none; position: absolute; right: 20px; top: 20px; cursor: pointer; z-index: 10002; }

/* --- HERO SECTION --- */
.hero-section { height: 100vh; margin-top: calc(-1 * var(--header-height)); display: flex; justify-content: center; align-items: center; text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.hero-content h1 { font-family: var(--font-titulo); font-size: 4rem; color: var(--branco); font-weight: 900; margin-bottom: 10px; }
.hero-content h1::after { content: '_'; opacity: 1; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-content p { font-size: 1.5rem; color: var(--cinza-azulado); margin-top: 1rem; margin-bottom: 3rem; letter-spacing: 2px; }

.cta-button { display: inline-block; padding: 15px 50px; border: 2px solid var(--azul-neon); border-radius: 50px; color: var(--branco); text-decoration: none; font-family: var(--font-titulo); font-weight: bold; transition: all 0.3s ease; background: rgba(0, 243, 255, 0.1); }
.cta-button:hover { background-color: var(--azul-neon); color: var(--fundo-escuro); box-shadow: 0 0 30px var(--azul-neon); transform: scale(1.05); }

/* --- SEÇÕES GERAIS --- */
.content-section { padding: 120px 20px; max-width: 1200px; margin: 0 auto; text-align: center; }
.content-section h2 { font-family: var(--font-titulo); font-size: 3rem; color: var(--branco); margin-bottom: 40px; text-shadow: 0 0 15px rgba(0, 243, 255, 0.4); text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- O PROJETO (Sobre) --- */
.about-me-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; text-align: left; }
.about-photo img { width: 100%; max-width: 400px; height: auto; object-fit: contain; filter: drop-shadow(0 0 20px var(--azul-neon)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.about-text { background-color: var(--azul-painel); border-radius: 15px; padding: 40px; backdrop-filter: blur(10px); border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.about-text::before { content:''; position: absolute; top:0; left:0; width: 4px; height: 100%; background: var(--azul-neon); }
.about-text h3 { color: var(--branco); font-family: var(--font-titulo); margin-bottom: 15px; font-size: 1.8rem; }
.about-text p { margin-bottom: 20px; line-height: 1.8; font-size: 1.1rem; }
.about-text strong { color: var(--azul-neon); }

/* --- MÓDULOS (Carrossel 3D) --- */
.scene { perspective: 1200px; width: 100%; height: 500px; display: flex; justify-content: center; align-items: center; position: relative; margin-top: 40px; }
.carousel { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1); }

.card { position: absolute; width: 240px; height: 340px; border-radius: 15px; background: rgba(10, 20, 30, 0.9); border: 1px solid var(--azul-neon); box-shadow: 0 0 20px rgba(0, 243, 255, 0.2); transition: transform 0.5s ease, opacity 0.5s ease; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 20px; cursor: pointer; overflow: hidden; }

/* Imagens de fundo dos cards */
.card-bg { position: absolute; top:0; left:0; width:100%; height:100%; background-size: cover; background-position: center; opacity: 0.5; transition: 0.5s; }
.card:hover .card-bg { opacity: 0.8; transform: scale(1.1); }

.card-content { position: relative; z-index: 2; text-align: center; background: linear-gradient(to top, var(--fundo-escuro), transparent); width: 100%; padding-top: 30px; }
.card i { font-size: 3rem; color: var(--azul-neon); margin-bottom: 10px; text-shadow: 0 0 10px var(--azul-neon); }
.card h3 { font-family: var(--font-titulo); color: var(--branco); font-size: 1.2rem; }

.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); border: 1px solid var(--azul-neon); color: var(--azul-neon); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; z-index: 100; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.carousel-nav:hover { background-color: var(--azul-neon); color: var(--fundo-escuro); box-shadow: 0 0 20px var(--azul-neon); }
.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

/* Popups */
.popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background-color: var(--fundo-escuro); padding: 2.5rem; width: 90%; max-width: 600px; border-radius: 15px; border: 1px solid var(--azul-neon); box-shadow: 0 0 50px rgba(0, 0, 0, 0.9); display: none; opacity: 0; transition: all 0.3s ease; z-index: 10002; text-align: left; }
.popup.show { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.popup h2 { font-family: var(--font-titulo); color: var(--azul-neon); border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; margin-bottom: 15px; }
.popup-close { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: var(--cinza-azulado); font-size: 1.5rem; cursor: pointer; }
.popup-close:hover { color: #fff; }

/* --- TECNOLOGIAS --- */
.solutions-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; text-align: left; }
.solutions-photo-column { display: flex; justify-content: center; }
.solutions-photo-column i { font-size: 12rem; color: var(--azul-neon); text-shadow: 0 0 40px rgba(0, 243, 255, 0.3); animation: pulse 3s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }

.services-container { background-color: var(--azul-painel); padding: 40px; border-radius: 15px; border: 1px solid var(--glass-border); }
.service-item { display: flex; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: 0.3s; }
.service-item:last-child { border-bottom: none; }
.service-item:hover { background-color: rgba(255,255,255,0.05); padding-left: 10px; }
.service-icon { font-size: 2rem; margin-right: 25px; color: var(--azul-neon); width: 50px; text-align: center; }
.service-name { color: var(--branco); font-size: 1.4rem; font-weight: 600; margin-bottom: 5px; font-family: var(--font-titulo); }

/* --- SQUAD (Magic Cards) --- */
.team-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que caiam pra linha de baixo */
    justify-content: center; /* Centraliza na tela */
    gap: 40px; /* ESPAÇAMENTO ENTRE ELES (Isso resolve o "colados") */
    padding: 50px 20px;
    perspective: 1000px;
}

.flip-card-container {
    background-color: transparent;
    width: 280px;
    height: 420px;
    cursor: pointer;
    /* Garante espaço extra se o navegador for antigo e ignorar o gap */
    margin-bottom: 30px; 
    position: relative; /* Importante para o contexto */
}

.magic-card:hover { transform: translateY(-10px) scale(1.02); z-index: 10; border-color: var(--borderColor); box-shadow: 0 0 30px var(--borderColor); }

.card-art { width: 100%; height: 50%; background: #222; overflow: hidden; border-bottom: 3px solid var(--borderColor); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.magic-card:hover .card-art img { transform: scale(1.1); }

.card-info { padding: 20px; color: #fff; text-align: left; }
.card-name { font-family: var(--font-titulo); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 5px; color: #fff; }
.card-role { font-size: 0.9rem; color: #aaa; margin-bottom: 15px; font-style: italic; display: block; }

.stat-bar { margin-bottom: 8px; }
.stat-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: #ccc; margin-bottom: 2px; text-transform: uppercase; }
.bar-bg { width: 100%; height: 6px; background: #333; border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; width: 0%; transition: width 1s ease-out; }

/* Divisor */
.stylish-divider { border: 0; height: 1px; background-image: linear-gradient(to right, transparent, var(--azul-neon), transparent); margin: 80px auto; width: 60%; opacity: 0.3; }

/* Footer */
.main-footer { padding: 40px; text-align: center; background-color: rgba(4, 13, 31, 0.9); border-top: 1px solid rgba(0, 191, 255, 0.2); font-size: 0.9rem; }

/* --- RESPONSIVIDADE (FIXED) --- */
@media (max-width: 768px) {
    /* 1. Ajuste do Título SQUAD (Para não cortar) */
    .content-section h2 {
        font-size: 1.8rem; /* Reduz de 3rem para 1.8rem no mobile */
        word-wrap: break-word; /* Quebra a linha se necessário */
        line-height: 1.2;
        padding: 0 10px;
    }
    /* Ajuste específico para o texto do Glitch não vazar */
    .glitch-effect::before, .glitch-effect::after {
        font-size: 1.8rem; 
    }

    /* 2. Ajuste do Header */
    .nav-center-plate { display: none; }
    .main-header nav { justify-content: space-between; padding: 0 20px; }
    .menu-toggle { display: flex; z-index: 10005; } /* Z-index alto para ficar acima de tudo */
    .main-header::after { 
        content: "IA'SISTENTE"; 
        font-family: var(--font-titulo); 
        color: var(--azul-neon); 
        font-size: 1.2rem; 
        font-weight: bold; 
        position: absolute; 
        left: 20px; 
        top: 22px; 
    }

    /* 3. MENU MOBILE MENOR (Painel Flutuante) */
    .nav-container { 
        display: none; 
        position: fixed; /* Fixa na tela */
        top: 80px; /* Logo abaixo do header */
        left: 5%; /* Centraliza horizontalmente (5% de cada lado) */
        width: 90%; /* Ocupa 90% da largura, não 100% */
        height: auto; /* Altura automática baseada no conteúdo (fica menor) */
        max-height: 80vh; /* Máximo de 80% da tela para não sumir */
        
        background: rgba(1, 28, 64, 0.98); /* Fundo escuro */
        backdrop-filter: blur(20px);
        border: 1px solid var(--azul-neon);
        border-radius: 15px; /* Bordas arredondadas */
        box-shadow: 0 10px 40px rgba(0,0,0,0.8);
        
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        z-index: 10004;
        overflow-y: auto; /* Permite rolar DENTRO do menu se for muito pequeno */
    }

    .nav-container.active { 
        display: flex; 
        animation: slideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; 
    }

    .nav-group { flex-direction: column; gap: 20px; width: 100%; text-align: center; margin: 0; }
    .nav-spacer { display: none; }

    /* Ajustes Gerais de Layout Mobile */
    .about-me-layout, .solutions-layout { grid-template-columns: 1fr; gap: 30px; }
    .about-photo { order: -1; margin-bottom: 20px; }
    .hero-content h1 { font-size: 2.2rem; }
    .scene { height: 350px; margin-top: 20px; }
    .card { width: 160px; height: 240px; }
    
    /* Ajuste da Grid do Squad no Mobile */
    .team-grid { gap: 20px; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- EFEITO GLITCH (Hover) --- */
.glitch-effect {
    position: relative;
    display: inline-block; /* Importante para o efeito não quebrar o layout */
    color: var(--branco);
}

/* Cria as cópias do texto para o efeito */
.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text); /* Pega o texto do HTML automaticamente */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--fundo-escuro); /* Esconde o texto original atrás */
    opacity: 0; /* Invisível por padrão */
    transition: opacity 0.3s;
}

/* --- ESTADO HOVER (Quando passa o mouse) --- */
.glitch-effect:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--vermelho-neon); /* Sombra Vermelha */
    clip-path: inset(40% 0 61% 0); /* Recorte inicial */
    animation: glitch-anim-1 0.4s infinite linear alternate-reverse;
    opacity: 1;
}

.glitch-effect:hover::after {
    left: -2px;
    text-shadow: -2px 0 var(--azul-neon); /* Sombra Ciano */
    clip-path: inset(10% 0 80% 0); /* Recorte inicial */
    animation: glitch-anim-2 0.4s infinite linear alternate-reverse;
    opacity: 1;
}

/* --- KEYFRAMES (A Animação do Tremor) --- */
@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 30% 0); }
    60% { clip-path: inset(10% 0 80% 0); }
    80% { clip-path: inset(50% 0 10% 0); }
    100% { clip-path: inset(90% 0 5% 0); }
}
/* --- SQUAD MAGIC FLIP CARDS --- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    perspective: 1000px; /* Essencial para o efeito 3D */
    padding-bottom: 50px;
}

.flip-card-container {
    background-color: transparent;
    width: 280px;
    height: 420px;
    cursor: pointer;
}

/* O "Corpo" do cartão que gira */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Giro com efeito elástico */
    transform-style: preserve-3d;
}

/* Classe que o JS adiciona para girar */
.flip-card-container.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Hover: Card levita levemente */
.flip-card-container:hover .flip-card-inner {
    transform: translateY(-10px);
}
/* Se já estiver girado, mantém o giro e levita */
.flip-card-container.flipped:hover .flip-card-inner {
    transform: rotateY(180deg) translateY(-10px);
}

/* Faces do Cartão (Frente e Verso) */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Esconde o verso quando de frente */
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    border: 2px solid var(--card-color); /* Cor dinâmica via HTML */
}

/* --- FRENTE --- */
.flip-card-front {
    background: linear-gradient(145deg, #050505, #101520);
}

.avatar-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--card-color);
    box-shadow: 0 0 20px var(--card-color);
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-family: var(--font-titulo);
    color: var(--branco);
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.member-role {
    color: var(--card-color);
    font-family: var(--font-texto);
    font-size: 1rem;
    letter-spacing: 2px;
}
.click-hint {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #555;
    animation: blink 2s infinite;
}

/* --- VERSO --- */
.flip-card-back {
    background: rgba(2, 10, 15, 0.95); /* Quase preto, levemente transparente */
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    color: var(--branco);
    transform: rotateY(180deg); /* O verso já começa virado */
    padding: 25px;
    text-align: left;
    align-items: flex-start; /* Alinha texto à esquerda */
    border-color: var(--card-color);
    box-shadow: inset 0 0 20px var(--card-color);
}

.back-title {
    font-family: var(--font-titulo);
    color: var(--card-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    padding-bottom: 5px;
}

.back-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ccc;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Barras de Status (RPG Style) */
.stats-container { width: 100%; }
.stat-row { margin-bottom: 10px; }
.stat-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--card-color);
    margin-bottom: 3px;
    font-weight: bold;
    text-transform: uppercase;
}
.stat-bar-bg {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    background: var(--card-color);
    box-shadow: 0 0 10px var(--card-color);
    width: 0%; /* JS vai animar ou Inline style */
    transition: width 1s ease 0.3s; /* Delay para esperar o giro */
}

/* Animação da barra quando o card vira */
.flipped .stat-bar-fill {
    width: var(--stat-percent); /* Pega o valor do HTML */
}
/* --- SEÇÃO DINÂMICA OPERACIONAL --- */
.workflow-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    background: rgba(2, 10, 15, 0.6);
    border: 1px solid var(--azul-painel);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(5px);
}

.workflow-intro p {
    font-size: 1.2rem;
    color: var(--cinza-azulado);
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
}
.workflow-intro strong { color: var(--azul-neon); }

.workflow-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.workflow-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.workflow-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.workflow-content h3 {
    font-family: var(--font-titulo);
    color: var(--branco);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.workflow-content p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

.workflow-content strong {
    color: var(--branco);
    font-weight: bold;
}

/* Responsividade para o Workflow */
@media (max-width: 768px) {
    .workflow-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .workflow-icon {
        margin: 0 auto;
    }
    .workflow-container {
        padding: 20px;
    }
}