/* =============================================== */
/* --- DECLARAÇÃO DE FONTES --- */
/* =============================================== */
@font-face {
    font-family: 'Touche';
    src: url('fonts/ToucheW03-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Touche';
    src: url('fonts/ToucheW03-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gil Sans Pro MT';
    src: url('fonts/GilSansProMT-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gil Sans Pro MT';
    src: url('fonts/GilSansProMT-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =============================================== */
/* --- ESTILOS GLOBAIS E VARIÁVEIS --- */
/* =============================================== */
:root {
    --primary-color: #222;
    --secondary-color: #3d3d3d;
    --background-color: #fff;
    --section-bg: #f5f5f5;
    --border-color: #ddd;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    --spacing-xxl: 4rem;
    --text-color-light: var(--secondary-color);
    --card-bg: #ffffff;
}

body.light-theme {
    --bg-primary: #f9f9f9;
    --bg-secondary: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --bg-card: #ffffff;
}

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

html,
body {
    overflow-x: hidden;
}

html {
    font-size: 90%;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

body {
    font-family: 'Gilroy', sans-serif;
    color: var(--primary-color);
    background-color: var(--background-color);
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
    padding-top: 60px;
}

section {
    padding: var(--spacing-xxl) 0;
}

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

/* =============================================== */
/* --- TIPOGRAFIA --- */
/* =============================================== */
h1 {
    font-family: 'Touche', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

h2 {
    font-family: 'Touche', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-xl);
    text-align: left;
    color: var(--primary-color);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
}

.section-title {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin: 2rem 0 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* =============================================== */
/* --- SCROLL ANIMATIONS --- */
/* =============================================== */
.scroll-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.scroll-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* =============================================== */
/* --- HEADER --- */
/* =============================================== */
header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 20px;
}

header .logo {
    margin-left: 24px;
    display: inline-block;
}

header .botao-voltar {
    display: flex;
    align-items: center;
}

.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    font-weight: bold;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-svg {
    padding-top: 0.5rem;
    width: 32px;
    height: auto;
}

.main-header .container {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

.header-spacer {
    grid-column: 1;
}

.header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch-header {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 15px;
    align-items: center;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    font-size: 1.0rem;
}

.lang-switch-header .lang-link {
    text-decoration: none;
    color: #888;
    transition: color 0.3s ease;
}

.lang-switch-header .lang-link.active {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #00FFFB;
    text-underline-offset: 4px;
}

.lang-switch-header .lang-link:hover {
    color: #00FFFB;
}

.lang-switch-header .divider,
.divider {
    color: #444;
}

/* =============================================== */
/* --- LOGO ANIMATION --- */
/* =============================================== */
.mask-m,
.mask-z {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.mask-m {
    animation: revelarSuave 1.4s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.mask-z {
    animation: revelarSuave 1.4s cubic-bezier(0.45, 0, 0.55, 1) 0.9s forwards;
}

@keyframes revelarSuave {
    to {
        stroke-dashoffset: 0;
    }
}

.mz-base {
    fill: #fff;
}

.logo {
    display: block;
    text-align: center;
    font-family: 'Touche', sans-serif;
    font-size: 1.5rem;
    color: inherit;
    text-decoration: none;
}

/* =============================================== */
/* --- BOTÃO VOLTAR --- */
/* =============================================== */
.back-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.back-button:hover {
    transform: translateY(-50%) scale(1.1);
    color: #ddd;
}

/* =============================================== */
/* --- FOOTER --- */
/* =============================================== */
.main-footer {
    padding: 2rem 0;
    background-color: var(--bg-secondary);
    font-size: 14px !important;
    text-align: center;
    color: var(--bg-secondary);
}

.main-footer p {
    margin: 0 auto;
    max-width: fit-content;
    font-size: 14px !important;
    color: var(--text-muted) !important;
    line-height: 1.5;
}

body.dark-mode .main-footer {
    background-color: var(--bg-secondary);
}

body.dark-mode .main-footer p {
    color: var(--text-heading) !important;
}

/* =============================================== */
/* --- BOTÕES GLOBAIS --- */
/* =============================================== */
.btn {
    display: inline-block;
    color: var(--primary-color);
    background-color: transparent;
    text-decoration: none;
    padding: 12px 24px;
    border: 5px solid var(--primary-color);
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    font-family: 'Touche', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    -webkit-text-stroke: 0.4px var(--primary-color);
    text-align: center;
    margin-top: 0.5rem;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    -webkit-text-stroke: 0.4px var(--background-color);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cv-btn {
    display: block;
    width: fit-content;
    margin-left: 0;
    margin-right: auto;
    margin-top: var(--spacing-xl);
}

/* =============================================== */
/* --- BREADCRUMB --- */
/* =============================================== */
.breadcrumb-nav {
    padding: 12px 20px;
}

.breadcrumb-list {
    font-family: 'Gilroy';
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:first-child)::before {
    content: '>';
    margin: 0 10px;
    color: var(--secondary-color);
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
    color: var(--primary-color);
    font-weight: bold;
}

.breadcrumb-nav.breadcrumb-nav--alt-bg {
    background-color: var(--section-bg);
}

/* =============================================== */
/* --- HERO SECTION --- */
/* =============================================== */
.hero-section {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.profile-picture {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
}


/* ==========================================================================
   PROJECT OVERVIEW / CASE HEADER
   ========================================================================== */

.project-overview {
    padding: 56px 0 80px;
}

.overview-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.overview-pill {
    display: inline-block;
    background-color: var(--ink, #111111);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 4px;
}

/* --- META TAGS --- */
.project-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.project-meta-tag {
    font-size: 1.0rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-body);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
}

.project-meta-tag.highlight {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
}

/* --- INFO GRID (TEAM, ROLE, DURATION) --- */
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.project-info-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-info-label {
    font-size: 1.0rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.project-info-content p,
.project-info-content li {
    font-size: 1.0rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
}

.project-info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-info-content li::before {
    content: "—";
    color: var(--text-muted);
    margin-right: 8px;
}

/* --- HIGHLIGHT CARDS (DESAFIO / RESULTADO) --- */
.project-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.highlight-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.highlight-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.highlight-card-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-heading);
    margin: 0;
}

.highlight-card-content {
    font-size: 1.0rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    opacity: 0.92;
}

.highlight-card.challenge .highlight-icon {
    color: #ef4444;
}

.highlight-card.result .highlight-icon {
    color: #10b981;
}

.highlight-card.insight .highlight-icon {
    color: #3b82f6;
}

.highlight-card.impact .highlight-icon {
    color: var(--accent-gold);
}


/* ==========================================================================
   CONTEÚDO DO PROJETO
   ========================================================================== */

.project-content {
    padding-top: 80px;
    padding-bottom: 80px;
}

.list-section {
    /* cor definida no bloco de alternância acima */
}

.processo-lista {
    list-style-position: outside;
    padding-left: 20px;
    margin-top: 30px;
}

.processo-lista li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-body);
}

.processo-lista li strong {
    color: var(--text-heading);
    display: inline-block;
    margin-right: 5px;
}

.business-context>.container>p {
    margin-bottom: 40px;
}

.problem-section.dual-problem {
    padding: 80px 0;
}

.problem-title {
    text-align: center;
    margin-bottom: 40px;
}

.problem-card {
    background-color: var(--bg-element);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.problem-card-title {
    color: var(--text-heading);
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 700;
}




/* =============================================== */
/* --- SOBRE E EXPERIÊNCIA --- */
/* =============================================== */
#sobre-e-experiencia {
    padding: 80px 20px;
    scroll-margin-top: 120px;
}

#sobre-e-experiencia .container {
    max-width: 960px;
    margin: 0 auto;
}

.two-column-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.about-column {
    flex: 1.5;
}

.about-column p {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.experience-column {
    flex: 1.5;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experience-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: baseline;
    gap: 0 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.experience-item .date {
    font-size: 1rem;
    color: var(--secondary-color);
}

.experience-item .role {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.experience-item .company {
    font-size: 1rem;
    color: var(--secondary-color);
    text-align: right;
    white-space: nowrap;
}

/* =============================================== */
/* --- PROJETOS --- */
/* =============================================== */
.projects-section {
    padding: 4rem 0;
    background-color: var(--section-bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    background-color: var(--card-bg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.project-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-text-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title-mini {
    font-family: 'Touche', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    text-align: left;
}

.project-desc-mini {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.0rem;
    color: var(--text-color-light);
    margin: 0 0 1rem 0;
    line-height: 1.4;
    text-align: left;
    flex-grow: 1;
}

.project-tags-mini {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tags-mini li {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.0rem;
    font-weight: bold;
    background-color: var(--border-color);
    color: var(--text-color-light);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Load more projetos */
.load-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
    clear: both;
}

#btn-load-more-projects {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 5px solid #000;
    color: #000;
    height: 48px;
    width: 48px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn-load-more-projects:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.project-grid .project-card:nth-child(n+5) {
    display: none;
    opacity: 0;
}

.project-grid.is-open .project-card:nth-child(n+5) {
    display: block;
    animation: slideUpFade 0.5s ease forwards;
    margin-top: 30px;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================== */
/* --- PROJETOS RECOMENDADOS --- */
/* =============================================== */
.recommended-projects {
    padding: 80px 0;
    background-color: var(--bg-body);
    border-top: 1px solid var(--border-color);
}

.recommended-projects .section-title {
    margin-bottom: 40px;
    text-align: left;
}

.recommended-projects .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
}

.recommended-projects .project-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.recommended-projects .project-card:hover {
    transform: translateY(-4px);
}

.recommended-projects .image-wrapper {
    padding: 0;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.recommended-projects .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    display: block;
}

.recommended-projects .project-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* =============================================== */
/* --- CERTIFICAÇÕES --- */
/* =============================================== */
.certifications-section {
    padding: 80px 0;
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
}

.courses-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
}

.hidden-cert {
    display: none !important;
}

.courses-table.is-open .hidden-cert {
    display: flex !important;
    animation: fadeInReveal 0.5s ease forwards;
}

@keyframes fadeInReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.course-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.course-details {
    display: flex;
    flex-direction: column;
}

.course-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.school-name {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 4px;
}

.course-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    min-width: 90px;
}

.course-hours {
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.course-date {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.school-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#btn-load-more-certs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 5px solid #000;
    color: #000;
    height: 48px;
    width: 48px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn-load-more-certs:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* =============================================== */
/* --- MODAL CERTIFICADOS --- */
/* =============================================== */
.cert-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cert-modal-overlay.open {
    display: flex;
}

.cert-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    max-width: 720px;
    width: 100%;
    position: relative;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
    animation: modalEntrada 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cert-modal-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.cert-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.cert-modal-close:hover {
    transform: scale(1.1);
}

@keyframes modalEntrada {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#contact {
    padding: var(--spacing-xxl, 4rem) 20px;
    background-color: var(--bg-body);
}

#contact .section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

#contact p {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    max-width: 460px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    text-align: center;
}

.contact-status-text {
    font-size: 0.7rem !important;
    color: var(--text-muted) !important;
}

body.dark-mode #contact p {
    color: var(--text-muted) !important;
}

/* =============================================== */
/* --- PROJECT OVERVIEW / CASE HEADER --- */
/* =============================================== */
.project-overview {
    padding: 80px 0 60px;
}

.project-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.project-meta-tag {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-body);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
}

.project-meta-tag.highlight {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.project-info-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-info-label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.project-info-content p,
.project-info-content li {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
}

.project-info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-info-content li::before {
    content: "—";
    color: var(--text-muted);
    margin-right: 8px;
}

.project-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.highlight-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.highlight-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.highlight-card-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-heading);
    margin: 0;
}

.highlight-card-content {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    opacity: 0.92;
}

.highlight-card.challenge .highlight-icon {
    color: #ef4444;
}

.highlight-card.result .highlight-icon {
    color: #10b981;
}

.highlight-card.insight .highlight-icon {
    color: #3b82f6;
}

.highlight-card.impact .highlight-icon {
    color: var(--accent-gold);
}

/* =============================================== */
/* --- OVERLAY MENU --- */
/* =============================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

#btn-fechar-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#btn-fechar-overlay:hover {
    transform: rotate(90deg);
    color: #ff4757;
}

.overlay-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.menu-link {
    font-family: 'Gilroy', 'Inter', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-link:hover {
    color: #a8a7a7;
    transform: translateY(-5px);
}

#contact {
    padding: var(--spacing-xxl) 20px;
    background-color: var(--background-color);
}

#contact .container {
    max-width: 960px;
    padding: 0;
}

.contact-card {
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 72px 64px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--section-bg);
}

.contact-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.contact-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.contact-status-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

#contact .section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
}

#contact p {
    font-size: 1rem;
    color: var(--secondary-color);
    max-width: 460px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    text-align: center;
}

#contact .button-group {
    justify-content: center;
    gap: 12px;
}

body.dark-mode #contact {
    background-color: #121212;
}

body.dark-mode .contact-card {
    background-color: #1a1a1a;
    border-color: #444;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 48px 24px;
    }

    #contact .section-title {
        font-size: 1.8rem;
    }
}

/* =============================================== */
/* --- DARK MODE BUTTON --- */
/* =============================================== */
.dark-mode-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid var(--background-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.dark-mode-button:hover {
    transform: scale(1.1);
}

.dark-mode-button svg {
    position: absolute;
    width: 26px;
    height: 26px;
    stroke: var(--background-color);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.dark-mode-button .icon-moon {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

.dark-mode-button .icon-sun {
    transform: translateY(150%) rotate(90deg);
    opacity: 0;
}

/* =============================================== */
/* --- DARK MODE --- */
/* =============================================== */
body.dark-mode {
    --primary-color: #f1f1f1;
    --secondary-color: #f3f3f3;
    --background-color: #121212;
    --section-bg: #1a1a1a;
    --text-color-light: #a0a0a0;
    --border-color: #444;
    --card-bg: #222222;
    --bullet-bg-dark: #333333;
}

body.dark-mode .main-header {
    background-color: var(--card-bg);
}

body.dark-mode p {
    color: var(--text-color-light);
}

body.dark-mode .projects-section {
    background-color: var(--section-bg);
}

body.dark-mode #contact {
    background-color: #121212;
}

body:not(.dark-mode) #contact .container {
    background-color: var(--card-bg);
}

body.dark-mode .btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    -webkit-text-stroke: 0.4px var(--primary-color);
}

body.dark-mode .btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    -webkit-text-stroke: 0.4px var(--background-color);
}

body.dark-mode .experience-item {
    border-bottom-color: var(--border-color);
}

body.dark-mode .breadcrumb-nav.breadcrumb-nav--alt-bg {
    background-color: var(--section-bg);
}

body.dark-mode .recommended-projects {
    background-color: var(--section-bg);
    border-top: 1px solid var(--border-color);
}

body.dark-mode #btn-load-more-projects {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-mode #btn-load-more-projects:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000;
}

body.dark-mode #btn-load-more-certs {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-mode #btn-load-more-certs:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000;
}

body.dark-mode .project-card {
    background-color: var(--card-bg);
}

body.dark-mode .project-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .project-title-mini {
    color: var(--primary-color);
}

body.dark-mode .project-desc-mini {
    color: var(--text-color-light);
}

body.dark-mode .project-tags-mini li {
    background-color: var(--bullet-bg-dark);
    color: var(--primary-color);
}

body.dark-mode #sobre-e-experiencia {
    background-color: #121212;
}

body:not(.dark-mode) #sobre-e-experiencia {
    background-color: var(--background-color);
}

body.dark-mode strong {
    color: #fff;
}

body.dark-mode .main-footer {
    background-color: #1a1a1a;
}

body.dark-mode .dark-mode-button .icon-moon {
    transform: translateY(-150%) rotate(-90deg);
    opacity: 0;
}

body.dark-mode .dark-mode-button .icon-sun {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

body.dark-mode .cert-modal-box {
    background: #1e1e1e;
}

body.dark-mode .cert-modal-close {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .course-row {
    border-color: var(--border-color);
}

body.dark-mode .course-hours {
    background: #333;
    color: #fff;
    border-color: #555;
}


/* =============================================== */
/* --- RESPONSIVO --- */
/* =============================================== */
@media (max-width: 1024px) {
    .project-info-grid {
        gap: 40px;
    }

    .highlight-card {
        padding: 28px;
    }
}

@media (max-width: 768px) {


    .two-column-layout > div:nth-child(2) {
        order: 1; 
    }

    .two-column-layout > div:nth-child(1) {
        order: 2; 
    }

    main .container {
        padding: 0 20px;
        max-width: 90%;

    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .courses-table {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .two-column-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-column,
    .experience-column {
        width: 100%;
        flex: none;
    }

    #sobre-e-experiencia .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .button-group .btn {
        width: 85%;
        text-align: center;
    }

    .recommended-projects .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-overview {
        padding: 60px 0 40px;
    }

    .project-meta-tags {
        gap: 8px;
        margin-bottom: 40px;
    }

    .project-meta-tag {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 48px;
    }

    .project-info-block {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border-color);
    }

    .project-info-block:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .project-highlights {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .highlight-card {
        padding: 24px;
    }

    .highlight-card-title {
        font-size: 1.15rem;
    }

    /* era 1.5rem — alinhado com bolao.css */
    .highlight-card-content {
        font-size: 0.9rem;
    }

    /* era 1.2rem — alinhado com bolao.css */

    .experience-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .experience-item .company {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .highlight-card {
        transition: none;
    }

    .highlight-card:hover {
        transform: none;
    }
}