/* --- Configurações Globais e Variáveis --- */
:root {
    --neon-cyan: #00ffea;
    --neon-purple: #bd00ff;
    --dark-bg: #050505;
    --text-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
    --font-code: 'Roboto Mono', monospace;
}

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

body {
    background-color: var(--dark-bg);
    /* imagem de fundo original */
    background-image: url('../img/backgraund.PNG');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Camada escura para facilitar leitura */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.75); 
    z-index: -1;
}

/* --- CANVAS DAS PARTÍCULAS --- */
/* Isso coloca as partículas acima do fundo, mas abaixo do texto */
#bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Camada Zero */
    pointer-events: none; /* Deixa o clique passar para o que está atrás, se necessário */
}

/* --- CONTEÚDO PRINCIPAL (Importante para ficar em cima das partículas) --- */
header, section, footer, .whatsapp-float {
    position: relative;
    z-index: 2; /* Camada Dois (Acima das partículas) */
}

/* --- Header e Navegação --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(0, 255, 234, 0.1);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
}

.logo {
    font-family: var(--font-tech);
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo-highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

nav a:hover, nav a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* --- Botões Neon --- */
.neon-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: var(--font-tech);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-cyan), inset 0 0 5px var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    cursor: pointer;
}

.neon-button:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 25px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
}

/* --- Hero Section --- */
#hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#hero h1 {
    font-family: var(--font-tech);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-family: var(--font-code);
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 5px rgba(0, 255, 234, 0.5);
}

/* --- Seção de Serviços --- */
#servicos {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: var(--font-tech);
    font-size: 2rem;
    color: var(--text-white);
    border-bottom: 2px solid var(--neon-purple);
    display: inline-block;
    padding-bottom: 10px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.glass-card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 234, 0.15);
    padding: 2.5rem;
    text-align: center;
    border-radius: 12px;
    width: 320px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.2);
}

.card-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Efeito de Mistura nos Ícones (Remove fundo preto) */
.card-icon img {
    width: 100%;
    max-width: 140px;
    height: auto;
    mix-blend-mode: screen; 
    filter: brightness(1.3) contrast(1.1);
    transition: transform 0.5s;
}

.glass-card:hover .card-icon img {
    transform: scale(1.1);
}

.glass-card h3 {
    font-family: var(--font-tech);
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.glass-card p {
    color: #ccc;
    font-size: 0.9rem;
    font-family: var(--font-main);
}

/* --- Seção de Contato --- */
#contact-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
}

.contact-container {
    display: flex;
    gap: 3rem;
    width: 100%;
    max-width: 1100px;
    align-items: stretch;
}

/* Janela de Código */
.code-window {
    flex: 1;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-code);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.window-bar {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dot { height: 12px; width: 12px; border-radius: 50%; display: inline-block; }
.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }
.window-title { color: #666; font-size: 0.8rem; margin-left: 10px; }

.code-content {
    padding: 25px;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.comment { color: #6a9955; font-style: italic; }
.keyword { color: var(--neon-purple); }
.string { color: #ce9178; }
.function { color: var(--neon-cyan); }
.blinking-cursor { 
    color: var(--neon-cyan);
    animation: blink 1s step-end infinite; 
}
@keyframes blink { 50% { opacity: 0; } }

/* Formulário Terminal */
.form-window {
    flex: 1;
    padding: 2.5rem;
    background: rgba(0, 20, 20, 0.4);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.1);
    display: flex;
    flex-direction: column;
}

.form-window h3 {
    font-family: var(--font-tech);
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-code);
    color: var(--neon-cyan);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.form-window input,
.form-window textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-left: 2px solid #333;
    padding: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-window input:focus,
.form-window textarea:focus {
    border-left-color: var(--neon-cyan);
    background: rgba(0, 255, 234, 0.05);
}

.form-window textarea {
    resize: none;
    height: 100px;
}

.submit-btn {
    margin-top: 1rem;
    width: 100%;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #555;
    font-family: var(--font-code);
    font-size: 0.8rem;
    border-top: 1px solid #111;
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #25d366;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Animação de Pulso para o Foco no Input */
@keyframes neonPulse {
    0% { border-left-color: var(--neon-cyan); box-shadow: none; }
    50% { border-left-color: var(--neon-purple); box-shadow: 0 0 15px var(--neon-purple); }
    100% { border-left-color: var(--neon-cyan); box-shadow: none; }
}

/* Responsividade */
@media (max-width: 900px) {
    #hero h1 { font-size: 2.5rem; }
    .contact-container { flex-direction: column; }
    .code-window { display: none; } 
    .form-window { border: none; padding: 0; box-shadow: none; }
    .glass-card { width: 100%; }
}