@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Modern Palette based on template-novo */
    --background-dark: #020617; /* Slate 950 */
    --surface-dark: #0f172a;    /* Slate 900 */
    --surface-dark-2: #1e293b;  /* Slate 800 */
    --foreground-dark: #f8fafc; /* Slate 50 */
    --primary-dark: #6366f1;    /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary-dark: #8b5cf6;  /* Violet 500 */
    --neutral-dark: #94a3b8;    /* Slate 400 */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    
    --background-light: #f8fafc; /* Slate 50 */
    --surface-light: #ffffff;    /* White */
    --surface-light-2: #e2e8f0;  /* Slate 200 */
    --foreground-light: #0f172a; /* Slate 900 */
    --primary-light: #4f46e5;    /* Indigo 600 */
    --secondary-light: #8b5cf6;  /* Violet 500 */
    --neutral-light: #475569;    /* Slate 600 */
    --border-light: #e5e7eb; /* Light border color */
    
    --border-radius-md: 0.375rem; /* Equivalent to Tailwind's rounded-md */
    --spacing-comfortable: 1.5rem; /* Base spacing unit, equivalent to Tailwind's p-6 or m-6 */
}

body.dark {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--foreground-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    color-scheme: dark;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    color: var(--foreground-light);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    color-scheme: light;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-comfortable);
    position: relative;
    z-index: 1;
}

header {
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Espaçamento para compensar o header fixo e evitar sobreposição com conteúdo */
main {
    padding-top: calc(1rem + 70px); /* 70px altura aproximada do header + 1rem de padding */
}

/* Para a seção de cabeçalho da página (onde está o título h1) */
.head {
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

/* Estilo específico para páginas secundárias como projects.html */
body:not(.home) main {
    padding-top: calc(1rem + 70px); /* Compensação para o header fixo */
}

body.light header {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Override generic header styles for page titles (e.g. projects.html) */
header.head {
    position: static;
    z-index: auto;
    box-shadow: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-comfortable);
}

.site-title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground-dark);
    transition: color 0.3s ease;
    width: 110px; /* Largura fixa para evitar que o menu se mova durante a animação */
    justify-content: center;
}

body.light .site-title {
    color: var(--foreground-light);
}

.logo-bracket {
    color: var(--primary-dark);
}

body.light .logo-bracket {
    color: var(--primary-light);
}

.logo-text {
    color: var(--foreground-dark);
}
body.light .logo-text {
    color: var(--foreground-light);
}

.site-title img {
    max-height: 50px;
    width: auto;
    vertical-align: middle;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-comfortable);
    flex: 1;
    justify-content: center;
}

