/* ─── BASE ─────────────────────────────────────────────────────── */
:root {
    --blue: #151d7c;
    --blue-dark: #050057;
    --blue-light: #0000ff;
    --blue-bg: #f0f2f7;
    --gold: #f9ae27;
    --ink: #1f2937;
    --ink-light: #4b5563;
    --ink-lighter: #6b6b6b;
    --rule: #f9ae27;
    --white: #ffffff;
}

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

body {
    font-family: stolzl, sans-serif;
    background: #e5e7eb;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 300;
}

strong, b {
    font-weight: 500;
}

/* ─── TOOLBAR ───────────────────────────────────────────────────── */
.toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--blue);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    z-index: 100;
    flex-wrap: wrap;
    font-size: 11px;
}

@media print {
    .toolbar { display: none; }
    body { background: white; }
    .page { box-shadow: none !important; break-inside: avoid; }
}

.tb-brand {
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-right: auto;
}

.tb-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.tb-label {
    font-size: 9px;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* ─── BOTÕES DA TOOLBAR ────────────────────────────────────────── */
.tb-btn {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.tb-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.4);
}

/* ─── ESTADO ATIVO (mesmo estilo que .btn-bio.active) ──────────── */
.tb-btn.active {
    background: rgba(249, 174, 39, 0.2);
    border-color: var(--gold);
    color: white;
    box-shadow: 0 0 8px rgba(249, 174, 39, 0.15);
}

.tb-btn.active:hover {
    background: rgba(249, 174, 39, 0.3);
}

/* ─── BOTÃO BIO TOGGLE ─────────────────────────────────────────── */
.btn-bio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    font-family: stolzl, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.btn-bio .bio-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-bio .bio-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Estado: Bio ATIVADA (visível) */
.btn-bio.active {
    background: rgba(249, 174, 39, 0.2);
    border-color: var(--gold);
    color: white;
    box-shadow: 0 0 8px rgba(249, 174, 39, 0.15);
}

.btn-bio.active .bio-dot {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(249, 174, 39, 0.4);
}

.btn-bio.active:hover {
    background: rgba(249, 174, 39, 0.3);
}

/* Estado: Bio DESATIVADA (oculta) */
.btn-bio.inactive {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
}

.btn-bio.inactive .bio-dot {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
}

.btn-bio:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.btn-bio.inactive:hover {
    background: rgba(255,255,255,0.1);
}

/* ─── BOTÃO PDF ─────────────────────────────────────────────────── */
.btn-pdf {
    background: rgba(255,255,255,0.1);
}

.btn-pdf:hover {
    background: rgba(255,255,255,0.2);
}




/* ─── PAGES ─────────────────────────────────────────────────────── */
.pages {
    margin-top: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 0 48px;
}

@media (max-width: 768px) {
    .pages {
        margin-top: 120px;
        gap: 16px;
        padding: 12px;
    }
}

.page {
    width: 210mm;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

@media (max-width: 768px) {
    .page {
        width: 100%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

@media print {
    .page {
        width: 210mm;
        min-height: 297mm;
        box-shadow: none;
        page-break-after: always;
        break-after: page;
    }
    .page:last-child {
        page-break-after: auto;
    }
}

/* ─── HEADER / COVER ────────────────────────────────────────────── */
.cv-header {
    background: var(--blue);
    padding: 28px 32px 24px;
    color: white;
}

@media (max-width: 768px) {
    .cv-header {
        padding: 16px 20px;
    }
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 12px;
    }
}

.cv-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1), 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2), 0 12px 28px rgba(0,0,0,0.25);
}

.cv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cv-photo:hover img {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .cv-photo {
        width: 80px;
        height: 80px;
    }
}

.cv-info {
    align-self: center;
    padding-top: 24px;
}

.cv-name {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .cv-name {
        font-size: 18px;
    }
}

.cv-name .light {
    font-weight: 300;
    opacity: 0.7;
}

.cv-logo {
    width: 120px;
    opacity: 1;
}

