/* PERSONALIZAÇÕES GERAIS */
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@200&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300&family=Source+Code+Pro:wght@200&display=swap');

html.sr .load-hidden {
    visibility: hidden;
}

html {
    font-family: "Source Sans Pro", "Arial", sans-serif;

}


body {
    background: rgb(23, 1, 41);
    background: radial-gradient(circle, rgba(23, 1, 41, 1) 0%, rgba(13, 0, 22, 1) 100%);
    background-size: cover;
    background-position: top center;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    /* Adjust font size for better mobile readability */
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}


section {
    margin: 0 auto;
    max-width: 95%;
    padding: 0 5px;
}

p::selection,
h1::selection,
h2::selection,
h3::selection,
span::selection,
a::selection {
    background: rgba(110, 0, 201, 0.2);
}

.lord-icon {
    width: 35px;
    height: 35px;
}

.underline-anime {
    display: inline-block;
    margin-block: 2px;
    text-decoration: none;
    position: relative;
}

.underline-anime::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgb(243, 234, 249);
    background: linear-gradient(90deg, rgba(45, 1, 75, 0.5) 0%, rgba(110, 12, 175, 1) 56%);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.45s ease-out;

}

.underline-anime:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* CABEÇALHO E DEPENDÊNCIAS */

header {
    background: rgba(17, 17, 17, 0.13);
    font-weight: lighter;
}

/* Fixed header to stay at top when scrolling */
.fixed-top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.13);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

/* Hide header when scrolling down */
.fixed-top-header.hide {
    transform: translateY(-100%);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;

}

nav li {
    margin: 0 0.5rem;

}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
}

.navbar li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: lighter;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    font-family: "Source Sans Pro", "Arial", sans-serif;
}

.logo span {
    font-size: 2.5rem;
    background: -webkit-linear-gradient(rgb(116, 0, 161), rgb(61, 61, 61));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Add some top padding to main content to account for fixed header */
main {
    padding-top: 80px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    /* Back to original position on the right side */
    right: 50px;
    width: 50px;
    height: 50px;
    background: rgba(110, 12, 175, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 12, 175, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(110, 12, 175, 1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 12, 175, 0.4);
}

/* Header Buttons Container */
.header-buttons-container {
    display: flex;
    align-items: center;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(17, 17, 17, 0.13);
    color: #fff;
    border: 1px solid rgba(110, 12, 175, 0.3);
    border-radius: 5px;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.language-btn:hover {
    background: rgba(110, 12, 175, 0.3);
    transform: translateY(-2px);
    border: 1px solid rgb(110, 12, 175);
}

.language-btn:active {
    background: rgba(110, 12, 175, 0.5);
    transform: translateY(-1px);
    border: 1px solid rgb(140, 30, 200);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 12, 175, 0.3);
    border-radius: 5px;
    width: 150px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: rgba(110, 12, 175, 0.3);
}

.language-option.active {
    background: rgba(110, 12, 175, 0.5);
    font-weight: bold;
}

/* CV Download Button */
.cv-button-container {
    margin-right: 20px;
}

.cv-download-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(17, 17, 17, 0.13);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    border: 1px solid rgba(110, 12, 175, 0.3);
    transition: all 0.3s ease;
    position: relative;
    /* Improve touch targets */
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-download-btn:hover {
    background: rgba(110, 12, 175, 0.3);
    transform: translateY(-2px);
    border: 1px solid rgb(110, 12, 175);
}

/* Add active state for touch devices */
.cv-download-btn:active {
    background: rgba(110, 12, 175, 0.5);
    transform: translateY(-1px);
    border: 1px solid rgb(140, 30, 200);
}

.cv-download-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgb(243, 234, 249);
    background: linear-gradient(90deg, rgba(45, 1, 75, 0.5) 0%, rgba(110, 12, 175, 1) 56%);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.45s ease-out;
}

.cv-download-btn:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* CONTEÚDO PRINCIPAL */

.bio h2 {
    font-size: 2rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    font-family: "Source Sans Pro", "Arial", sans-serif;
}

.bio #nome {
    font-size: 4rem;
    font-family: "Source Sans Pro", "Arial", sans-serif;
}


/* Social Icons in Bio Section */
.social-icons-bio {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .social-icons-bio {
        justify-content: center;
    }
}