.nav-menu li a {
    color: var(--foreground-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
}

body.light .nav-menu li a {
    color: var(--foreground-light);
}

.nav-menu li a:hover {
    color: #fff;
    background-color: rgba(99, 102, 241, 0.1);
}

body.light .nav-menu li a:hover {
    color: var(--primary-light);
    background-color: rgba(79, 70, 229, 0.1);
}

.theme-toggle {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: var(--foreground-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light .theme-toggle {
    color: var(--foreground-light);
}

.theme-toggle:hover {
    background-color: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

body.light .theme-toggle:hover {
    background-color: rgba(79, 70, 229, 0.2);
}

/* Hero Section Styles */
.hero-section {
    padding: 8rem 0 4rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 400px; height: 400px;
    background: var(--primary-dark);
    top: -100px; right: -100px;
}
.orb-2 {
    width: 300px; height: 300px;
    background: var(--secondary-dark);
    bottom: 10%; left: -50px;
}

body.light .hero-section {
    background-color: var(--background-light);
    background-color: transparent;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    background: linear-gradient(to right, var(--foreground-dark), #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--foreground-dark);
}

body.light .hero-section h1 {
    background: linear-gradient(to right, #0f172a, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--foreground-light);
}

/* Hero Highlight & Typing */
.hero-highlight {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.light .hero-highlight {
    color: var(--primary-light);
}

.hero-title {
    font-size: 1.5rem;
    color: var(--neutral-dark);
    margin-bottom: 2rem;
    font-weight: 400;
    text-align: left;
}

body.light .hero-title {
    color: var(--neutral-light);
}

.image-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    border: 3px solid var(--surface-dark-2);
    position: relative;
    z-index: 2;
}

body.light .profile-picture {
    border: 3px solid var(--surface-light-2);
}

.image-glow {
    position: absolute;
    inset: -10px;
    background: var(--accent-gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.5;
    filter: blur(20px);
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon-link {
    font-size: 2rem;
    color: var(--neutral-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon-link:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn.primary {
    background: var(--accent-gradient);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

body.light .btn.primary {
    background-color: var(--primary-light);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

body.light .btn.primary:hover {
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--surface-dark);
    color: var(--foreground-dark);
    border: 1px solid var(--surface-dark-2);
}

body.light .btn.secondary {
    background-color: var(--surface-light);
    color: var(--foreground-light);
    border: 1px solid var(--surface-light-2);
}

.btn.secondary:hover {
    background-color: var(--surface-dark-2);
    border-color: var(--primary-dark);
}

body.light .btn.secondary:hover {
    background-color: var(--surface-light-2);
}

.btn.outline {
    background-color: transparent;
    color: var(--neutral-dark);
    border: 1px solid var(--neutral-dark);
}

body.light .btn.outline {
    color: var(--neutral-light);
    border: 1px solid var(--neutral-light);
}

.btn.outline:hover {
    background-color: transparent;
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

body.light .btn.outline:hover {
    background-color: transparent;
    border-color: var(--primary-light);
    color: var(--primary-light);
}

body.light .social-icon-link {
    color: var(--neutral-light);
}

body.light .social-icon-link:hover {
    color: var(--primary-light);
}

/* General Section Styles */
main {
    /* Adicionado para garantir que o conteúdo principal não tenha fundo e fique sobre a animação */
    position: relative;
    z-index: 1;
    background-color: transparent;
}

main section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

body.light .section-tag {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.section-title {
    font-size: 2.0rem;
    font-weight: 700;
    margin: 0;
    color: var(--foreground-dark);
}

body.light .section-title {
    color: var(--foreground-light);
}

main section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--foreground-dark);
}

main section p {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--neutral-dark);
}

body.light main section h2 {
    color: var(--foreground-light);
}

body.light main section p {
    color: var(--neutral-light);
}

/* Footer Styles */
footer {
    background-color: #12121a; /* Matches template bg-secondary */
    color: var(--neutral-dark);
    padding: 3rem 0;
    text-align: center; /* Default center for copyright */
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

body.light footer {
    background-color: #f1f5f9;
    color: var(--neutral-light);
    border-top: 1px solid var(--border-light);
}

footer a {
    color: var(--primary-dark);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

body.light footer a {
    color: var(--primary-light);
}

footer .footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface-dark);
    border: 1px solid var(--surface-dark-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--neutral-dark);
    transition: all 0.3s ease;
}

footer .footer-social a:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

body.light footer .footer-social a {
    background: var(--surface-light);
    border: 1px solid var(--surface-light-2);
    color: var(--neutral-light);
}

body.light footer .footer-social a:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    font-size: 1.25rem;
}

.footer-copyright {
    color: var(--neutral-dark);
    font-size: 0.875rem;
}

/* Skills Section */
.skills-section .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.skill-link {
    text-decoration: none;
    color: inherit; /* Inherit color from parent */
}

.skill-card {
    background-color: var(--surface-dark);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.2rem;
    height: 70%;
}

body.light .skill-card {
    background-color: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2); /* Primary color with transparency for hover */
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

body.light .skill-card i {
    color: var(--primary-light);
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

body.light .skill-card span {
    color: var(--foreground-light);
}

/* Projects Grid Layout (3x2) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Quando em modo mobile scroll, forçar layout flex */
.mobile-scroll-mode {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth; /* Rolagem suave */
}

.mobile-scroll-mode::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */ 
}

.mobile-scroll-mode .project-card {
    scroll-snap-align: start;
    flex: 0 0 auto; /* Impede que os cards se redimensionem */
    width: calc(100vw - 4rem); /* Largura quase total da tela menos o padding */
    max-width: 400px; /* Limite máximo para telas muito largas */
}

/* Estilo para desktop também com scroll snap */
.projects-grid {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.project-card {
    scroll-snap-align: start;
}

/* Estilos para a nova galeria com viewport/rail/track */
.viewport{
    position:relative;
    padding:0;
    isolation:isolate; /* stacking context independente */
}

.rail{
    overflow:hidden;
    position:relative;
    border-radius:var(--border-radius-md);
}

.track{
    display:flex; gap:var(--spacing-comfortable); align-items:stretch;
    will-change: transform;
}

/* Card: 3 por view (considerando 2 gaps entre 3 cards) */
.project-card{
    flex: 0 0 calc((100% - (var(--spacing-comfortable) * 2)) / 3 - 4px); /* Subtraindo 4px para evitar overflow */
    position:relative; border-radius:var(--border-radius-md); overflow:clip;
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 8px rgba(0,0,0,.4);
    transform: translateZ(0);
    transition: transform .28s ease, border-color .28s ease, filter .28s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px; /* Altura fixa para todos os cards */
    box-sizing: border-box; /* Garantir que padding e border sejam incluídos no tamanho */
    margin: 0; /* Remover margens extras */
    align-self: stretch; /* Garantir que o card se estenda para preencher o container */
    max-width: 100%; /* Garantir que não ultrapasse o container */
}

.project-card:hover{ 
    transform: translateY(-6px); 
    border-color: var(--primary-dark); 
    filter:saturate(1.04); 
}

/* Responsivo: 2 por view e 1 por view */
@media (max-width:1024px){ 
    .project-card{ 
        flex-basis: calc((100% - var(--spacing-comfortable)) / 2 - 4px); /* Subtraindo 4px para evitar overflow */
        min-height: 350px; /* Ajustar altura para tablets */
        max-width: 100%; /* Garantir que não ultrapasse o container */
    } 
}

@media (max-width:640px){ 
    .project-card{ 
        flex-basis: calc(100% - 8px); /* Subtraindo 8px para evitar overflow */
        min-height: 320px; /* Ajustar altura para mobile */
        max-width: calc(100% - 8px); /* Garantir que não ultrapasse a largura */
        margin: 0 4px; /* Margem lateral reduzida para mobile */
    } 
}

/* Em modo retrato (mobile), garantir que os cards ocupem a largura disponível */
@media (max-width: 768px) and (orientation: portrait) {
    .project-card {
        flex-basis: calc(100% - 8px) !important; /* Forçar largura total em modo retrato */
        max-width: calc(100% - 8px) !important; /* Garantir que não ultrapasse a largura */
    }
    .hero-highlight {
    font-size: 1.0rem;
    align-items: right;
}
}

/* Garantir alinhamento adequado dos cards */
.track {
    display: flex;
    gap: var(--spacing-comfortable);
    align-items: stretch; /* Garantir que os cards se alinhem na vertical */
    padding: 0;
    margin: 0;
}

/* Alinhamento do conteúdo dentro dos cards */
.project-card .card-header,
.project-card .card-body,
.project-card .card-footer {
    width: 100%;
    box-sizing: border-box;
}

/* Estilo para garantir consistência com o exemplo */
.card-header {
    padding: 1.5rem 1.5rem 0.5rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center; /* Alinhar verticalmente o conteúdo */
}

.card-body {
    padding: 1rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 120px; /* Garantir altura mínima para o corpo do card */
    overflow-y: auto; /* Permitir rolagem vertical no corpo do card */
    overflow-x: hidden; /* Evitar rolagem horizontal */
}

.card-body p {
    font-size: 0.95rem;
    color: var(--neutral-dark);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    text-align: left;
    flex: 1; /* Permitir que o texto ocupe o espaço disponível */
    word-wrap: break-word; /* Quebrar palavras longas para não ultrapassar o container */
    overflow-wrap: break-word;
}

.card-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
}

/* Alinhamento do título para garantir consistência */
.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground-dark);
    white-space: nowrap; /* Não quebrar linha */
    overflow: hidden; /* Esconder texto que exceder o espaço */
    text-overflow: ellipsis; /* Adicionar reticências (...) quando o texto exceder */
    max-width: 100%;
    display: block;
    flex: 1; /* Permitir que o título ocupe o espaço disponível */
}

/* Estilização da barra de rolagem para o corpo do card */
.card-body::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-track {
    background: var(--surface-dark-2);
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-dark);
}

/* Para temas claros */
body.light .card-body::-webkit-scrollbar-track {
    background: var(--surface-light-2);
}

body.light .card-body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
}

body.light .card-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-light);
}

/* Estilos para os botões de navegação */
.nav-btn{
    position:absolute; top:50%; transform:translateY(-50%);
    width:52px; height:52px;
    border-radius:50%; border:1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
    color:var(--foreground-dark); cursor:pointer; box-shadow: 0 4px 8px rgba(0,0,0,.4);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
    user-select:none;
    z-index: 9999;           /* garante sobreposição */
    pointer-events: auto;
    
    /* Centralização perfeita usando flexbox */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    font-size: 1.5rem !important; /* Tamanho adequado para as setas */
    padding: 0 !important; /* Remover qualquer padding que possa afetar a centralização */
}

.nav-btn:hover{
    transform: translateY(-50%) scale(1.06);
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: white;
}

/* Remover quaisquer estilos anteriores que possam interferir */
.nav-btn::before,
.nav-btn::after {
    display: none !important;
}

.nav-btn * {
    pointer-events: none !important;
}

/* Ajustar a posição para que os botões fiquem parcialmente sobre e parcialmente fora da galeria */
.prev{ 
    left: calc(var(--spacing-comfortable) - 26px); /* 26px é metade da largura do botão */
}
.next{ 
    right: calc(var(--spacing-comfortable) - 26px); /* 26px é metade da largura do botão */
}

/* Mostrar/ocultar nos limites (sem display:none) */
.viewport.is-start .prev { opacity:0; pointer-events:none; }
.viewport.is-end   .next { opacity:0; pointer-events:none; }

/* Bordas com gradiente para contraste dos botões */
.edge-fade{
    position:absolute; top:0; bottom:0; width:70px; z-index:6; pointer-events:none;
}

body.light .edge-left{ left:0; background: linear-gradient(90deg, var(--background-light), transparent); }
body.light .edge-right{ right:0; background: linear-gradient(270deg, var(--background-light), transparent); }

/* Indicadores (grupos de 3) */
.dots{
    position:relative; left:50%; transform:translateX(-50%);
    display:flex; gap:6px; pointer-events:none;
    z-index: 8;
    justify-content: center;
    align-items: center;
    margin-top: 1rem; /* Espaço acima dos dots */
    margin-bottom: 1rem; /* Espaço abaixo dos dots */
}

.dot{
    width:6px; height:6px; border-radius:50%;
    background:rgba(255,255,255,.18);
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active{ 
    background:var(--primary-dark); 
    transform: scale(1.2);
}

body.light .dot.active{ 
    background:var(--primary-light); 
}

/* Garantir visibilidade dos dots */
.dots {
    visibility: visible;
    opacity: 1;
}

/* Em dispositivos móveis em modo retrato, exibir um card por vez com rolagem horizontal */
@media (max-width: 768px) and (orientation: portrait) {
    .projects-grid {
        display: flex !important; /* Forçar layout flex para rolagem horizontal */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .projects-grid::-webkit-scrollbar { 
        display: none; /* Chrome/Safari */ 
    }
    
    .project-card {
        scroll-snap-align: start;
        flex: 0 0 auto; /* Impede que os cards se redimensionem */
        width: calc(100vw - 4rem); /* Largura quase total da tela menos o padding */
        max-width: 400px; /* Limite máximo para telas muito largas */
    }
    
    /* Esconder controles de paginação na versão mobile do index.html */
    .projects-nav {
        display: none;
    }
}

/* Em dispositivos mobile, ajustar posição dos botões de navegação para que fiquem parcialmente sobre e parcialmente fora */
@media (max-width: 768px) and (orientation: portrait) {
    .nav-btn {
        width: 44px;  /* Botões menores em mobile */
        height: 44px;
    }
    .prev {
        left: calc(8px - 22px);   /* 22px é metade da largura do botão menor */
    }
    .next {
        right: calc(8px - 22px);  /* 22px é metade da largura do botão menor */
    }
}

/* Em dispositivos mobile em modo paisagem, ajustar posição dos botões de navegação */
@media (max-width: 768px) and (orientation: landscape) {
        .hero-highlight {
    font-size: 1.0rem;
    align-items: right;
}
    .nav-btn {
        width: 48px;  /* Botões intermediários em paisagem */
        height: 48px;
    }
    .prev {
        left: calc(12px - 24px);   /* 24px é metade da largura do botão em paisagem */
    }
    .next {
        right: calc(12px - 24px);  /* 24px é metade da largura do botão em paisagem */
    }
}

/* Em dispositivos desktop, mostrar controles de paginação */
@media (min-width: 769px) {
    .projects-nav {
        display: flex;
    }
}

/* Em dispositivos móveis em modo paisagem, exibir três cards lado a lado com rolagem horizontal */
@media (max-width: 768px) and (orientation: landscape) {
    .projects-grid {
        display: flex !important; /* Forçar layout flex para rolagem horizontal */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .projects-grid::-webkit-scrollbar { 
        display: none; /* Chrome/Safari */ 
    }
    
    .project-card {
        scroll-snap-align: start;
        flex: 0 0 auto; /* Impede que os cards se redimensionem */
        width: calc(33.33% - 1rem); /* Aproximadamente 1/3 da largura com espaçamento */
        max-width: 400px; /* Limite máximo para telas muito largas */
    }
    
    /* Esconder controles de paginação na versão mobile landscape do index.html */
    .projects-nav {
        display: none;
    }
}

.project-card {
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px; /* Altura mínima consistente para todos os cards */
    height: 380px; /* Altura fixa para todos os cards */
}

body.light .project-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--foreground-dark);
    white-space: nowrap; /* Não quebrar linha */
    overflow: hidden; /* Esconder texto que exceder o espaço */
    text-overflow: ellipsis; /* Adicionar reticências (...) quando o texto exceder */
    max-width: 100%;
    display: block;
}

/* Título dinâmico com redução de fonte para caber no espaço disponível */
.adaptive-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--foreground-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    transition: font-size 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Estilo para títulos longos que precisam de fonte menor */
.long-title {
    font-size: 1rem !important;
}

.very-long-title {
    font-size: 0.9rem !important;
}

/* Estilo para o cabeçalho do card para melhor aproveitamento de espaço */
.card-header {
    padding: 1.5rem 1.5rem 0.5rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

body.light .card-header h3 {
    color: var(--foreground-light);
}

.card-body {
    padding: 1rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 120px; /* Garantir altura mínima para o corpo do card */
    overflow-y: auto; /* Permitir rolagem vertical no corpo do card */
    overflow-x: hidden; /* Evitar rolagem horizontal */
}

.card-body p {
    font-size: 0.95rem;
    color: var(--neutral-dark);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    text-align: left;
    flex: 1; /* Permitir que o texto ocupe o espaço disponível */
}

/* Estilização da barra de rolagem */
.card-body::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-track {
    background: var(--surface-dark-2);
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-dark);
}

/* Para temas claros */
body.light .card-body::-webkit-scrollbar-track {
    background: var(--surface-light-2);
}

body.light .card-body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
}

body.light .card-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-light);
}

body.light .card-body p {
    color: var(--neutral-light);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-radius: 2rem;
    font-weight: 500;
}

body.light .tech-tag {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
}

.card-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
}

