/* ==========================================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
:root {
    /* Paleta de Cores */
    --primary: #ff295a;       /* Rosa Choque - Ação e Destaque */
    --bg-dark: #050517;       /* Azul Escuro Profundo - Fundo Principal */
    --bg-card: #0a0a2e;       /* Azul levemente mais claro - Cards */
    --text-light: #ffffff;    /* Branco - Texto Principal */
    --text-gray: #a8a8b3;     /* Cinza - Textos secundários */
    --glass: rgba(5, 5, 23, 0.7); /* Efeito de vidro para o Header */

    /* Tipografia */
    --font-heading: 'Space Grotesk', sans-serif; /* Futurista */
    --font-body: 'Inter', sans-serif;            /* Leitura limpa */

    /* Dimensões e Espaçamentos */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 4px;     /* Bordas levemente arredondadas (tech feel) */
    
    /* Transições */
    --transition-fast: 0.3s ease;
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset Básico e Acessibilidade */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Scroll suave ao clicar em links */
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll lateral indesejado */
    -webkit-font-smoothing: antialiased; /* Renderização de fonte mais nítida no Mac/iOS */
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Seleção de Texto */
::selection {
    background: var(--primary);
    color: var(--text-light);
}

/* Utilitários */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-padding {
    padding: 100px 0;
}

.highlight {
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Canvas de Fundo */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Fica atrás de tudo */
    pointer-events: none;
}

/* ==========================================================================
   2. TIPOGRAFIA
   ========================================================================== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-gray); margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }

/* Títulos de Seção */
.section-header {
    margin-bottom: 60px;
    max-width: 600px;
}
.section-header .subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* ==========================================================================
   3. HEADER E NAVEGAÇÃO
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Efeito Glassmorphism */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-nav {
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    color: var(--primary);
}

.btn-nav:hover {
    background: var(--primary);
    color: var(--text-light);
}
.btn-nav::after { display: none; } /* Remove sublinhado do botão */

.mobile-menu-icon {
    display: none; /* Escondido em Desktop */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* ==========================================================================
   4. COMPONENTES (BOTÕES)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i { margin-left: 8px; }

/* Botão Primário (Rosa) */
.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(255, 41, 90, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 41, 90, 0.5);
}

/* Botão Outline (Transparente) */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    margin-top: 40px;
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* ==========================================================================
   5. SEÇÃO HERO
   ========================================================================== */
#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-visual {
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Cubo Digital (Elemento Abstrato) */
.digital-cube {
    width: 200px;
    height: 200px;
    background: rgba(255, 41, 90, 0.1);
    border: 1px solid var(--primary);
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 10s infinite linear;
}

.digital-cube::before, .digital-cube::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border: 1px solid var(--primary);
    top: 0; left: 0;
}

.digital-cube::before { transform: translateZ(20px); border-color: rgba(255, 255, 255, 0.3); }
.digital-cube::after { transform: translateZ(-20px); border-color: rgba(255, 255, 255, 0.3); }

@keyframes rotate-cube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin-top: 10px;
}

/* ==========================================================================
   6. SEÇÃO SERVIÇOS
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* Efeito de borda brilhante no hover */
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 41, 90, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-list li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* ==========================================================================
   7. SEÇÃO PORTFÓLIO
   ========================================================================== */
.bg-light {
    background-color: #ffffff;
    color: var(--bg-dark);
}

/* Ajuste para texto escuro no fundo branco */
.dark-text h2, .dark-text .subtitle {
    color: var(--bg-dark);
}
.dark-text .subtitle {
    color: var(--primary); /* Mantém destaque rosa */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas fixas em desktop */
    gap: 20px;
}

.project-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.project-item:hover .img-placeholder {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 23, 0.9);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content h4 { color: var(--text-light); margin-bottom: 5px; }
.overlay-content p { color: var(--primary); font-size: 0.9rem; margin-bottom: 15px; }

.btn-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}

.center-btn { text-align: center; margin-top: 20px; }

/* ==========================================================================
   8. DEPOIMENTOS & CTA
   ========================================================================== */
.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-left: 4px solid var(--primary);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-avatar {
    width: 50px; height: 50px;
    background-color: #333;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--primary);
}

.author-info h5 { margin: 0; font-size: 1rem; }
.author-info span { font-size: 0.85rem; color: var(--primary); }

.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(5, 5, 23, 0.8), rgba(5, 5, 23, 0.9)), 
                url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAwIDAgTDAgMTAwIEwxMDAgMTAwIFoiIGZpbGw9IiNmZjI5NWEiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
    /* O background acima cria um padrão sutil */
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
#main-footer {
    background: #02020c;
    padding: 80px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

/* ==========================================================================
   10. ANIMAÇÕES DE CONSTRUÇÃO (GLITCH)
   ========================================================================== */