.social-icon-bio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(110, 12, 175, 0.2);
    border: 1px solid rgba(110, 12, 175, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon-bio:hover {
    background: rgba(110, 12, 175, 0.5);
    border-color: rgb(110, 12, 175);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(110, 12, 175, 0.4);
    color: #fff;
}

.social-icon-bio:active {
    transform: translateY(-1px) scale(1.05);
}

.bio span {
    background: -webkit-linear-gradient(rgb(116, 0, 161), rgb(61, 61, 61));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    align-items: center;
}

.bio p {
    font-size: 1.2rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    align-items: center;
    font-family: "Source Sans Pro", "Arial", sans-serif;
}


section .nave {
    width: 30vw;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    margin-left: 10vw;
    -webkit-filter: drop-shadow(0 0 100px rgba(59, 3, 97, 0.5));
    filter: drop-shadow(10px 0 100px rgba(61, 2, 100, 0.5));
}

#biosec,
#tec {
    height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 100%;
}

/* Section title improvements for better responsive behavior */
.section-title {
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}

/* Prevent section titles from breaking layout */
h2[data-i18n] {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}



.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1rem;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 0, 12, 0.6);
    padding: 1rem;
    color: #fff;
    text-align: center;
    width: 120px;
    height: 120px;
    font-size: 3rem;
    font-weight: 200;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(110, 12, 175, 0.3);
    /* Improve touch targets */
    min-height: 44px;
    min-width: 44px;
}

.grid-item:hover {
    background: rgba(110, 12, 175, 0.3);
    transform: translateY(-5px);
}

/* Add active state for touch devices */
.grid-item:active {
    background: rgba(110, 12, 175, 0.5);
    transform: translateY(-2px);
}

#tec {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    align-items: center;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    padding: 2rem 0;
}

#tec h2 {
    font-size: 2.5rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    margin-bottom: 2rem;
}

#tec span {
    background: -webkit-linear-gradient(rgb(116, 0, 161), rgb(80, 80, 80));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    align-items: center;
    font-size: 2.8rem;

}

/* Ensure section titles with curly braces don't overflow */
#tec h2,
#sobre-mim h2,
#projetos h2 {
    white-space: normal;
    word-break: break-word;
}

.info-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(9, 0, 12, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(110, 12, 175, 0.3);
}

#prof-name {
    font-size: 2rem;
    font-weight: 200;
    color: rgb(213, 130, 255);
    align-items: center;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    margin-bottom: 1rem;
}

#descricao {
    font-size: 1rem;
    line-height: 1.6;
    font-family: "Source Sans Pro", "Arial", sans-serif;
}

#projetos {
    margin: 4rem auto;
    padding: 2rem 0;
}

/* SOBRE MIM SECTION */
#sobre-mim {
    margin: 3rem auto;
    padding: 2rem 1rem;
    max-width: 1200px;
}

#sobre-mim h2 {
    font-size: 2.5rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(110, 12, 175, 0.5);
    /* Add subtle glow for better visibility */
}

#sobre-mim span {
    background: -webkit-linear-gradient(rgb(116, 0, 161), rgb(80, 80, 80));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    align-items: center;
    font-size: 2.8rem;
}

.sobre-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 2rem;
    align-items: flex-start;
}

.sobre-text {
    flex: 1;
    min-width: 300px;
    background: rgba(9, 0, 12, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(110, 12, 175, 0.3);
    color: #ffffff;
    /* Ensure all text is white for better contrast */
}

.sobre-text h3 {
    font-size: 1.5rem;
    color: rgb(213, 130, 255);
    margin-bottom: 1rem;
    font-weight: 200;
    text-shadow: 0 0 5px rgba(110, 12, 175, 0.3);
    /* Add subtle glow for better visibility */
    font-family: "Source Sans Pro", "Arial", sans-serif;
}

.sobre-text p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ffffff;
    /* White text for better visibility */
    font-family: "Source Sans Pro", "Arial", sans-serif;
}

.experiencia-timeline {
    flex: 1;
    min-width: 300px;
    color: #fff;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid rgba(110, 12, 175, 0.3);
    color: #ffffff;
    /* White text for better visibility */
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(110, 12, 175);
}

.timeline-item h4 {
    font-size: 1.2rem;
    color: rgb(213, 130, 255);
    margin-bottom: 0.3rem;
    text-shadow: 0 0 5px rgba(110, 12, 175, 0.3);
    /* Add subtle glow for better visibility */
    font-family: "Source Sans Pro", "Arial", sans-serif;
}

