/* ==========================================================================
   Ficheiro: about_v2.css
   Estilos para a nova página "Sobre Mim" (Versão 2).
   ========================================================================== */

/* ==========================================================================
   1. Layout Geral & Espaçamentos
   ========================================================================== */

.about-main .section {
    min-height: auto;
    /* Remove a altura mínima de 100vh */
    padding: 10vh 0;
    /* Espaçamento vertical reduzido */
    align-items: flex-start;
}

/* --- INÍCIO DO BLOCO PARA SUBSTITUIR (TODA A SECÇÃO HERO) --- */

/* --- INÍCIO DO BLOCO PARA SUBSTITUIR (SECÇÕES HERO E BIO) --- */

/* --- INÍCIO DO BLOCO PARA SUBSTITUIR (SECÇÕES HERO E BIO) --- */
/* --- INÍCIO DO BLOCO PARA SUBSTITUIR (TODA A SECÇÃO HERO) --- */

/* ==========================================================================
   2. Secção Hero (Premium & Dynamic)
   ========================================================================== */

#about-hero {
    height: 100vh;
    min-height: 800px;
    /* Mais altura para respirar */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    /* Permitir overlap visual se necessário */
}

.hero-v3-grid {
    width: 100%;
    max-width: 1600px;
    /* Largura maior */
    height: 100%;
    display: grid;
    /* Grelha assimétrica */
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    position: relative;
}

.hero-v3-image-container {
    grid-column: 1 / 2;
    width: 90%;
    /* Reduzido de 120% */
    max-width: 600px;
    /* Reduzido de 800px */
    justify-self: end;
    /* Encosta à direita da coluna (perto do texto) */
    position: relative;
    z-index: 1;
    /* Filtro subtil para integrar melhor */
    filter: brightness(0.9) contrast(1.1);
}

.hero-v3-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Garante que a imagem se ajusta sem cortar */
    /* Animação de flutuação mais lenta e suave */
    animation: float 10s ease-in-out infinite;
    transform-origin: center center;
}

/* Contentor de texto com sobreposição */
.hero-v3-text-container {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    margin-left: -10%;
    /* Sobreposição dramática sobre a imagem */
    z-index: 2;
    /* Texto por cima da imagem */
    position: relative;
}

/* "O Criador por Trás dos Pixéis" */
.hero-v3-supertitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 4px;
    /* Espaçamento premium */
    color: var(--accent-color);
    /* Cor de destaque */
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 15px;
    /* Alinhado visualmente com o H1 */
}

/* "RENATO FERREIRA" */
.hero-v3-text-container h1 {
    font-size: clamp(6rem, 13vw, 12rem);
    /* Gigante */
    text-transform: uppercase;
    line-height: 0.85;
    /* Muito apertado */
    margin: 0;
    font-weight: 900;
    color: var(--text-color);
    /* Sombra subtil para destacar do fundo/imagem */
    text-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    letter-spacing: -4px;
}

/* "Designer Visual & Interativo" */
.hero-v3-text-container h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    text-transform: uppercase;
    color: var(--text-secondary-color);
    font-weight: 300;
    margin: 2rem 0 0 1rem;
    letter-spacing: 2px;
    border-left: 1px solid var(--text-secondary-color);
    padding-left: 2rem;
    line-height: 1.4;
}

/* Responsividade Hero */
@media (max-width: 1024px) {
    .hero-v3-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding-top: 10vh;
    }

    .hero-v3-image-container {
        grid-column: 1;
        grid-row: 1;
        width: 80%;
        margin-bottom: -10%;
        /* Sobrepor verticalmente no mobile */
        justify-self: center;
    }

    .hero-v3-text-container {
        grid-column: 1;
        grid-row: 2;
        margin-left: 0;
        align-items: center;
        text-align: center;
        padding: 0 2rem;
    }

    .hero-v3-text-container h2 {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
}

/* Detalhes nos cantos (mantidos mas ajustados) */
.hero-v3-meta-location,
.hero-v3-meta-year {
    position: absolute;
    font-family: 'Doto', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    bottom: 3rem;
    /* Mais acima */
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-v3-meta-location {
    left: 4rem;
}

.hero-v3-meta-year {
    right: 4rem;
}


/* --- FIM DO BLOCO PARA SUBSTITUIR --- */

/* ==========================================================================
   3. Secção Bio (Refined)
   ========================================================================== */

#about-bio {
    background-color: transparent;
    position: relative;
    /* Linha decorativa subtil no fundo */
    /* Linha decorativa removida para look mais limpo */
    background-image: none;
    background-size: auto;
    background-position: center;
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* Grelha assimétrica */
    gap: 4rem;
    padding: 5vh 0;
    border-top: 1px solid var(--border-color-dark);
    /* border-bottom removido para fluxo contínuo */
    align-items: start;
}

.bio-left {
    position: sticky;
    top: 150px;
    /* Mantém o título visível enquanto faz scroll no texto */
}

/* O título "A Minha História" */
.bio-left h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    color: var(--text-color);
    letter-spacing: -1px;
}

