/* --------------------------------------
   RESETS GLOBAIS
   -------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* --------------------------------------
   PALETA DE CORES E VARIÁVEIS CSS
   -------------------------------------- */
:root {
    --color-dark-bg: #03040b; 
    --color-neon-cyan: #00ffff; 
    --color-text-light: #e5e7eb; 
    --color-gray-medium: #4b5563;
    --color-gray-dark: #1f2937;
    --color-primary-button: var(--color-neon-cyan);
    --color-secondary-button: transparent;
    --color-primary-text: var(--color-dark-bg);
}

body {
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-padding {
    padding: 96px 16px;
}

/* --------------------------------------
   CLASSES DE EFEITO NEON
   -------------------------------------- */
.text-neon {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.icon-neon {
    color: var(--color-neon-cyan);
}

.border-neon {
    border: 1px solid var(--color-neon-cyan);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

@keyframes pulse-neon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.01); }
}

.pulse-neon {
    animation: pulse-neon 2s infinite ease-in-out;
}

/* --------------------------------------
   HEADER
   -------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(3, 4, 11, 0.8);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding: 16px 0;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-neon-cyan);
    transition: color 0.3s;
}
.logo:hover {
    color: white;
}

#navbar a {
    text-decoration: none;
    color: var(--color-text-light);
    margin-left: 32px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

#navbar a:hover {
    color: var(--color-neon-cyan);
}

#theme-toggle {
    padding: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: var(--color-neon-cyan);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}
#theme-toggle:hover {
    background-color: var(--color-neon-cyan);
    color: var(--color-dark-bg);
}

/* --------------------------------------
   BOTÕES (Ações)
   -------------------------------------- */
.btn {
    padding: 12px 32px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary-button);
    color: var(--color-primary-text);
    box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
}
.btn-primary:hover {
    background-color: white;
}

.btn-secondary {
    background-color: var(--color-secondary-button);
    color: var(--color-neon-cyan);
    border-color: var(--color-neon-cyan);
}
.btn-secondary:hover {
    background-color: rgba(0, 255, 255, 0.1);
}

/* --------------------------------------
   HERO SECTION
   -------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* Espaço para o header fixo */
}

/* Grid Overlay (Fundo Imersivo) */
.grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.1;
    background-image: radial-gradient(rgba(0, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 16px;
}

.tagline {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
    color: var(--color-neon-cyan);
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content .subtitle {
    font-size: 20px;
    color: var(--color-gray-medium);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* --------------------------------------
   TÍTULOS DE SEÇÃO
   -------------------------------------- */
.section-padding h2 {
    font-size: 40px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-medium);
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------
   PATHWAY (Grid)
   -------------------------------------- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.portal-card {
    background-color: rgba(31, 41, 55, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s;
    cursor: pointer;
}

.portal-card:hover {
    background-color: rgba(31, 41, 55, 0.5);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.portal-card svg {
    color: var(--color-neon-cyan);
    margin-bottom: 16px;
    width: 36px;
    height: 36px;
}

.portal-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-gray-medium);
    margin-bottom: 4px;
}

.portal-card h4 {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
}

.portal-card p {
    color: var(--color-gray-medium);
    font-size: 14px;
    margin-bottom: 24px;
}

.portal-card a {
    color: var(--color-neon-cyan);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.portal-card a:hover {
    text-decoration: underline;
}

/* --------------------------------------
   DNA (Timeline)
   -------------------------------------- */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::after {
    /* Linha vertical central */
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(0, 255, 255, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin: 32px 0;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

/* Conteúdo do item */
.timeline-content {
    padding: 24px;
    background-color: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--color-gray-dark);
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.timeline-content:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.timeline-item:nth-child(odd) .timeline-content {
    /* Seta para a direita */
    border-right: none;
}

.timeline-item:nth-child(even) .timeline-content {
    /* Seta para a esquerda */
    border-left: none;
}

.timeline-content h3 {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-neon-cyan);
    margin-bottom: 8px;
}

/* Círculo Central */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-neon-cyan);
    background-color: var(--color-dark-bg);
    border-radius: 50%;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* Icone Central */
.timeline-icon-box {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--color-neon-cyan);
    z-index: 15;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neon-cyan);
}
.timeline-item:nth-child(odd) .timeline-icon-box {
    right: -60px;
}
.timeline-item:nth-child(even) .timeline-icon-box {
    left: -60px;
}


/* --------------------------------------
   CONTACT (Formulário Terminal)
   -------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.form-container {
    background-color: var(--color-gray-dark);
    border: 1px solid rgba(0, 255, 255, 0.5);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.form-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-neon-cyan);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.form-title i {
    margin-right: 8px;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-dark-bg);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: white;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    border-color: var(--color-neon-cyan);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.form-container select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(0, 255, 255)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.btn-submit {
    background-color: var(--color-neon-cyan);
    color: var(--color-dark-bg);
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
}
.btn-submit:hover {
    background-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Informações de Enlace */
.info-container {
    padding: 24px;
    background-color: rgba(31, 41, 55, 0.3);
    border-radius: 12px;
}

.info-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}
.info-item i {
    margin-right: 12px;
    margin-top: 4px;
}
.info-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-gray-medium);
}
.info-value {
    color: white;
}