/* Estado inicial do elemento (invisível/desmontado) */
.construct-element {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

/* --- CORREÇÃO DA TREMEDEIRA --- */

/* Estado Ativo (adicionado via JS) */
.construct-element.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    /* Removemos o clip-path agressivo e deixamos apenas uma entrada suave com leve distorção */
    animation: stable-entry 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Nova animação estável */
@keyframes stable-entry {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    50% {
        opacity: 1;
        /* Um leve pulo para dar a sensação de "encaixe" digital */
        transform: translateY(-5px) scale(1.02); 
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ==========================================================================
   11. RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .mobile-menu-icon { display: block; }

    .desktop-nav {
        position: fixed;
        top: var(--header-height);
        right: -100%; /* Escondido à direita */
        width: 70%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        padding: 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 41, 90, 0.2);
    }

    .desktop-nav.active { right: 0; } /* Classe que o JS vai adicionar */

    .nav-list { flex-direction: column; align-items: flex-start; }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .hero-text p { margin: 0 auto 30px; }

    .hero-visual { display: none; /* Remove o cubo no mobile para ganhar espaço */ }

    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 coluna no mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links { justify-content: center; margin-top: 20px; }
}

/* ==========================================================================
   SCROLL INTERACTIVE: DIGITAL DROP
   ========================================================================== */

.scroll-trigger {
    position: absolute;
    bottom: 0; /* Grudado na parte inferior para conectar com a px seção */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 10;
    height: 120px; /* Altura da trilha */
    cursor: pointer;
    overflow: hidden; /* Para conter a animação de entrada */
}

/* A Trilha Vertical (O Fio) */
.scroll-track {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Fio apagado */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* A Gota de Energia (O Movimento) */
.energy-drop {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%; /* A gota é comprida */
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    animation: drop-flow 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0.8;
}

@keyframes drop-flow {
    0% { top: -50%; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Texto "EXPLORE" que pulsa */
.scroll-text-wrapper {
    margin-top: -100px; /* Posiciona o texto no topo da linha */
    margin-bottom: 15px;
    background: var(--bg-dark); /* Fundo para ler sobre a linha se precisar */
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 2;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-gray);
    text-transform: uppercase;
    transition: color 0.3s ease;
    animation: text-pulse 3s infinite;
}

@keyframes text-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(255, 41, 90, 0.3); }
}

/* --- INTERAÇÃO: HOVER (O Puxão Magnético) --- */
.scroll-trigger:hover .scroll-track {
    height: 140%; /* A linha estica como se fosse elástica */
    background: rgba(255, 41, 90, 0.2);
    width: 4px; /* Fica mais grossa */
}

.scroll-trigger:hover .energy-drop {
    animation-duration: 1s; /* Acelera a energia */
    background: linear-gradient(to bottom, transparent, #fff, var(--primary), transparent);
}

.scroll-trigger:hover .scroll-text {
    color: var(--primary);
    letter-spacing: 5px; /* Texto expande */
}

/* Efeito de Glitch no Hover (Tremor Digital) */
.scroll-trigger:hover {
    animation: scroll-glitch 0.3s infinite;
}

@keyframes scroll-glitch {
    0% { transform: translateX(-50%) skew(0deg); }
    20% { transform: translateX(-51%) skew(-2deg); }
    40% { transform: translateX(-49%) skew(2deg); }
    60% { transform: translateX(-50%) skew(0deg); }
    80% { transform: translateX(-50.5%) skew(1deg); }
    100% { transform: translateX(-50%) skew(0deg); }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .scroll-trigger { height: 80px; bottom: 10px; }
    .scroll-text-wrapper { display: none; /* Remove texto no mobile para limpar */ }
    .scroll-track { width: 3px; background: rgba(255, 255, 255, 0.15); }
}

/* ==========================================================================
   PORTFOLIO 2.0 (REVAMPED)
   ========================================================================== */

/* Cabeçalho com Typewriter */
.portfolio-header {
    margin-bottom: 60px;
}

.section-title {
    color: var(--bg-dark);
    opacity: 0;
    animation: fade-slide-in 1s forwards;
}

@keyframes fade-slide-in {
    from { opacity: 0; transform: translateX(-20px); letter-spacing: -2px; }
    to { opacity: 1; transform: translateX(0); letter-spacing: normal; }
}

/* CORREÇÃO TYPEWRITER (SEM CURSOR, APENAS TEXTO APARECENDO) */
.typewriter-wrapper {
    display: inline-block;
    /* Garante que o bloco se ajuste ao tamanho do conteúdo */
    vertical-align: bottom; 
}

.typewriter-text {
    color: var(--primary); /* Rosa Choque */
    font-family: 'Courier New', monospace; /* Fonte técnica */
    font-weight: 600;
    white-space: nowrap; /* Impede que o texto quebre linha */
    overflow: hidden; /* Esconde o texto que ainda não "apareceu" */
    width: 0; /* Começa invisível (largura zero) */
    
    /* A mágica acontece aqui: Animação de largura de 0 a 100% */
    animation: reveal-text 3s steps(60, end) forwards; 
    
    /* Removemos o border-right para não ter o cursor piscando */
    border-right: none; 
}

@keyframes reveal-text {
    from { width: 0; }
    to { width: 100%; }
}

/* Ajuste Mobile: Mostra o texto direto, sem animação, para não quebrar layout */
@media (max-width: 768px) {
    .typewriter-text {
        width: 100%;
        white-space: normal;
        animation: none;
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--bg-dark); }
}

/* GRID E CARDS */
.project-card {
    height: 400px;
    position: relative;
    perspective: 1000px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

/* Hover: Parallax na Imagem */
.project-card:hover .card-image {
    transform: scale(1.1) translateY(-10px);
}

/* Overlay Azul Escuro */
.card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 5, 23, 0.85); /* Azul escuro com opacidade */
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

/* Conteúdo do Card */
.project-tags {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s ease 0.1s;
}

.project-title {
    color: #fff;
    font-size: 1.8rem;
    margin: 5px 0 20px;
    transform: translateX(-30px);
    opacity: 0;
    transition: 0.4s ease 0.2s;
}

.project-link {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s ease 0.3s;
}

/* Hover States */
.project-card:hover .project-tags,
.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-title {
    transform: translateX(0);
    opacity: 1;
}

/* Ícone Seta Desenhada */
.arrow-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50; /* Escondido inicialmente */
    transition: stroke-dashoffset 0.6s ease 0.4s;
}

