:root {
    --bg: #0e141b;
    --sidebar: #151d25;
    --accent: #3b82f6;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --radius: 14px;
    --font: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* previne scroll horizontal acidental */
}

/* SIDEBAR */
.sidebar {
    width: 80px;
    background: var(--sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    justify-content: flex-start;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 3rem;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-item {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.4rem;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent);
}

.nav-item::after {
    content: attr(data-label);
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
}

.nav-item:hover::after {
    opacity: 1;
}

/* CONTENT */
.content {
    margin-left: 80px;
    flex: 1;
    padding: 3rem 2rem;
    width: calc(100% - 80px);
    max-width: 100%;
    box-sizing: border-box;
}

.content > * {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    margin-bottom: 5rem;
    scroll-margin-top: 2rem;
}

.section h2 {
    margin-bottom: 2rem;
    color: var(--accent);
    font-size: 2.5rem;
}

/* Hero Section */
.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 80vh;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 2.9rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--muted);
}

.hero-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--accent);
}


/* Print Button Section */
.print-section {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    width: 100%;
    max-width: none !important;
}

.print-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.print-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Ajuste para modo claro */
.light .print-btn {
    background: linear-gradient(135deg, var(--accent), #00c6ff);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.light .print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .print-btn {
        width: 100%;
        justify-content: center;
    }
}




/* Dados Pessoais Section */
.dados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.dados-card {
    background: #1f2937;
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s;
    min-height: 100px;
}

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

.dados-card i {
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.dados-content {
    flex: 1;
    overflow: hidden;
}

.dados-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--accent);
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dados-card p {
    margin: 0;
    line-height: 1.5;
    color: var(--text);
    font-size: 0.95rem;
    word-break: break-word;
}

/* Skills */
#percentagem {
    color: #0e141b;
    font-size:xx-small;
}

.skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* exatamente 2 colunas */
    gap: 1.5rem;
}

.skill span:first-child {
    font-weight: 600;
    color: #e5e7eb;
    display: block;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.bar {
    position: relative;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 12px;
    height: 12px; /* ligeiramente maior para caber bem o texto */
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
}

.bar div {
    background: linear-gradient(90deg, var(--accent) 0%, #7dd3fc 100%);
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease;
    display: flex;
    align-items: center; /* ✅ centra verticalmente */
    justify-content: flex-end; /* texto alinhado à direita */
    padding-right: 10px;
    position: relative;
}

.bar div span {
    color: #fff;
    font-weight: 900;
    font-size: 0.80rem;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    line-height: 1; /* evita desalinhamento vertical */
    vertical-align: middle;
    padding-top: 7px;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 3rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    width: 100%;
    margin: 3rem 0;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    position: relative;
}

.timeline-content.left {
    margin-right: auto;
    padding-right: 3rem;
}

.timeline-content.right {
    margin-left: auto;
    padding-left: 3rem;
}

.timeline-content .card {
    background: #1f2937;
    padding: 1.5rem;
    border-radius: var(--radius);
    height: 100%;
}

.timeline-content .date {
    font-size: 0.9rem;
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #1f2937;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card h3 {
    padding: 1rem;
    margin: 0;
    color: var(--text);
}

/* Contactos */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: #1f2937;
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-card div p {
    margin: 0.2rem 0;
    line-height: 1.4;
}

.contact-card div p:first-child {
    font-weight: 600;
    color: var(--accent);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.social-link {
    background: #1f2937;
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    width: 50px;
    height: 50px;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input, .contact-form textarea {
    background: #1f2937;
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
}

.contact-form button {
    background: var(--accent);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.contact-form button:hover {
    opacity: 0.9;
}

#form-msg {
    color: var(--accent);
    font-size: 0.9rem;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1rem 0;
    }
    
    .content {
        margin-left: 60px;
        padding: 1.5rem 1rem;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        flex: none;
        width: 100%;
        max-width: 300px;
    }
    
    .profile-img {
        height: 300px;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .dados-grid {
        grid-template-columns: 1fr;
    }
    
    .dados-card {
        padding: 1.5rem;
    }
    
    /* Timeline Responsive */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-content {
        width: 100%;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }
    
    .timeline-content.left, .timeline-content.right {
        margin: 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .print-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        margin-bottom: 3rem;
    }
    
    .dados-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Quote Section */
.quote-section {
    text-align: center;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Lista de tecnologias detalhadas */
.tech-list {
    margin-bottom: 1.5rem; /* espaço entre lista e as barras */
    font-size: 1rem;
    color: var(--text);
}

.tech-list p {
    margin: 0.3rem 0; /* espaço entre linhas */
}

.tech-list strong {
    color: var(--accent); /* destaca Frontend/Backend */
}

/* Competências Pessoais */
.personal-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.personal-skill {
    background: #1f2937;
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
}

.personal-skill:hover {
    transform: translateY(-5px);
}

.personal-skill i {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.personal-skill p {
    margin: 0;
    font-weight: 500;
    color: var(--text);
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.9rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    display: none; /* escondido por padrão */
    z-index: 1100;
}

#scrollTopBtn:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

#scrollTopBtn i {
    width: 22px;
    height: 22px;
}

/* Responsivo — botão menor em ecrãs pequenos */
@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        padding: 0.7rem 0.8rem;
    }
}

/* Remove sublinhado e mantém cor dos links do portfólio */
#portfolio a {
    text-decoration: none; /* remove sublinhado */
    color: inherit; /* mantém a cor original do texto */
    transition: none; /* opcional: remove transição de cor */
}

#portfolio a:hover, #portfolio a:active, #portfolio a:focus {
    text-decoration: none; /* continua sem sublinhado ao passar ou clicar */
    color: inherit; /* não muda a cor */
}

/* BOTÕES FIXOS CANTO INFERIOR */
.bottom-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px; /* espaço entre os botões */
    z-index: 1100;
    flex-direction: row; /* botão de tema à esquerda, scroll à direita */
}

#scrollTopBtn, #themeToggle {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#themeToggle {
    order: -1; /* garante que fique à esquerda do scrollTopBtn */
}

