:root {
    --bg-primary: #181818;
    --bg-secondary: #1f1f1f;
    --bg-card: #242424;
    --bg-hover: #2a2a2a;
    
    --text-primary: #ffffff;
    --text-secondary: #b1b1b1;
    --text-muted: #8f8f8f;
    
    --accent: #f7f4be;
    --accent-hover: #e8e5a8;
    --accent-dim: rgba(247, 244, 190, 0.2);
    
    --success: #5aee6c;
    --success-dim: rgba(90, 238, 108, 0.15);
    
    --border: #2b2b2b;
    --border-light: #3a3a3a;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Geist Mono', 'SF Mono', monospace;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
}

/* ==========================================
   SISTEMA DE IDIOMAS
   ========================================== */

[lang="en"] { display: none; }
body.lang-en [lang="pt"] { display: none !important; }
body.lang-en [lang="en"] { display: inline !important; }
body.lang-en .content-section [lang="en"] { display: block !important; }

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   HEADER CORRIGIDO - EXTREMIDADES FIXAS
   ========================================== */

.header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 50px;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* MANTÉM EXTREMIDADES */
    padding: 0 20px;
    height: 100%;
    width: 100%; /* LARGURA TOTAL - SEM LIMITAÇÃO */
}

.header-left .welcome-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* MENU CENTRALIZADO PERFEITAMENTE */
.nav-menu {
    display: flex;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* DESTAQUE AMARELO RESTAURADO */
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 12px;
    background-color: var(--accent); /* BARRINHA AMARELA */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* BOTÃO DE IDIOMA */
.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    min-width: 32px;
    text-align: center;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--success-dim);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--success);
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.location-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.separator {
    margin: 0 6px;
}

/* ==========================================
   LAYOUT PRINCIPAL
   ========================================== */

.main-layout {
    display: grid;
    grid-template-columns: 240px 50px 1fr 140px;
    min-height: calc(100vh - 50px);
}

/* ==========================================
   SIDEBAR ESQUERDA
   ========================================== */

.sidebar {
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 50px;
    height: calc(100vh - 50px);
    overflow-y: auto;
}

.profile-section {
    text-align: center;
}

.profile-avatar {
	width: 130px;
	height: 130px;
	margin: 0 auto 16px;
	position: relative;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.profile-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.15);
	object-position: center 30%;
	border-radius: 0;
}

.profile-avatar:hover img {
	transform: scale(1.5);
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #666 0%, #444 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-role {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.profile-bio {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.info-item i,
.contact-item i {
    width: 16px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    word-break: break-word;
}

.contact-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.social-section {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 15px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.cta-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent);
}

/* ==========================================
   LINE NUMBERS
   ========================================== */

.line-numbers {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 20px 8px;
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.4;
    line-height: 1.7;
    text-align: right;
}

.line-numbers span {
    display: block;
    white-space: nowrap;
}

/* ==========================================
   CONTEÚDO PRINCIPAL
   ========================================== */

.main-content {
    padding: 20px 30px;
    background-color: var(--bg-secondary);
}

.hero-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.hero-title {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-description {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.6;
}

/* ==========================================
   PROJETOS
   ========================================== */

.work-section {
    margin-bottom: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: block;
}

.project-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.project-header h3 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.project-arrow {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.project-card:hover .project-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

.project-image {
    height: 300px;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-card) 100%);
}

.project-image.no-image .project-placeholder {
    display: flex;
}

.project-placeholder i {
    font-size: 36px;
    opacity: 0.3;
}

.project-placeholder span {
    font-family: var(--font-mono);
    font-size: 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px 8px;
}

.project-description {
    padding: 0 20px 16px;
    margin-top: 8px;
}

.project-description p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-meta {
    padding: 0 20px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
    transition: var(--transition);
    display: inline-block;
}

