/* Cidadão.AI - Estilos Principais */

/* ===== VARIÁVEIS CSS ===== */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-accent: #10b981;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg-hover: #f1f5f9;
    --gradient-start: #10b981;
    --gradient-end: #059669;
    --card-bg: rgba(16, 185, 129, 0.05);
    --card-border: rgba(16, 185, 129, 0.2);
    --card-hover-bg: rgba(16, 185, 129, 0.1);
    --card-hover-border: rgba(16, 185, 129, 0.5);
    
    /* Brazilian Gradient for Cidadão.AI logo */
    --brazil-gradient: linear-gradient(135deg, #009739 0%, #10b981 30%, #fbbf24 40%, #3b82f6 70%, #002776 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-accent: #10b981;
    --border: #334155;
    --border-light: #475569;
    --bg-hover: #334155;
    --card-bg: rgba(16, 185, 129, 0.05);
    --card-border: rgba(16, 185, 129, 0.2);
    --card-hover-bg: rgba(16, 185, 129, 0.1);
    --card-hover-border: rgba(16, 185, 129, 0.5);
}

/* ===== BASE STYLES ===== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.02) 0%,
        rgba(59, 130, 246, 0.015) 25%,
        rgba(251, 191, 36, 0.008) 50%,
        rgba(239, 68, 68, 0.015) 75%,
        rgba(139, 92, 246, 0.02) 100%
    ),
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.02) 0%, transparent 50%),
    var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(16, 185, 129, 0.01) 49.5%, rgba(16, 185, 129, 0.01) 50.5%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(59, 130, 246, 0.008) 49.5%, rgba(59, 130, 246, 0.008) 50.5%, transparent 51%);
    background-size: 80px 80px, 60px 60px;
    animation: bodyPattern 25s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes bodyPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

/* Body para tema escuro */
[data-theme="dark"] body {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.03) 0%,
        rgba(59, 130, 246, 0.025) 25%,
        rgba(251, 191, 36, 0.015) 50%,
        rgba(239, 68, 68, 0.025) 75%,
        rgba(139, 92, 246, 0.03) 100%
    ),
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.03) 0%, transparent 50%),
    var(--bg-primary);
    background-attachment: fixed;
}

[data-theme="dark"] body::before {
    background: 
        linear-gradient(45deg, transparent 49%, rgba(16, 185, 129, 0.015) 49.5%, rgba(16, 185, 129, 0.015) 50.5%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(59, 130, 246, 0.012) 49.5%, rgba(59, 130, 246, 0.012) 50.5%, transparent 51%);
    background-size: 80px 80px, 60px 60px;
}

/* ===== NAVEGAÇÃO ===== */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .navbar {
    background-color: rgba(15, 23, 42, 0.9);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--brazil-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-button {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.control-button:hover {
    background: var(--bg-hover);
    border-color: var(--text-accent);
    color: var(--text-accent);
}

.control-button.active {
    background: var(--text-accent);
    color: white;
    border-color: var(--text-accent);
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.03) 0%,
        rgba(59, 130, 246, 0.02) 25%,
        rgba(251, 191, 36, 0.01) 50%,
        rgba(239, 68, 68, 0.02) 75%,
        rgba(139, 92, 246, 0.03) 100%
    ),
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(16, 185, 129, 0.02) 49%, rgba(16, 185, 129, 0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(59, 130, 246, 0.015) 49%, rgba(59, 130, 246, 0.015) 51%, transparent 52%);
    background-size: 60px 60px, 40px 40px;
    animation: heroPattern 20s linear infinite;
    pointer-events: none;
}