.bio-right {
    width: 100%;
    padding-left: 4rem;
    border-left: 1px solid var(--border-color-dark);
    box-sizing: border-box;
    /* Garante que o padding não aumenta a largura total */
}

.bio-right p {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    /* Texto maior e mais legível */
    color: var(--text-secondary-color);
    line-height: 1.8;
    margin: 0 0 2rem 0;
    text-align: justify;
}

.bio-right p:first-of-type::first-letter {
    /* Removido Drop Cap */
    font-family: inherit;
    font-size: inherit;
    float: none;
    line-height: inherit;
    padding-right: 0;
    color: inherit;
    font-weight: inherit;
}

.polaroid img {
    width: 100%;
    height: auto;
    /* Altura automática para manter proporção */
    max-height: 250px;
    /* Limite máximo para não ficar enorme */
    display: block;
    object-fit: contain;
    /* Garante que a imagem inteira é vista */
    pointer-events: none;
    background-color: #f0f0f0;
    /* Fundo suave para preencher espaços vazios se houver */
}

.bio-right p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-left {
        position: static;
        margin-bottom: 1rem;
    }

    .bio-right {
        padding-left: 0;
        border-left: none;
    }

    #about-bio {
        background-image: none;
    }
}

/* --- FIM DO BLOCO PARA SUBSTITUIR --- */

/* ==========================================================================
   4. Secção Experiência (Timeline)
   ========================================================================== */

/* ==========================================================================
   4. Secção Experiência (Timeline Modernizada)
   ========================================================================== */

.section-title-experience {
    font-size: var(--font-size-h3);
    text-transform: uppercase;
    margin-bottom: 5rem;
    position: relative;
    display: inline-block;
}

.section-title-experience::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--text-color);
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Remove gap to allow border logic to handle spacing cleaner */
    gap: 0;
}

.experience-item {
    display: grid;
    /* Grid: [Ano] [Conteúdo] */
    grid-template-columns: 180px 1fr;
    grid-template-areas:
        "year role"
        "year company";
    gap: 0.5rem 3rem;
    align-items: baseline;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    /* Borda subtil */
    transition: transform 0.4s ease, background-color 0.4s ease;
    /* Para criar um efeito de destaque ao passar o rato */
    position: relative;
}

/* Hover Effect: Ligeiro deslocamento e destaque */
.experience-item:hover {
    transform: translateX(10px);
    /* Não mudamos a cor de fundo para manter o estilo limpo, 
       mas podemos adicionar uma borda mais forte ou mudar cor do texto */
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-year {
    grid-area: year;
    font-family: 'Doto', sans-serif;
    color: var(--text-secondary-color);
    /* Texto secundário base */
    font-size: 1.1rem;
    font-weight: 500;
    /* Alinhamento superior para combinar com o Role */
    align-self: flex-start;
    padding-top: 5px;
    /* Ajuste fino ótico */
    transition: color 0.3s ease;
}

.experience-item:hover .experience-year {
    color: var(--text-color);
    /* Fica mais brilhante no hover */
}

.experience-role {
    grid-area: role;
    font-size: 2rem;
    /* Tamanho maior para destaque (H3 equivalente) */
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--text-color);
}

.experience-company {
    grid-area: company;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary-color);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .experience-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "year"
            "role"
            "company";
        gap: 0.2rem;
        padding: 2rem 0;
    }

    .experience-year {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: var(--accent-color);
        /* Destaque no mobile */
    }

    .experience-role {
        font-size: 1.6rem;
    }
}


/* --- INÍCIO DO BLOCO PARA SUBSTITUIR (TODA A SECÇÃO DE INTERESSES) --- */

/* --- INÍCIO DO BLOCO PARA SUBSTITUIR (TODA A SECÇÃO DE INTERESSES) --- */

/* ==========================================================================
   5. Secção Interesses (VERSÃO LIGHT MODE INTERATIVA - CORRIGIDA)
   ========================================================================== */

#about-interests.section {
    padding-top: 10vh;
    padding-bottom: 10vh;
}

.light-mode-card {
    background-color: var(--bg-light);
    color: var(--text-color-dark);
    border-radius: 24px;
    border: 1px solid var(--border-color-light);
    position: relative;
    overflow: hidden;
    /* Corta as polaroids nas bordas do cartão */

    /* CORREÇÃO DEFINITIVA: Reativa os eventos do rato para esta secção */
    pointer-events: all;
    /* E garante que o cursor do sistema é visível */
    cursor: auto !important;

    /* REMOVIDO: display flex e padding daqui */
}

.light-mode-card-content {
    padding: 5rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    width: 100%;
    height: 100%;
}

.interests-left {
    flex: 1;
    min-width: 400px;
    z-index: 5;
    position: relative;
    pointer-events: none;
    /* Permite clicar/arrastar através do texto se necessário, mas o user disse "por cima do texto" */
}

/* CORREÇÃO FORÇADA: Garante que o título e parágrafos são escuros. */
.light-mode-card h3,
.light-mode-card p {
    color: var(--text-color-dark) !important;
}

/* CORREÇÃO FORÇADA: Garante que o efeito de preenchimento do título animado usa a cor escura. */
.light-mode-card .animated-title .line {
    color: rgba(34, 34, 34, 0.2) !important;
    /* Cor de fundo do texto */
    background: linear-gradient(to right, var(--text-color-dark), var(--text-color-dark)) no-repeat !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    background-size: 0% 100%;
}


.interests-left h3 {
    font-size: var(--font-size-h3);
    text-transform: uppercase;
    margin: 0 0 2rem 0;
}

.interests-left p {
    font-size: var(--font-size-paragraph);
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
}

.interests-left p:last-child {
    margin-bottom: 0;
}

.interests-right-gallery {
    flex: 1;
    position: relative;
    min-height: 500px;
    /* Corta as polaroids nas bordas da galeria */
    cursor: auto !important;
    /* Garante que o cursor é visível também aqui */
}

/* --- INÍCIO DO BLOCO PARA SUBSTITUIR --- */

.polaroid {
    background-color: #fff;
    /* CORREÇÃO: Borda cinza removida */
    border: 0;
    /* CORREÇÃO: Padding reduzido para uma borda branca mais fina */
    padding: 0.8rem 0.8rem 3.5rem 0.8rem;
    /* Padding branco clássico de polaroid */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Sombra mais dramática */
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    width: 200px;
    /* Ligeiramente maior */
    cursor: grab;
    will-change: transform;
}

/* ... (regra .polaroid.dragging mantém-se igual) ... */
.polaroid.dragging {
    cursor: grabbing;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 100;
    transition: none !important;
}


/* ... (regras de posicionamento mantêm-se as mesmas) ... */
/* ... (regras de posicionamento atualizadas para agrupar à direita) ... */
.polaroid:nth-child(even) {
    top: 15%;
    left: 60%;
    transform: rotate(5deg);
}

.polaroid:nth-child(odd) {
    top: 45%;
    left: 70%;
    transform: rotate(-3deg);
}

/* Specific overrides for a messy pile look on the right */
.polaroid:nth-child(1) {
    top: 10%;
    left: 55%;
    transform: rotate(-6deg);
}

.polaroid:nth-child(2) {
    top: 20%;
    left: 75%;
    transform: rotate(8deg);
}

.polaroid:nth-child(3) {
    top: 50%;
    left: 58%;
    transform: rotate(3deg);
}

.polaroid:nth-child(4) {
    top: 40%;
    left: 72%;
    transform: rotate(-10deg);
}

.polaroid:nth-child(5) {
    top: 15%;
    left: 65%;
    transform: rotate(12deg);
}


.polaroid img {
    width: 100%;
    height: auto;
    /* Altura automática para manter proporção */
    max-height: 250px;
    /* Limite máximo para não ficar enorme */
    display: block;
    object-fit: contain;
    /* Garante que a imagem inteira é vista */
    pointer-events: none;
    background-color: #f0f0f0;
    /* Fundo suave */
}

/* --- FIM DO BLOCO PARA SUBSTITUIR --- */

.polaroid::after {
    content: attr(data-label);
    /* CORREÇÃO: Aplica a nova fonte "Permanent Marker" */
    font-family: 'Permanent Marker', cursive;
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    /* Tamanho ajustado para a nova fonte */
    color: #333;
    /* Um pouco mais escuro para melhor legibilidade */
    white-space: nowrap;
}

.polaroid:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.1);
    z-index: 10;
}

/* ==========================================================================
   MOBILE: Secção Interesses (Eu Fora dos Pixeis)
   ========================================================================== */
@media (max-width: 768px) {
    #about-interests .light-mode-card {
        padding: 0 !important;
    }

    #about-interests .light-mode-card-content {
        flex-direction: column !important;
        padding: 2rem 1.5rem !important;
        gap: 2rem !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #about-interests .interests-left {
        min-width: auto !important;
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #about-interests .interests-left h3 {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    #about-interests .interests-left p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
        width: 100% !important;
    }

    #about-interests .interests-right-gallery {
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        position: relative !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        justify-items: center !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    #about-interests .polaroid,
    #about-interests .polaroid:nth-child(1),
    #about-interests .polaroid:nth-child(2),
    #about-interests .polaroid:nth-child(3),
    #about-interests .polaroid:nth-child(4),
    #about-interests .polaroid:nth-child(5),
    #about-interests .polaroid:nth-child(odd),
    #about-interests .polaroid:nth-child(even) {
        position: relative !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0.4rem 0.4rem 2rem 0.4rem !important;
    }

    #about-interests .polaroid img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 4 / 5;
        object-fit: cover !important;
    }

    #about-interests .polaroid::after {
        font-size: 0.7rem !important;
        bottom: 0.5rem !important;
    }

    #about-interests .polaroid:hover {
        transform: none !important;
    }
}

/* --- FIM DO BLOCO PARA SUBSTITUIR --- */