/* =================================================================
   IMPERIUM RECOVERY LAB - STYLESHEET V3.0
   Design: Dinâmico, Interativo e Imersivo
   ================================================================= */

/* --- Variáveis Globais (Raiz do Design) --- */
:root {
    --bg-dark-primary: #0a0a10;
    --bg-dark-secondary: #101118;
    --accent-cyan: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.5);
    --text-primary: #e1e1e1;
    --text-secondary: #a0a0b0;
    --border-color: #2a2b38;

    --font-tech: 'Share Tech Mono', monospace;
    --font-body: 'Roboto', sans-serif;
}

/* --- Reset e Configurações Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* NOVO: Fundo com malha digital (grid) por trás da animação de gradiente */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 25px 25px;
    z-index: -2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Fundo Dinâmico --- */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, var(--bg-dark-primary), #0d0d1e, var(--bg-dark-primary));
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
}

/* --- Animações Globais --- */
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* NOVO: Animação de pulso para ícones */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px var(--accent-glow);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px var(--accent-glow);
    }
}

/* NOVO: Animação de entrada para títulos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NOVO: Animação de brilho para botões */
@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}


/* --- Cabeçalho (Header) --- */
.main-header {
    background: rgba(10, 10, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* ATUALIZADO */
}

/* NOVO: Sombra no header ao rolar a página */
.scrolled {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--accent-cyan);
    margin-right: 12px;
    /* ATUALIZADO: Animação de pulso contínua */
    animation: pulse-glow 4s ease-in-out infinite;
}

.logo span {
    color: var(--accent-cyan);
    font-size: 0.8em;
    font-weight: 400;
    margin-left: 5px;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 30px;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

/* --- Seção Principal (Hero) --- */
.hero {
    min-height: 90vh; /* ATUALIZADO */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 120px 0;
    text-align: center;
    position: relative;
}

.hero-title {
    font-family: var(--font-tech);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--accent-glow);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    /* ATUALIZADO: Animação de entrada */
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
     /* ATUALIZADO: Animação de entrada com delay */
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both; /* Garante que o estilo se mantenha antes da animação começar */
}

/* --- Área de Login do Cliente --- */
.client-login-area {
    background: linear-gradient(145deg, var(--bg-dark-secondary), #1a1b2f);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-width: 650px;
    margin: 4rem auto 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.client-login-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}

.client-login-area h2 {
    font-family: var(--font-tech);
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.client-login-area p {
    color: var(--text-secondary);
}

/* --- Botões --- */
.btn-primary {
    position: relative; /* Necessário para o efeito de brilho */
    overflow: hidden;   /* Esconde o brilho fora do botão */
    display: inline-block;
    background-color: var(--accent-cyan);
    color: var(--bg-dark-primary);
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 1.5rem;
    border: 2px solid var(--accent-cyan);
    transition: all 0.3s ease-in-out;
}

/* NOVO: Efeito de brilho (shimmer) */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-150%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    animation: shimmer 1s infinite;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-3px);
}

.btn-primary i {
    margin-right: 10px;
}


/* --- Títulos das Seções --- */
.section-title {
    text-align: center;
    font-family: var(--font-tech);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--accent-cyan);
    position: relative;
    padding-bottom: 15px;
}

/* ATUALIZADO: Linha decorativa com animação */
.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-cyan);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0); /* Começa com largura 0 */
    border-radius: 2px;
    transition: transform 0.5s ease-out; /* Anima a transformação */
}
/* A animação em si precisaria de JS (Intersection Observer) para ativar ao rolar. 
   Mas um hover pode demonstrar o efeito: */
.services-section:hover .section-title::after,
.why-us-section:hover .section-title::after {
    transform: translateX(-50%) scaleX(1); /* Expande a linha */
}

/* --- Seções de Conteúdo (Serviços, "Por que nós?") --- */
.services-section, .why-us-section {
    padding: 100px 0;
}

/* --- Grid de Serviços --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-dark-secondary);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ATUALIZADO: Efeito de spotlight no hover do card */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease-out;
    z-index: 0;
}
.service-card:hover::before {
    transform: translate(-50%, -50%) scale(2);
}
/* Faz o conteúdo ficar na frente do brilho */
.service-card i, .service-card h3, .service-card p {
    position: relative;
    z-index: 1;
}

.service-card i {
    font-size: 3.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--accent-glow);
}
.service-card h3 {
    font-family: var(--font-tech);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-primary);
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Seção "Por Que Nós?" --- */
.why-us-section {
    background-color: var(--bg-dark-secondary);
}
.why-us-content ul {
    list-style: none;
    max-width: 850px;
    margin: 0 auto;
}
.why-us-content li {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
}
.why-us-content i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

/* --- Rodapé (Footer) --- */
.main-footer {
    background-color: #000;
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}
.footer-login-link {
    margin-bottom: 1rem;
}
.footer-login-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-login-link a:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* --- Responsividade (Sem alterações, já era bom) --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav {
        margin-top: 0.5rem;
    }
    .main-nav a {
        margin: 0 10px;
    }
    .hero {
        padding-top: 180px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* =================================================================
   ANIMAÇÕES DE SCROLL E EFEITOS JS
   ================================================================= */

/* Efeito de sombra para o header quando a classe .scrolled é adicionada via JS */
.main-header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Estilo inicial dos elementos que serão animados */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Estilo final (quando a classe .is-visible é adicionada via JS) */
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Opcional: Adiciona um delay para cada card de serviço, criando um efeito cascata */
.service-card.reveal-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.service-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.service-card.reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.service-card.reveal-on-scroll:nth-child(4) { transition-delay: 0.4s; }