/* efeito hover */
#scrollTopBtn:hover, #themeToggle:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* Responsivo: diminuir botões em telas pequenas */
@media (max-width: 768px) {
    #scrollTopBtn, #themeToggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px; /* continua no canto inferior direito */
}

#themeToggle {
    position: fixed;
    bottom: 20px;
    right: 90px; /* desloca para a esquerda do scrollTopBtn */
}

#scrollTopBtn:hover, #themeToggle:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* MODO CLARO */
.light {
    --bg: #f9fafb;
    --sidebar: #ffffff;
    --accent: #3b82f6;
    --text: #1f2937;
    --muted: #6b7280;
}

/* Ajustes para visibilidade no modo claro */
.light .dados-card, .light .card, .light .timeline-content .card, .light .contact-card, .light .social-link, .light .print-btn, .light .personal-skill {
    background: #e5e7eb;
    color: #1f2937;
}

.light .bar div span {
    color: #111;
}

.light .hero p, .light .tech-list p, .light .timeline-content .date {
    color: #1f2937;
}

.light .nav-item {
    color: #6b7280;
}

.light .nav-item.active, .light .nav-item:hover {
    color: var(--accent);
}

.light .nav-item::after {
    background: var(--accent);
    color: #fff;
}

/* Ajustes para modo claro - Skills */
.light .bar {
    background: rgba(31, 41, 55, 0.1); /* fundo da barra suave */
}

.light .bar div {
    background: linear-gradient(90deg, #3b82f6, #7dd3fc); /* gradiente vivo */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    border-radius: 12px;
    height: 100%;
}

.light .bar div span {
    color: #ffffff; /* texto branco dentro da barra preenchida */
    font-weight: 700;
    font-size: 0.8rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* sombra leve para contraste */
}

/* Ajuste para modo claro - nomes das skills */
.light .skills span:first-child {
    color: #3b82f6; /* tom escuro para texto dos nomes das skills */
    font-weight: 600;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.4);
}

a {
    text-decoration: none;
    color:#2563eb;
}

/* --- Header do Card (Título + Botão) --- */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px 10px 10px 10px;
    padding: 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

/* --- Botão "Ver Projeto" --- */
.btn-ver-projeto {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--accent), #00c6ff);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin-right: 5px;
}