body.light .card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

body.light .project-link {
    color: var(--primary-light);
}

.project-link:hover {
    gap: 0.75rem;
}

/* Projects Navigation */
.projects-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.nav-arrow {
    background: none;
    border: 1px solid var(--surface-dark-2);
    color: var(--foreground-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light .nav-arrow {
    border: 1px solid var(--surface-light-2);
    color: var(--foreground-light);
}

.nav-arrow:hover:not(:disabled) {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

body.light .nav-arrow:hover:not(:disabled) {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.projects-indicator {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
}

body.light .projects-indicator {
    color: var(--neutral-light);
}

.back-link-page {
    text-align: center;
    margin-top: 3rem;
}

.back-link-page a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

body.light .back-link-page a {
    color: var(--primary-light);
}

.back-link-page a:hover {
    text-decoration: underline;
    color: var(--secondary-dark);
}

body.light .back-link-page a:hover {
    color: var(--secondary-light);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--foreground-dark);
    border: none;
    padding: 1rem 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--primary-dark);
}

.nav-btn.prev-btn {
    left: 0;
    border-top-right-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
}

.nav-btn.next-btn {
    right: 0;
    border-top-left-radius: var(--border-radius-md);
    border-bottom-left-radius: var(--border-radius-md);
}

.nav-btn.hidden {
    display: none;
}

/* Back Link (for projects.html) */
.back-link {
    text-align: center;
    margin-top: 2rem;
}

.back-link a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

body.light .back-link a {
    color: var(--primary-light);
}

.back-link a:hover {
    text-decoration: underline;
    color: var(--secondary-dark);
}

body.light .back-link a:hover {
    color: var(--secondary-light);
}

/* Experience Section Styles */
.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    overflow-x: hidden;
}

.experience-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-dark);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