.timeline-item .periodo {
    font-size: 0.9rem;
    color: rgb(213, 130, 255);
    background-clip: text;
    font-weight: bold;
    align-items: center;
    font-size: 1.0rem;
}

/* --- TÍTULO DAS CERTIFICAÇÕES --- */
.titulo-certificacoes {
    width: 100%;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    font-family: "Source Sans Pro", "Arial", sans-serif;
    white-space: normal;
    word-break: break-word;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-shadow: none !important;
}

.titulo-certificacoes span {
    background: -webkit-linear-gradient(rgb(116, 0, 161), rgb(80, 80, 80));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    align-items: center;
    font-size: 2.8rem;
}

.certificados {
    /* CORRIGIDO: Remover display: grid, que estava quebrando o fluxo */
    display: flex;
    /* Adicionado display: flex para permitir o fluxo horizontal do track */
    flex-wrap: nowrap;
    /* Garante que os itens não quebrem a linha */
    align-items: center;
    gap: 1rem;
    /* Adiciona espaçamento entre os cartões */
    margin-top: 1rem;
    padding: 0 10px;
    /* Adicionado padding para respirar */
    max-width: 1200px;
    /* Limita a largura do contêiner */
    margin: 0 auto;
    /* Centraliza o contêiner na página */
}

/* A Lista (Trilho) */

.certificados-track {
    flex-shrink: 0;
    display: flex;
    align-items: center;

    /* ESPAÇAMENTO ENTRE ITENS */
    gap: 3rem;

    /* TRUQUE: Adiciona espaço no final da lista para colar na próxima sem grudar */
    padding-right: 3rem;

    /* CORRIGIDO: min-width: 100% DE VOLTA. ESSENCIAL para que o translateX(-100%) funcione. */
    min-width: 100%;

    /* Animação Contínua */
    animation: scroll 30s linear infinite;

}


@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* Move 100% da largura do próprio elemento */
        transform: translateX(-100%);
    }
}

/* Cards (Sem alterações) */

.certificados-marquee {
    display: flex;
    flex-wrap: nowrap;
    /* Garantir que não quebre a linha */
    overflow: hidden;
    /* CRUCIAL: Esconde o conteúdo que está fora de vista */
    user-select: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    /* Degradê para suavizar as pontas - Removido/Corrigido para o que você pediu */
    mask-image: none;
    -webkit-mask-image: none;
}

.certificado-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 200px;

    /* CORREÇÃO PARA O TEXTO SUMIR NA ANIMAÇÃO */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.certificado-card h5 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
}

.certificado-card p {
    font-size: 0.9rem;
    color: rgb(213, 130, 255);
}

.cv-download-inline {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(17, 17, 17, 0.13);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    font-size: 0.9rem;
    border: 1px solid rgba(110, 12, 175, 0.3);
    transition: all 0.3s ease;
}

.cv-download-inline:hover {
    background: rgba(110, 12, 175, 0.3);
    transform: translateY(-2px);
    border: 1px solid rgb(110, 12, 175);
}

#projetos h2 {
    font-size: 2.5rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    margin-bottom: 2rem;
}

#projetos span {
    background: -webkit-linear-gradient(rgb(116, 0, 161), rgb(80, 80, 80));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    align-items: center;
    font-size: 2.8rem;
}

.projeto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.projeto {
    background: rgba(9, 0, 12, 0.6);
    padding: 1.5rem;
    color: #fff;
    text-align: left;
    font-size: 1rem;
    font-weight: 200;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid rgba(110, 12, 175, 0.3);
    transition: all 0.3s ease;
    /* Improve touch targets */
    min-height: 44px;
}

.projeto:hover {
    transform: translateY(-5px);
    border: 1px solid rgb(110, 12, 175);
}

/* Add active state for touch devices */
.projeto:active {
    transform: translateY(-2px);
    border: 1px solid rgb(140, 30, 200);
    background: rgba(110, 12, 175, 0.2);
}

.border-anime {
    border: 1px solid transparent;
    transition: 1s;
}

.border-active {
    border: 1px solid rgb(58, 1, 150);
}

.border-anime:hover {
    border: 1px solid rgb(110, 12, 175);
    transition: 1s;
}