@media (max-width: 480px) {
    .cv-logo {
        width: 80px;
    }
}

.cv-logo img {
    width: 100%;
    display: block;
    filter: brightness(1000%) contrast(1000%);
}


.cv-version {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 300;
    color: var(--ink-lighter);
    margin-top: 4px;
    letter-spacing: 0.05em;
    background: transparent;
    border: none;
    padding: 0;
    white-space: pre;
}

/* ─── INFO-TWO-COL ────────────────────────────────────────────────── */
.info-two-col {
    display: grid !important;
    grid-template-columns: 120px 1fr !important;
    gap: 28px !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
}

.info-content {
    grid-column: 2 !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .info-two-col {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .info-content {
        grid-column: 1 !important;
    }
}

/* ─── CONTACT-LIST EM 3 COLUNAS ──────────────────────────────────── */
.contact-list {
    list-style: none !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px 16px !important;
}

.contact-list li {
    font-size: 11px !important;
    color: rgba(255,255,255,0.85) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 2px 0 !important;
}

.contact-list a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
}

.contact-list a:hover {
    text-decoration: underline !important;
}

.contact-icon {
    width: 16px !important;
    display: inline-block !important;
    font-size: 11px !important;
    text-align: center !important;
    opacity: 0.6 !important;
}

@media (max-width: 768px) {
    .contact-list {
        grid-template-columns: 1fr !important;
        gap: 4px 0 !important;
    }
    .contact-list li {
        font-size: 10px !important;
    }
}

/* ─── BIO SECTION ─────────────────────────────────────────────────── */
.bio-section {
    background: var(--blue-bg);
    padding: 24px 32px;
    border-bottom: 0;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .bio-section {
        padding: 16px 20px;
    }
}

.bio-text {
    font-size: 11px;
    line-height: 1.7;
    color: var(--ink-light);
}

.bio-text p {
    margin-bottom: 10px;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

.bio-text strong {
    color: var(--blue);
    font-weight: 500;
}



.content-block.intro-skills {
    margin-top: 36px;
}


/* ─── PROFILE BUTTONS ────────────────────────────────────────────── */
.profile-buttons {
    display: flex;
    gap: 16px;
    padding: 12px 32px;
    border-bottom: 0;
}

@media (max-width: 768px) {
    .profile-buttons {
        flex-direction: column;
        padding: 12px 20px;
    }
}

.profile-card {
    flex: 1;
    padding: 20px;
    background: var(--blue-bg);
    border-radius: 8px;
    transition: transform 0.2s;
}

.profile-card.single {
    max-width: 100%;
}

.profile-card:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .profile-card {
        width: 100%;
    }
}

.profile-label {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-lighter);
    margin-bottom: 6px;
}

.profile-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 6px;
}

.profile-tags {
    font-size: 10px;
    color: var(--ink-lighter);
}

/* ─── THREE COLUMN ────────────────────────────────────────────────── */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--rule);
}

@media (max-width: 768px) {
    .three-col-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px 20px;
    }
}

/* ─── PAGE LABEL ──────────────────────────────────────────────────── */
.page-label {
    background: var(--blue);
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 32px;
}

@media (max-width: 480px) {
    .page-label {
        font-size: 10px;
        padding: 6px 16px;
    }
}

/* ─── CONTENT BLOCK ──────────────────────────────────────────────── */
.content-block {
    padding: 24px 32px;
}

@media (max-width: 768px) {
    .content-block {
        padding: 16px 20px;
    }
}

/* ─── SECTION HEADER ─────────────────────────────────────────────── */
.section-header {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 6px;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .section-header {
        font-size: 9px;
    }
}

/* ─── SKILLS GRID ────────────────────────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px 20px;
    margin-bottom: 20px;
}


@media (max-width: 768px) {
    .skills-grid{
        grid-template-columns: 1fr !important;
        gap: 12px 0 !important;
    }
}

.skill-group {
    break-inside: avoid;
}

.skill-group-title {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    margin-bottom: 8px;
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    font-size: 10.5px;
    color: var(--ink-light);
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
    line-height: 1.45;
}

.skill-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--blue);
    opacity: 0.5;
}

@media (max-width: 480px) {
    .skill-list li {
        font-size: 9.5px;
    }
}

/* ─── SOFT SKILLS ────────────────────────────────────────────────── */
.soft-skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 16px;
    list-style: none;
}