.project-card:hover .arrow-icon {
    stroke-dashoffset: 0; /* Desenha a linha */
}

/* BOTÃO MAGNÉTICO */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 40px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, background 0.3s;
    z-index: 1;
}

/* Linha de contorno animada (Hover) */
.btn-border-anim {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: 0.3s;
    pointer-events: none;
}

.magnetic-btn:hover .btn-border-anim {
    border-color: var(--bg-dark);
    transform: scale(1.1);
    opacity: 0;
    animation: pulse-border 1s infinite;
}

@keyframes pulse-border {
    0% { transform: scale(1); opacity: 1; border-color: var(--bg-dark); }
    100% { transform: scale(1.2); opacity: 0; border-color: var(--primary); }
}

/* Active State */
.magnetic-btn:active {
    transform: scale(0.95);
}

/* Responsividade */
@media (max-width: 768px) {
    .project-card { height: 300px; }
    .typewriter-text { white-space: normal; border: none; animation: none; } /* Remove typewriter no mobile */
}

/* ==========================================================================
   BOTÃO TECH EXPLODE (SEM MOUSE SEGUE)
   ========================================================================== */

.tech-explode-btn {
    position: relative;
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary); /* Fundo Rosa Choque Base */
    border-radius: 30px; /* Bordas arredondadas suaves */
    text-decoration: none;
    overflow: hidden; /* Contém a "explosão" */
    transition: all 0.4s ease;
    z-index: 1;
    /* Sombra inicial suave */
    box-shadow: 0 5px 15px rgba(255, 41, 90, 0.3);
}

/* Texto do Botão */
.tech-explode-btn .btn-content {
    position: relative;
    color: #ffffff;
    font-family: var(--font-heading); /* Fonte futurista */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    transition: all 0.3s ease;
    display: block;
}

/* --- ANIMAÇÃO DE HOVER --- */

/* 1. Fundo: Gradiente animado */
.tech-explode-btn:hover {
    /* Gradiente sutil do rosa para um rosa mais claro/brilhante */
    background: linear-gradient(135deg, #ff295a, #ff5c8d);
    box-shadow: 0 0 25px rgba(255, 41, 90, 0.6);
    transform: translateY(-2px); /* Leve subida */
}

/* 2. Borda Azul desenhando (Linha Contínua) */
.border-draw {
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    border-radius: 28px;
    border: 2px solid #050517; /* Azul Escuro */
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 4;
}

.tech-explode-btn:hover .border-draw {
    opacity: 1;
    transform: scale(1); /* Borda aparece e se encaixa */
    /* Simulando desenho com clip-path seria complexo em borda arredondada, 
       então usamos escala + fade que é mais fluido e elegante */
}

/* 3. Explosão Digital (Partículas/Anéis) */
.explosion-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
    z-index: 0;
    pointer-events: none;
}

.tech-explode-btn:hover .explosion-ring {
    width: 300px; /* Expande além do botão */
    height: 300px;
    opacity: 0; /* Desaparece enquanto expande (dissipar) */
}

/* 4. Texto "Reescrevendo" (Efeito Glitch/Blur Rápido) */
.tech-explode-btn:hover .btn-content {
    animation: text-rewrite 0.4s ease forwards;
}

@keyframes text-rewrite {
    0% { opacity: 1; letter-spacing: 1px; filter: blur(0); }
    50% { opacity: 0.7; letter-spacing: 3px; filter: blur(2px); color: #050517; } /* Pisca azul escuro */
    100% { opacity: 1; letter-spacing: 1px; filter: blur(0); color: #fff; }
}

/* --- ACTIVE (CLIQUE) --- */
.tech-explode-btn:active {
    transform: scale(0.95); /* Compressão */
    background: #d61a45; /* Rosa mais escuro */
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .tech-explode-btn {
        width: 100%; /* Botão full width no mobile fica melhor */
        text-align: center;
    }
    
    .tech-explode-btn:hover .btn-content {
        letter-spacing: 1px; /* Remove glitch complexo no mobile */
        animation: none;
    }
    
    .tech-explode-btn:hover .explosion-ring {
        display: none; /* Remove explosão pesada no mobile */
    }
}

/* ==========================================================================
   BOTÃO CINEMATOGRÁFICO (INTER STYLE)
   ========================================================================== */

.cinematic-btn {
    position: relative;
    display: block; /* Importante para controlar largura/altura */
    width: 320px; /* Largura fixa para conter a animação */
    height: 64px;
    background: var(--primary);
    border-radius: 32px;
    overflow: hidden; /* Máscara essencial para o efeito */
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 41, 90, 0.3);
    transition: transform 0.2s ease, box-shadow 0.4s ease, background 0.4s;
    cursor: pointer;
}

/* Camadas (Layers) */
.btn-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1); /* Easing "cinematográfico" */
}

/* --- ESTADO INICIAL: TEXTO --- */
.text-layer {
    transform: translateY(0);
    opacity: 1;
    gap: 10px;
}

