@font-face {
    font-family: 'Space Grotesk';
    src: url('assets/fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype-variations'),
         url('assets/fonts/Space_Grotesk/static/SpaceGrotesk-Regular.ttf') format('truetype');
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('assets/fonts/Space_Grotesk/static/SpaceGrotesk-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('assets/fonts/Space_Grotesk/static/SpaceGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('assets/fonts/Space_Grotesk/static/SpaceGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('assets/fonts/Space_Grotesk/static/SpaceGrotesk-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('assets/fonts/Space_Grotesk/static/SpaceGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg-page: #CFFFE2;
    --bg-card: #F9F8F6;
    --bg-card-element: #A2D5C6;
    --bg-element-dark: #000000;
    --text-main: #000000;
    --text-muted: #4a4a4a;
    /* Muted but readable */
    --border-color: #A2D5C6;
    --dot-color: rgba(0, 0, 0, 0.05);
    --dot-color-glow: rgba(0, 0, 0, 0.15);
    --mouse-x: -100px;
    --mouse-y: -100px;
    --border-radius-lg: 32px;
    --border-radius-md: 24px;
    --border-radius-sm: 18px;
    --border-radius-full: 999px;
    --scrollbar-idle: rgba(0, 0, 0, 0.03);
    /* Barra de rolagem quase invisÃ­vel sem hover */

    /* Cursor personalizado (Bolinha Verde Menta Escuro) */
    --cursor-dot: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='5' fill='%232F836A' stroke='none' stroke-width='0'/%3E%3C/svg%3E") 8 8, auto;
}

body.dark-mode {
    --bg-page: #1b1b1b;
    --bg-card: #1b1b1b;
    --bg-card-element: #A2D5C6;
    --bg-element-dark: #CFFFE2;
    --text-main: #F9F8F6;
    --text-muted: #A2D5C6;
    --border-color: rgba(255, 255, 255, 0.1);
    --dot-color: rgba(255, 255, 255, 0.05);
    --dot-color-glow: var(--bg-element-dark);
    /* Verde menta claro acendendo no dark mode */
    --scrollbar-idle: rgba(255, 255, 255, 0.03);
    /* Barra de rolagem suave no dark mode */

    /* Cursor personalizado (Bolinha Verde Menta Claro) */
    --cursor-dot: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='5' fill='%238BFFB9' stroke='none' stroke-width='0'/%3E%3C/svg%3E") 8 8, auto;
}

.card,
.projeto-cover,
.project-main-cover,
.gallery-item,
.highlight-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

body.dark-mode .card,
body.dark-mode .projeto-cover,
body.dark-mode .project-main-cover,
body.dark-mode .gallery-item,
body.dark-mode .highlight-card {
    border: 1px solid var(--border-color);
    box-shadow: none;
}

body.dark-mode .projeto-cover,
body.dark-mode .project-main-cover {
    background-color: rgba(255, 255, 255, 0.02);
    /* Fundo neutro para evitar vazamento de verde menta */
}

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


body.dark-mode .timeline-card {
    background-color: var(--bg-card-element);
    color: #000000;
}

body.dark-mode .timeline-card .role {
    color: #1A4231;
    font-weight: 600;
}

/* Bolinhas inativas no dark mode */
body.dark-mode .dot:not(.active) {
    background-color: rgba(142, 186, 172, 0.4);
    /* Verde menta translÃºcido/escuro para as bolinhas nÃ£o selecionadas */
}

body.dark-mode .icon-btn,
body.dark-mode .social-icon {
    background-color: var(--bg-element-dark);
    /* Fica CFFFE2 (verde claro) no dark mode */
    color: #000000;
    /* Ãcone preto para dar contraste no verde */
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark-mode .icon-btn:hover,
body.dark-mode .social-icon:hover {
    background-color: var(--bg-card-element);
    /* #A2D5C6 no hover, igual ao white mode */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--bg-page);
    background-image: radial-gradient(var(--dot-color) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    background-position: 0 0;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 3vh 3vw;
    /* Use relative padding */
    height: 100vh;
    overflow: hidden;
    /* Prevent body scroll */
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: var(--cursor-dot);
}

/* O cursor customizado se mantÃ©m mesmo sobre itens clicÃ¡veis */
a,
button,
.icon-btn,
.social-icon,
.dot,
.toggle-switch,
.profile-pic,
.projeto-card,
.timeline-item,
[role="button"] {
    cursor: var(--cursor-dot) !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(var(--dot-color-glow) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    background-position: 0 0;
    -webkit-mask-image: radial-gradient(circle 200px at var(--mouse-x) var(--mouse-y), black, transparent);
    mask-image: radial-gradient(circle 200px at var(--mouse-x) var(--mouse-y), black, transparent);
    transition: background-image 0.3s ease;
}

.page-background {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    height: 100%;
}

/* Card General Style */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Centralizado acima */
    box-shadow: none;
    /* RemoÃ§Ã£o total da sombra conforme solicitado */
}

.card.header {
    padding: 32px 40px;
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-section {
    display: flex;
    align-items: center;
    /* Centraliza verticalmente foto e textos */
    gap: 24px;
    /* EspaÃ§o generoso entre foto e info */
}

.profile-pic {
    width: 120px;
    /* Leve reduÃ§Ã£o para melhor encaixe */
    height: 120px;
    perspective: 1000px;
    /* Perspectiva 3D */
    cursor: pointer;
    flex-shrink: 0;
}

.profile-pic-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.profile-pic.flipped .profile-pic-inner {
    transform: rotateY(180deg);
}

.profile-pic-front,
.profile-pic-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    /* Garante que a foto respeite os cantos arredondados */
    border: 2px solid var(--bg-card);
    /* Borda da mesma cor do container */
}

.profile-pic-back {
    transform: rotateY(180deg);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Faz a foto preencher o quadrado sem distorcer */
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Aumentado de 4px para melhor espaÃ§amento entre textos */
    justify-content: center;
}

.profile-details h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
    color: var(--text-main);
}

.profile-details h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
    /* Set a fixed height matching the line height to prevent layout shifts during animation */
    height: 24px;
    display: flex;
    align-items: center;
}

#role-slider {
    display: inline-block;
    position: relative;
}

#role-slider::after {
    content: '|';
    margin-left: 2px;
    animation: role-blink 0.8s step-end infinite;
    color: var(--text-muted);
    font-weight: 300;
}

@keyframes role-blink {
    from, to { opacity: 0 }
    50% { opacity: 1 }
}

.profile-details p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    /* Aumentado para melhor separaÃ§Ã£o visual entre as categorias de botÃµes */
}

.top-buttons {
    display: flex;
    gap: 12px;
    /* Melhor respiro entre Ã­cones de topo */
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-page);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-main);
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: var(--bg-card-element);
}

