/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --primary-bg: #0e172b;
    --secondary-bg: #111827;
    --neon-cyan: #00f2ff;
    --neon-blue: #0066ff;
    --text-light: #e2e8f0;
    --text-dim: #94a3b8;
    --border-color: #1e293b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    background-color: rgba(10, 14, 26, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: fixed; width: 100%; z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto;
}

nav .logo {
    font-size: 1.5rem; font-weight: 700; color: var(--text-light);
    text-decoration: none; letter-spacing: 1px;
}

nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav ul li a {
    color: var(--text-dim); text-decoration: none; font-weight: 500;
    font-size: 0.95rem; transition: color 0.3s ease; text-transform: uppercase;
}
nav ul li a:hover, nav ul li a.active {
    color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

/* --- HOME MAIN (Página Inicial) --- */
.home-main {
    flex-grow: 1; width: 100%; max-width: none; padding: 0; 
    margin-top: 0; 
    padding-top: 100px; /* Ajuste para não cortar o topo na home */
}

/* --- PÁGINAS DE APP (TELA CHEIA) - ATUALIZADO --- */
/* Esta configuração faz o iframe ocupar toda a largura e altura disponível */
main.app-container {
    width: 100%;
    max-width: 100%; /* Remove limites laterais */
    margin: 0;
    
    /* ALTERAÇÃO IMPORTANTE: Espaçamento interno superior para o cabeçalho fixo */
    padding-top: 110px; 
    
    /* Configuração Flex para esticar o iframe verticalmente */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ocupa a altura total da tela */
}

.app-container h1 {
    margin: 0;
    padding: 1rem;
    background-color: var(--secondary-bg);
    font-size: 1.2rem; /* Título mais discreto para dar foco ao app */
    text-align: center;
    color: var(--neon-cyan);
    border-bottom: 1px solid var(--border-color);
}

.app-container iframe {
    width: 100%;
    flex-grow: 1; /* Ocupa todo o espaço vertical restante até o rodapé */
    min-height: 85vh; /* Altura mínima garantida */
    border: none; /* Remove bordas para visual limpo */
    display: block;
    background-color: #fff; /* Fundo branco para o app carregar limpo */
}

/* --- SEÇÃO HERO (Index) --- */
.hero-section {
    position: relative; min-height: 90vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 2rem;
}

.hero-bg-tech {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background: radial-gradient(circle at 70% 30%, rgba(0, 102, 255, 0.25) 0%, transparent 60%),
                radial-gradient(circle at 30% 70%, rgba(0, 242, 255, 0.15) 0%, transparent 50%),
                linear-gradient(to bottom, #0a0e1a, #1a233a);
    background-size: cover; transition: opacity 0.1s ease-out;
}

.hero-content {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1200px; z-index: 2; gap: 2rem; padding-top: 2rem;
}

.hero-text { flex: 1; max-width: 600px; }
.hero-text h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 0.5rem; letter-spacing: -1px;
}
.neon-text { color: var(--neon-cyan); text-shadow: 0 0 15px var(--neon-cyan); }
.hero-text h2 {
    font-size: 1.8rem; font-weight: 400; color: var(--text-light); margin-bottom: 1.5rem; letter-spacing: 2px;
}
.hero-text p {
    font-size: 1.1rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 2.5rem;
}

.neon-button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 1rem 2rem; background: transparent;
    color: var(--neon-cyan); border: 2px solid var(--neon-cyan);
    text-decoration: none; border-radius: 50px; font-weight: 700;
    font-size: 1rem; letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2); transition: all 0.3s ease;
}
.neon-button:hover {
    background: var(--neon-cyan); color: var(--primary-bg);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6); transform: translateY(-3px);
}

/* --- ÁREA DA IMAGEM (TÉCNICA DE DUPLA IMAGEM) --- */
.hero-image-container {
    flex: 1; display: flex; justify-content: center; align-items: center; position: relative;
    min-height: 550px; 
}

.tech-sandwich-wrapper {
    position: relative; width: 400px; height: 400px;
    display: flex; justify-content: center; align-items: center;
}

.layer-back {
    position: absolute; top:0; left:0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 1;
}
.circle-bg-back {
    position: absolute; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.5) 0%, rgba(10, 14, 26, 1) 80%);
    border: 2px solid rgba(0, 242, 255, 0.4);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}
.ring-outer-glow {
    position: absolute; width: 420px; height: 420px; border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 102, 255, 0.5), inset 0 0 20px rgba(0, 242, 255, 0.2);
    opacity: 0.6;
}
.ring-dashed-back {
    position: absolute; width: 440px; height: 440px; border-radius: 50%;
    border: 3px dashed var(--neon-cyan); opacity: 0.6;
    mask-image: conic-gradient(from 0deg, transparent 0%, black 10%, black 30%, transparent 40%, black 50%, black 70%, transparent 80%, black 90%);
    -webkit-mask-image: conic-gradient(from 0deg, transparent 0%, black 10%, black 30%, transparent 40%, black 50%, black 70%, transparent 80%, black 90%);
    animation: spin-slow 30s linear infinite;
}