body.light .experience-timeline::after {
    background-color: var(--primary-light);
}

.experience-item {
    padding: 1rem 2rem;
    position: relative;
    background-color: var(--surface-dark);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    width: 45%; /* Adjusted width */
    box-sizing: border-box;
}

body.light .experience-item {
    background-color: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.experience-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8px;
    background-color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

body.light .experience-item::after {
    background-color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

.experience-item h3 {
    font-size: 1.2rem;
    color: var(--foreground-dark);
    margin-bottom: 0.5rem;
}

body.light .experience-item h3 {
    color: var(--foreground-light);
}

.experience-item .company {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

body.light .experience-item .company {
    color: var(--primary-light);
}

.experience-item .dates {
    font-size: 0.9rem;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}

body.light .experience-item .dates {
    color: var(--neutral-light);
}

.experience-item ul {
    list-style: disc;
    margin: 0;
    padding-left: 1.5rem;
    color: var(--neutral-dark);
}

body.light .experience-item ul {
    color: var(--neutral-light);
}

.experience-item ul li {
    margin-bottom: 0.5rem;
}

/* Left side of timeline */
.experience-item:nth-child(odd) {
    left: 0;
}

.experience-item:nth-child(odd)::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--surface-dark); /* Arrow pointing right */
    right: -10px;
    top: 15px;
}

body.light .experience-item:nth-child(odd)::before {
    border-left: 10px solid var(--surface-light);
}

/* Right side of timeline */
.experience-item:nth-child(even) {
    left: 50%;
    margin-left: 2rem; /* Spacing from the line */
}

.experience-item:nth-child(even)::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--surface-dark); /* Arrow pointing left */
    left: -10px;
    top: 15px;
}