@keyframes heroPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Hero para tema escuro */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.04) 0%,
        rgba(59, 130, 246, 0.03) 25%,
        rgba(251, 191, 36, 0.02) 50%,
        rgba(239, 68, 68, 0.03) 75%,
        rgba(139, 92, 246, 0.04) 100%
    ),
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] .hero::before {
    background: 
        linear-gradient(45deg, transparent 48%, rgba(16, 185, 129, 0.03) 49%, rgba(16, 185, 129, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(59, 130, 246, 0.025) 49%, rgba(59, 130, 246, 0.025) 51%, transparent 52%);
    background-size: 60px 60px, 40px 40px;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: var(--text-accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: var(--brazil-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-large {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-accent);
    margin: 0.5rem 0;
    text-align: center;
}

.hero-mission {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-style: italic;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0.8rem 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

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

/* ===== SEÇÕES DE CONTEÚDO ===== */
.section {
    padding: 1.5rem 1.5rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--brazil-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}


/* ===== LINKS DO PROJETO - NOVO DESIGN ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.link-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--text-accent);
}

.link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.web-icon {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.2));
}

.api-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.2));
}

.docs-icon {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.2));
}

.research-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(233, 30, 99, 0.2));
}

/* Ícones dos repositórios */
.backend-icon {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(243, 156, 18, 0.2));
}

.frontend-icon {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.2));
}

.documentation-icon {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.2));
}

.models-icon {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(142, 68, 173, 0.2));
}

.link-content {
    flex: 1;
}

.link-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.link-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Responsividade para links */
@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .link-card {
        padding: 1.25rem;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
    }
    
    /* API responsiva */
    .api-container {
        max-width: 95%;
    }
    
    .api-iframe-container {
        padding: 1rem;
    }
}

/* ===== SEÇÃO API ===== */
.api-section {
    padding: 2rem 1.5rem;
}

.api-container {
    max-width: 90%;
    margin: 0 auto;
}