.btn-label {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-icon-arrow {
    color: #fff;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

/* --- ESTADO INICIAL: VISUAL (CENA) --- */
.visual-layer {
    transform: translateY(100%); /* Escondido embaixo */
    opacity: 0;
    background: var(--bg-dark); /* Fundo muda para Azul Escuro no hover */
}

/* --- ANIMAÇÃO DE HOVER --- */

/* 1. Container do Botão */
.cinematic-btn:hover {
    box-shadow: 0 10px 30px rgba(5, 5, 23, 0.5); /* Sombra azulada */
    transform: translateY(-2px);
}

/* 2. Texto Sobe e Desaparece (Blur de velocidade) */
.cinematic-btn:hover .text-layer {
    transform: translateY(-100%);
    opacity: 0;
    filter: blur(4px);
}

/* 3. Visual Sobe e Aparece */
.cinematic-btn:hover .visual-layer {
    transform: translateY(0);
    opacity: 1;
}

/* --- CENA: MINI CARDS & SCANNER --- */

/* O Container dos Cards */
.mini-cards-track {
    display: flex;
    gap: 10px;
    position: absolute;
    left: 50%; /* Começa do centro */
    transform: translateX(-50%);
}

/* Os Cards (Projetos) */
.mini-card {
    width: 40px; height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 41, 90, 0.5); /* Borda rosa */
    border-radius: 4px;
    opacity: 0; /* Invisíveis até o hover */
}

/* Animação dos Cards no Hover (Eles vêm da direita) */
.cinematic-btn:hover .mini-card {
    animation: cards-slide 1.5s infinite linear;
}

/* Delay para cada card parecer um trem */
.cinematic-btn:hover .mini-card:nth-child(1) { animation-delay: 0s; }
.cinematic-btn:hover .mini-card:nth-child(2) { animation-delay: 0.5s; }
.cinematic-btn:hover .mini-card:nth-child(3) { animation-delay: 1s; }

@keyframes cards-slide {
    0% { transform: translateX(60px) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    50% { transform: translateX(0) scale(1); border-color: #fff; background: var(--primary); } /* Destaque no centro */
    80% { opacity: 1; }
    100% { transform: translateX(-60px) scale(0.8); opacity: 0; }
}

/* O Scanner (Lupa) */
.scanner-icon {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 24px;
    height: 24px;
    /* Fica parado no centro enquanto os cards passam atrás */
}

/* --- ACTIVE (CLIQUE) --- */
.cinematic-btn:active {
    transform: scale(0.96);
}
.cinematic-btn:active .visual-layer {
    background: #000; /* Pisca preto */
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .cinematic-btn {
        width: 100%; /* Full width no mobile */
    }
    
    /* Simplifica mobile: Texto troca por ícone apenas */
    .mini-cards-track { display: none; } /* Remove animação pesada */
    
    .cinematic-btn:hover .visual-layer {
        background: var(--primary); /* Mantém rosa no mobile */
    }
    
    .scanner-icon {
        transform: scale(1.5); /* Ícone maior no mobile */
    }
}

/* ==========================================================================
   BOTÃO REATOR QUANTUM (HIGH TECH)
   ========================================================================== */

.reactor-btn {
    position: relative;
    display: block;
    width: 300px;
    height: 64px;
    margin: 0 auto;
    background: var(--primary); /* Rosa Choque Base */
    border-radius: 32px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 41, 90, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

/* Camadas Comuns */
.btn-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efeito elástico */
}

/* --- ESTADO 1: TEXTO --- */
.text-layer {
    opacity: 1;
    transform: scale(1);
}

.btn-label {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* --- ESTADO 2: REATOR (HOVER) --- */
.reactor-layer {
    opacity: 0;
    transform: scale(0.5); /* Começa pequeno e explode */
    background: #02020c; /* Fundo quase preto para destacar o neon */
}

/* --- INTERAÇÃO HOVER --- */

/* Fundo do botão escurece */
.reactor-btn:hover {
    background: #02020c;
    box-shadow: 0 0 30px rgba(255, 41, 90, 0.6), inset 0 0 20px rgba(5, 5, 23, 1);
    transform: translateY(-3px);
}

/* Texto some explodindo */
.reactor-btn:hover .text-layer {
    opacity: 0;
    transform: scale(1.5); /* Texto "explode" para fora */
    filter: blur(10px);
}

/* Reator aparece */
.reactor-btn:hover .reactor-layer {
    opacity: 1;
    transform: scale(1);
}

/* --- COMPONENTES DO REATOR --- */

.reactor-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Configuração base dos anéis */
.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

/* Anel Externo (Lento, Azul) */
.ring-outer {
    width: 50px;
    height: 50px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid var(--primary);
    animation: spin 2s infinite linear;
    box-shadow: 0 0 10px rgba(255, 41, 90, 0.5);
}

/* Anel Interno (Rápido, Rosa Choque) */
.ring-inner {
    width: 30px;
    height: 30px;
    border-left: 2px solid #fff;
    border-right: 2px solid var(--primary);
    animation: spin-reverse 0.8s infinite linear;
}

/* Núcleo de Energia (Pulsante) */
.core-energy {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 30px var(--primary);
    animation: pulse-core 0.5s infinite alternate;
    z-index: 2;
}

/* Texto "ACCESS" ao lado */
.reactor-status {
    position: absolute;
    right: 40px; /* Posição ajustada */
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    animation: blink-status 0.2s infinite;
    opacity: 0.8;
    text-shadow: 0 0 5px var(--primary);
}

/* --- ANIMAÇÕES KEYFRAMES --- */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse-core {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 20px #fff, 0 0 40px var(--primary); }
}

@keyframes blink-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- ACTIVE (CLIQUE) --- */
.reactor-btn:active {
    transform: scale(0.95);
}

/* Efeito de "Warp" no clique: o reator acelera e brilha branco */
.reactor-btn:active .ring-outer,
.reactor-btn:active .ring-inner {
    border-color: #fff;
    animation-duration: 0.1s; /* Velocidade insana */
}
.reactor-btn:active .core-energy {
    box-shadow: 0 0 50px #fff;
    transform: scale(2);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .reactor-btn { width: 100%; }
    .reactor-status { display: none; } /* Esconde o texto ACCESS no mobile para limpar */
}

/* ==========================================================================
   CARD "EM BREVE" & MODAL
   ========================================================================== */

/* Estilo especial para o card Em Breve */
.coming-soon-card .card-image {
    filter: brightness(0.6) contrast(1.2) hue-rotate(10deg); /* Deixa mais dark */
}

.coming-soon-card:hover .card-image {
    filter: brightness(0.4);
}

/* Borda brilhante no Hover */
.coming-soon-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid transparent;
    border-radius: 8px;
    pointer-events: none;
    transition: all 0.4s ease;
}

.coming-soon-card:hover::after {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 41, 90, 0.2);
}

/* Texto "Em breve" pulsando */
.coming-soon-wrapper { margin-bottom: 5px; }

.coming-soon-text {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.7; text-shadow: 0 0 5px rgba(255, 41, 90, 0.3); }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(255, 41, 90, 0.8); }
}