.soft-skills li {
    font-size: 11px;
    color: var(--ink-light);
    padding-left: 16px;
    position: relative;
    line-height: 1.45;
}

.soft-skills li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--blue);
    opacity: 0.5;
}

/* ─── EXPERIENCE ──────────────────────────────────────────────────── */
.experience-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--blue-bg);
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .exp-header {
        flex-direction: column;
        gap: 4px;
    }
}

.exp-org {
    font-weight: 400;
    font-size: 11px;
    color: var(--ink);
}

.exp-date {
    font-size: 10px;
    color: var(--ink-lighter);
    font-family: monospace;
}

.exp-role {
    font-size: 10.5px;
    color: var(--blue);
    margin-bottom: 8px;
}

.exp-details {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 6px;
}

.exp-details li {
    font-size: 10.5px;
    color: var(--ink-light);
    position: relative;
    padding-left: 0;
    display: inline-flex;
    align-items: center;
}

.exp-details li:not(:last-child)::after {
    content: "·";
    position: static;
    margin-left: 6px;
    margin-right: 0;
    color: var(--blue);
    opacity: 0.5;
    font-size: 12px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .exp-details {
        flex-direction: column;
        gap: 4px;
    }
    .exp-details li:not(:last-child)::after {
        content: none;
    }
    .exp-details li {
        padding-left: 14px;
    }
    .exp-details li::before {
        content: "·";
        position: absolute;
        left: 0;
        color: var(--blue);
        opacity: 0.6;
        font-size: 12px;
        font-weight: bold;
    }
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn-project,
.project-link {
    display: inline-block;
    padding: 8px 0;
    background: transparent;
    color: var(--blue);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
    border: none !important;
    cursor: pointer;
    text-align: right;
}

.btn-project:hover,
.project-link:hover {
    color: var(--blue-light);
    transform: translateX(2px);
}

.btn-project:active,
.project-link:active {
    transform: translateX(0);
}

a.btn-project,
a.project-link {
    text-decoration: none;
}

/* ─── PROJETOS - CONTAINER ──────────────────────────────────────── */
.projects-container {
    text-align: right;
    margin-top: 30px;
}

.projects-container .btn-project {
    font-size: 11px;
}

/* ─── URL VIA PSEUDO-ELEMENTO ──────────────────────────────────── */
.projects-container .btn-project::after {
    content: " → " attr(href);
    font-weight: 300;
    font-size: 10px;
    color: var(--ink-lighter);
    margin-left: 4px;
    white-space: nowrap;
}

.projects-container .btn-project:hover::after {
    color: var(--blue-light);
}

@media (max-width: 480px) {
    .btn-project,
    .project-link {
        font-size: 10px;
        padding: 6px 0;
        width: 100%;
        text-align: right;
    }
    .projects-container .btn-project::after {
        font-size: 9px;
        display: block;
        margin-left: 0;
        white-space: normal;
        word-break: break-all;
    }
}

/* ─── LANGUAGE BADGES ────────────────────────────────────────────── */
.language-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.language-name {
    font-weight: 400;
    font-size: 11px;
    color: var(--ink);
}

.language-level {
    font-size: 10px;
    color: var(--ink-lighter);
}

/* ─── EDUCATION ──────────────────────────────────────────────────── */
.education-item {
    margin-bottom: 16px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.edu-title {
    font-weight: 400;
    font-size: 11px;
    color: var(--ink);
}

.edu-spec {
    font-size: 11px;
    color: var(--ink-light);
}

.edu-place {
    font-size: 10.5px;
    color: var(--ink-lighter);
}

.edu-year {
    font-size: 10px;
    color: var(--ink-lighter);
    font-family: monospace;
    margin-top: 2px;
}