.btn-ver-projeto:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- Responsivo --- */
@media (max-width: 600px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .btn-ver-projeto {
        align-self: flex-start;
    }
}

/* --- Modal do vídeo --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* fundo semirrasteiro para ver o conteúdo atrás */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2000;
    backdrop-filter: blur(4px); /* efeito elegante de desfoque atrás */
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px; /* vídeo menor que o anterior */
    max-height: 80%; /* limitar altura */
    background: #1f2937;
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* sombra elegante */
    overflow: hidden;
}

.video-modal video {
    width: 100%;
    height: auto;
    border-radius: 14px;
    max-height: 80vh; /* não ultrapassa a tela */
}

.video-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: var(--accent);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.video-close:hover {
    transform: scale(1.2);
    color: #7dd3fc;
}

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

/* Transições globais */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Melhorar aparência das barras de habilidades */
.bar {
    position: relative;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.bar div {
    background: linear-gradient(90deg, var(--accent) 0%, #7dd3fc 100%);
    height: 100%;
    border-radius: 12px;
    transition: width 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    position: relative;
}

/* =================== HERO RESPONSIVO DINÂMICO =================== */
.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 80vh;
    flex-wrap: wrap; /* permite quebra de linha em telas pequenas */
}

.hero-text {
    flex: 1;
    min-width: 250px; /* evita ficar muito estreito */
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 2.9rem); /* ajusta conforme largura da tela */
    line-height: 1.2;
}

.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.3rem); /* texto responsivo */
    line-height: 1.6;
    color: var(--muted);
}

.hero-image {
    flex: 0 0 auto;
    width: clamp(150px, 25%, 300px); /* largura dinâmica */
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* mantém círculo perfeito */
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.4);
}

/* =================== DADOS PESSOAIS ICON + TITULO =================== */
.dados-card {
    display: flex;
    align-items: flex-start; /* título na mesma linha do ícone */
    gap: 1rem;
}

.dados-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dados-card p {
    margin: 0;
    line-height: 1.5;
    color: var(--text);
    font-size: 0.95rem;
    word-break: break-word;
}

/* =================== SIDEBAR CENTRADA VERTICAL =================== */
.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* logo no topo, navegação centrada */
    align-items: center;
    width: 80px;
    background: var(--sidebar);
    padding: 2rem 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    flex: 1;
}

/* Ajustes para modo claro - botão Imprimir Currículo */
.light .print-btn {
    background: linear-gradient(135deg, var(--accent), #00c6ff);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.light .print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Ajustes para modo claro - títulos do portfólio */
.light #portfolio .card h3 {
    color: var(--accent);
}

/* CENTRALIZAÇÃO DO BOTÃO IMPRIMIR CURRÍCULO EM TODOS OS ECRÃS */
.print-section {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    width: 100%;
}

/* Melhorias para responsividade em smartphones */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1rem 0;
    }
    
    .content {
        margin-left: 60px;
        padding: 1.5rem 1rem;
        width: calc(100% - 60px);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image {
        width: 200px;
        margin: 0 auto;
    }
    
    .dados-card {
        flex-direction: row;
        text-align: left;
    }
    
    .dados-card h3 {
        font-size: 1rem;
    }
    
    .dados-card p {
        font-size: 0.9rem;
    }
    
    .bottom-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    #scrollTopBtn, #themeToggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    #themeToggle {
        right: 75px;
    }
}

/* =================== CORREÇÃO HERO MOBILE =================== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem !important; /* Reduz o espaçamento vertical */
        min-height: auto !important; /* Remove altura mínima fixa */
        padding: 1rem 0; /* Adiciona padding vertical */
    }
    
    .hero-text {
        order: 1; /* Texto primeiro */
        padding: 0 1rem;
    }
    
    .hero-image {
        order: 2; /* Imagem depois */
        width: 200px !important;
        margin: 0 auto;
        padding: 0;
    }
    
    .hero h1 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .profile-photo {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto;
    }
}

/* Para ecrãs muito pequenos */
@media (max-width: 480px) {
    .hero-content {
        gap: 1rem !important; /* Espaçamento ainda menor */
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
    }
    
    .hero-image {
        width: 160px !important;
    }
    
    .profile-photo {
        width: 150px !important;
        height: 150px !important;
    }
}
