/* ============================================================
   CÓDIGO FONTE — Estilos Aprimorados
   Desenvolvedor: Dense66
   ============================================================ */

/* Reset e Variáveis */
:root {
    --bg-base: #0a0c0f;
    --glass-bg: rgba(17, 21, 25, 0.45);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-primary: #eaeaea;
    --text-secondary: #8e94a0;
    --accent: #00f080;
    --danger: #ff4d4d;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', 'Space Grotesk', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    background: var(--bg-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: radial-gradient(ellipse at 50% 0%, #11161c 0%, var(--bg-base) 60%);
    min-height: 100vh;
    position: relative;
    cursor: default;
    overflow-x: hidden;
}

/* Utilitários */
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.highlight { color: var(--accent); }
.invisible { opacity: 0; pointer-events: none; }

/* Cursor personalizado (desktop) – interior SEMPRE transparente */
#cursor {
    position: fixed;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.25s, height 0.25s;
    display: none;
    mix-blend-mode: screen;
    background: transparent; /* garantia de transparência */
}
#cursor.hover {
    width: 36px;
    height: 36px;
    background: transparent; /* removido o fundo esverdeado */
}

/* Partículas */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Intro overlay */
#intro-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#intro-content { text-align: center; }
#intro-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.12em;
}
#intro-status {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.25em;
    margin-top: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* App layout */
#app {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 100vh;
    transition: opacity 0.7s var(--ease-out-expo);
}
#app:not(.invisible) { opacity: 1; }

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(10, 12, 15, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.2rem 1.8rem;
    z-index: 100;
}
#sidebar-header { margin-bottom: 2.5rem; }
.logo {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.08em;
}
#sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.nav-item {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    letter-spacing: 0.04em;
}
.nav-item:hover,
.nav-item.active {
    color: var(--accent);
    background: rgba(0, 240, 128, 0.06);
}
.nav-divider {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.04);
    margin: 0.3rem 0;
}
#sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-secondary);
}
.insta-link {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.3s;
}
.insta-link:hover { color: var(--accent); }

/* Main content */
#main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    max-width: calc(100vw - var(--sidebar-width));
}

/* Sections */
.section {
    width: 100%;
    max-width: 820px;
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Glass card */
.glass-card {
    background: rgba(20, 25, 31, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 2.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
    transition: border-color 0.4s, box-shadow 0.4s;
}
.glass-card:hover {
    border-color: rgba(0, 240, 128, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,240,128,0.08) inset;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.8s var(--ease-out-expo);
}
.glass-card:hover::before { width: 100%; }

.card-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.6rem;
    letter-spacing: 0.02em;
}
.card-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.6s 0.25s var(--ease-out-expo);
}
.card-text.visible { opacity: 1; }

/* Serviços */
.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 0;
    transition: opacity 0.6s 0.25s var(--ease-out-expo);
}
.services-list.visible { opacity: 1; }
.services-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1.6rem;
    position: relative;
}
.services-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

/* Processo */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.6s 0.25s var(--ease-out-expo);
}
.process-flow.visible { opacity: 1; }
.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}
.flow-icon {
    font-size: 1.9rem;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
}
.flow-node:hover .flow-icon {
    color: var(--accent);
    transform: translateY(-2px);
}
.flow-label {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}
.flow-arrow {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.3rem;
    opacity: 0.6;
}

/* Contato */
.contact-buttons {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.6s 0.25s var(--ease-out-expo);
}
.contact-buttons.visible { opacity: 1; }
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    border-radius: 50px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}
.contact-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 240, 128, 0.05);
    box-shadow: 0 0 20px rgba(0, 240, 128, 0.1);
}