.type {
    font-size: 0.9rem;
    font-weight: 200;
    color: rgb(210, 71, 252);
    align-items: center;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    margin-bottom: 0.5rem;
}

.type i {
    font-size: 1rem;
}

.projeto h3 {
    font-size: 1.3rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    font-family: "Source Sans Pro", "Arial", sans-serif;
    margin-bottom: 0.8rem;
}

.projeto-descricao {
    font-size: 0.9rem;
    font-weight: 200;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.projeto a {
    color: rgb(213, 130, 255);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 200;
    font-family: "Source Sans Pro", "Arial", sans-serif;
    transition: 0.2s;
}

.projeto a:hover {
    text-decoration: underline;
    color: rgb(216, 144, 252);
}

/* RODAPÉ E CONTATO */
/* MENU SOBREPOSTO */

.menu {
    position: fixed;
    left: 10px;
    /* botão para o lado esquedo */
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.menu {
    position: fixed;
    left: 10px;
    /* botão para o lado esquedo */
    bottom: 25px;
    /* deixar centralizado com o botão back-to-top*/
    right: 27px;
    width: 125px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu .toggle {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(144, 19, 254, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(14.5px);
    -webkit-backdrop-filter: blur(14.5px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 1);
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    cursor: pointer;
    transition: 0.4s;
}

.menu .toggle.active {
    transform: rotate(136deg);
    box-shadow: 0 0 0 35px rgba(144, 19, 254, 0.25), 0 0 0 35px rgba(144, 19, 254, 0.1);
    background: transparent;
    color: #fff;
}

.menu li {
    position: absolute;
    list-style: none;
    left: 23px;
    transform: rotate(calc(360deg / 5 * var(--i)));
    transform-origin: 55px;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
}

.menu.active li {
    visibility: visible;
    opacity: 1;
    transition: 1s;
}

.menu li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    font-size: 1.3em;
    transform: rotate(calc(360deg / -5 * var(--i)));
}

/* Responsividade */

@media screen and (max-width: 980px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .info-container {
        align-self: center;
    }

    .bio #nome {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 768px) {

    /* Header & Navigation */
    .fixed-top-header {
        padding: 0.5rem 1rem !important;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo span {
        font-size: 1.8rem;
    }

    .header-buttons-container {
        gap: 10px;
    }

    .language-text {
        display: none;
        /* Hide text on mobile to save space */
    }

    .language-btn {
        padding: 6px;
        min-width: 36px;
        min-height: 36px;
    }

    .cv-download-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-height: 36px;
    }

    /* Bio Section */
    #biosec {
        height: auto;
        min-height: 100vh;
        padding-top: 6rem;
        padding-bottom: 2rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .bio {
        text-align: center !important;
        width: 100%;
    }

    .bio h2 {
        display: block;
        margin: 0 auto;
        font-size: 1.5rem;
        justify-content: center;
    }

    .bio #nome {
        font-size: 3rem;
        margin: 1rem 0;
    }

    .bio p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Technologies Section */
    #tec {
        height: auto;
        padding: 3rem 0;
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cols on tablet/large mobile */
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .grid-item {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        min-height: auto;
        min-width: auto;
    }

    .info-container {
        width: 90%;
        margin: 2rem auto;
    }

    /* Projects Section */
    #projetos {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .projeto-grid {
        grid-template-columns: 1fr;

        .menu {
            position: fixed;
            left: 10px;
            /* botão para o lado esquedo */
            bottom: 25px;
            /* deixar centralizado com o botão back-to-top*/
            right: 27px;
            width: 125px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .menu .toggle {
            position: absolute;
            width: 50px;
            height: 50px;
            background: rgba(144, 19, 254, 0.25);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            backdrop-filter: blur(14.5px);
            -webkit-backdrop-filter: blur(14.5px);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            color: rgba(255, 255, 255, 1);
            border-radius: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2em;
            cursor: pointer;
            transition: 0.4s;
        }

        .menu .toggle.active {
            transform: rotate(136deg);
            box-shadow: 0 0 0 35px rgba(144, 19, 254, 0.25), 0 0 0 35px rgba(144, 19, 254, 0.1);
            background: transparent;
            color: #fff;
        }

        .menu li {
            position: absolute;
            list-style: none;
            left: 23px;
            transform: rotate(calc(360deg / 5 * var(--i)));
            transform-origin: 55px;
            visibility: hidden;
            opacity: 0;
            transition: 0.3s;
            z-index: 10;
        }

        .menu.active li {
            visibility: visible;
            opacity: 1;
            transition: 1s;
        }

        .menu li a {
            text-decoration: none;
            color: rgba(255, 255, 255, 1);
            display: flex;
            justify-content: center;
            align-items: center;
            width: 25px;
            height: 25px;
            font-size: 1.3em;
            transform: rotate(calc(360deg / -5 * var(--i)));
        }

        /* Responsividade */

        @media screen and (max-width: 980px) {
            .grid-container {
                grid-template-columns: repeat(3, 1fr);
            }

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

            .info-container {
                align-self: center;
            }

            .bio #nome {
                font-size: 3.5rem;
            }
        }

        @media screen and (max-width: 768px) {

            /* Header & Navigation */
            .fixed-top-header {
                padding: 0.5rem 1rem !important;
            }

            .logo h1 {
                font-size: 1.5rem;
            }

            .logo span {
                font-size: 1.8rem;
            }

            .header-buttons-container {
                gap: 10px;
            }

            .language-text {
                display: none;
                /* Hide text on mobile to save space */
            }

            .language-btn {
                padding: 6px;
                min-width: 36px;
                min-height: 36px;
            }

            .cv-download-btn {
                padding: 6px 10px;
                font-size: 0.8rem;
                min-height: 36px;
            }

            /* Bio Section */
            #biosec {
                height: auto;
                min-height: 100vh;
                padding-top: 6rem;
                padding-bottom: 2rem;
                flex-direction: column;
                justify-content: center;
                text-align: center;
            }

            .bio {
                text-align: center !important;
                width: 100%;
            }

            .bio h2 {
                display: block;
                margin: 0 auto;
                font-size: 1.5rem;
                justify-content: center;
            }

            .bio #nome {
                font-size: 3rem;
                margin: 1rem 0;
            }

            .bio p {
                font-size: 1rem;
                padding: 0 1rem;
            }

            /* Technologies Section */
            #tec {
                height: auto;
                padding: 3rem 0;
            }

            .grid-container {
                grid-template-columns: repeat(3, 1fr);
                /* 3 cols on tablet/large mobile */
                gap: 0.5rem;
                padding: 0.5rem;
            }

            .grid-item {
                width: 80px;
                height: 80px;
                font-size: 2rem;
                min-height: auto;
                min-width: auto;
            }

            .info-container {
                width: 90%;
                margin: 2rem auto;
            }

            /* Projects Section */
            #projetos {
                margin-top: 2rem;
                padding-top: 2rem;
            }

            .projeto-grid {
                grid-template-columns: 1fr;
                /* Single column */
                gap: 1.5rem;
                padding: 0 1rem;
            }

            /* About Me Section */
            .sobre-content {
                flex-direction: column;
            }

            .sobre-text,
            .experiencia-timeline {
                width: 100%;
                min-width: 100%;
            }

            /* Floating Menu */
            .menu {
                left: 10px;
                bottom: 20px;
                width: 50px;
                height: 50px;
            }

            .menu .toggle {
                width: 50px;
                height: 50px;
                font-size: 1.5em;
                left: 0;
                bottom: 0;
            }

            .menu li {
                position: absolute;
                list-style: none;
                width: 30px;
                height: 30px;
                left: -50px;
                /* Center (25) - Half-width (15) - Radius (60) */
                top: 10px;
                /* Center vertically */
                transform-origin: 75px center;
                /* Radius (60) + Half-width (15) */
                z-index: 10;
            }

            .menu li a {
                width: 30px;
                height: 30px;
                font-size: 1.2em;
            }

            /* Certifications */
            .certificados-marquee {
                padding: 10px 0;
            }

            .certificado-card {
                min-width: 160px;
            }
        }

        @media screen and (max-width: 480px) {

            /* Extra small devices */
            .grid-container {
                grid-template-columns: repeat(2, 1fr);
            }

            .bio #nome {
                font-size: 2.5rem;
            }

            .logo h1 {
                font-size: 1.2rem;
            }

            .logo span {
                font-size: 1.5rem;
            }

            .cv-button-container {
                margin-left: 0.5rem !important;
            }
        }
    }
}