.project-card:hover .project-tags .tag {
    border-color: var(--accent);
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.projects-counter {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.projects-counter strong {
    color: var(--text-secondary);
}

/* ==========================================
   SEÇÕES
   ========================================== */

.about-section,
.whatido-section,
.stack-section,
.experience-section,
.education-section,
.contact-section-main {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-content strong {
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
}

.service-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-dim);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

.unified-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.stack-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    height: 90px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.stack-card:hover {
    border-color: var(--border-light);
    background-color: var(--bg-hover);
    transform: translateY(-2px);
}

.stack-name {
    position: absolute;
    top: 8px;
    left: 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Regra padrão: Ícones outline ficam brancos */
.stack-icon[src$=".svg"] {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(0) invert(1); /* Funciona para Python, AWS, etc. */
}

/* Exceção: Ícones sólidos problemáticos */
.stack-icon[alt="JavaScript"],
.stack-icon[alt="Git"], 
.stack-icon[alt="Contabo"],
.stack-icon[alt="PostgreSQL"] {
    /* Em vez de inverter, usa grayscale + brilho para manter detalhes */
    filter: grayscale(100%) brightness(180%) contrast(120%);
}

/* Font Awesome (CI/CD) */
.stack-icon.fas {
    font-size: 40px;
    color: var(--text-primary);
    transition: var(--transition);
}

/* Hover: Remove todos os filtros = cores originais */
.stack-card:hover .stack-icon[src$=".svg"] {
    filter: none;
    transform: scale(1.1);
}

.stack-card:hover .stack-icon.fas {
    color: var(--accent);
    transform: scale(1.1);
}


/* ==========================================
   TIMELINE
   ========================================== */

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.timeline-header h4 {
    font-size: 13px;
    font-weight: 600;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.timeline-role {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 6px;
}

.timeline-description {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.education-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.education-card h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.education-school {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.education-date {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent);
}

.contact-card i {
    font-size: 16px;
    color: var(--accent);
}

.contact-card span {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==========================================
   RIGHT SIDEBAR
   ========================================== */

.right-sidebar {
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border);
    padding: 20px 14px;
    position: sticky;
    top: 50px;
    height: calc(100vh - 50px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index h4 {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.index-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.index-link:hover,
.index-link.active {
    color: var(--text-primary);
}

.index-link:last-child {
    border-bottom: none;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    display: block;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 14px 20px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.footer-content p {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* ==========================================
   PÁGINAS DE PROJETO
   ========================================== */

.project-header-with-logo {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 28px;
}

.project-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
    animation: float-original 4s ease-in-out infinite;
}

@keyframes float-original {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.project-header-content {
    flex: 1;
}

.project-detail-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-section {
    margin-bottom: 28px;
}

.content-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.content-section p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 18px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 2px;
    background-color: var(--accent);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li strong {
    color: var(--text-primary);
}

.tech-architecture {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.arch-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.arch-item h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.arch-item h4 i {
    color: var(--accent);
}

.arch-item p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-primary);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.result-item {
    text-align: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 14px;
}

.result-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.result-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

/* ==========================================
   NAVEGAÇÃO DE PROJETOS
   ========================================== */

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.project-navigation a {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: var(--transition);
}

.project-navigation a:hover {
    border-color: var(--accent);
}

.project-navigation span {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.project-navigation strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-primary);
}

.project-navigation.three-column-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.three-column-nav .nav-item {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: var(--transition);
    text-decoration: none;
}

.three-column-nav .nav-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.three-column-nav .nav-prev {
    justify-self: start;
    align-items: flex-start;
}

.three-column-nav .nav-next {
    justify-self: end;
    align-items: flex-end;
    text-align: right;
}

.three-column-nav .nav-center {
    justify-self: center;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ==========================================
   DIAGRAMAS
   ========================================== */

.architecture-diagram {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.diagram-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

.diagram-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.diagram-level {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.diagram-level.servers-level {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 650px;
}

.diagram-node {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    min-width: 110px;
    transition: var(--transition);
}

.diagram-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.diagram-node.proxy {
    border-color: var(--accent);
    background: rgba(247, 244, 190, 0.05);
}

.diagram-node.lobby {
    border-color: #5865F2;
    background: rgba(88, 101, 242, 0.05);
}

.diagram-node.server {
    border-color: var(--success);
    background: rgba(90, 238, 108, 0.05);
    min-width: 100px;
}

.diagram-node.database {
    border-color: #9333ea;
    background: rgba(147, 51, 234, 0.05);
}

.node-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.diagram-node.proxy .node-icon { color: var(--accent); }
.diagram-node.lobby .node-icon { color: #5865F2; }
.diagram-node.server .node-icon { color: var(--success); }
.diagram-node.database .node-icon { color: #9333ea; }

.node-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    line-height: 1.2;
}

.node-desc {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.3;
}

.connection-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--border-light), var(--accent));
    opacity: 0.6;
}

.discord-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 36px 0;
    color: white;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.25);
}

.discord-text h4 {
    font-size: 17px;
    margin-bottom: 6px;
    color: white;
    font-weight: 600;
}

.discord-text p {
    font-size: 13px;
    opacity: 0.95;
    margin: 0;
}

.discord-btn {
    background: white;
    color: #5865F2;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    text-decoration: none;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ==========================================
   BLOG
   ========================================== */

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image i {
    font-size: 64px;
    color: var(--accent);
    opacity: 0.5;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.blog-meta span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    margin-top: 16px;
}

.read-more:hover {
    gap: 12px;
}

/* ==========================================
   LOGO PLACEHOLDER PARA AGENTE IA
   ========================================== */

.ai-logo-placeholder {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent);
    flex-shrink: 0;
    animation: float-original 4s ease-in-out infinite;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-width: 1100px) {
    .main-layout {
        grid-template-columns: 240px 1fr;
    }
    
    .line-numbers,
    .right-sidebar {
        display: none;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .services-grid,
    .education-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        padding: 0 16px;
    }
    
    .nav-menu {
        position: static;
        transform: none;
        gap: 0;
    }
    
    .nav-link {
        padding: 6px 8px;
    }
    
    .header-left {
        display: none;
    }
    
    .sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 16px;
        gap: 12px;
    }
    
    .profile-section {
        width: 100%;
    }
    	
    .profile-bio {
        text-align: center;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .info-section,
    .contact-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .cta-section {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        margin-top: 0;
        gap: 8px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .projects-grid,
    .services-grid,
    .education-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .unified-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-header-with-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .project-logo {
        width: 90px;
        height: 90px;
    }
    
    .discord-cta {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .diagram-level.servers-level {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-navigation.three-column-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .three-column-nav .nav-prev,
    .three-column-nav .nav-next {
        justify-self: stretch;
    }
    
    .three-column-nav .nav-center {
        order: -1;
        justify-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 550px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 14px;
        gap: 8px;
        justify-content: center;
    }
    
    .nav-menu {
        order: 1;
        width: 100%;
        justify-content: center;
        position: static;
        transform: none;
    }
    
    .header-right {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .unified-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-logo,
    .ai-logo-placeholder {
        width: 70px;
        height: 70px;
    }

    .diagram-level.servers-level {
        grid-template-columns: 1fr;
    }
}