.mobile-menu-toggle,
.mobile-menu-quick-controls {
    display: none;
}

.bottom-buttons {
    display: flex;
    gap: 12px;
    /* Mais espaÃ§o entre botÃµes */
}

.btn.outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 24px;
    border: 1px solid var(--text-main);
    background-color: transparent;
    color: var(--text-main);
    border-radius: var(--border-radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.btn.outline i {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.btn.outline:hover {
    background-color: var(--text-main);
    color: var(--bg-page);
    /* Fica verde mint no white-mode */
}

body.dark-mode .btn.outline {
    border: 1px solid var(--bg-element-dark);
    /* Borda verde mint claro */
    color: var(--bg-element-dark);
    /* Texto verde mint claro */
}

body.dark-mode .btn.outline:hover {
    background-color: var(--bg-element-dark);
    /* Preenchimento verde mint claro */
    color: #000000;
    /* Texto preto fixo no hover do dark-mode */
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: stretch;
    flex: 1;
    /* Takes remaining height */
    min-height: 0;
    /* Prevents overflow */
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Permite que o filho com scroll encolha e funcione */
    position: relative;
    /* Para ancorar o efeito de fade/blur */
}

/* Efeito de fade (blur) no fundo do container para suavizar o corte de texto */
.sidebar::after {
    content: '';
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
    pointer-events: none;
    z-index: 10;
}

.sidebar-scroll-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Aumentado para melhor separaÃ§Ã£o entre seÃ§Ãµes */
    margin-right: -24px;
    padding-right: 24px;
    padding-bottom: 60px;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
}

.sidebar-scroll-area,
.sidebar-scroll-area,
.modal-content-wrapper,
.modal-body,
.project-scroll-area,
.timeline-container {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    transition: scrollbar-color 0.2s ease;
}

.sidebar-scroll-area:hover,
.modal-content-wrapper:hover,
.modal-body:hover,
.project-scroll-area:hover,
.timeline-container:hover {
    scrollbar-color: #2F836A transparent;
}

body.dark-mode .sidebar-scroll-area,
body.dark-mode .modal-content-wrapper,
body.dark-mode .modal-body,
body.dark-mode .project-scroll-area,
body.dark-mode .timeline-container {
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

body.dark-mode .sidebar-scroll-area:hover,
body.dark-mode .modal-content-wrapper:hover,
body.dark-mode .modal-body:hover,
body.dark-mode .project-scroll-area:hover,
body.dark-mode .timeline-container:hover {
    scrollbar-color: #CFFFE2 transparent;
}

/* Custom Scrollbar Webkit Unificada (Chrome, Edge, Safari, Opera, Brave) */
.sidebar-scroll-area::-webkit-scrollbar,
.content-area::-webkit-scrollbar,
.modal-content-wrapper::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.project-scroll-area::-webkit-scrollbar,
.timeline-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sidebar-scroll-area::-webkit-scrollbar-track,
.content-area::-webkit-scrollbar-track,
.modal-content-wrapper::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.project-scroll-area::-webkit-scrollbar-track,
.timeline-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.sidebar-scroll-area::-webkit-scrollbar-thumb,
.content-area::-webkit-scrollbar-thumb,
.modal-content-wrapper::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.project-scroll-area::-webkit-scrollbar-thumb,
.timeline-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

body.dark-mode .sidebar-scroll-area::-webkit-scrollbar-thumb,
body.dark-mode .content-area::-webkit-scrollbar-thumb,
body.dark-mode .modal-content-wrapper::-webkit-scrollbar-thumb,
body.dark-mode .modal-body::-webkit-scrollbar-thumb,
body.dark-mode .project-scroll-area::-webkit-scrollbar-thumb,
body.dark-mode .timeline-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hover da Scrollbar: White Mode -> Verde menta escuro | Dark Mode -> Verde menta claro */
.sidebar-scroll-area:hover::-webkit-scrollbar-thumb,
.content-area:hover::-webkit-scrollbar-thumb,
.modal-content-wrapper:hover::-webkit-scrollbar-thumb,
.modal-body:hover::-webkit-scrollbar-thumb,
.project-scroll-area:hover::-webkit-scrollbar-thumb,
.timeline-container:hover::-webkit-scrollbar-thumb,
.sidebar-scroll-area::-webkit-scrollbar-thumb:hover,
.content-area::-webkit-scrollbar-thumb:hover,
.modal-content-wrapper::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.project-scroll-area::-webkit-scrollbar-thumb:hover,
.timeline-container::-webkit-scrollbar-thumb:hover {
    background-color: #2F836A !important;
}

body.dark-mode .sidebar-scroll-area:hover::-webkit-scrollbar-thumb,
body.dark-mode .content-area:hover::-webkit-scrollbar-thumb,
body.dark-mode .modal-content-wrapper:hover::-webkit-scrollbar-thumb,
body.dark-mode .modal-body:hover::-webkit-scrollbar-thumb,
body.dark-mode .project-scroll-area:hover::-webkit-scrollbar-thumb,
body.dark-mode .timeline-container:hover::-webkit-scrollbar-thumb,
body.dark-mode .sidebar-scroll-area::-webkit-scrollbar-thumb:hover,
body.dark-mode .content-area::-webkit-scrollbar-thumb:hover,
body.dark-mode .modal-content-wrapper::-webkit-scrollbar-thumb:hover,
body.dark-mode .modal-body::-webkit-scrollbar-thumb:hover,
body.dark-mode .project-scroll-area::-webkit-scrollbar-thumb:hover,
body.dark-mode .timeline-container::-webkit-scrollbar-thumb:hover {
    background-color: #CFFFE2 !important;
}

.section-title {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px !important;
    font-weight: 800;
    margin-top: 8px;
}

.sidebar-scroll-area .section-title:first-child {
    margin-top: 0;
}

.text-content {
    font-size: 14px;
    /* Leve reduÃ§Ã£o para maior elegÃ¢ncia */
    line-height: 1.7;
    /* Mais respiro entre linhas */
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 16px;
    /* EspaÃ§o entre parÃ¡grafos e para afastar do prÃ³ximo tÃ­tulo */
}

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

.social-links {
    display: grid;
    grid-template-columns: repeat(4, 44px);
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 44px;
    height: 44px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background-color: var(--bg-page);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.2s, transform 0.2s;
    box-sizing: border-box;
}

.social-icon:hover {
    background-color: var(--bg-card-element);
    transform: scale(1.05);
}

.divider {
    display: none;
}

.list-content {
    list-style-type: none;
    /* Removendo bullets para design mais limpo */
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* EspaÃ§amento claro entre itens */
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    border: 1px solid var(--text-main);
    border-radius: var(--border-radius-full);
    font-size: 12px;
}

.age-text {
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: normal;
    word-break: break-word;
    display: inline-block;
    line-height: 1.5;
}

/* Content Area */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: none;
}

.content-area::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Projetos */
.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0;
    text-transform: uppercase;
}

