/* --- 1. CONFIGURAÇÕES GERAIS E PALETA DE CORES --- */
:root {
    --bg-main: #020617; /* Azul profundo (Base) */
    --bg-secondary: #0f172a; 
    
    /* Cores da Identidade Techost */
    --primary-gradient: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    --accent-cyan: #00e0ff;
    --accent-purple: #7b42f6;
    
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-color);
    overflow-x: hidden;
}

/* --- 2. CABEÇALHO --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
}

.logo img {
    height: 40px; /* Tamanho da logo */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.08);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
}

.btn-nav {
    padding: 8px 25px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
    color: var(--accent-cyan) !important;
}

.btn-nav:hover {
    background: var(--accent-cyan);
    color: var(--bg-main) !important;
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.4);
}

.mobile-menu-icon {
    display: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 3. HERO SECTION (Fundo e Animações) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    z-index: 3;
    max-width: 800px;
    position: relative;
}

/* Fundo: Grade Tecnológica */
.hero-bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(123, 66, 246, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 66, 246, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* Fundo: Brilho Pulsante */
.hero-bg-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 120%; height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(123, 66, 246, 0.15) 0%, rgba(0, 224, 255, 0.05) 30%, transparent 70%);
    z-index: 2;
    animation: pulseGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Texto Hero */
.tagline {
    color: var(--accent-purple);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 15px 0 25px;
    font-weight: 800;
}

.typing-effect {
    color: var(--accent-cyan);
    border-right: 3px solid var(--accent-purple);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
}

/* Botões */
.hero-buttons { display: flex; gap: 20px; }

.btn-primary {
    background: linear-gradient(90deg, var(--accent-purple), #5c24d4);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(123, 66, 246, 0.3);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(123, 66, 246, 0.5);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* --- 4. SOBRE NÓS --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.stats-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-purple);
    font-weight: 800;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Estilo da Imagem Tech (Moldura) */
.about-image { position: relative; }

.tech-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.tech-box img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
    transition: 0.3s;
}

.tech-box:hover img {
    opacity: 1;
    transform: scale(1.02);
}

.tech-badge {
    position: absolute;
    bottom: 20px; right: 20px;
    background: rgba(2, 6, 23, 0.9);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--accent-cyan);
    display: flex; align-items: center; gap: 10px;
    z-index: 2;
}

.tech-badge i { color: var(--accent-cyan); font-size: 1.5rem; }
.tech-badge span { color: #fff; font-weight: bold; font-family: monospace; }

.tech-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    animation: scanLine 3s infinite linear;
    z-index: 3;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- 5. SERVIÇOS & CARDS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 60px; }
.highlight { color: var(--accent-cyan); }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.7);
}

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

.icon-box {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    background: rgba(0, 224, 255, 0.1);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}

.card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.card p { color: var(--text-muted); line-height: 1.6; }

/* --- 6. PROJETOS --- */
.project-card {
    height: 350px;
    background-color: #1e293b;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #1e1e2e, #2d2d44);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.project-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(123, 66, 246, 0.2);
}

.project-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
    transform: translateY(20px);
    transition: 0.4s;
}

.project-card:hover .project-overlay { transform: translateY(0); }

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    transition: 0.3s;
}

.link-arrow:hover { transform: translateX(5px); }

/* --- 7. CONTATO --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-item {
    display: flex; align-items: center; gap: 15px;
    margin-top: 20px; font-size: 1.1rem; color: var(--text-muted);
}
.contact-item i { color: var(--accent-purple); font-size: 1.3rem; }

.contact-form {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.input-group { position: relative; margin-bottom: 35px; }

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #334155;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px; left: 0;
    color: #64748b;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-bottom-color: var(--accent-cyan);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* --- 8. FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--glass-border);
    color: #64748b;
    font-size: 0.9rem;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    .about-wrapper { grid-template-columns: 1fr; }
    .about-image { order: -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } 
    .mobile-menu-icon { display: block; }
    .hero h1 { font-size: 2.8rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* --- NOVOS ESTILOS PARA A LOGO NO CARD --- */

.project-logo {
    position: absolute;
    top: 25px;  /* Distância do topo */
    left: 25px; /* Distância da esquerda */
    z-index: 2;
    opacity: 0.8; /* Levemente transparente */
    transition: 0.3s;
}

.project-logo img {
    width: 50px; /* Tamanho da logo. Ajuste conforme necessário */
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); /* Sombra para destacar do fundo */
}

/* Quando passar o mouse no card, a logo fica totalmente opaca */
.project-card:hover .project-logo {
    opacity: 1;
    transform: scale(1.05); /* Leve efeito de zoom na logo */
}
/* --- ESTILOS DAS PÁGINAS INTERNAS DE SERVIÇOS --- */

/* Hero Menor (Para não ocupar a tela toda) */
.hero-small {
    height: 50vh; /* Metade da altura da tela */
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at center, rgba(11, 23, 59, 0.8), var(--bg-main));
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.hero-content-small {
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-small h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

/* Layout de Detalhes (Texto + Visual) */
.service-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-text h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.service-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Lista de Vantagens com Ícone */
.tech-list {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.tech-list li {
    display: grid;
    /* Coluna 1: 30px para o ícone | Coluna 2: O resto para o texto */
    grid-template-columns: 30px 1fr; 
    align-items: start; /* Alinha o ícone ao topo, não ao centro */
    gap: 15px;
    margin-bottom: 25px; /* Mais espaço entre os itens */
}

/* Ajuste fino da posição do ícone */
.tech-list li i {
    color: var(--accent-cyan);
    font-size: 1.3rem;
    margin-top: 4px; /* Desce um pouquinho para alinhar com a primeira linha de texto */
    display: flex;
    justify-content: center;
}

/* Estilo do Texto (Título e Descrição) */
.tech-list li div {
    display: flex;
    flex-direction: column; /* Coloca Título em cima, Texto em baixo */
    gap: 5px;
}

.tech-list li strong {
    color: var(--text-color);
    font-size: 1.05rem;
    display: block; /* Garante que o título ocupe a linha inteira */
}

.tech-list li span {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
/* Visual: Simulador de Código (Code Card) */
.code-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 224, 255, 0.1);
    font-family: 'Courier New', monospace;
}

.code-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #30363d;
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-title {
    margin-left: 10px;
    color: #8b949e;
    font-size: 0.8rem;
}

.code-content {
    padding: 20px;
    color: #c9d1d9;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-content code {
    color: var(--accent-cyan);
}

/* Responsivo */
@media (max-width: 900px) {
    .service-wrapper { grid-template-columns: 1fr; }
    .hero-small { height: auto; padding: 120px 0 60px; }
    .code-card { margin-top: 30px; }
}