body.light .experience-item:nth-child(even)::before {
    border-right: 10px solid var(--surface-light);
}

/* Adjust circle for right side */
.experience-item:nth-child(even)::after {
    left: -8px;
    right: auto;
}

@media (max-width: 768px) and (orientation: portrait) {
    .experience-timeline {
        padding: 1rem 0;
        max-width: 100%;
    }

    .experience-timeline::after {
        left: 30px;
    }

    .experience-item {
        width: 100%;
        padding: 1rem 1rem 1rem 50px;
        margin-left: 0;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        text-align: left;
    }

    .experience-item::after {
        left: 22px;
        right: auto;
    }

    .header-text-group {
        align-items: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left;
    }

    .experience-item h3 {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0.25rem;
        text-align: left;
    }

    .experience-item .company {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0.15rem;
        text-align: left;
    }

    .experience-item .dates {
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .experience-item ul {
        padding-left: 1rem;
        font-size: 0.9rem;
        text-align: left;
    }

    .experience-item ul li {
        margin-bottom: 0.3rem;
        text-align: left;
    }

    .experience-item:nth-child(odd) {
        text-align: left;
        left: 0;
    }

    .experience-item:nth-child(odd)::before {
        display: none;
    }

    body.light .experience-item:nth-child(odd)::before {
        display: none;
    }

    .experience-item:nth-child(even) {
        left: 0;
        margin-left: 0;
    }

    .experience-item:nth-child(even)::before {
        display: none;
    }

    body.light .experience-item:nth-child(even)::before {
        display: none;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .experience-timeline {
        padding: 0.5rem 0;
        max-width: 100%;
    }

    .experience-timeline::after {
        left: 30px;
    }

    .experience-item {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 40px;
        margin-bottom: 1rem;
        box-sizing: border-box;
        text-align: left;
    }

    .experience-item::after {
        left: 22px;
        right: auto;
        top: 30px;
    }

    .experience-item:nth-child(odd) {
        left: 0;
    }

    .experience-item:nth-child(even) {
        left: 0;
        margin-left: 0;
    }

    .experience-item:nth-child(odd)::before,
    .experience-item:nth-child(even)::before {
        display: none;
    }

    .header-text-group {
        align-items: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left;
    }

    .experience-item h3 {
        font-size: 0.95rem;
        margin-bottom: 0.15rem;
        text-align: left;
    }

    .experience-item .company {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
        text-align: left;
    }

    .experience-item .dates {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
        text-align: left;
    }

    .experience-item ul {
        padding-left: 0.8rem;
        font-size: 0.85rem;
        text-align: left;
    }

    .experience-item ul li {
        margin-bottom: 0.15rem;
        text-align: left;
    }
}

/* Blog Section Styles */
.blog-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-comfortable);
    margin-top: 2rem;
}

.blog-card {
    background-color: #1a1a2e; /* Slightly lighter dark background for cards */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-card .blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; /* Ensure link covers the whole card */
}

.blog-card .blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card .blog-content {
    padding: 1rem var(--spacing-comfortable);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.blog-card p {
    font-size: 1rem;
    text-align: left;
    margin: 0;
    color: var(--neutral-dark);
    flex-grow: 1; /* Allow paragraph to take available space */
}

.blog-card .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--neutral-dark);
}

.blog-card .blog-meta .date {
    white-space: nowrap;
}