.projetos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.projetos-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-page);
    transform: scale(1.05);
}

/* Ajustes especÃ­ficos para as setas no Dark Mode */
body.dark-mode .nav-btn {
    border-color: var(--bg-element-dark);
    color: var(--bg-element-dark);
}

body.dark-mode .nav-btn:hover {
    background-color: var(--bg-element-dark);
    color: #000000;
}

.nav-btn i {
    font-size: 14px;
}

.projetos-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 420px;
    position: relative;
    justify-content: space-between;
}

.projetos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.projetos-slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 0;
    margin: -10px 0;
}

.projetos-slider-track {
    display: flex;
    gap: 24px;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-sizing: border-box;
    align-items: center;
}

.projetos-page {
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: center;
    box-sizing: border-box;
}

.projeto-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, filter 0.4s ease;
    box-sizing: border-box;
}

/* Oculta os dots 3 e 4 no desktop padrão quando são 2 por página */
.dot.dot-single-only {
    display: none;
}

/* Efeito de foco: escurece os outros cards ao passar o mouse na track */
.projetos-slider-track:hover .projeto-card {
    opacity: 0.45;
    filter: grayscale(0.2) brightness(0.85);
}

.projetos-slider-track .projeto-card:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1.05);
}

/* Antigo placeholder - manter apenas para compatibilidade se necessário */
.projeto-card-old {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.projeto-cover {
    background-color: var(--bg-card-element);
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.projeto-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.projeto-info {
    display: none;
}

.carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-right: 4px;
    width: 100%;
    z-index: 5;
    flex-shrink: 0;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    background-color: var(--text-main);
    width: 20px;
    border-radius: 4px;
}

/* Carreira Timeline */
.carreira-section {
    position: relative;
    padding: 32px 40px 24px 40px !important;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.timeline-container {
    position: relative;
    display: flex;
    justify-content: flex-start;
    margin-top: 0;
    padding: 12px 16px 16px 16px;
    margin: 0;
    gap: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.timeline-container::after {
    content: '';
    width: 32px; /* Espaço rolável extra e seguro para hover */
    flex-shrink: 0;
    display: block;
}

/* Barra de rolagem horizontal interna com espaçamento e padding elegante (UI/UX) */
.timeline-container::-webkit-scrollbar {
    display: block;
    height: 4px;
}

.timeline-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
    margin: 0 16px; /* Respiro refinado nas extremidades da barra */
}

body.dark-mode .timeline-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.timeline-container::-webkit-scrollbar-thumb {
    background: var(--border-color) !important;
    border-radius: 999px !important;
    transition: background-color 0.2s ease !important;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: #2F836A !important; /* Verde menta escuro no white mode */
}

body.dark-mode .timeline-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
}

body.dark-mode .timeline-container::-webkit-scrollbar-thumb:hover {
    background: #CFFFE2 !important; /* Verde menta claro brilhante no dark mode */
}

body.dark-mode .timeline-container:hover {
    scrollbar-color: #CFFFE2 transparent;
}

.timeline-line {
    position: absolute;
    bottom: 47px;
    left: 96px; /* Alinhado exatamente ao centro do primeiro ponto */
    width: calc(6 * 160px + 5 * 32px - 160px); /* Extensão total do primeiro ao último ponto */
    height: 1px;
    background-color: var(--border-color);
    opacity: 0.6;
    z-index: 1;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
    width: 160px;
    /* Reduzido conforme solicitado */
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efeito de foco: escurece os outros itens ao passar o mouse */
.timeline-container:hover .timeline-item {
    opacity: 0.3;
    transform: scale(0.95);
}

.timeline-container .timeline-item:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
    z-index: 10;
}

.timeline-card {
    background-color: var(--bg-element-dark);
    color: var(--bg-page);
    padding: 8px 12px;
    /* Mais compacto */
    border-radius: 8px;
    width: 100%;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Alinha o conteÃºdo no topo do card */
    flex: 1;
    height: auto;
    transition: box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.dark-mode .timeline-item:hover .timeline-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.timeline-card .company {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
    /* SeparaÃ§Ã£o clara entre empresa e cargo */
}

.timeline-card .role {
    font-weight: 600;
    font-size: 11px;
    /* Aumentado de 10px para acessibilidade */
    color: var(--bg-card-element);
    line-height: 1.4;
    margin-bottom: auto;
}

.timeline-card .date-range {
    font-weight: 400;
    font-size: 9px;
    opacity: 0.6;
    margin-top: 4px;
    /* Respiro acima da data */
}

.timeline-point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin-bottom: 8px;
    /* Maior distÃ¢ncia do ano para nÃ£o colar na linha */
    position: relative;
    z-index: 2;
    border: 3px solid var(--bg-card);
    /* Respiro em volta do ponto */
    transition: all 0.3s ease;
}

.timeline-year {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    height: 15px;
    /* Altura fixa para alinhar as bolinhas perfeitamente */
    line-height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status Online Animations */
.online-status {
    color: var(--text-main);
    gap: 5px;
    line-height: 15px;
    /* Exatamente igual ao timeline-year para nÃ£o empurrar o traÃ§o */
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    /* Verde menta vibrante */
    border-radius: 50%;
    display: block;
    /* Flex item block */
    flex-shrink: 0;
    margin-bottom: 1px;
    /* Compensa a altura das letras para um alinhamento perfeito */
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ============================================================
   RESPONSIVIDADE INTELIGENTE PARA DESKTOP MENOR & LAPTOPS (901px a 1280px e Alturas Menores)
   Mantém o Bento Grid proporcional, fluido e sem quebrar os elementos.
   ============================================================ */
@media (max-width: 1280px) and (min-width: 901px),
       (max-height: 850px) and (min-width: 901px) {
    body {
        padding: 2vh 2vw;
    }

    .container {
        gap: 16px;
    }

    .card {
        padding: 24px 30px;
        border-radius: var(--border-radius-md);
    }

    .card.header {
        padding: 20px 30px;
    }

    .profile-pic {
        width: 90px;
        height: 90px;
    }

    .profile-details h1 {
        font-size: 28px;
    }

    .profile-details h2 {
        font-size: 15px;
        height: 20px;
    }

    .main-layout {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }

    .sidebar-scroll-area {
        gap: 24px;
        margin-right: -16px;
        padding-right: 16px;
        padding-bottom: 40px;
    }

    .sidebar::after {
        bottom: 20px;
        left: 20px;
        right: 20px;
        height: 40px;
    }

    .content-area {
        gap: 16px;
    }

    .social-links {
        grid-template-columns: repeat(4, 38px);
        gap: 8px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 17px;
    }

    .projetos-section {
        min-height: 0;
        padding: 24px 30px;
    }

    .projetos-header {
        margin-bottom: 16px;
    }

    .projetos-slider-container {
        padding: 6px 0 6px 0;
        margin: 0;
        overflow: hidden;
    }

    .carousel-indicators {
        margin-top: 22px;
    }

    .projeto-cover {
        aspect-ratio: 16 / 10;
        margin-bottom: 0;
        max-height: 220px;
    }

    .carreira-section {
        padding: 24px 30px 24px 30px !important;
    }

    .timeline-container {
        padding: 12px 20px 18px 20px;
        margin-left: 0;
        margin-right: 0;
        gap: 24px;
        overflow-x: auto !important;
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar-idle) transparent;
        scroll-behavior: smooth;
        cursor: grab;
    }

    .timeline-container:active {
        cursor: grabbing;
    }

    .timeline-container:hover {
        scrollbar-color: #8EBAAC transparent;
    }

    .timeline-container::-webkit-scrollbar {
        display: block !important;
        height: 6px;
    }

    .timeline-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.04);
        border-radius: 999px;
        margin: 0 10px;
    }

    body.dark-mode .timeline-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.06);
    }

    .timeline-container::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 999px;
    }

    .timeline-line {
        left: 20px;
        right: 20px;
        bottom: 47px;
    }

    .timeline-item {
        width: 150px;
        flex-shrink: 0;
        justify-content: flex-end;
    }

    .timeline-card {
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    .timeline-card .company {
        font-size: 11px;
    }

    .timeline-card .role {
        font-size: 11px;
    }

    .timeline-card .date-range {
        font-size: 9px;
    }

    .timeline-point {
        margin-bottom: 8px;
    }
}