/* Ícone de Foguete */
.rocket-icon {
    width: 20px; height: 20px;
    margin-left: 10px;
    stroke: currentColor;
    transition: transform 0.4s ease;
}

.coming-soon-card:hover .rocket-icon {
    transform: translateY(-3px) rotate(15deg); /* Decolagem leve */
}

/* Partículas de fundo no card (CSS Puro) */
.card-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 41, 90, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 41, 90, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.coming-soon-card:hover .card-particles {
    opacity: 1;
    animation: particle-drift 10s linear infinite;
}

@keyframes particle-drift {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

/* ESTILOS DO MODAL (POP-UP) */
.teaser-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(5, 5, 23, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teaser-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #0a0a2e, #050517);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 41, 90, 0.3);
    text-align: center;
    position: relative;
    max-width: 450px;
    margin: 20px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.teaser-modal.show .modal-content { transform: scale(1); }

.close-modal {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
}
.close-modal:hover { color: var(--primary); }

.rocket-icon-large {
    width: 60px; height: 60px;
    margin-bottom: 20px;
    animation: rocket-bounce 2s infinite ease-in-out;
}

@keyframes rocket-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   CORREÇÃO BOTÃO & MODAL CLEAN
   ========================================================================== */

/* --- 1. ESTILO DO BOTÃO "VER PREVIEW" (NO CARD) --- */
.crm-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.crm-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 41, 90, 0.4);
    transform: translateY(-2px);
}

.crm-btn i { font-size: 1.1rem; }

/* --- 2. MODAL CLEAN (MINIMALISTA) --- */
.crm-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 2, 10, 0.9); /* Fundo bem escuro */
    backdrop-filter: blur(10px); /* Blur forte no fundo */
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crm-modal-overlay.active { display: flex; opacity: 1; }

.clean-modal-box {
    background: #050517;
    border: 1px solid rgba(255, 41, 90, 0.3);
    padding: 60px 40px;
    border-radius: 8px;
    width: 90%; max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crm-modal-overlay.active .clean-modal-box { transform: scale(1); }

/* Título do Modal */
.modal-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #a8a8b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Texto Digitado */
.terminal-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary); /* Rosa Choque */
    line-height: 1.6;
    min-height: 80px; /* Altura fixa para não pular */
}

/* Cursor Piscando */
.cursor {
    display: inline-block;
    width: 10px; height: 20px;
    background: var(--primary);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Botão Fechar (X) */
.close-crm-modal {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: #666;
    font-size: 2rem; cursor: pointer; transition: 0.3s;
}
.close-crm-modal:hover { color: var(--primary); transform: rotate(90deg); }

/* ==========================================================================
   CARD "LOCKED" (ESTILO ÁREA RESTRITA)
   ========================================================================== */

/* --- 1. BACKGROUND COM LISTRAS DE AVISO --- */
.crm-card .card-inner {
    background: #050517;
    overflow: hidden;
    position: relative;
}

.locked-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.4;
    transition: 0.5s ease;
}

/* Listras Diagonais (Estilo Área Restrita) */
.warning-stripes {
    width: 200%; height: 200%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 41, 90, 0.05),
        rgba(255, 41, 90, 0.05) 10px,
        transparent 10px,
        transparent 20px
    );
    position: absolute;
    top: -50%; left: -50%;
    animation: stripes-move 20s linear infinite;
}

@keyframes stripes-move { to { transform: translateY(50px); } }

/* Cadeado Gigante no Fundo */
.huge-lock-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* Para não atrapalhar o clique */
}

/* Hover no Card: Cadeado brilha e destranca levemente */
.crm-card:hover .huge-lock-icon {
    color: rgba(255, 41, 90, 0.1);
    transform: translate(-50%, -50%) scale(1.1) rotate(-10deg);
    text-shadow: 0 0 30px rgba(255, 41, 90, 0.2);
}
.crm-card:hover .locked-bg { opacity: 0.8; }