.blog-card .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-card .blog-tags .tag {
    background-color: rgba(99, 102, 241, 0.2); /* Primary color with transparency */
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Contact Section Styles */
.contact-section a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: bold;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* CTA Card Section Styles */
.cta-card-section {
    padding: 4rem 0 6rem 0; /* Based on _index.md padding */
}

.cta-card {
    background: linear-gradient(to bottom right, #6366f1, #a855f7); /* Gradient based on primary/secondary */
    border-radius: var(--border-radius-md);
    padding: 2rem var(--spacing-comfortable);
    text-align: center;
    color: #fff; /* White text for contrast */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

body.light .cta-card {
    background: linear-gradient(to bottom right, #4f46e5, #9333ea);
}

.cta-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #fff;
}

.cta-card .btn.primary {
    background-color: #fff;
    color: var(--primary-dark);
    border: 1px solid #fff;
}

body.light .cta-card .btn.primary {
    background-color: #fff;
    color: var(--primary-light);
    border: 1px solid #fff;
}

.cta-card .btn.primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* Estilos para o cabeçalho clicável de itens retráteis */
.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem; /* Espaço entre o header e o conteúdo */
    /* Garante que o header tenha a cor e o espaçamento adequado */
    color: var(--foreground-dark);
}

body.light .collapsible-header {
    color: var(--foreground-light);
}

.collapsible-header h3 {
    margin-bottom: 0; /* Remover margin inferior padrão do h3 dentro do header */
}

/* Estilos para o ícone de expansão/recolhimento */
.collapsible-icon {
    margin-left: 1rem;
    transition: transform 0.3s ease-out; /* Animação de rotação */
}

/* Rotação do ícone quando expandido */
.experience-item.expanded .collapsible-icon {
    transform: rotate(180deg);
}

/* Estilos para o conteúdo retrátil */
.collapsible-content {
    max-height: 0; /* Conteúdo recolhido por padrão */
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* Animação de expansão/recolhimento */
    padding-top: 0; /* Remove padding superior que pode causar salto visual */
}

/* Quando a classe 'expanded' é aplicada ao pai, expandir o conteúdo */
.experience-item.expanded .collapsible-content {
    max-height: 2000px; /* Aumentado para garantir que todo o conteúdo caiba */
    /* Adicionar um padding superior sutil quando expandido, se desejar */
    padding-top: 0.5rem;
}

/* Ajustes para a linha do tempo para acomodar o novo layout */
/* Certifique-se de que o '::after' da timeline e os '::before' dos items se alinhem corretamente com o novo 'collapsible-header' */
.experience-item::after {
    top: 30px; /* Ajuste para centralizar com o header do item */
}

.experience-item:nth-child(odd)::before {
    top: 30px; /* Ajuste para centralizar com o header do item */
}

.experience-item:nth-child(even)::before {
    top: 30px; /* Ajuste para centralizar com o header do item */
}

@media (max-width: 768px) {
    .experience-item:nth-child(odd)::before {
        left: 40px;
        border-left: 0;
        border-right: 10px solid var(--surface-dark);
        top: 30px;
    }

    .experience-item:nth-child(even)::before {
        left: 40px;
        border-right: 10px solid var(--surface-dark);
        top: 30px;
    }
     .experience-item::after {
        left: 22px;
        top: 30px;
    }

    /* Move o botão de expansão para a direita em mobile */
    .detail-paragraph-item .toggle-detail-button {
        margin-left: auto;
    }
}

/* Estilos para a seção "Sobre Mim" - parágrafos gerados dinamicamente */
/* New About Section Layout */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-me-text {
    text-align: left; /* Alinhar o texto da descrição */
    color: var(--neutral-dark);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background-color: var(--surface-dark);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
}

body.light .stat-card {
    background-color: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--neutral-dark);
}

body.light .about-me-text {
    color: var(--foreground-light);
}

.about-me-text p {
    text-align: left; /* Sobrescrever o text-align: center de main section p */
    margin-bottom: 1rem;
    line-height: 1.6;
}

#show-more-btn {
    margin-top: 1rem;
    display: inline-block;
    background: transparent;
    border: none;
    color: var(--primary-dark);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

#show-more-btn:hover {
    color: var(--secondary-dark);
    background: transparent;
}

body.light #show-more-btn {
    color: var(--primary-light);
}

body.light #show-more-btn:hover {
    color: var(--secondary-light);
}

/* Novos estilos para detalhes de parágrafo retráteis na seção Experiências */
.detail-paragraph-item {
    margin-bottom: 0.5rem; /* Espaçamento entre os itens de detalhe */
    position: relative;
    color: var(--neutral-dark);
    list-style: none; /* Remover bullet do li */
}

body.light .detail-paragraph-item {
    color: var(--neutral-light);
}

.detail-paragraph-item .detail-paragraph-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ajuste de alinhamento para itens de experiência pares/ímpares */
.experience-item.expanded .detail-paragraph-item .detail-paragraph-header {
    justify-content: flex-end; /* Alinhar à direita para itens ímpares da experiência */
}

.experience-item:not(.expanded) .detail-paragraph-item .detail-paragraph-header {
    justify-content: flex-start; /* Alinhar à esquerda para itens pares da experiência */
}

.detail-paragraph-item .toggle-detail-button {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-dark);
    margin-left: 0.5rem;
    user-select: none;
}

body.light .detail-paragraph-item .toggle-detail-button {
    color: var(--primary-light);
}

.detail-paragraph-item .detail-paragraph-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 1.5rem; /* Indentação para o conteúdo */
    text-align: left;
}

.detail-paragraph-item.expanded-detail .detail-paragraph-content {
    max-height: 1000px; /* Aumentado para evitar cortes no texto */
    padding-top: 0.5rem;
}

/* Ajustes para o ul dentro do collapsible-content (geral do experience-item) */
.experience-item .collapsible-content ul {
    list-style: none; /* Remover o bullet padrão, pois os details agora são styled */
    padding: 0; /* Remover padding padrão da lista */
    margin: 0;
}