/* ============================================================
   TRANSIÇÃO PARA 1 PROJETO POR PÁGINA EM TELAS COMPACTAS (901px a 1150px)
   ============================================================ */
@media (max-width: 1150px) and (min-width: 901px) {
    .main-layout {
        grid-template-columns: 270px 1fr;
    }

    .projetos-slider-track {
        gap: 0;
    }

    .projeto-card {
        flex: 0 0 100% !important; /* 1 projeto ocupa 100% da largura do slider */
        padding: 0 4px;
    }

    .dot.dot-single-only {
        display: block !important; /* Exibe os 4 dots para os 4 projetos individuais */
    }
}

/* ============================================================
   RESPONSIVIDADE MOBILE & TABLET (<= 900px)
   ============================================================ */
@media (max-width: 900px) {
    html {
        height: auto;
        overflow-y: auto;
    }

    body {
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 16px 16px 40px 16px !important;
        display: block !important;
    }

    .page-background {
        height: auto !important;
        max-width: 100% !important;
    }

    .container {
        height: auto !important;
        gap: 16px !important;
    }

    .card {
        padding: 24px 20px !important;
        border-radius: var(--border-radius-md) !important;
        height: auto !important;
    }

    /* Header Mobile com Menu Hamburguer & Virtual Pet */
    .card.header,
    .header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 12px !important;
        padding: 22px 20px 58px 20px !important; /* Espaço inferior para a nuvem pet patrulhar com folga */
        position: relative !important;
        overflow: visible !important;
        min-height: 140px !important;
    }

    .profile-section {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 12px !important;
        width: auto !important;
        flex: 1 !important;
        min-width: 0 !important;
        z-index: 5 !important;
    }

    /* Foto de perfil um pouco maior no mobile */
    .profile-pic {
        width: 68px !important;
        height: 68px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .profile-pic-front,
    .profile-pic-back {
        border-radius: var(--border-radius-md) !important;
    }

    .profile-details {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 2px !important;
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /* Nome com tamanho harmonioso e compacto */
    .profile-details h1 {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        line-height: 1.15 !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    /* Título / Cargo rotativo sem quebra de linha em nenhuma palavra */
    .profile-details h2 {
        font-size: 11.5px !important;
        font-weight: 500 !important;
        margin: 0 !important;
        height: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .profile-details h2 #role-slider {
        white-space: nowrap !important;
    }

    .profile-details p {
        font-size: 11px !important;
        color: var(--text-muted) !important;
        justify-content: flex-start !important;
        text-align: left !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    /* Ações do Header no Mobile */
    .header-actions {
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .top-buttons {
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* No mobile, os botões de tema e tradução vão para dentro do menu hamburguer */
    .header-actions .top-buttons #theme-toggle,
    .header-actions .top-buttons #translate-btn {
        display: none !important;
    }

    /* Botão Hambúrguer Mobile */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background-color: var(--bg-page) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        cursor: pointer !important;
        font-size: 22px !important;
        color: var(--text-main) !important;
        transition: all 0.25s ease !important;
        z-index: 1001 !important;
    }

    body.dark-mode .mobile-menu-toggle {
        border-color: rgba(255, 255, 255, 0.08) !important;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.92) !important;
    }

    .icon-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }

    /* Menu Dropdown Mobile */
    .bottom-buttons {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 12px) !important;
        right: 0 !important;
        left: auto !important;
        min-width: 220px !important;
        width: max-content !important;
        max-width: 90vw !important;
        background-color: var(--bg-card) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: var(--border-radius-md) !important;
        padding: 16px 14px !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        z-index: 9999 !important;
        box-sizing: border-box !important;
    }

    body.dark-mode .bottom-buttons {
        border-color: rgba(255, 255, 255, 0.12) !important;
        background-color: #1a1a1a !important;
    }

    .bottom-buttons.mobile-menu-open {
        display: flex !important;
        animation: mobileMenuSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    @keyframes mobileMenuSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Linha de controles rápidos (Light/Dark mode & Idioma) no topo do menu */
    .mobile-menu-quick-controls {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        margin-bottom: 2px !important;
        width: 100% !important;
    }

    body.dark-mode .mobile-menu-quick-controls {
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .mobile-menu-quick-controls .icon-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }

    /* Links de Navegação do Menu */
    .bottom-buttons .btn {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: var(--border-radius-full) !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Nuvem Virtual Pet no Mobile - Camada frontal para sobrepor os botões do header */
    .virtual-pet {
        display: flex !important;
        position: absolute !important;
        width: 46px !important;
        height: 46px !important;
        bottom: 6px !important;
        z-index: 500 !important; /* Camada superior em relação aos botões do cabeçalho */
    }

    .virtual-pet img {
        width: 100% !important;
        height: 100% !important;
    }

    .speech-bubble {
        font-size: 11px !important;
        padding: 6px 10px !important;
        z-index: 600 !important; /* Balão de fala sobrepõe botões */
    }

    /* Layout & Sidebar Mobile */
    .main-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        height: auto !important;
    }

    .sidebar {
        height: auto !important;
        overflow: visible !important;
    }

    .sidebar::after {
        display: none !important;
    }

    .sidebar-scroll-area {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
    }

    .section-block {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin: 0 !important;
    }

    .section-title {
        text-align: left !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .text-content {
        text-align: left !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 0 !important;
    }

    .list-content {
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        font-size: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .skills-tags {
        justify-content: flex-start !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    .age-text {
        text-align: left !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        margin: 0 !important;
    }

    /* Redes sociais centralizadas no mobile */
    .social-links {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important;
        margin-top: 6px !important;
        width: 100% !important;
    }

    .social-icon {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        font-size: 20px !important;
    }

    /* Área de Conteúdo Mobile */
    .content-area {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    /* Projetos Slider Mobile - Páginas com 2 projetos empilhados verticalmente */
    .projetos-section {
        padding: 24px 20px 20px 20px !important;
        height: auto !important;
        min-height: 0 !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .projetos-header {
        margin-bottom: 16px !important;
    }

    .projetos-slider-container {
        overflow: hidden !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        flex: none !important;
        margin: 0 !important;
        padding: 4px 0 6px 0 !important;
    }

    .projetos-slider-track {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
        width: 100% !important;
        height: auto !important;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .projetos-page {
        flex: 0 0 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important; /* Empilha os 2 projetos um em cima do outro */
        gap: 16px !important;
        height: auto !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }

    .projeto-card {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .projeto-cover {
        width: 100% !important;
        max-width: 100% !important;
        height: 120px !important;
        aspect-ratio: auto !important;
        border-radius: var(--border-radius-sm) !important;
        overflow: hidden !important;
        margin-bottom: 0 !important;
    }

    .projeto-cover img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: cover !important;
    }

    .carousel-indicators {
        display: flex !important;
        justify-content: flex-end !important;
        margin-top: 14px !important;
    }

    .projetos-nav {
        display: flex !important;
    }

    /* Carreira Mobile - Cards limpos, padronizados e sem linha/dots */
    .carreira-section {
        padding: 24px 20px 24px 20px !important;
        height: auto !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .carreira-section::after {
        display: none !important;
    }

    .carreira-section .section-title {
        margin-bottom: 16px !important;
    }

    .timeline-container {
        padding: 4px 14px 28px 0 !important; /* Respiro à direita da scrollbar e 28px abaixo */
        margin: 0 -4px 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        max-height: 340px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        position: relative !important;
        align-items: stretch !important;
        cursor: default !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: var(--border-color) transparent !important;
        /* Efeito de fade suave e natural diretamente no corte dos cards */
        -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 48px), transparent 100%) !important;
        mask-image: linear-gradient(to bottom, black calc(100% - 48px), transparent 100%) !important;
    }

    .timeline-container::-webkit-scrollbar {
        display: block !important;
        width: 4px !important;
    }

    .timeline-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.03) !important;
        border-radius: 999px !important;
        margin: 4px 0 !important;
    }

    body.dark-mode .timeline-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.04) !important;
    }

    .timeline-container::-webkit-scrollbar-thumb {
        background: var(--border-color) !important;
        border-radius: 999px !important;
        transition: background-color 0.2s ease !important;
    }

    .timeline-container::-webkit-scrollbar-thumb:hover {
        background: #2F836A !important;
    }

    body.dark-mode .timeline-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15) !important;
    }

    body.dark-mode .timeline-container::-webkit-scrollbar-thumb:hover {
        background: #CFFFE2 !important;
    }

    .timeline-container::after {
        display: none !important;
    }

    /* Oculta a linha vertical no mobile */
    .timeline-line {
        display: none !important;
    }

    /* Oculta as dots (bolinhas) no mobile */
    .timeline-point {
        display: none !important;
    }

    .timeline-item {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 8px !important;
        z-index: 2 !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .timeline-item::before {
        display: none !important;
    }

    .timeline-card {
        margin: 0 !important;
        width: 100% !important;
        padding: 16px 18px !important;
        border-radius: var(--border-radius-sm) !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: 72px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2px !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }

    .timeline-card .company {
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .timeline-card .role {
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    .timeline-card .date-range {
        font-size: 12px !important;
        margin-top: 4px !important;
        opacity: 0.7 !important;
        line-height: 1 !important;
    }

    .timeline-year {
        font-size: 13px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        padding: 0 2px !important;
        height: auto !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: static !important;
        color: var(--text-main) !important;
        letter-spacing: 0.5px !important;
    }

    .online-status {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
}

/* Virtual Pet Styles */
.virtual-pet {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 100;
    cursor: var(--cursor-dot);
    /* MantÃ©m o cursor de bolinha personalizado */
    user-select: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 5px;
    /* PosiÃ§Ã£o inicial rente ao fundo */
}

.virtual-pet:active {
    cursor: var(--cursor-dot);
}

.virtual-pet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--bg-element-dark);
    color: var(--bg-page);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 101;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--bg-element-dark) transparent transparent transparent;
}

.virtual-pet:hover .speech-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(-15px);
}

