/* PALETA DE CORES (TONS DE AZUL)
   Fundo Primário: #0a192f (Azul-marinho noturno muito escuro)
   Fundo Secundário/Card: #112240 (Azul escuro profundo)
   Fundo Hover: #233554 (Azul intermediário)
   Texto Principal: #8892b0 (Cinza-azulado suave)
   Texto Destaque: #e6f1ff (Branco azulado cristal)
   Destaque/Accent: #64ffda -> Substituído por #00f0ff ou #38bdf8 (Azul ciano neon e Azul celeste)
*/

:root {
    --bg-main: #0a192f;
    --bg-card: #112240;
    --bg-card-hover: #172a45;
    --text-title: #e6f1ff;
    --text-body: #8892b0;
    --text-muted: #4f5b7a;
    --accent-blue: #38bdf8;       /* Azul Celeste Brilhante */
    --accent-cyan: #00f0ff;       /* Azul Ciano Neon */
    --accent-tag-bg: #102a45;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
}

/* Layout Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

/* Header Fixo / Sidebar (Esquerda) */
.sidebar {
    width: 45%;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 90px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: -0.5px;
}

.sidebar h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-top: 10px;
}

.sidebar .tagline {
    margin-top: 15px;
    max-width: 100%;
    font-size: 0.95rem;
    text-align: justify;
    hyphens: auto;
}

/* Menu de Navegação Interativo */
.nav-menu {
    margin-top: 50px;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 18px;
}

.nav-link {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-line {
    width: 30px;
    height: 1px;
    background-color: var(--text-muted);
    margin-right: 15px;
    transition: all 0.25s ease-in-out;
}

.nav-link:hover .nav-line,
.nav-link.active .nav-line {
    width: 60px;
    background-color: var(--accent-cyan);
}

.nav-link:hover .nav-text,
.nav-link.active .nav-text {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-body);
}

.social-links svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-links a:hover {
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

/* Conteúdo Principal (Direita) */
.content {
    width: 50%;
    padding: 90px 0;
}

.section {
    margin-bottom: 90px;
}

.sticky-header {
    display: none; /* Para telas grandes fica limpo, ativado no mobile */
}

.section h2 {
    font-size: 1.1rem;
    font-family: var(--font-mono);
    color: var(--accent-blue);
    margin-bottom: 25px;
}

.section p {
    margin-bottom: 15px;
}

.section strong {
    color: var(--text-title);
}

/* Cards de Experiência e Projeto */
.card-experience,
.card-project {
    display: flex;
    gap: 20px;
    padding: 25px;
    border-radius: 8px;
    background-color: transparent;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.card-experience:hover,
.card-project:hover {
    background-color: var(--bg-card);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.card-header .date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.card-body h3,
.project-content h3 {
    font-size: 1rem;
    color: var(--text-title);
    font-weight: 600;
    margin-bottom: 8px;
}

.card-body h3 span {
    color: var(--accent-blue);
}

.card-body p,
.project-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Tags de Tecnologias */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background-color: var(--accent-tag-bg);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Certificações */
.certifications-title {
    font-size: 1.1rem;
    font-family: var(--font-mono);
    color: var(--accent-blue);
    margin-bottom: 25px;
}

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

.cert-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background-color: var(--bg-card);
    padding: 15px 20px;
    border-radius: 6px;
}

.cert-list a {
    color: inherit;
}

.cert-list a:hover,
.cert-list a:focus-visible {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.certificate-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 10px 16px;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.certificate-gallery-link:hover,
.certificate-gallery-link:focus-visible {
    color: var(--bg-main);
    background: var(--accent-blue);
}

.certificate-dialog {
    width: min(90vw, 1000px);
    max-width: none;
    max-height: 90vh;
    margin: auto;
    padding: 0;
    overflow: visible;
    color: var(--text-body);
    background: transparent;
    border: 0;
}

.certificate-dialog::backdrop {
    background: rgba(2, 12, 27, 0.88);
    backdrop-filter: blur(4px);
}

.certificate-dialog-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
}

.certificate-dialog-image {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
}

.certificate-dialog-caption {
    text-align: center;
}

.certificate-dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--text-title);
    font-size: 1.6rem;
    line-height: 1;
    background: rgba(10, 25, 47, 0.9);
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
}

.certificate-dialog-close:hover,
.certificate-dialog-close:focus-visible {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.icon-blue {
    color: var(--accent-cyan);
    font-size: 1.5rem;
}

/* Footer */
.footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 50px;
}

/* RESPONSIVIDADE (Celulares e Tablets) */
@media (max-width: 960px) {
    .container {
        flex-direction: column;
        padding: 0 25px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 50px 0 20px 0;
    }

    .nav-menu {
        display: none; /* Oculta menu no mobile para focar no scroll livre */
    }

    .content {
        width: 100%;
        padding: 20px 0;
    }

    .sticky-header {
        display: block;
        position: sticky;
        top: 0;
        background-color: rgba(10, 25, 47, 0.9);
        backdrop-filter: blur(8px);
        padding: 15px 0;
        z-index: 10;
    }
}