/* CORREÇÃO APLICADA AQUI: Ajuste de posicionamento da imagem */
.split-image {
    position: absolute;
    bottom: -30px; /* Alterado de 25px para -30px (desce a imagem) */
    left: 50%; 
    transform: translateX(-50%);
    height: 130%; /* Alterado de 140% para 130% (reduz levemente o zoom) */
    width: auto;
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* CAMADA 2: A Parte do Corpo */
.image-body-part {
    z-index: 2;
}

/* CAMADA 2.5: Gradiente de disfarce */
.body-clipper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; clip-path: circle(190px at center center);
}
.body-gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, var(--primary-bg) 95%);
    pointer-events: none;
}

/* CAMADA 3: Anel Frontal */
.layer-front-ring {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 3;
    clip-path: inset(50% 0 0 0);
    pointer-events: none;
}
.ring-dashed-front {
    position: absolute;
    width: 440px; height: 440px; 
    border-radius: 50%;
    border: 3px dashed var(--neon-cyan); opacity: 0.8;
    mask-image: conic-gradient(from 0deg, transparent 0%, black 10%, black 30%, transparent 40%, black 50%, black 70%, transparent 80%, black 90%);
    -webkit-mask-image: conic-gradient(from 0deg, transparent 0%, black 10%, black 30%, transparent 40%, black 50%, black 70%, transparent 80%, black 90%);
    animation: spin-slow 30s linear infinite;
}

/* CAMADA 4: A Parte da Cabeça */
.image-head-part {
    z-index: 4;
    clip-path: inset(0 0 45% 0);
    filter: drop-shadow(0 -5px 15px rgba(0,0,0,0.5));
}

.tech-sandwich-wrapper:hover .split-image {
    transform: translateX(-50%) translateY(-5px) scale(1.02);
}

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-fade-bottom {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to top, var(--primary-bg), transparent); z-index: 1;
}

/* --- SEÇÃO SERVIÇOS --- */
.services-neon-section {
    padding: 5rem 2rem; background-color: var(--primary-bg); position: relative; z-index: 5;
}
.section-title.neon-title {
    text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}
.cards-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.neon-card {
    background: rgba(17, 24, 39, 0.8); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 2.5rem; text-align: center;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.neon-card:hover {
    transform: translateY(-10px); border-color: var(--neon-cyan);
    box-shadow: 0 10px 40px -10px rgba(0, 242, 255, 0.3);
}
.card-icon {
    font-size: 3rem; color: var(--neon-blue); margin-bottom: 1.5rem; transition: 0.3s;
}
.neon-card:hover .card-icon {
    color: var(--neon-cyan); text-shadow: 0 0 15px var(--neon-cyan); transform: scale(1.1);
}
.neon-card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--text-light); }
.neon-card p { color: var(--text-dim); line-height: 1.5; }

/* --- OUTRAS SEÇÕES --- */
.about-integrated { padding: 5rem 2rem; background: var(--secondary-bg); border-top: 1px solid var(--border-color); }
.about-content-box { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content-box h2 { font-size: 2rem; margin-bottom: 2rem; color: var(--text-light); }
.about-content-box p { margin-bottom: 1.5rem; line-height: 1.8; color: var(--text-dim); }
.about-content-box strong { color: var(--neon-cyan); }

.projects-quick-links { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; text-align: center; }
.projects-quick-links h2 { margin-bottom: 2rem; font-size: 2rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.project-card {
    background-color: var(--secondary-bg); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 1.5rem; text-decoration: none; color: var(--text-light);
    transition: all 0.3s ease;
}
.project-card:hover { border-color: var(--neon-blue); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2); }
.project-card h3 { color: var(--neon-blue); font-size: 1.1rem; margin-bottom: 0.5rem; }

footer { background-color: var(--secondary-bg); border-top: 1px solid var(--border-color); text-align: center; padding: 2rem; font-size: 0.9rem; color: var(--text-dim); }
footer p { margin: 0.5rem 0; }
footer .footer-links a { color: var(--text-dim); text-decoration: none; transition: 0.3s; }
footer .footer-links a:hover { color: var(--neon-cyan); }

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    .hero-content { flex-direction: column-reverse; text-align: center; padding-top: 4rem; }
    .hero-text { margin-top: 2rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-image-container { min-height: auto; margin-bottom: 3rem; }
    
    /* Celular */
    .tech-sandwich-wrapper { width: 300px; height: 300px; }
    .circle-bg-back { width: 280px; height: 280px; }
    .ring-outer-glow { width: 300px; height: 300px; }
    .ring-dashed-back, .ring-dashed-front { width: 320px; height: 320px; }
    .body-clipper { clip-path: circle(140px at center center); }
}

@media (max-width: 768px) {
    nav { flex-direction: column; gap: 1rem; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    
    /* GARANTIA EXTRA PARA MOBILE NO CSS GERAL */
    main.app-container {
        padding-top: 160px; /* Garante que o menu quebrado em duas linhas não cubra o conteúdo */
    }
}