/* Career Details Modal Overhaul - Premium Design */
.career-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.career-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.career-modal {
    background-color: var(--bg-card);
    width: 90%;
    max-width: 640px;
    height: 85vh;
    /* Altura padronizada (85% da tela) */
    max-height: 800px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Garante que nada escape dos cantos arredondados */
}

.career-modal-overlay.active .career-modal {
    transform: translateY(0) scale(1);
}

/* Header Fixo */
.modal-header {
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    z-index: 10;
}

.modal-header-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.modal-role-company {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    line-height: 1.1;
}

.modal-date {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 20px;
}

.modal-close:hover {
    background-color: var(--bg-card-element);
    transform: rotate(90deg) scale(1.1);
}

/* Corpo Rolável */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.modal-content-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-content-wrapper.changing {
    opacity: 0;
    transform: translateY(10px);
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 40px;
    font-weight: 400;
}

.modal-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.modal-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-list li {
    font-size: 15px;
    color: var(--text-main);
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
}

.modal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 2px;
    background-color: var(--bg-card-element);
    border-radius: 2px;
}

/* Footer Fixo */
.modal-footer {
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    z-index: 10;
}

.modal-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-nav-btn:hover {
    background-color: var(--bg-card-element);
    transform: scale(1.1);
}

.modal-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-dot.active {
    background-color: var(--text-main);
    width: 24px;
    border-radius: 4px;
}

/* Dark mode adjustment for modal */
body.dark-mode .modal-nav-btn,
body.dark-mode .modal-close,
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    background-color: #1b1b1b;
}

body.dark-mode .modal-nav-btn:hover,
body.dark-mode .modal-close:hover {
    background-color: var(--bg-card-element);
    color: #000000;
}