.api-iframe-container {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.api-iframe {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: white;
}

/* ===== MODAIS ===== */
.modal {
    display: none;
    z-index: 1000;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--brazil-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== AGENTES GRID ===== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.agent-card {
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 400px !important;
    min-width: 224px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.agent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--text-accent);
}

/* Cores específicas para cada agente */
.agent-card[data-agent="abaporu"] { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.agent-card[data-agent="anita"] { background: linear-gradient(135deg, #dc2626, #991b1b); color: white; }
.agent-card[data-agent="senna"] { background: linear-gradient(135deg, #16a34a, #15803d); color: white; }
.agent-card[data-agent="zumbi"] { background: linear-gradient(135deg, #7c2d12, #451a03); color: white; }
.agent-card[data-agent="tiradentes"] { background: linear-gradient(135deg, #1e293b, #0f172a); color: white; }
.agent-card[data-agent="obaluaie"] { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: white; }
.agent-card[data-agent="niemeyer"] { background: linear-gradient(135deg, #059669, #047857); color: white; }
.agent-card[data-agent="nana"] { background: linear-gradient(135deg, #db2777, #be185d); color: white; }
.agent-card[data-agent="lampiao"] { background: linear-gradient(135deg, #ea580c, #c2410c); color: white; }
.agent-card[data-agent="ceuci"] { background: linear-gradient(135deg, #0891b2, #0e7490); color: white; }
.agent-card[data-agent="dandara"] { background: linear-gradient(135deg, #be123c, #9f1239); color: white; }
.agent-card[data-agent="machado"] { background: linear-gradient(135deg, #1f2937, #111827); color: white; }
.agent-card[data-agent="bonifacio"] { background: linear-gradient(135deg, #365314, #1a2e05); color: white; }
.agent-card[data-agent="deodoro"] { background: linear-gradient(135deg, #1e40af, #1e3a8a); color: white; }
.agent-card[data-agent="drummond"] { background: linear-gradient(135deg, #a21caf, #86198f); color: white; }
.agent-card[data-agent="quiteria"] { background: linear-gradient(135deg, #0d9488, #0f766e); color: white; }

.agent-avatar-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.agent-avatar-link:hover {
    transform: scale(1.05);
}

.agent-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.agent-avatar:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.agent-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.agent-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.agent-role:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.agent-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* ===== AÇÕES DOS AGENTES ===== */
.agent-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.tech-docs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tech-docs-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: white;
    text-decoration: none;
}

.tech-docs-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== SEÇÃO DE PODER DOS AGENTES ===== */
.agents-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    margin-top: 2rem;
}

.agents-power-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.05) 0%, 
        rgba(59, 130, 246, 0.03) 50%, 
        rgba(139, 92, 246, 0.05) 100%
    );
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.agents-power-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--brazil-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agents-power-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== BOTÃO FLUTUANTE - REMOVIDO (agora é modular) ===== */
/* Força remoção de qualquer floating-button órfão */
.floating-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ===== TOOLTIP DINÂMICO - REMOVIDO ===== */
/* Força remoção de qualquer tooltip dinâmico órfão */
.dynamic-tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Reduzir espaçamento entre botões do header no mobile */
    .nav-controls {
        gap: 0.5rem;
    }
    
    .control-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .nav-manifesto-btn {
        margin-right: 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .agent-avatar {
        width: 150px;
        height: 150px;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .floating-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .agent-avatar {
        width: 120px;
        height: 120px;
    }
}

/* ===== CARROSSEL DE AGENTES ===== */
.agents-carousel-section {
    padding: 3rem 0;
    background: var(--bg-color);
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.agents-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 120px;
    overflow-x: hidden;
    overflow-y: visible;
    margin: 0 auto;
    left: 0;
}

.agents-carousel-container::before,
.agents-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.agents-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.agents-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.carousel-agent {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-agent:hover .carousel-avatar {
    transform: scale(1.4);
    z-index: 100;
    position: relative;
}

/* Tooltip global - DESABILITADO */
.global-tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: fixed;
    z-index: -9999 !important;
}

/* Tooltip específico do carrossel - FUNCIONAL */
.carousel-tooltip {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    z-index: 1000 !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.global-tooltip.show {
    opacity: 1;
}

.global-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--gradient-start);
}

/* Carrossel horizontal infinito */
.agents-carousel-track {
    display: flex;
    align-items: center;
    gap: 0;
    animation: scroll-infinite 60s linear infinite;
    width: calc(15 * 60px * 6);
    transform: translateX(0);
    height: 60px;
    margin-top: 0;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-15 * 60px));
    }
}

.carousel-avatar {
    width: 60px;
    height: 60px;
    border-radius: 0;
    object-fit: cover;
    filter: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.9;
    cursor: pointer;
}


.carousel-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pause on hover */
.agents-carousel-container:hover .agents-carousel-track {
    animation-play-state: paused;
}

/* Wrapper do carrossel com botão */
.agents-carousel-wrapper {
    position: relative;
    margin-bottom: 40px;
    padding-top: 1.5rem;
}

/* Contexto do carrossel */
.carousel-context {
    text-align: center;
    margin-bottom: 0.8rem;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--brazil-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Botão flutuante integrado ao carrossel */
.carousel-floating-btn {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    }
    50% { 
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    }
}

.carousel-floating-btn:hover {
    animation-play-state: paused;
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.carousel-floating-btn .btn-icon {
    font-size: 1.2rem;
}

/* ===== AGENTES NO HERO ===== */
.agents-intro {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.agents-intro-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    opacity: 0.9;
}

.agents-link-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.agents-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

/* ===== BOTÃO MANIFESTO NO HEADER ===== */
.nav-manifesto-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.nav-manifesto-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===== SCROLLBAR CUSTOMIZADA ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-accent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-end);
}

/* ===== MODAL SOBRE - ESTILOS ESPECÍFICOS ===== */
.about-intro p {
    font-size: 1rem;
    line-height: 1.6;
}

.author-profile {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--text-accent);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.author-info {
    flex: 1;
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-links a {
    color: var(--text-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.author-links a:hover {
    color: var(--gradient-end);
}

.tech-grid {
    display: grid;
    gap: 0.75rem;
}

.tech-item {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 3px solid var(--text-accent);
}

.license-list, .institutional-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.license-list li, .institutional-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.license-list li:last-child, .institutional-list li:last-child {
    border-bottom: none;
}

.research-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--text-accent);
}

.official-link-card {
    display: flex;
    gap: 1rem;
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--text-accent);
}

.link-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.link-content {
    flex: 1;
}

/* Responsividade para o modal sobre */
@media (max-width: 768px) {
    .author-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .author-links {
        justify-content: center;
    }
    
    .official-link-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* ===== DEBUG: DETECTAR ELEMENTOS VERDES - REMOVIDO ===== */

/* DEBUG: Elementos suspeitos no bottom - REMOVIDO */

/* DEBUG: Qualquer elemento verde quando hover */
*:hover {
    /* Comentado para não atrapalhar */
}
.mb-8 { margin-bottom: 2rem; }

.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }