/* ==================================================
   CV.CSS
   Página Sobre Mim / CV
==================================================

Objetivo:
- Definir o estilo visual da página CV.
- Criar secções com efeito glassmorphism.
- Estilizar estatísticas, competências, timeline,
  idiomas, contacto e avatar com hover.
- Garantir boa adaptação em mobile.
================================================== */


/* Reset simples */

* {
    box-sizing: border-box;
}


/* Estilo geral da página */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 35%), radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 35%), #0f172a;
    color: #e5e7eb;
}


/* Rodapé */

footer {
    text-align: center;
    padding: 30px;
    color: #64748b;
}


/* ==================================================
   HERO
================================================== */


/* Cabeçalho principal da página */

.hero {
    position: relative;
    text-align: center;
    padding: 60px 20px 35px;
}


/* Imagem antiga de perfil, caso seja usada */

.profile-img {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.8), 0 0 60px rgba(37, 99, 235, 0.4);
    margin-bottom: 20px;
}


/* Nome principal */

.hero h1 {
    margin: 10px 0;
    font-size: 2.8rem;
}


/* Subtítulo profissional */

.hero p {
    margin: 0 0 25px;
    color: #cbd5e1;
    font-size: 1.1rem;
}


/* ==================================================
   BOTÕES
================================================== */


/* Estilo base partilhado entre botão de download e idioma */

.download-btn,
.lang-btn {
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}


/* Botão de download do CV */

.download-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: bold;
}


/* Botão de idioma, caso esteja presente nesta página */

.lang-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 9px 16px;
    border-radius: 999px;
}


/* Hover dos botões */

.download-btn:hover,
.lang-btn:hover {
    transform: translateY(-3px);
    background: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.8), 0 0 55px rgba(37, 99, 235, 0.5);
}


/* ==================================================
   CONTAINER
================================================== */


/* Largura máxima do conteúdo */

.container {
    width: min(1100px, 92%);
    margin: auto;
    padding-bottom: 60px;
}


/* ==================================================
   ESTATÍSTICAS
================================================== */


/* Grelha dos cards estatísticos */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 25px 0;
}


/* Card individual de estatística */

.stat-card {
    text-align: center;
    padding: 25px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}


/* Número em destaque */

.stat-card h2 {
    margin: 0;
    color: #38bdf8;
    font-size: 2.4rem;
}


/* Descrição da estatística */

.stat-card p {
    margin: 8px 0 0;
    color: #cbd5e1;
}


/* ==================================================
   CARDS GERAIS
================================================== */


/* Cards principais da página */

.card {
    margin: 25px 0;
    padding: 30px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}


/* Títulos dos cards e da timeline */

.card h2,
.timeline-section h2 {
    margin-top: 0;
    color: #f8fafc;
}


/* Texto dos cards */

.card p {
    color: #cbd5e1;
    line-height: 1.7;
}


/* ==================================================
   COMPETÊNCIAS
================================================== */


/* Container das skills */

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


/* Skill individual */

.skills span {
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #e0f2fe;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.12);
}


/* ==================================================
   TIMELINE VERTICAL
================================================== */


/* Secção da timeline */

.timeline-section {
    margin: 35px 0;
}


/* Estrutura principal da timeline */

.timeline {
    position: relative;
    margin-left: 20px;
    padding-left: 35px;
}


/* Linha vertical da timeline */

.timeline::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    width: 3px;
    height: calc(100% - 10px);
    background: linear-gradient(to bottom, #38bdf8, rgba(56, 189, 248, 0.15));
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
}


/* Item individual da timeline */

.timeline-item {
    position: relative;
    margin-bottom: 26px;
}


/* Ponto de cada item da timeline */

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 22px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 1), 0 0 35px rgba(56, 189, 248, 0.6);
}


/* Conteúdo de cada item da timeline */

.timeline-content {
    position: relative;
    padding: 25px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}


/* Hover do conteúdo da timeline */

.timeline-content:hover {
    transform: translateX(8px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.22);
}


/* Título dentro da timeline */

.timeline-content h3 {
    margin: 0;
    color: #f8fafc;
}


/* Subtítulo dentro da timeline */

.timeline-content span {
    display: inline-block;
    margin: 8px 0 12px;
    color: #38bdf8;
    font-size: 0.9rem;
}


/* Texto dentro da timeline */

.timeline-content p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
}


/* Badge com data */

.date-bubble {
    position: absolute;
    top: -15px;
    right: 25px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.65);
    color: #e0f2fe;
    font-size: 0.85rem;
    font-weight: bold;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.55), 0 0 35px rgba(37, 99, 235, 0.25);
}


/* ==================================================
   CONTACTO
================================================== */


/* Card final de contacto */

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


/* Links de contacto */

.contact-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* Link individual */

.contact-links a {
    text-decoration: none;
    color: #e0f2fe;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    transition: 0.3s;
}


/* Hover dos links */

.contact-links a:hover {
    background: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}


/* ==================================================
   IDIOMAS / BANDEIRAS
================================================== */


/* Container das bandeiras */

.flags {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
}


/* Item individual de idioma */

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}


/* Imagem da bandeira */

.flag-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25), 0 0 22px rgba(56, 189, 248, 0.12);
    transition: all 0.3s ease;
}


/* Círculo com nível de idioma */

.level-circle {
    margin-top: 7px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.65);
    color: #e0f2fe;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45), inset 0 0 10px rgba(56, 189, 248, 0.16);
    transition: all 0.3s ease;
}


/* Hover do idioma */

.flag-item:hover {
    transform: translateY(-5px) scale(1.06);
}


/* Glow na bandeira ao passar o rato */

.flag-item:hover img {
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.8), 0 0 35px rgba(37, 99, 235, 0.45);
}


/* Glow no nível ao passar o rato */

.flag-item:hover .level-circle {
    background: radial-gradient(circle at top, rgba(125, 211, 252, 0.55), rgba(14, 165, 233, 0.22));
    color: #ffffff;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.9), 0 0 38px rgba(37, 99, 235, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.12);
}


/* ==================================================
   INFO CARD / LISTAS
================================================== */


/* Secções informativas reutilizáveis */

.availability-section {
    margin-top: 28px;
}


/* Títulos das secções informativas */

.availability-section h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}


/* Lista sem bullets */

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* Item da lista */

.skills-list li {
    padding: 8px 0;
    color: #cbd5e1;
    line-height: 1.5;
    font-size: 0.95rem;
}


/* ==================================================
   AVATAR COM HOVER
================================================== */


/* Container das duas imagens */

.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 35px;
}


/* Estilo base das imagens */

.avatar {
    position: absolute;
    inset: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #38bdf8;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.6);
    transition: opacity 0.35s ease, transform 0.35s ease;
}


/* Imagem alternativa começa invisível */

.avatar-hover {
    opacity: 0;
}


/* Esconde imagem principal no hover */

.avatar-wrapper:hover .avatar-main {
    opacity: 0;
    transform: scale(0.95);
}


/* Mostra imagem alternativa no hover */

.avatar-wrapper:hover .avatar-hover {
    opacity: 1;
    transform: scale(1.05);
}


/* ==================================================
   MOBILE - AJUSTES CV
================================================== */

@media (max-width: 768px) {
    /* Melhora leitura dos textos longos */
    .card p,
    .timeline-content p,
    .skills-list li {
        text-align: justify;
        text-justify: inter-word;
        line-height: 1.7;
    }
    /* Skills passam para grelha */
    .skills {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 9px;
    }
    /* Skills mais compactas em mobile */
    .skills span {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 34px;
        padding: 8px 6px;
        font-size: 0.72rem;
        white-space: normal;
    }
    .hero {
        padding-top: 75px;
    }
    .hero h1 {
        font-size: 2.1rem;
    }
    .profile-img {
        width: 115px;
        height: 115px;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 23px;
    }
    .timeline {
        margin-left: 5px;
        padding-left: 28px;
    }
    .timeline-dot {
        left: -31px;
    }
    .timeline-content:hover {
        transform: none;
    }
    .lang-btn {
        top: 15px;
        right: 15px;
    }
}


/* Mobile muito estreito */

@media (max-width: 380px) {
    .skills {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Ajustes extra para telemóveis */

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .download-btn {
        width: 100%;
        max-width: 260px;
    }
    .skills span {
        font-size: 0.9rem;
    }
    .date-bubble {
        position: static;
        display: inline-block;
        margin-bottom: 14px;
    }
}