@media (max-width: 600px) {
    .career-modal {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        border: none;
    }

    .modal-header {
        padding: 24px 20px;
    }

    .modal-body {
        padding: 24px 20px;
    }

    .modal-footer {
        padding: 20px;
    }

    .modal-role-company {
        font-size: 22px;
    }
}

/* ==========================================================================
   PROJECT DETAIL PAGES (SUBPÁGINAS)
   ========================================================================== */

.project-page-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    flex: 1;
    overflow: hidden;
    /* O pai não rola mais */
    animation: fadeIn 0.6s ease-out;
}

/* Custom scrollbar para a página do projeto */
.project-page-layout::-webkit-scrollbar {
    width: 6px;
}

.project-page-layout::-webkit-scrollbar-track {
    background: transparent;
}

.project-page-layout::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-idle);
    border-radius: 10px;
}

.project-page-layout:hover::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
}

/* Header de Navegação Interna */
.project-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

/* Hero Section */
.project-hero-container {
    width: 100%;
    margin-bottom: 40px;
}

.project-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.project-title-area h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 0.95;
}

.project-meta-tags {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-main-cover {
    width: 100%;
    aspect-ratio: 21/9;
    background-color: var(--bg-card-element);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.project-main-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Descrição do Projeto (Visão) */
.project-vision-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.project-vision-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 16px;
    line-height: 1.8;
}

.project-vision-section .section-title {
    margin-bottom: 0;
    /* O grid já lida com o alinhamento */
}

/* Bento Highlights */
.project-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.highlight-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--border-radius-md);
}

.highlight-card h4 {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.highlight-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
}

/* Gallery Section */
.project-gallery-section {
    margin-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 400px 400px;
    gap: 20px;
}

.gallery-item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.project-content-card {
    padding: 24px 8px 24px 0;
    /* Respiro para scrollbar lateral */
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}



.project-scroll-area {
    padding: 60px 80px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Espaçamento entre as seções internas do card do projeto */
.project-vision-section,
.project-highlights-section,
.project-gallery-section {
    margin-bottom: 80px;
}

.project-gallery-section {
    margin-bottom: 0;
    /* A última seção não precisa de margem extra no fundo do card */
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer CTA */
.project-cta-section {
    padding: 80px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border: none;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius-md);
    margin-top: 60px;
}

body.dark-mode .project-cta-section {
    background-color: rgba(255, 255, 255, 0.03);
}

.cta-icon-placeholder {
    width: 48px;
    height: 48px;
    background-color: var(--bg-card-element);
    border-radius: 12px;
    margin-bottom: 8px;
}

.project-cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--text-main);
    color: var(--bg-page);
    padding: 20px 48px;
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cta-button:hover {
    box-shadow: 0 15px 40px rgba(162, 213, 198, 0.2);
}