/* Ajustes gerais para parágrafos dentro de collapsible-content */
.collapsible-content p {
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Estilos para o grupo de texto dentro do cabeçalho retrátil */
.header-text-group {
    display: flex; /* Mantém como flex para controlar alinhamento interno */
    flex-direction: column; /* Empilha h3 e p.dates */
    align-items: flex-start; /* Alinha o texto à esquerda por padrão */
    /* Remove a margem inferior do h3 e p.dates dentro deste grupo */
    flex: 1; /* Permite que ele cresça e encolha */
    min-width: 0; /* Necessário para que overflow: hidden funcione corretamente em flex items */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Ajustes para a linha do tempo: alinhamento do texto dentro do header-text-group */
.experience-item:nth-child(odd) .header-text-group {
    align-items: flex-end; /* Alinha o texto à direita para itens ímpares da experiência */
    padding-left: 1rem; /* Espaçamento para o texto */
}

.experience-item:nth-child(even) .header-text-group {
    align-items: flex-start; /* Alinha o texto à esquerda para itens pares da experiência */
    padding-right: 1rem; /* Espaçamento para o texto */
}

/* Remover margens padrão de h3 e p.dates dentro do grupo */
.header-text-group h3,
.header-text-group p.dates {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/*
    Add styles for .align-right-bottom to ensure the button is positioned to the right and bottom of the card, inheriting the site's primary button theme.
*/
.align-right-bottom {
    margin-top: auto; /* Pushes the button to the bottom of the flex container */
    align-self: flex-end; /* Aligns to the right end of the flex container */
    display: inline-block; /* Ensures it respects text-align and positioning */
    /* Inherit button styles from .btn.primary */
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--primary-dark);
    color: var(--foreground-dark);
    border: 1px solid var(--primary-dark);
    cursor: pointer;
}

.align-right-bottom:hover {
    background-color: #4f54d4; /* Hardcoded darker shade of #6366f1 for hover */
    color: var(--foreground-dark);
}

/* ===== MOBILE RESPONSIVO - HAMBURGER MENU ===== */

/* Container do menu mobile (hamburger) - padrão desktop invisível */
.header-mobile-menu {
    display: none;
}

/* Botão Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.35rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--foreground-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.light .hamburger-line {
    background-color: var(--foreground-light);
}

/* Hamburger aberto */
.hamburger-menu.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu Lateral (Sidebar) - padrão desktop */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-comfortable);
    flex: 1;
    justify-content: center;
}

/* ===== MEDIA QUERIES - MOBILE E TABLET ===== */

/* Mobile em Landscape (≤ 768px + landscape) - Menu abaixo do header */
@media (max-width: 768px) and (orientation: landscape) {
    /* Mostrar container com menu abaixo do header */
    .header-mobile-menu {
        display: block;
        background-color: var(--background-dark);
        border-top: 1px solid var(--neutral-dark);
        padding: 0.5rem;
        text-align: center;
    }

    body.light .header-mobile-menu {
        background-color: var(--background-light);
        border-top: 1px solid var(--border-light);
    }

    /* Esconder hamburger em landscape */
    .hamburger-menu {
        display: none;
    }

    /* Menu em linha abaixo do header */
    .nav-menu {
        position: static;
        flex-direction: row;
        background-color: transparent;
        width: 100%;
        text-align: center;
        box-shadow: none;
        padding: 0;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        left: auto;
        top: auto;
        height: auto;
    }

    .nav-menu li a {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        transition: background-color 0.3s ease;
    }

    .nav-menu li a:hover {
        background-color: rgba(99, 102, 241, 0.1);
    }

    body.light .nav-menu li a:hover {
        background-color: rgba(79, 70, 229, 0.1);
    }

    /* Ajustar header para landscape */
    header {
        padding: 0.25rem 0;
    }

    .nav-container {
        gap: 0.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-title img {
        max-height: 35px;
    }

    .theme-toggle {
        font-size: 1rem;
        padding: 0.25rem;
    }

    /* Skill grid landscape */
    .skills-section .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    /* Ajustar hero em landscape */
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    /* Corrigido: Manter imagem visível em landscape e ajustar tamanho */
    .image-container {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .profile-picture {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-glow {
        inset: -5px;
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        filter: blur(15px);
    }

    main section {
        padding: 2rem 0;
    }

    main section h2 {
        font-size: 1.5rem;
    }

    main section p {
        font-size: 0.9rem;
    }

    .projects-section .hint {
        font-size: 10px;
    }

    .projects-section .card {
        flex-basis: calc((100% - 1.5rem) / 2);
    }
}

/* Contact Section Styles (Template Novo) */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--surface-dark);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    transition: all 0.3s ease;
}

body.light .contact-item {
    background-color: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-5px);
    transform: translateX(10px);
    border-color: var(--primary-dark);
}

body.light .contact-item:hover {
    border-color: var(--primary-light);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    background: var(--accent-gradient);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-dark);
    color: white;
}

.contact-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
    color: var(--foreground-dark);
}

body.light .contact-text h3 {
    color: var(--foreground-light);
}

.contact-text a {
    color: var(--primary-dark);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

body.light .contact-text a {
    color: var(--primary-light);
}

.contact-text a:hover {
    opacity: 0.8;
}

.contact-qr {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

#qrcode {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    max-width: 300px;
    margin-bottom: 1rem;
    display: inline-block;
}

#qrcode img {
    margin: 0 auto;
    display: block;
}

.qr-container p {
    color: var(--neutral-dark);
    font-size: 0.9rem;
}

body.light .qr-container p {
    color: var(--neutral-light);
}