/* --------------------------------------
   FOOTER
   -------------------------------------- */
footer {
    padding: 32px 16px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
    color: var(--color-gray-medium);
    font-size: 14px;
    background-color: rgba(31, 41, 55, 0.4);
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--color-gray-medium);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--color-neon-cyan);
}
.footer-links span {
    color: var(--color-neon-cyan);
    margin: 0 8px;
}


/* --------------------------------------
   RESPONSIVIDADE (Tablets e Celulares)
   -------------------------------------- */
@media (max-width: 960px) {
    #navbar {
        display: none; /* Esconder navegação em telas menores */
    }
    .hero-content h1 {
        font-size: 56px;
    }
    .contact-grid {
        grid-template-columns: 1fr; /* Stack em coluna */
    }
    .timeline-container::after {
        left: 20px; /* Mover timeline para a esquerda */
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px; /* Dar espaço para a linha */
        left: 0 !important;
    }
    .timeline-item::after {
        left: 10px !important;
        right: auto !important;
    }
    .timeline-item .timeline-icon-box {
        left: -30px !important;
    }
}

/* --------------------------------------
    RESETS GLOBAIS
    -------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* --------------------------------------
    PALETA DE CORES E VARIÁVEIS CSS (MODO DARK PADRÃO)
    -------------------------------------- */
:root {
    --color-bg: #03040b; /* Dark BG */
    --color-section-bg: #111827; /* Darker Section BG */
    --color-text: #e5e7eb; /* Light Text */
    --color-neon-cyan: #00ffff; /* Neon Accent */
    --color-gray-medium: #4b5563;
    --color-gray-dark: #1f2937;
    --color-header-bg: rgba(3, 4, 11, 0.8);
    --color-primary-button: var(--color-neon-cyan);
    --color-primary-text: var(--color-bg);
    --color-form-bg: var(--color-gray-dark);
}

/* --------------------------------------
    MODO LIGHT (Variáveis de Sobrescrita)
    -------------------------------------- */
[data-theme="light"] {
    --color-bg: #ffffff; /* White BG */
    --color-section-bg: #f3f4f6; /* Light Grey Section BG */
    --color-text: #111827; /* Dark Text */
    --color-neon-cyan: #1a73e8; /* Blue Accent */
    --color-gray-medium: #6b7280;
    --color-gray-dark: #e5e7eb;
    --color-header-bg: rgba(255, 255, 255, 0.9);
    --color-primary-button: var(--color-neon-cyan);
    --color-primary-text: #ffffff;
    --color-form-bg: #f9fafb;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    transition: background-color 0.5s, color 0.5s; /* Transição suave de tema */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-padding {
    padding: 96px 16px;
}

/* --------------------------------------
    CLASSES DE EFEITO (Ajustadas para variáveis)
    -------------------------------------- */
.text-neon {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 5px rgba(var(--color-neon-cyan-rgb), 0.4);
}

.icon-neon {
    color: var(--color-neon-cyan);
}

/* --------------------------------------
    HEADER (Ajustado)
    -------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: var(--color-header-bg);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding: 16px 0;
    transition: background-color 0.5s, border-bottom 0.5s;
}

/* PATHWAY (Grid) */
.portal-card {
    background-color: rgba(31, 41, 55, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s;
    cursor: pointer;
    background-color: var(--color-gray-dark); /* Usando variável de BG */
}

/* DNA (Timeline) */
/* ... */

/* ... (Seção de CONTACT no style.css) ... */

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-bg); 
    border: 1px solid rgba(0, 255, 255, 0.3);
    
    /* MUDANÇA CRUCIAL: Garante que o texto seja a cor primária do tema */
    color: var(--color-text); 
    
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* ... (Resto do CSS) ... */
.form-container input,
.form-container select,
.form-container textarea {
    /* ... */
    background-color: var(--color-bg); /* Usa o BG principal para os campos */
    /* ... */
}
/* ... */