/* --- 2. BORDAS QUE SE DESENHAM (HOVER) --- */
.border-line {
    position: absolute;
    background: var(--primary);
    transition: all 0.4s ease;
    z-index: 5;
}
.line-top { top: 0; left: 0; width: 0; height: 2px; }
.line-right { top: 0; right: 0; width: 2px; height: 0; transition-delay: 0.1s; }
.line-bottom { bottom: 0; right: 0; width: 0; height: 2px; transition-delay: 0.2s; }
.line-left { bottom: 0; left: 0; width: 2px; height: 0; transition-delay: 0.3s; }

.crm-card:hover .line-top { width: 100%; }
.crm-card:hover .line-right { height: 100%; }
.crm-card:hover .line-bottom { width: 100%; }
.crm-card:hover .line-left { height: 100%; }

/* --- 3. CORREÇÃO DO BADGE "EM BREVE" (SLIDE UP) --- */
.status-badge-wrapper {
    height: 25px; /* Altura fixa */
    overflow: hidden; /* Esconde o que sai da caixa */
    margin-bottom: 10px;
    display: inline-block;
}

.status-badge-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Texto e Ícone ocupam o mesmo espaço verticalmente */
.status-text, .status-icon {
    height: 25px;
    display: flex;
    align-items: center;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* O Ícone fica "embaixo" do texto inicialmente */
.status-icon { justify-content: flex-start; }

/* No Hover, deslizamos tudo para cima */
.crm-card:hover .status-badge-inner {
    transform: translateY(-25px);
}

/* ==========================================================================
   DEPOIMENTOS (TECH CAROUSEL)
   ========================================================================== */

#testimonials {
    background: var(--bg-dark);
    overflow: hidden; /* Essencial para o carrossel não vazar */
    position: relative;
}

/* Centralizar Header */
.text-center { text-align: center; margin: 0 auto 60px; }

.typing-effect {
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blink-caret 0.75s step-end infinite;
    padding-right: 5px;
}

/* Wrapper do Carrossel */
.testimonials-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

/* O Trilho que se move */
.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Ajuste fino para alinhar o primeiro card ao centro inicialmente será feito via JS */
}

/* --- CARD DE DEPOIMENTO --- */
.testimonial-card {
    min-width: 60%; /* Desktop: Card ocupa 60% da largura do container */
    margin: 0 20px;
    background: #0a0a2e;
    padding: 50px 40px;
    border-radius: 12px;
    position: relative;
    opacity: 0.4; /* Inativos ficam transparentes */
    transform: scale(0.85); /* Inativos ficam menores */
    filter: blur(3px); /* Inativos ficam desfocados */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Estado ATIVO (Card Central) */
.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    border-color: rgba(255, 41, 90, 0.3);
    background: radial-gradient(circle at top right, #0e0e35, #0a0a2e);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(255, 41, 90, 0.1);
    z-index: 10;
}

/* Borda Animada (Desenho) */
.card-decor {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 12px;
    pointer-events: none;
}

.testimonial-card.active .card-decor::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
}

/* Ícone de Aspas Animado */
.quote-icon {
    width: 40px; height: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.5;
    transition: 0.3s;
}
.testimonial-card.active .quote-icon {
    opacity: 1;
    transform: translateY(-5px);
}

/* Texto do Depoimento */
.t-text {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
}

/* Efeito de "Digitação/Reveal" no texto ao ativar */
.testimonial-card.active .t-text {
    animation: fade-up-text 0.8s ease forwards;
}

