:root {
    /* Light Mode (Default) */
    --bg-color: #f4f4f5;
    --text-main: #18181b;
    --text-muted: #52525b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --primary: #2563eb; /* Azul tecnológico */
    --accent: #000000;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass-blur: blur(12px);
}

.dark-mode {
    /* Dark Mode */
    --bg-color: #09090b;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --card-bg: rgba(24, 24, 27, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary: #60a5fa;
    --accent: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

/* Fixed Controls */
.fixed-controls {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    padding: 5px;
    border-radius: 50%;
    transition: transform 0.2s;
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

.lang-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    padding: 2px;
}

.lang-btn.active {
    color: var(--primary);
}

.separator {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin: 2px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 15px 30px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.greeting {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn.primary {
    background-color: var(--accent);
    color: var(--bg-color);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Abstract Shapes */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 20%;
    left: 20%;
    animation: float 6s infinite ease-in-out;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    bottom: 20%;
    right: 10%;
    animation: float 8s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background: var(--primary);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About */
.about-card {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.skill-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.skill-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(128, 128, 128, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.project-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    color: var(--primary);
}

/* Contact */
.contact-wrapper {
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-color);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        bottom: 20px;
        top: auto;
        width: 90%;
    }
    .name { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .fixed-controls { top: 20px; transform: none; right: 20px; flex-direction: row; }
    .separator { display: none; }
    .lang-switch { flex-direction: row; gap: 10px; }
}
/* --- ADICIONE ISTO AO SEU CSS EXISTENTE --- */

/* Font para código */
.terminal-window, .cmd, .tags span {
    font-family: 'Fira Code', monospace;
}

/* Hero Adjustments for Vanta */
.hero {
    background: transparent; /* Deixar transparente para o Canvas 3D aparecer */
}

.hero canvas {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, var(--bg-color) 90%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    z-index: 2; /* Texto acima do 3D */
    position: relative;
}

/* Timeline (Jornada) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--card-border);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    top: 20px;
    box-shadow: 0 0 10px var(--primary);
}

.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content {
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.1s; /* Rápido para o Tilt JS */
    transform-style: preserve-3d;
}

/* Terminal Interativo */
.terminal-intro {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.cmd {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
}

.terminal-window {
    max-width: 800px;
    margin: 0 auto;
    background: #1e1e1e !important; /* Sempre escuro */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid #333;
    text-align: left;
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: #999;
    font-size: 0.8rem;
    font-family: monospace;
}

.terminal-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    color: #0f0; /* Hacker green */
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.line { margin-bottom: 5px; word-wrap: break-word;}

.terminal-input-area {
    display: flex;
    padding: 10px 20px;
    background: #1e1e1e;
    border-top: 1px solid #333;
}

.prompt {
    color: #0f0;
    margin-right: 10px;
    font-weight: bold;
}

#cmd-input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    font-family: 'Fira Code', monospace;
    outline: none;
}
/* --- ADICIONE ISTO AO SEU CSS EXISTENTE --- */

/* Subtítulo da Seção */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* Skills Matrix */
.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.matrix-group {
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.1s; /* Para o Tilt JS */
}

.group-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-item {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    align-items: center;
    gap: 10px;
}

.skill-item span:first-child {
    font-weight: 600;
}

.skill-bar {
    background: var(--card-border);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar div {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.level {
    font-size: 0.8rem;
    text-align: right;
    color: var(--text-muted);
}

/* Case Study Section */
.case-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.1s;
    transform-style: preserve-3d;
}

.case-header {
    margin-bottom: 20px;
}

.case-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-color);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.case-body p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

.case-details {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.case-details li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: var(--text-main);
    font-weight: 500;
}

.case-details i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

.case-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: var(--primary);
    color: white;
}

/* Responsividade */
@media (max-width: 600px) {
    .skills-matrix {
        grid-template-columns: 1fr;
    }
    .skill-item {
        grid-template-columns: 1fr; /* Colunas empilhadas */
        gap: 5px;
    }
    .skill-bar, .level {
        grid-row: 2; /* Move a barra e o nível para a linha de baixo */
    }
    .level {
        text-align: left;
        color: var(--primary);
        font-weight: 600;
    }
}

/* Responsividade da Timeline */
@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; text-align: left; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 12px; }
}
/* --- ADICIONE ISTO AO SEU CSS EXISTENTE --- */

/* Strategy Simulator */
.sim-dashboard {
    display: flex;
    gap: 40px;
    padding: 40px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.sim-control, .sim-results {
    flex: 1;
}

.sim-control h3, .sim-results h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.control-item {
    margin-bottom: 30px;
}

.control-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

#users-input {
    width: calc(100% - 60px);
    display: inline-block;
    margin-right: 10px;
}

#users-display {
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
    display: inline-block;
    text-align: right;
}

select#query-complexity {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background: var(--bg-color);
    color: var(--text-main);
}

/* Resultados */
.result-item {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--card-border);
    padding-bottom: 10px;
}

.result-item span:first-child {
    color: var(--text-muted);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.cost-high { color: #ef4444; } /* Vermelho: alto custo */
.cost-low { color: #10b981; }  /* Verde: baixo custo */

.strategy-message {
    margin-top: 30px;
    padding: 15px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.explanation {
    max-width: 900px;
    margin: 50px auto 0;
}

.list-demonstration {
    list-style: none;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.list-demonstration li {
    background: var(--card-border);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
    max-width: 30%;
}

/* Responsividade */
@media (max-width: 768px) {
    .sim-dashboard {
        flex-direction: column;
        gap: 20px;
    }
    .list-demonstration {
        flex-direction: column;
        align-items: center;
    }
    .list-demonstration li {
        max-width: 100%;
    }
}
/* --- ADICIONE ISTO AO SEU CSS EXISTENTE --- */

/* Seção Pitch de Valor */
.value-pitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.pitch-card {
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.1s;
    transform-style: preserve-3d;
}

.pitch-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.pitch-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.pitch-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Easter Egg (Debug Console) */
.hidden-terminal-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    z-index: 1000; /* Acima de tudo */
}

.hidden-terminal-toggle i {
    font-size: 1.5rem;
}

.hidden-terminal-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.hover-text {
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.hidden-terminal-toggle:hover .hover-text {
    opacity: 1;
}

/* Responsividade do Pitch Grid */
@media (max-width: 600px) {
    .value-pitch-grid {
        grid-template-columns: 1fr;
    }
}
/* --- ADICIONE ISTO AO SEU CSS EXISTENTE --- */

/* Contact Section Grid */
.contact-grid {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 50px;
}

.contact-info, .whatsapp-form {
    flex: 1;
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.1s;
}

.contact-info h3, .whatsapp-form h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.3rem;
}

/* Informações de Contato */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
}

.info-item span {
    font-weight: 600;
    margin-right: 5px;
}

.info-item a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.info-item a:hover {
    color: var(--primary);
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-btn {
    font-size: 2rem;
    color: var(--text-main);
    transition: color 0.3s;
}

.social-btn:hover {
    color: var(--primary);
}

/* Formulário WhatsApp */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--bg-color);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.full-width {
    width: 100%;
}

.whatsapp-form small {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
        gap: 30px;
    }
}