/* Responsividade Subpginas */
@media (max-width: 1024px) {
    .project-description-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 600px) {
    .project-title-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .project-title-area h1 {
        font-size: 32px;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

/* Estilos Globais da Página de Projeto (Fora das Media Queries) */
.project-main-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Mais panorâmico para reduzir o zoom e mostrar mais da imagem */
    background-color: var(--bg-card-element);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    /* border: centralizado no topo do arquivo */
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

body.dark-mode .project-main-cover {
    border: 1px solid var(--border-color);
}

.project-main-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Descrição do Projeto (Visão) */
.project-vision-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.project-vision-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 16px;
    line-height: 1.8;
}

.project-vision-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 24px;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.project-vision-section .section-title {
    margin-bottom: 0;
    /* O grid já lida com o alinhamento */
}

/* Bento Highlights */
.project-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.highlight-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card h4 {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.highlight-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
}

/* Gallery Section */
.project-gallery-section {
    margin-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 400px 400px;
    gap: 20px;
}

.gallery-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    width: 100%;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Estilo do card de projeto movido e unificado acima */

/* Espaçamento entre as seções internas do card do projeto */
.project-vision-section,
.project-highlights-section,
.project-gallery-section {
    margin-bottom: 80px;
}

.project-gallery-section {
    margin-bottom: 0;
    /* A última seção não precisa de margem extra no fundo do card */
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer CTA */
.project-cta-section {
    padding: 80px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border: none;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius-md);
    margin-top: 60px;
}

body.dark-mode .project-cta-section {
    background-color: rgba(255, 255, 255, 0.03);
}

.cta-icon-placeholder {
    width: 48px;
    height: 48px;
    background-color: var(--bg-card-element);
    border-radius: 12px;
    margin-bottom: 8px;
}

.project-cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000000;
    color: #ffffff;
    padding: 18px 48px;
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-button i {
    font-size: 18px;
}

/* ============================================================
   RESPONSIVIDADE SUBPÁGINAS, GALERIAS & MODAIS (<= 900px)
   ============================================================ */

@media (max-width: 900px) {
    .project-vision-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-row {
        grid-template-columns: 1fr;
    }

    .career-modal {
        width: 95%;
        height: 90vh;
        border-radius: var(--border-radius-lg);
    }

    .modal-header {
        padding: 24px;
    }

    .modal-role-company {
        font-size: 20px;
    }

    .modal-body {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .project-title-area {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .project-title-area h1 {
        font-size: 28px !important;
        margin-bottom: 0 !important;
        line-height: 1.1 !important;
    }

    .project-meta-tags {
        margin-top: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .project-meta-tags span {
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 1.5px !important;
        padding: 0 !important;
    }

    .project-main-cover {
        aspect-ratio: 1 / 1 !important; /* Capa quadrada no mobile para dar destaque */
        margin-bottom: 32px !important;
    }

    /* Padronização de Subpáginas e Projeto de Estudos */
    .project-scroll-area {
        padding: 24px 16px !important;
    }

    .project-hero-container {
        margin-bottom: 32px !important;
    }

    .project-vision-section, 
    .project-highlights-section, 
    .project-gallery-section {
        margin-bottom: 36px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .project-vision-section .section-title,
    .project-highlights-section .section-title,
    .project-gallery-section .section-title {
        margin-bottom: 0 !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        letter-spacing: 1.5px !important;
    }

    .project-vision-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .project-vision-content p {
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin: 0 !important;
    }

    .project-vision-content h3 {
        font-size: 18px !important;
        margin-top: 12px !important;
        margin-bottom: 0 !important;
        color: var(--text-main) !important;
    }

    .project-highlights-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 0 !important;
    }

    .highlight-card {
        padding: 20px !important;
        border-radius: var(--border-radius-sm) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .highlight-card h4 {
        margin-bottom: 0 !important;
        font-size: 12px !important;
        letter-spacing: 1px !important;
    }

    .highlight-card p {
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .gallery-vertical {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .gallery-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .gallery-item {
        border-radius: var(--border-radius-sm) !important;
        overflow: hidden !important;
        margin-bottom: 0 !important;
    }

    .project-cta-section {
        padding: 40px 20px !important;
        margin-top: 36px !important;
        border-radius: var(--border-radius-md) !important;
        gap: 20px !important;
    }

    .project-cta-section h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    .cta-button {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        border-radius: var(--border-radius-full) !important;
    }

    /* Botão Voltar Mobile */
    .back-link .icon-btn {
        width: 44px;
        height: 44px;
    }

    /* Efeito de Respiração/Cascata no Background Mobile 100% GPU */
    .page-background::after {
        background-image: radial-gradient(circle at 50% 50%,
                var(--dot-color-glow) 0%,
                transparent 250px) !important;
        animation: ambientGlow 12s ease-in-out infinite !important;
        opacity: 0.25 !important;
        width: 200%;
        height: 200%;
        top: -50%;
        left: -50%;
        will-change: transform, opacity;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes ambientGlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate3d(5%, 10%, 0) scale(1.1);
        opacity: 0.3;
    }
    66% {
        transform: translate3d(-10%, 5%, 0) scale(0.9);
        opacity: 0.15;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.15;
    }
}

/* ============================================================
   CUSTOM CTA FOR TRUELEVEN, MENTOR.IA AND CONEXAO.IA
   ============================================================ */
.project-cta-section.custom-cta {
    background-color: #A2D5C6 !important;
    padding: 80px 40px;
    border-radius: var(--border-radius-md);
    transition: background-color 0.4s ease;
}

.project-cta-section.custom-cta h2 {
    color: #1b1b1b !important;
}

.project-cta-section.custom-cta .cta-button {
    background-color: #1b1b1b !important;
    color: #A2D5C6 !important;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.project-cta-section.custom-cta .cta-button i {
    color: #A2D5C6 !important;
}

.project-cta-section.custom-cta .cta-button:hover {
    transform: scale(1.05) translateY(-2px);
    background-color: #2b2b2b !important;
}

/* Light mode invertido (quando o body não tem a classe dark-mode) */
body:not(.dark-mode) .project-cta-section.custom-cta {
    background-color: #1b1b1b !important;
}

body:not(.dark-mode) .project-cta-section.custom-cta h2 {
    color: #A2D5C6 !important;
}

body:not(.dark-mode) .project-cta-section.custom-cta .cta-button {
    background-color: #A2D5C6 !important;
    color: #1b1b1b !important;
}

body:not(.dark-mode) .project-cta-section.custom-cta .cta-button i {
    color: #1b1b1b !important;
}

body:not(.dark-mode) .project-cta-section.custom-cta .cta-button:hover {
    background-color: #b5e3d6 !important;
}

/* ============================================================
   MOBILE BACKGROUND DOTS CASCADE ANIMATION
   ============================================================ */
@media (max-width: 768px) {
    body::before {
        -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), black 50%, rgba(0, 0, 0, 0.1), transparent) !important;
        mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), black 50%, rgba(0, 0, 0, 0.1), transparent) !important;
        -webkit-mask-size: 100% 300px !important;
        mask-size: 100% 300px !important;
        -webkit-mask-repeat: no-repeat !important;
        mask-repeat: no-repeat !important;
        animation: cascade-glow 8s ease-in-out infinite !important;
    }
}

@keyframes cascade-glow {
    0% {
        -webkit-mask-position: 0 -300px;
        mask-position: 0 -300px;
    }
    100% {
        -webkit-mask-position: 0 calc(100vh + 300px);
        mask-position: 0 calc(100vh + 300px);
    }
}

/* ============================================================
   STUDY PROJECTS PAGE STYLES
   ============================================================ */
.study-projects-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 60px;
}

.study-project-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08); /* Cinza claro sutil no light mode */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

body.dark-mode .study-project-card {
    border: 1px solid var(--border-color); /* Restaura a borda original do dark mode */
}

/* Foco Dinâmico (Interatividade premium baseada nas outras páginas) */
.study-projects-list:hover .study-project-card {
    opacity: 0.6;
    transform: scale(0.99);
    filter: blur(0.2px);
}

.study-projects-list .study-project-card:hover {
    opacity: 1;
    transform: scale(1.01) translateY(-6px);
    filter: blur(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

body.dark-mode .study-projects-list .study-project-card:hover {
    box-shadow: 0 15px 35px rgba(162, 213, 198, 0.04);
}

/* Área superior da imagem (branca conforme o wireframe) */
.study-project-cover {
    width: 100%;
    height: 480px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Cinza claro sutil no light mode */
    position: relative;
    overflow: hidden;
}

body.dark-mode .study-project-cover {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.study-project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.study-project-card:hover .study-project-cover img {
    transform: scale(1.08);
}

.study-project-placeholder-img {
    font-size: 64px;
    color: #cccccc;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.study-project-card:hover .study-project-placeholder-img {
    transform: scale(1.08);
}

/* Área de informações inferior (cinza claro no wireframe) */
.study-project-info {
    padding: 24px 32px;
    background-color: rgba(0, 0, 0, 0.01);
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* Cinza claro sutil no light mode */
}

body.dark-mode .study-project-info {
    background-color: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
}

/* Tipografia unificada com o Design System H3 de Projetos */
.study-project-info h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 8px;
}

/* Tipografia unificada com o Design System Corpo de Texto */
.study-project-info p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .study-project-cover {
        height: 220px;
    }
}


/* Tooltip styles para redes sociais no desktop */
@media (hover: hover) and (min-width: 1025px) {
    .social-icon {
        position: relative;
    }

    .social-icon::before {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        background-color: #1b1b1b; /* Preto */
        color: #ffffff; /* Texto branco */
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .social-icon::after {
        content: '';
        position: absolute;
        bottom: 110%;
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        border-width: 5px;
        border-style: solid;
        border-color: #1b1b1b transparent transparent transparent;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    /* Cores no Dark Mode */
    body.dark-mode .social-icon::before {
        background-color: var(--bg-element-dark); /* Verde menta claro */
        color: #000000; /* Texto preto */
    }

    body.dark-mode .social-icon::after {
        border-color: var(--bg-element-dark) transparent transparent transparent;
    }

    /* Ajuste para o primeiro item (LinkedIn) não cortar na margem esquerda */
    .social-links a:first-child::before {
        left: 0;
        transform: translateX(0) translateY(8px);
    }
    
    .social-links a:first-child:hover::before {
        transform: translateX(0) translateY(0);
    }

    .social-links a:first-child::after {
        left: 24px;
        transform: translateX(-50%) translateY(8px);
    }

    .social-links a:first-child:hover::after {
        transform: translateX(-50%) translateY(0);
    }

    .social-icon:hover::before,
    .social-icon:hover::after {
        opacity: 1;
    }

    /* Tooltip customizada para a foto de perfil e capas de projetos sobrepostas na parte inferior */
    .profile-pic, .projeto-cover {
        position: relative;
    }

    .profile-pic::before, .projeto-cover::before {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        background-color: #1b1b1b;
        color: #ffffff;
        padding: 6px 14px;
        border-radius: 999px; /* Formato pílula elegante */
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    body.dark-mode .profile-pic::before, body.dark-mode .projeto-cover::before {
        background-color: var(--bg-element-dark);
        color: #000000;
    }

    .profile-pic:hover::before, .projeto-cover:hover::before, .projeto-card:hover .projeto-cover::before {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Estilo para a localização na barra lateral */
.location-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted); /* Cinza padrão no white mode */
    transition: color 0.3s ease;
}

.location-text i {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

body.dark-mode .location-text,
body.dark-mode .location-text i {
    color: var(--bg-element-dark); /* Verde menta claro no dark mode */
}

/* Layout da página Sobre (duas colunas no desktop) */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.about-photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.about-photo-wrapper .spotify-status-container {
    margin-top: 0 !important;
    width: 100%;
}

.about-photo {
    width: 100%;
    position: relative;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08); /* Cinza bem sutil no light mode */
    overflow: visible;
}

body.dark-mode .about-photo {
    border: 1px solid rgba(255, 255, 255, 0.08); /* Cinza bem sutil no dark mode */
}

.about-carousel-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: var(--bg-card-element);
}

.about-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
    z-index: 1;
}

.about-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.about-carousel-slide picture,
.about-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius-lg);
}

/* Indicadores de bolinha e setinhas sobrepostos na parte inferior da foto */
.about-carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.about-dots-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-carousel-nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    transition: all 0.2s ease;
}