@keyframes fade-up-text {
    from { opacity: 0; transform: translateY(10px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Autor */
.t-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.t-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background-color: #333;
    background-size: cover;
    margin-right: 15px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.testimonial-card.active .t-avatar {
    border-color: var(--primary);
}

.t-info h4 { margin: 0; font-size: 1rem; color: #fff; }
.t-info span { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

/* Controles (Setas) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5, 5, 23, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}

.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 41, 90, 0.4);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* Indicadores (Dots) */
.indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 8px; height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--primary);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .testimonials-wrapper { max-width: 100%; }
    .testimonial-card {
        min-width: 85%; /* Mobile: Card ocupa quase toda a tela */
        margin: 0 10px;
        padding: 30px 20px;
    }
    .nav-btn { display: none; /* Esconde setas no mobile (usa swipe) */ }
    .prev-btn, .next-btn { display: none; }
}

/* ==========================================================================
   HERO VISUAL: TECH CORE (INTERATIVIDADE TOTAL)
   ========================================================================== */

/* Container da Animação */
.tech-core-wrapper {
    position: relative;
    width: 320px; /* Um pouco maior para acomodar as interações */
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    /* Quando o mouse entra na área geral, tudo desacelera um pouco (efeito "bullet time") */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tech-core-wrapper:hover {
   transform: scale(1.05); /* Leve zoom geral */
}

/* --- 1. O NÚCLEO (ESFERA CENTRAL) --- */
.core-sphere {
    width: 80px; height: 80px;
    background: radial-gradient(circle at 30% 30%, #fff, var(--primary));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary), 0 0 80px rgba(255, 41, 90, 0.4), inset 0 0 20px #fff;
    animation: core-pulse 2.5s infinite ease-in-out alternate;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

/* Onda de Choque (Nova Animação) */
.core-shockwave {
    position: absolute; top: 50%; left: 50%;
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    z-index: 9;
    pointer-events: none;
}

@keyframes core-pulse {
    0% { transform: scale(1); box-shadow: 0 0 30px var(--primary), inset 0 0 10px #fff; filter: brightness(1); }
    100% { transform: scale(1.15); box-shadow: 0 0 70px var(--primary), 0 0 120px var(--primary), inset 0 0 30px #fff; filter: brightness(1.3); }
}

@keyframes shockwave-emit {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; border-width: 4px; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; border-width: 1px; }
}

/* Interação Direta na Esfera */
.core-sphere:hover {
    transform: scale(1.2);
    box-shadow: 0 0 100px #fff, 0 0 150px var(--primary);
    background: radial-gradient(circle at 50% 50%, #fff, var(--primary));
    animation-duration: 1s; /* Pulsa mais rápido */
    cursor: pointer;
}
/* Dispara onda de choque no hover */
.core-sphere:hover + .core-shockwave {
    animation: shockwave-emit 1s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}


/* --- 2. ANÉIS ORBITAIS REATIVOS --- */
.orbit-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 41, 90, 0.05);
    transition: all 0.5s ease;
    pointer-events: auto; /* Garante que o mouse detecta os anéis */
}

/* Hover Individual nos Anéis */
.orbit-ring:hover {
    border-color: #fff;
    box-shadow: 0 0 30px var(--primary), inset 0 0 10px var(--primary);
    border-width: 2px;
}

.ring-1 { width: 200px; height: 200px; border-top: 2px solid var(--primary); animation: spin-3d 8s linear infinite; }
.ring-2 { width: 260px; height: 260px; border-right: 2px solid rgba(255, 255, 255, 0.5); animation: spin-3d-reverse 12s linear infinite; }
.ring-3 { width: 320px; height: 320px; border-bottom: 2px solid var(--primary); opacity: 0.3; animation: spin-flat 15s linear infinite; }


/* --- 3. CARDS FLUTUANTES INTERATIVOS --- */
.float-card {
    position: absolute;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 20; cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efeito elástico */
}

/* O Ícone dentro do card */
.card-icon-wrap {
    width: 50px; height: 50px;
    background: rgba(5, 5, 23, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 41, 90, 0.3);
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

/* A Etiqueta (Label) - Escondida inicialmente */
.card-label {
    position: absolute;
    bottom: -30px; /* Fica abaixo do ícone */
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(-10px) scale(0.8); /* Começa um pouco acima e pequena */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 5px 15px rgba(255, 41, 90, 0.4);
    white-space: nowrap;
    pointer-events: none; /* Não interfere no hover do pai */
}

/* --- POSICIONAMENTO E ANIMAÇÃO DE FLUTUAÇÃO --- */
.card-code { top: 0; right: 20px; color: var(--primary); animation: float-1 6s ease-in-out infinite; }
.card-chart { bottom: 40px; right: 0; color: #fff; animation: float-2 7s ease-in-out infinite 1s; }
.card-ui { top: 60px; left: -20px; color: var(--primary); animation: float-3 8s ease-in-out infinite 0.5s; }


/* --- ESTADOS DE HOVER (INTERAÇÃO MÁXIMA) --- */

/* Quando passa o mouse sobre QUALQUER card: */
.float-card:hover {
    z-index: 30; /* Traz para frente de tudo */
    animation-play-state: paused; /* PARA de flutuar */
}

/* Efeito no Ícone */
.float-card:hover .card-icon-wrap {
    transform: scale(1.3) rotate(-5deg); /* Cresce e gira um pouco */
    background: var(--primary); /* Fica Rosa Choque sólido */
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary); /* Brilho intenso */
}

/* Efeito na Label (Aparece) */
.float-card:hover .card-label {
    opacity: 1;
    transform: translateY(5px) scale(1); /* Desce para a posição correta e tamanho normal */
}


/* --- SINERGIA: O NÚCLEO REAGE AOS ÍCONES --- */
/* Esta é a parte mais legal: se qualquer card estiver em hover, o núcleo central reage */

/* Se hover no Code, o núcleo brilha mais intenso */
.tech-core-wrapper:has(.card-code:hover) .core-sphere {
    transform: scale(1.1);
    box-shadow: 0 0 60px var(--primary), inset 0 0 30px #fff;
    filter: hue-rotate(-10deg) brightness(1.5);
}
/* Se hover no Chart, o núcleo fica branco */
.tech-core-wrapper:has(.card-chart:hover) .core-sphere {
    transform: scale(1.1) rotate(10deg);
    background: radial-gradient(circle at 50% 50%, #fff, #ccc);
    box-shadow: 0 0 80px #fff;
}
/* Se hover no UI, o núcleo fica azulado/roxo */
.tech-core-wrapper:has(.card-ui:hover) .core-sphere {
    transform: scale(1.1) rotate(-10deg);
    filter: hue-rotate(30deg) brightness(1.2);
    box-shadow: 0 0 60px #d61aff; /* Roxo */
}


/* --- ANIMAÇÕES (KEYFRAMES) --- */
@keyframes spin-3d { 0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); } }
@keyframes spin-3d-reverse { 0% { transform: rotateX(-60deg) rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateX(-60deg) rotateY(-360deg) rotateZ(-360deg); } }
@keyframes spin-flat { 0% { transform: rotateX(80deg) rotateZ(0deg); } 100% { transform: rotateX(80deg) rotateZ(360deg); } }

/* Flutuações Suaves */
@keyframes float-1 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes float-2 { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(15px) translateX(-10px); } }
@keyframes float-3 { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-15px) scale(1.1) rotate(-5deg); } }


/* Responsividade */
@media (max-width: 768px) {
    .tech-core-wrapper { transform: scale(0.7); }
    /* No mobile, o hover pode ser estranho, então simplificamos um pouco */
    .float-card:hover .card-icon-wrap { transform: scale(1.2); }
}

/* ==========================================================================
   LOADSCREEN PREMIUM (BALLYLABS)
   ========================================================================== */

/* Bloqueio de Scroll Inicial */
body.loading {
    overflow: hidden;
    height: 100vh;
}

/* Container Principal */
.loader-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #050517;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000), 
                visibility 0.6s ease;
}

/* Estado: Loader Finalizado (Fade Out) */
.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* --- LOGO ANIMADO --- */
.loader-logo-wrapper {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.loader-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(20px);
    animation: logo-construct 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.loader-logo .highlight { color: #ff295a; }

@keyframes logo-construct {
    to { opacity: 1; transform: translateY(0); }
}

/* Partículas Orbitais */
.loader-particles span {
    position: absolute;
    top: 50%; left: 50%;
    width: 4px; height: 4px;
    background: #ff295a;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff295a;
    opacity: 0;
}

.loader-particles span:nth-child(1) {
    animation: orbit-1 2s linear infinite;
}
.loader-particles span:nth-child(2) {
    animation: orbit-2 3s linear infinite reverse;
}
.loader-particles span:nth-child(3) {
    background: #fff;
    animation: orbit-3 1.5s linear infinite;
}

@keyframes orbit-1 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(60px); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(60px); opacity: 1; }
}
@keyframes orbit-2 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(80px); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(80px); opacity: 0.5; }
}
@keyframes orbit-3 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateY(50px); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateY(50px); opacity: 0.8; }
}