/* Privacidade */
.privacy-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.6rem;
    color: var(--danger);
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.6s 0.25s var(--ease-out-expo);
}
.privacy-indicator.visible { opacity: 1; }
.red-dot {
    width: 7px;
    height: 7px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   RESPONSIVIDADE PRINCIPAL (até 900px)
   ============================================================ */
@media (max-width: 900px) {
    :root { --sidebar-width: 0px; }

    #sidebar {
        width: 100%;
        height: var(--header-height);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.4rem;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        background: rgba(10,12,15,0.8);
        backdrop-filter: blur(12px);
        z-index: 100;
    }
    #sidebar-header { margin: 0; }
    #sidebar-nav {
        flex-direction: row;
        gap: 0.15rem;
        overflow-x: auto;
        flex: 1;
        justify-content: flex-end;
        margin: 0 1rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    #sidebar-nav::-webkit-scrollbar { display: none; }
    .nav-item {
        padding: 0.45rem 0.6rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    .nav-divider { display: none; }
    #sidebar-footer { display: none; }

    #main-content {
        margin-left: 0;
        margin-top: var(--header-height);
        padding: 1.8rem;
        max-width: 100%;
    }
    .glass-card { padding: 1.8rem; border-radius: var(--radius-md); }
    .process-flow { flex-direction: column; gap: 0.6rem; }
    .flow-arrow { transform: rotate(90deg); }
}

/* ============================================================
   AJUSTES FINOS DE RESPONSIVIDADE (TÍTULO E NAVEGAÇÃO)
   ============================================================ */

/* Redução leve do título DENSE69 em telas médias-pequenas */
@media (max-width: 600px) {
    .logo {
        font-size: 1rem; /* antes 1.1rem */
    }
    .nav-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.85rem; /* reduz mais um pouco */
    }
    .nav-item {
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .card-title {
        font-size: 1.3rem;
    }
}

/* Telas muito pequenas (≤380px) – remove o título DENSE69 */
@media (max-width: 380px) {
    .logo {
        display: none; /* esconde completamente */
    }
    #sidebar-nav {
        justify-content: center;
        margin: 0 0.2rem;
        gap: 0.3rem;
    }
    .nav-item {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
        white-space: nowrap;
    }
    /* Ajuste extra para não cortar os botões */
    #sidebar {
        padding: 0 0.8rem;
    }
}

/* Smartphones muito estreitos (≤320px) – mantém só botões e compacta */
@media (max-width: 320px) {
    .nav-item {
        font-size: 0.6rem;
        padding: 0.3rem 0.4rem;
    }
}

/* Garantir que nenhum conteúdo estoure horizontalmente */
body, #app, #main-content {
    overflow-x: hidden;
}



/* ============================================================
   RESPONSIVIDADE PRINCIPAL (até 900px)
   ============================================================ */
@media (max-width: 900px) {
    :root { --sidebar-width: 0px; }

    #sidebar {
        width: 100%;
        height: var(--header-height);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        background: rgba(10,12,15,0.8);
        backdrop-filter: blur(12px);
        z-index: 100;
    }
    #sidebar-header { margin: 0; }
    #sidebar-nav {
        flex-direction: row;
        gap: 0.3rem;
        overflow-x: auto;
        flex: 1;
        justify-content: flex-end;
        margin: 0 0.5rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    #sidebar-nav::-webkit-scrollbar { display: none; }
    .nav-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .nav-divider { display: none; }
    #sidebar-footer { display: none; }

    #main-content {
        margin-left: 0;
        margin-top: var(--header-height);
        padding: 1.5rem;
        max-width: 100%;
    }
    .glass-card { padding: 1.5rem; border-radius: var(--radius-md); }
    .process-flow { flex-direction: column; gap: 0.6rem; }
    .flow-arrow { transform: rotate(90deg); }
}

/* ============================================================
   TELAS PEQUENAS (≤ 500px) — remove título DENSE66 e ajusta botões
   ============================================================ */
@media (max-width: 500px) {
    /* Remove completamente o título */
    .logo {
        display: none;
    }
    /* Sidebar mais compacta */
    #sidebar {
        padding: 0 0.75rem;
        justify-content: flex-end;
    }
    /* Navegação ocupa toda largura restante, centralizada */
    #sidebar-nav {
        justify-content: center;
        gap: 0.4rem;
        margin: 0;
        flex: 1;
    }
    .nav-item {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
    }
    /* Ajuste do conteúdo principal */
    #main-content {
        padding: 1.2rem;
    }
    .glass-card {
        padding: 1.2rem;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .contact-btn {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }
}

/* Para telas extremamente pequenas (≤ 360px) - reforço */
@media (max-width: 360px) {
    .nav-item {
        font-size: 0.65rem;
        padding: 0.3rem 0.4rem;
    }
    #sidebar {
        padding: 0 0.5rem;
    }
}