.about-carousel-nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.about-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-dot.active {
    background-color: #ffffff;
    width: 16px;
    border-radius: 4px;
}

/* Tooltip estilo Balão de Fala no topo da foto da página Sobre */
@media (hover: hover) and (min-width: 1025px) {
    .about-photo::before {
        content: attr(data-tooltip);
        position: absolute;
        bottom: calc(100% + 14px);
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        background-color: #1b1b1b;
        color: #ffffff;
        padding: 8px 16px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }

    /* Rabicho do balão de fala */
    .about-photo::after {
        content: '';
        position: absolute;
        bottom: calc(100% + 4px);
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        border-width: 6px 6px 0 6px;
        border-style: solid;
        border-color: #1b1b1b transparent transparent transparent;
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }

    body.dark-mode .about-photo::before {
        background-color: var(--bg-element-dark);
        color: #000000;
    }

    body.dark-mode .about-photo::after {
        border-color: var(--bg-element-dark) transparent transparent transparent;
    }

    .about-photo:hover::before,
    .about-photo:hover::after {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 1024px) {
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
        margin-bottom: 40px !important;
    }

    /* Foto de perfil no topo no mobile (logo após o título SOBRE MIM) */
    .about-photo {
        order: -1 !important;
        width: 100% !important;
        max-width: 220px !important;
        align-self: center !important;
        margin: 0 auto 12px auto !important;
    }

    .about-photo img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .about-grid .project-vision-content {
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
    }

    .about-grid .project-vision-content p {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .about-grid .project-vision-content h3 {
        text-align: left !important;
    }

    .about-grid .social-links-title {
        text-align: left !important;
        margin-top: 24px !important;
        width: 100% !important;
    }

    /* Redes sociais perfeitamente equilibradas e centralizadas: 4 botões na 1ª linha e 4 na 2ª linha */
    .about-grid .social-links {
        display: grid !important;
        grid-template-columns: repeat(4, 44px) !important;
        justify-content: center !important;
        justify-items: center !important;
        gap: 12px !important;
        margin: 14px auto 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .custom-cta {
        padding: 32px 20px !important;
        margin-top: 32px !important;
        gap: 12px !important;
    }
    
    .custom-cta h2 {
        font-size: 20px !important;
    }
}

/* Estilização compacta e centralizada do CTA na página Sobre */
.custom-cta {
    padding: 40px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 16px !important;
    margin-top: 40px !important;
    min-height: auto !important;
}

.custom-cta h2 {
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

.custom-cta .cta-button {
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-cta p {
    margin: 0 auto !important;
    text-align: center !important;
    max-width: 500px !important;
}

/* Transições suaves de página */
body {
    opacity: 1;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.fade-out-active {
    opacity: 0 !important;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-background {
    animation: pageFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ==========================================================================
   Widget Spotify Now Playing no Header (Compacto & Sublinhado como Link)
   ========================================================================== */
.spotify-status-container {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.header-spotify {
    margin-top: 4px !important;
}

.spotify-status-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.2s ease, color 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.spotify-status-link:hover {
    background: transparent;
    opacity: 1;
}

.spotify-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #1DB954; /* Verde Spotify */
    font-size: 15px;
    flex-shrink: 0;
}

/* Equalizador animado em verde quando estiver tocando */
.spotify-equalizer {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
    margin-left: 2px;
}

.is-playing .spotify-equalizer {
    display: inline-flex !important;
}

.eq-bar {
    width: 2px;
    height: 100%;
    background-color: #1DB954;
    border-radius: 1px;
    animation: eqPulse 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) {
    animation-delay: 0s;
    height: 60%;
}

.eq-bar:nth-child(2) {
    animation-delay: 0.3s;
    height: 100%;
}

.eq-bar:nth-child(3) {
    animation-delay: 0.6s;
    height: 40%;
}

@keyframes eqPulse {
    0% {
        height: 20%;
    }
    50% {
        height: 100%;
    }
    100% {
        height: 40%;
    }
}

.spotify-text-content {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Linha de link sublinhado debaixo da música */
.spotify-track-info {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: rgba(128, 128, 128, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.spotify-status-link:hover .spotify-track-info {
    color: var(--text-main);
    text-decoration-color: #1DB954;
}

/* Modo Offline / Última ouvida */
.is-offline .spotify-icon {
    opacity: 0.6;
}

.is-offline .spotify-track-info {
    opacity: 0.7;
}

/* Responsivo para mobile */
@media (max-width: 900px) {
    .header-spotify {
        margin-top: 3px !important;
        max-width: 100% !important;
    }
    
    .spotify-status-link {
        font-size: 10.5px !important;
        gap: 5px !important;
        max-width: 100% !important;
    }

    .spotify-icon-wrap {
        font-size: 13px !important;
    }

    .spotify-equalizer {
        height: 8px !important;
    }
    
    .spotify-track-info {
        max-width: 160px !important;
    }
}