/* --- SLOGAN --- */
.loader-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #a8a8b3;
    height: 20px; /* Reserva espaço */
    margin-bottom: 30px;
    opacity: 0.8;
}

/* --- PROGRESSO (DESKTOP) - COM EFEITO LASER --- */
.loader-progress-container {
    width: 240px;
    height: 4px; /* Um pouco mais grossa */
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden; /* Mantém a barra dentro */
    position: relative;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.5);
}

/* --- SUBSTITUA APENAS ISTO NO CSS --- */
.loader-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    border-radius: 10px;
    position: relative;
    
    /* O SEGREDO: Animação CSS que roda sozinha */
    animation: auto-load 3.5s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
    
    /* Transição para quando o JS der o tiro final de 100% */
    transition: width 0.2s ease-out;
}

/* Ponta brilhante do laser */
.loader-progress-fill::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0;
    width: 10px; background: #fff; border-radius: 0 10px 10px 0;
    box-shadow: 0 0 20px #fff;
}

@keyframes auto-load {
    0% { width: 0%; }
    100% { width: 90%; } /* Vai até 90% e espera o site carregar */
}

/* --- PROGRESSO (MOBILE) --- */
.loader-circle-container {
    width: 60px; height: 60px;
    margin: 0 auto;
    display: none; /* Escondido por padrão */
    transform: rotate(-90deg);
}

.loader-circle-container svg { width: 100%; height: 100%; }

.circle-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 4; }
.circle-fg { 
    fill: none; 
    stroke: #ff295a; 
    stroke-width: 4; 
    stroke-dasharray: 283; /* 2 * PI * 45 */
    stroke-dashoffset: 283; /* Começa vazio */
    transition: stroke-dashoffset 0.2s linear;
    stroke-linecap: round;
}

.loader-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsividade */
@media (max-width: 768px) {
    .desktop-loader { display: none; }
    .loader-circle-container { display: block; }
    .loader-particles { display: none; /* Simplifica no mobile */ }
}

/* Acessibilidade (Reduced Motion) */
@media (prefers-reduced-motion: reduce) {
    .loader-logo { animation: none; opacity: 1; transform: none; }
    .loader-particles { display: none; }
    .loader-overlay { transition: opacity 0.3s ease; }
}

/* ==========================================================================
   BARRA DE PROGRESSO (CSS DRIVEN - INFALÍVEL)
   ========================================================================== */

.loader-progress-container {
    width: 260px;
    height: 6px; /* Altura visível */
    background: rgba(255, 255, 255, 0.1); /* Trilho cinza claro visível */
    margin: 25px auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loader-progress-fill {
    width: 0%; /* Começa zerado */
    height: 100%;
    background: var(--primary); /* Rosa Choque */
    border-radius: 10px;
    position: relative;
    
    /* EFEITO DE BRILHO NEON INTENSO */
    box-shadow: 
        0 0 10px var(--primary), 
        0 0 20px var(--primary),
        inset 0 1px 0 rgba(255,255,255,0.4);

    /* ANIMAÇÃO AUTOMÁTICA VIA CSS (Garante que mexe) */
    /* Vai de 0% a 90% em 3.5 segundos */
    animation: load-simulation 3.5s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
    
    /* Transição suave para quando o JS forçar o 100% */
    transition: width 0.3s ease-out;
}

/* Cabeça do Laser (Brilho na ponta) */
.loader-progress-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 10px;
    background: #fff;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 15px #fff, 0 0 30px var(--primary);
    z-index: 2;
}

/* A Mágica: Animação que roda sozinha sem depender de JS */
@keyframes load-simulation {
    0% { width: 0%; }
    30% { width: 40%; }  /* Rápido no começo */
    70% { width: 70%; }  /* Diminui o ritmo */
    100% { width: 90%; } /* Para em 90% esperando o site carregar */
}