/* Tablet/Mobile em Retrato (≤ 768px + portrait) - Hamburger ao centro do header */
@media (max-width: 768px) and (orientation: portrait) {
    /* Mostrar hamburger menu inline no header */
    .hamburger-menu {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Reorganizar botões em mobile portrait */
    .about-actions-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .social-icons {
        display: flex;
        gap: 0.75rem;
    }

    .social-icon-link {
        font-size: 1.5rem;
    }

    #download-cv-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    #download-cv-btn i {
        margin-left: 0.25rem;
    }

    /* Botões de ação (Ver projetos e Entrar em contato) */
    .cta-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .hero-actions .btn {
        width: auto !important;
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Esconder menu desktop, mostrar sidebar */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--background-dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 6rem 0 2rem;
        gap: 0;
        z-index: 999;
        justify-content: flex-start;
    }

    body.light .nav-menu {
        background-color: var(--background-light);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
    }

    .nav-menu li a:hover {
        background-color: rgba(99, 102, 241, 0.1);
    }

    body.light .nav-menu li a:hover {
        background-color: rgba(79, 70, 229, 0.1);
    }

    /* Ajustar container nav para mobile */
    .nav-container {
        gap: 1rem;
        position: relative;
    }

    /* Skills grid em mobile */
    .skills-section .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    /* Hero section - ajustar imagem de perfil */
    .image-container {
        width: 150px;
        height: 150px;
        margin: 0 auto 1.5rem auto;
    }

    .profile-picture {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-glow {
        inset: -5px;
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        filter: blur(15px);
    }

    /* About content area em coluna */
    .about-content-area {
        display: block;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Experience timeline - ajustar para mobile */
    .experience-timeline::after {
        left: 20px;
    }

    .experience-item {
        width: 100%;
        margin-left: 0;
        padding-left: 80px;
    }

    .experience-item::after {
        left: 10px;
    }

    .experience-item::before {
        display: none;
    }

    .experience-item:nth-child(odd) .header-text-group,
    .experience-item:nth-child(even) .header-text-group {
        align-items: flex-start;
        padding-left: 0;
        padding-right: 0;
    }

    /* Alinha o texto (role, period) à esquerda e permite que o botão vá para a direita */
    .detail-paragraph-item .detail-paragraph-header {
        justify-content: flex-start !important;
    }
}

/* Telefones pequenos em Landscape */
@media (max-width: 480px) and (orientation: landscape) {
    .header-mobile-menu {
        padding: 0.25rem 0 0.25rem 0.5rem;
    }

    .hamburger-line {
        width: 18px;
        height: 2px;
    }

    .hamburger-menu {
        padding: 0.25rem;
    }

    .nav-menu li a {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Ocultar cards de estatísticas em dispositivos móveis */
@media (max-width: 768px) {
    .about-stats {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr; /* Alterar layout para apenas o conteúdo textual */
        gap: 2rem; /* Ajustar espaçamento para melhor aparência */
    }
    
    .about-me-text {
        text-align: center; /* Centralizar texto em dispositivos móveis */
    }
    
    body.light .about-me-text,
    body.light .hero-section > .container > p {
        background-color: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
}

/* Telefones pequenos (≤ 480px) em Retrato */
@media (max-width: 480px) and (orientation: portrait) {
    /* Mostrar hamburger menu */
    .hamburger-menu {
        display: flex;
    }

    /* Reorganizar botões em telefone pequeno */
    .about-actions-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .social-icons {
        display: flex;
        gap: 0.6rem;
    }

    .social-icon-link {
        font-size: 1.2rem;
    }

    #download-cv-btn {
        padding: 0.45rem 0.9rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    #download-cv-btn i {
        margin-left: 0.25rem;
    }

    /* Botões de ação */
    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .hero-actions .btn {
        width: auto !important;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .nav-container {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-title img {
        max-height: 40px;
    }

    .hamburger-menu {
        padding: 0.25rem;
    }

    .hamburger-line {
        width: 20px;
        height: 2.5px;
    }

    .theme-toggle {
        font-size: 1.25rem;
        padding: 0.25rem;
    }

    .nav-menu {
        padding: 5rem 0 1.5rem;
    }

    .nav-menu li a {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* Ajustar imagem de perfil para telas pequenas */
    .image-container {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem auto;
    }

    .profile-picture {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-glow {
        inset: -3px;
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        filter: blur(12px);
    }

    main section {
        padding: 2rem 0;
    }

    main section h2 {
        font-size: 1.5rem;
    }

    main section p {
        font-size: 1rem;
    }

    .projects-section .hint {
        font-size: 11px;
    }

    .projects-section .card {
        flex-basis: 100%;
    }
}

/* Mobile Horizontal Scroll for Projects - Only for landscape mode to avoid conflicts */
@media (max-width: 768px) and (orientation: landscape) {
    .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    .projects-grid::-webkit-scrollbar { display: none; /* Chrome/Safari */ }

    .project-card {
        width: 85%;
        max-width: 400px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

/* Ajustes específicos para a seção hero em dispositivos móveis */
@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .image-container {
        order: -1; /* Coloca a imagem antes do texto na ordem visual */
        margin: 0 auto 1.5rem auto;
    }
}

/* Estilos para o botão de idioma */
.language-toggle-container {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
}

.language-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
    padding-right: 0;
}

    /* Fix mobile overlap: Push language toggle to right */
    .language-toggle-container {
        margin-left: auto;
        margin-right: 0.5rem;
    }

        padding-left: 0;
        padding-right: 0;
    }

    /* Fix mobile overlap: Push language toggle to right */
    .language-toggle-container {
        margin-left: auto;
        margin-right: 0.5rem;
    }


/* Telefones pequenos em Landscape */


#language-select {
    background: transparent;
    border: 1px solid var(--neutral-dark);
    color: var(--foreground-dark);
    padding: 0.3rem 0.5rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

body.light #language-select {
    border-color: var(--neutral-light);
    color: var(--foreground-light);
}

#language-select option {
    background-color: var(--surface-dark);
    color: var(--foreground-dark);
}

body.light #language-select option {
    background-color: var(--surface-light);
    color: var(--foreground-light);
}

.reload-btn {
    background: transparent;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.4rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light .reload-btn {
    color: var(--primary-light);
}

.reload-btn:hover {
    transform: rotate(180deg);
}

/* Translation Popup Styles */
#translation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#translation-popup.visible {
    opacity: 1;
}

.translation-popup-content {
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#translation-popup.visible .translation-popup-content {
    transform: scale(1);
}

body.light .translation-popup-content {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popup-header h3 {
    margin-top: 0;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.popup-status {
    margin: 1.5rem 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    height: 10px;
    width: 100%;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.5s ease;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.status-text}
