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

:root { 
    font-size: 88.5%;
    --bg-light: #f5f7fa;
    --text-light: #2c3e50;
    --primary-light: #0dbc4f;
    --secondary-light: #32ff9c;
    --border-light: rgba(13, 188, 79, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    --glass-effect: rgba(255, 255, 255, 0.95);
    --bg-color: #0a192f;
    --text-color: #8892b0;
    --heading-color: #ccd6f6;
    --highlight-color: #0dbc4f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: rgba(0, 0, 0, 0.2);
    --hover-shadow: rgba(13, 188, 79, 0.3);
}

body.light-theme {
    --bg-color: #ffffff;
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --highlight-color: #0dbc4f;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(13, 188, 79, 0.1);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(13, 188, 79, 0.2);
    --glass-effect: rgba(255, 255, 255, 0.95);
}

*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body{
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #0a0c10 0%, #161b22 50%, #0a0c10 100%);
    color: #e9ecef;
    transition: all 0.3s ease;
}

body.light-theme {
    background: var(--gradient-light);
    color: var(--text-light);
    line-height: 1.6;
    background-color: #ffffff;
    color: var(--text-light);
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    color: #2d3436;
}

body.light-theme #projects,
body.light-theme #certificates,
body.light-theme .main-container,
body.light-theme section {
    background-color: #ffffff !important;
    background-image: none !important;
}

body.light-theme .project-card,
body.light-theme .certificate-card {
    background-color: #ffffff;
    border: 1px solid rgba(13, 188, 79, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .project-card:hover,
body.light-theme .certificate-card:hover {
    border-color: #0dbc4f;
    box-shadow: 0 8px 20px rgba(13, 188, 79, 0.15);
}

body.light-theme nav {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .nav-container {
    background-color: #ffffff;
}

body.light-theme .nav-container .logo {
    color: #0f1419;
    font-weight: 600;
}

body.light-theme .nav-container .links a {
    color: #0f1419;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.light-theme .nav-container .links a:hover {
    color: #0dbc4f;
}

body.light-theme .nav-container .links a.active {
    color: #0dbc4f;
    font-weight: 600;
}

body.light-theme #themeToggle {
    color: #0f1419;
    transition: all 0.3s ease;
}

body.light-theme #themeToggle:hover {
    color: #0dbc4f;
}

nav{
    width: 100%;
    height: 10vh;
    position: fixed;
    top: 0;
    z-index: 20; /* Garante que o cabeçalho fique acima do conteúdo */
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px); /* Desfoque no fundo */
    border-bottom: 1px solid rgba(13, 188, 79, 0.2);
    box-shadow: 
        0 4px 30px rgba(13, 188, 79, 0.15),
        0 1px 0 rgba(13, 188, 79, 0.1);
    transition: box-shadow 0.3s ease-in-out; /* Suaviza a transição da sombra */
}

nav.light-theme {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px var(--shadow-light);
}

.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 15px;
}

.logo{
    color: #e9ecef;
    font-size: 2rem;
    font-weight: bold;
}

.logo.light-theme span{
    color: var(--primary-light);
}

.logo span{
    color: #0dbc4f;
    text-shadow: 0  0 20px #0dbc4f;
}

.hamburg,
.cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: #e9ecef;
    display: none;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links{
    display: flex;
}

.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: #e9ecef;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #0dbc4f;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .links a:hover{
    color: #0dbc4f;
}

.theme-toggle {
    background: none;
    border: none;
    color: #e9ecef;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 8px;
    margin: 0 10px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 188, 79, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    color: #0dbc4f;
    transform: scale(1.1);
}

.theme-toggle:hover::before {
    transform: scale(1.5);
}

/* Estilo para o tema claro */
body.light-theme .theme-toggle {
    color: #077b32;
}

body.light-theme .theme-toggle:hover {
    color: #0dbc4f;
}

body.light-theme .theme-toggle::before {
    background: rgba(7, 123, 50, 0.1);
}

/* Animação do ícone */
.theme-toggle i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(30deg);
}

#toggle {
    display: flex;
    position: fixed;
    bottom: 2rem;
    left: 2.5rem;
}

#toggle input {
    position: absolute;
    visibility: hidden;
}

#toggle label {
    width: 8rem;
    height: 4rem;
    background-color: var(--secundary-color);
    border: 0.1rem solid var(--primary-color);
    border-radius: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.dropdown {
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%); /* Mantenha o desfoque para o fundo */
    box-shadow:  0 0 20px black;
    transition: 0.2s linear;
    background-color: rgba(13, 17, 23, 0.98); /* Cor de fundo mais opaca, menos transparente */
}

.dropdown.light-theme {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.dropdown .links a {
    display: flex;
    color: #e9ecef;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: #0dbc4f;
}

.dropdown.light-theme .links a {
    color: var(--text-light);
}

.dropdown.light-theme .links a:hover {
    color: var(--primary-light);
    background: rgba(13, 188, 79, 0.1);
}

section{
    
    padding-top: 13vh; /* Espaço superior para evitar sobreposição com o cabeçalho */
    margin-bottom: 3px; /* Espaço inferior */
}

.main-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-container .image {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(13, 188, 79, 0.2),
        0 0 0 6px rgba(13, 188, 79, 0.1),
        inset 0 0 20px rgba(13, 188, 79, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    margin: 20px;
}

.main-container .image::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #0dbc4f, #32ff9c);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.main-container .image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(13, 188, 79, 0.08) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-container .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.02) contrast(1.02);
    border-radius: 50%;
}

.main-container .image:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 
        0 15px 40px rgba(13, 188, 79, 0.3),
        0 0 0 8px rgba(13, 188, 79, 0.2),
        inset 0 0 25px rgba(13, 188, 79, 0.1);
}

.main-container .image:hover img {
    transform: scale(1.1) rotate(-2deg);
    filter: brightness(1.05) contrast(1.05);
}

.main-container .image:hover::before {
    opacity: 1;
}

.main-container .image:hover::after {
    opacity: 1;
}

@media (max-width: 884px) {
    .main-container .image {
        width: 320px;
        height: 320px;
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.98);
    }
}

.main-container .content{
    color: #e9ecef;
    width: 40%;
    min-height: 100px;
    max-width: 100%; /* Garantir que não ultrapasse a largura disponível */
    min-height: 100px;
    box-sizing: border-box; /* Inclui padding e bordas no cálculo da largura */
    overflow-x: hidden; /* Evita rolagem lateral dentro do conteúdo */
}

.main-container .content h3,
.main-container .content p {
    color: #ffffff;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.main-container .content span.typing {
    color: #32ff9c;
    font-weight: 700;
}

body.light-theme .main-container .content h3,
body.light-theme .main-container .content p {
    color: #1a1a1a;
    font-weight: 500;
    text-shadow: none;
}

body.light-theme .main-container .content span.typing {
    color: #077b32;
    font-weight: 700;
}

body.light-theme .main-container {
    background: #ffffff;
}

.content h1{
    font-size: 2.5rem;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content h1 span{
    color: #0dbc4f;
    text-shadow: 0  0 10px #0dbc4f;
}

.content .typewriter{
    font-size: 2rem;
    white-space: nowrap;
    overflow: hidden;
}

.content .typewriter-text{
    color: #0dbc4f;
    text-shadow: 0 0 10px #0dbc4f;
}

.content p{
    font-size: clamp(0.4rem , 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

body.light-theme .content h1 {
    color: #2c3e50;
}

body.light-theme .content h1 span {
    color: #0dbc4f;
    font-weight: bold;
}

body.light-theme .typewriter {
    color: #2c3e50;
}

body.light-theme .typewriter-text {
    color: #0dbc4f;
    font-weight: bold;
}

@media (max-width: 768px) {
    .content h1 {
        font-size: 2rem;
        white-space: normal;
    }
    
    .typewriter {
        font-size: 1.8rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 1.8rem;
    }
    
    .typewriter {
        font-size: 1.6rem;
    }
}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid #0dbc4f;
    border-radius: 50%;
    color: #0dbc4f;
    margin: 5px 15px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: black;
    background-color: #0dbc4f;
    filter: drop-shadow(0 0 10px #0dbc4f);
}

.social-links.light-theme i {
    background: #ffffff;
    color: var(--primary-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.social-links.light-theme i:hover {
    background: var(--primary-light);
    color: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 6px 20px rgba(13, 188, 79, 0.2);
}

.content button{
    width: 38%;
    height: 6vh;
    margin: 17px;
    background: linear-gradient(145deg, #0dbc4f, #0a9f42);
    color: #e9ecef;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
    position: relative;
    overflow: hidden;
}

.content button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.content button:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.content button:hover{
    scale: 1.1;
    color: #0dbc4f;
    border: 2px solid #0dbc4f;
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px #0dbc4f;
}

#contact-title {
             
    margin-top: 4rem;             /* Espaçamento maior para cima */
    margin-bottom: 2rem;          /* Espaçamento maior para baixo */
    font-weight: bold;            /* Peso da fonte para dar mais destaque */
    text-transform: uppercase;    /* Deixa o texto em maiúsculas */
    color: #0dbc4f;
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
    text-shadow: 0  0 10px #0dbc4f;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 5px rgba(13, 188, 79, 0.5),
            0 0 10px rgba(13, 188, 79, 0.3),
            0 0 20px rgba(13, 188, 79, 0.2);
    }
    to {
        text-shadow: 
            0 0 10px rgba(13, 188, 79, 0.6),
            0 0 20px rgba(13, 188, 79, 0.4),
            0 0 40px rgba(13, 188, 79, 0.3),
            0 0 80px rgba(13, 188, 79, 0.2);
    }
}

.experience-container {
    display: flex;
    align-items: center; /* Alinha a imagem e o texto verticalmente no centro */
    gap: 3rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.experience-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.experience-image.main-image {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 600px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 188, 79, 0.05);
    box-shadow: 0 10px 30px rgba(13, 188, 79, 0.15);
    border: 2px solid rgba(13, 188, 79, 0.2);
}

.experience-image.main-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    filter: contrast(1.1) brightness(1.05);
    padding: 1rem;
}

.experience-image.main-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.05);
}

.experience-image.main-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        rgba(13, 188, 79, 0.3),
        rgba(50, 255, 156, 0.1)
    );
    z-index: 1;
    opacity: 0;
    transition: all 0.5s ease;
    border-radius: 20px;
}

.experience-image.main-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(13, 188, 79, 0.4) 0%,
        transparent 70%
    );
    mix-blend-mode: overlay;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

.experience-image.main-image .glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(13, 188, 79, 0.4) 0%,
        transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: pulse 2s infinite;
}

.experience-image.main-image:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 
        20px 20px 60px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(13, 188, 79, 0.4),
        inset 0 0 30px rgba(13, 188, 79, 0.2);
}

.experience-image.main-image:hover::before {
    opacity: 1;
}

.experience-image.main-image:hover::after {
    opacity: 0.4;
    filter: blur(15px);
    transform: scale(1.05);
}

.experience-image.llam-image {
    width: 150px;
    height: 150px;
    position: absolute;
    bottom: -20px;
    right: -20px;
    border: 4px solid rgba(13, 188, 79, 0.2);
    background: #0d1117;
    transform: rotate(-5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.experience-image.llam-image:hover {
    transform: rotate(0deg) scale(1.1);
    border-color: #0dbc4f;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(13, 188, 79, 0.3);
}

.experience-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(13, 188, 79, 0.3),
        rgba(50, 255, 156, 0.1)
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.experience-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(13, 188, 79, 0.2));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.experience-image:hover::before,
.experience-image:hover::after {
    opacity: 1;
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.experience-image:hover img {
    transform: scale(1.05);
}

.experience-image .glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(13, 188, 79, 0.4) 0%,
        transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: pulse 2s infinite;
}

.experience-image:hover .glow {
    opacity: 1;
}

.experience-period {
    color: #0dbc4f;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.experience-content {
    flex: 1;
}

.experience-content h2 {
    color: #0dbc4f;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0dbc4f, #32ff9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-content p {
    color: #a4b1cd;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Tema Claro */
body.light-theme .experience-content p {
    color: #2c3e50;
}

@media (max-width: 768px) {
    .experience-container {
        flex-direction: column;
        padding: 1rem;
    }

    .experience-images {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        margin-bottom: 3rem;
    }

    .experience-image.main-image {
        height: 400px;
    }

    .experience-image.llam-image {
        width: 120px;
        height: 120px;
        bottom: -30px;
        right: -10px;
    }

    .experience-content {
        text-align: center;
    }

    .experience-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .experience-image.main-image {
        height: 350px;
    }
}

#projects-title {
    margin-top: 4rem; /* Espaçamento superior */
    margin-bottom: 2rem; /* Espaçamento inferior */
    font-weight: bold; /* Peso da fonte */
    text-transform: uppercase; /* Texto em maiúsculas */
    color: #0dbc4f;
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
    text-shadow: 0 0 10px #0dbc4f;
    animation: glow 1.5s ease-in-out infinite alternate;
}

#projects{
    overflow-x: hidden;
    padding-top: 6vh;
    padding-bottom: 5vh;
}

#h1-baixo {
    margin-top: 4rem; /* Espaçamento maior para cima */
    margin-bottom: 2rem; /* Espaçamento maior para baixo */
    font-weight: bold; /* Peso da fonte para dar mais destaque */
    text-transform: uppercase; /* Deixa o texto em maiúsculas */
    color: #0dbc4f;
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
    text-shadow: 0  0 10px #0dbc4f;
    animation: glow 1.5s ease-in-out infinite alternate;
}

.main-container h1{
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.main-container h1 span{
    color: #0dbc4f;
    text-shadow: 0  0 10px #0dbc4f;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background: rgba(19, 23, 32, 0.95);
    border: 1px solid rgba(13, 188, 79, 0.15);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-card h2 {
    color: #e9ecef;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.project-card p {
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.github-link {
    position: relative;
    z-index: 10;
    display: block;
    width: auto;
    padding: 0.8rem 1.5rem;
    background-color: #0dbc4f;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.github-link i {
    margin-right: 0.5rem;
}

.github-link:hover,
.github-link:focus {
    background-color: transparent;
    color: #0dbc4f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 188, 79, 0.3);
    cursor: pointer;
}

/* Tema claro */
body.light-theme .project-card {
    background: #ffffff;
    border: 1px solid rgba(13, 188, 79, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .project-card h2 {
    color: #333333;
}

body.light-theme .project-card p {
    color: #666666;
}

body.light-theme .github-link {
    background-color: #0dbc4f;
    color: #ffffff !important;
    border: 2px solid #0dbc4f;
}

body.light-theme .github-link:hover,
body.light-theme .github-link:focus {
    background-color: #ffffff;
    color: #0dbc4f !important;
    border-color: #0dbc4f;
}

.load-more-btn {
    display: none;
    margin: 2rem auto;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 188, 79, 0.3);
}

body.light-theme .load-more-btn {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
}

.load-more-btn {
    display: block;
    margin: 3rem auto;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #0dbc4f 0%, #098f3c 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 188, 79, 0.4);
    letter-spacing: 1px;
}

.load-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(13, 188, 79, 0.3);
}

/* Tema claro */
body.light-theme .load-more-btn {
    background: linear-gradient(135deg, #0dbc4f 0%, #098f3c 100%);
    color: white;
}

/* Estilos Gerais */
/* Estilos para a seção Conhecimentos */
#knowledge {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

body.light-theme #knowledge {
    background: #ffffff !important;
}

.knowledge-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.knowledge-item {
    background: rgba(19, 23, 32, 0.95);
    border: 1px solid rgba(13, 188, 79, 0.15);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.light-theme .knowledge-item {
    background: #ffffff;
    border: 1px solid rgba(13, 188, 79, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .tech-item {
    background: #f8f9fa;
}

body.light-theme .tech-item:hover {
    background: #f1f3f5;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(13, 188, 79, 0.1);
}

body.light-theme .tech-item span {
    color: #333333;
}

body.light-theme .knowledge-item h2 {
    color: #0dbc4f;
}

.knowledge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 188, 79, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.knowledge-item:hover {
    transform: translateY(-10px);
    border-color: rgba(13, 188, 79, 0.4);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(13, 188, 79, 0.2);
}

.knowledge-item:hover::before {
    opacity: 1;
}

.knowledge-item h2 {
    color: #0dbc4f;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #0dbc4f, #32ff9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(13, 188, 79, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(13, 188, 79, 0.1);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 1.8rem;
    color: #0dbc4f;
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.2);
}

.tech-item span {
    color: #a4b1cd;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
    #knowledge {
        padding: 4rem 1rem;
    }

    .knowledge-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .knowledge-item {
        padding: 1.5rem;
    }

    .knowledge-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1rem;
    }

    .tech-item {
        padding: 0.8rem;
    }

    .tech-item i {
        font-size: 1.5rem;
    }

    .tech-item span {
        font-size: 0.8rem;
    }
}

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

    .tech-item {
        padding: 0.6rem;
    }

    .tech-item i {
        font-size: 1.3rem;
    }

    .tech-item span {
        font-size: 0.75rem;
    }
}

#certificates h1 {
             
    margin-top: 0rem; /* Espaçamento superior */
}

#formacao-academica {
    padding: 4rem 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

#formacao-academica::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(13, 188, 79, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

#formacao-academica .section-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.education-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.education-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 188, 79, 0.2);
}

/* Tema claro */
body.light-theme #formacao-academica {
    background: linear-gradient(135deg, rgba(13, 188, 79, 0.05), rgba(50, 255, 156, 0.02));
}

body.light-theme .education-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 188, 79, 0.1);
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.1);
}

body.light-theme .education-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #0dbc4f;
    box-shadow: 0 10px 30px rgba(13, 188, 79, 0.2);
}

body.light-theme .education-icon {
    background: #f8f9fa;
}

body.light-theme .education-icon:hover {
    background: #f1f3f5;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(13, 188, 79, 0.1);
}

body.light-theme .education-icon span {
    color: #333333;
}

body.light-theme .education-content h2 {
    color: #0dbc4f;
}

body.light-theme .education-status {
    color: #0dbc4f;
}

body.light-theme .education-period {
    color: #666666;
}

body.light-theme .education-details li {
    color: #444444;
}

.social-links i {
    background: linear-gradient(145deg, #131720, #0d1117);
    color: #0dbc4f;
    border: 1px solid rgba(13, 188, 79, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(13, 188, 79, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 188, 79, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(13, 188, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 188, 79, 0);
    }
}

.dropdown {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(13, 188, 79, 0.1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(13, 188, 79, 0.05);
}

.dropdown .links a {
    position: relative;
    overflow: hidden;
}

.dropdown .links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0dbc4f, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dropdown .links a:hover::after {
    transform: scaleX(1);
}

/* Estilos para a seção de contato */
#contact {
    padding: 5rem 0;
    background: rgba(13, 188, 79, 0.05);
    margin-top: 2rem;
}

body.light-theme #contact {
    background: linear-gradient(135deg, rgba(13, 188, 79, 0.05), rgba(50, 255, 156, 0.02));
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

body.light-theme #contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(13, 188, 79, 0.08) 0%, transparent 60%);
    animation: rotateGlow 10s linear infinite;
}

body.light-theme #contact .section-title {
    color: #0dbc4f;
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(13, 188, 79, 0.2);
    margin-bottom: 1.5rem;
    position: relative;
}

body.light-theme #contact .section-description {
    color: #2c3e50;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
}

body.light-theme #contact .social-links {
    position: relative;
    z-index: 1;
}

body.light-theme #contact .social-links a {
    color: #0dbc4f;
    font-size: 2rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

body.light-theme #contact .social-links a:hover {
    color: #098f3c;
    transform: translateY(-5px);
    text-shadow: 0 0 20px rgba(13, 188, 79, 0.4);
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#contact .section-title {
    text-align: center;
    color: #0dbc4f;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#contact .section-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e9ecef;
}

#contact .social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

#contact .social-links a {
    color: #0dbc4f;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

#contact .social-links a:hover {
    transform: translateY(-5px);
    color: #fff;
}

#contact .social-links a::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

#contact .social-links a:hover::after {
    opacity: 1;
    bottom: -30px;
}

#contact .btn-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

#contact .cv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0dbc4f;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

#contact .cv-button:hover {
    background: #098f3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 188, 79, 0.3);
}

#contact .cv-button i {
    font-size: 1.2rem;
}

/* Ajuste para tema claro */
body.light-theme #contact {
    background: rgba(13, 188, 79, 0.1);
}

body.light-theme #contact .section-description {
    color: #2d3436;
}

body.light-theme #contact .social-links a {
    color: #0dbc4f;
}

body.light-theme #contact .social-links a:hover {
    color: #098f3c;
}

body.light-theme #contact .cv-button {
    background: #0dbc4f;
    color: #fff;
}

body.light-theme #contact .cv-button:hover {
    background: #098f3c;
}

@media (max-width:884px) {
    nav .logo{
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }

    .main-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-container .content{
        width: 80%;
        margin: 0 auto;
    }

    .main-container button{
        margin-top: 15px;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg,
    .cancel{
        display: block;
    }

    .social-links i{
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .main-container .image{
        z-index: -1;
        width: 50%;
        height: 60%;
    }

    .nav-controls {
        position: absolute;
        right: 15px;
        top: 10px;
    }
}

@media (max-width:440px){
    .main-container .image {
        width: 50%;
        max-width: 500px;
        height: auto;
}

    .main-container .content{
        width: 90%;
        padding: 0 1rem;
    }

    .main-container button{
        margin-top: 15px;
        width: 100%;
    }
}

/* Estilização das seções com um design mais limpo e moderno */
#projects, #certificates, #knowledge {
    padding: 5rem 2rem;
    background: linear-gradient(145deg, #0d1117, #131720);
}

#projects h1, #certificates h1, #knowledge h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #0dbc4f;
    text-shadow: 0 0 15px rgba(13, 188, 79, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(19, 23, 32, 0.8);
    border: 1px solid rgba(13, 188, 79, 0.1);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-card h2 {
    color: #e9ecef;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.project-card p {
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.github-link {
    position: relative;
    z-index: 10;
    display: block;
    width: auto;
    padding: 0.8rem 1.5rem;
    background-color: #0dbc4f;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.github-link i {
    margin-right: 0.5rem;
}

.github-link:hover,
.github-link:focus {
    background-color: transparent;
    color: #0dbc4f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 188, 79, 0.3);
    cursor: pointer;
}

/* Tema claro */
body.light-theme .project-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .project-card h2 {
    color: #333333;
}

body.light-theme .project-card p {
    color: #666666;
}

body.light-theme .github-link {
    background-color: #0dbc4f;
    color: #ffffff !important;
    border: 2px solid #0dbc4f;
}

body.light-theme .github-link:hover,
body.light-theme .github-link:focus {
    background-color: #ffffff;
    color: #0dbc4f !important;
    border-color: #0dbc4f;
}

.load-more-btn {
    display: none;
    margin: 2rem auto;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 188, 79, 0.3);
}

body.light-theme .load-more-btn {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
}

/* Estilos para a seção de projetos */
#projects, #certificates {
    padding: 5rem 2rem;
    background: linear-gradient(165deg, #0d1117, #131720);
}

#projects h1, #certificates h1 {
    text-align: center;
    color: #0dbc4f;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#projects h1::after, #certificates h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0dbc4f, #098f3c);
    border-radius: 2px;
}

.projects-grid, .certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.project-card, .certificate-card {
    background: rgba(19, 23, 32, 0.95);
    border: 1px solid rgba(13, 188, 79, 0.15);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
}

.project-card:hover, .certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(13, 188, 79, 0.2);
    border-color: rgba(13, 188, 79, 0.3);
}

.project-card img, .certificate-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(13, 188, 79, 0.15);
    transition: transform 0.4s ease;
}

.project-card:hover img, .certificate-card:hover img {
    transform: scale(1.05);
}

.project-card h2, .certificate-card h2 {
    color: #e9ecef;
    font-size: 1.4rem;
    margin: 1.5rem;
    font-weight: 600;
}

.project-card p, .certificate-card p {
    color: #a4b1cd;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 1.5rem;
    flex-grow: 1;
}

.github-link {
    display: inline-block;
    margin: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0dbc4f, #098f3c);
    color: white;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.github-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 188, 79, 0.4);
}

.github-link i {
    margin-right: 10px;
    font-size: 1.1rem;
    transition: transform 0.5s ease;
}

.github-link:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* Tema Claro */
body.light-theme .project-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(13, 188, 79, 0.2);
    box-shadow: 0 5px 15px rgba(13, 188, 79, 0.1);
}

body.light-theme .project-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(13, 188, 79, 0.2);
}

/* Tema Claro - Projetos e Certificados */
body.light-theme .project-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(13, 188, 79, 0.2);
    box-shadow: 0 5px 15px rgba(13, 188, 79, 0.1);
}

body.light-theme .project-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(13, 188, 79, 0.3),
        rgba(20, 255, 120, 0.1),
        rgba(13, 188, 79, 0.3)
    );
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.light-theme .project-card:hover {
    transform: translateY(-10px);
    border-color: #0dbc4f;
    box-shadow: 
        0 15px 30px rgba(13, 188, 79, 0.2),
        0 0 30px rgba(20, 255, 120, 0.15);
}

body.light-theme .project-card:hover::after {
    opacity: 1;
}

body.light-theme .project-card h2 {
    color: #0dbc4f;
    background: linear-gradient(45deg, #0dbc4f, #14ff78);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .project-card:hover h2 {
    text-shadow: 0 0 20px rgba(13, 188, 79, 0.3);
}

body.light-theme .project-card p {
    color: #2c3e50;
}

body.light-theme .project-card:hover p {
    color: #1a1a1a;
}

body.light-theme .github-link {
    background: linear-gradient(45deg, #0dbc4f, #14ff78);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

body.light-theme .github-link:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(13, 188, 79, 0.3),
        0 0 20px rgba(20, 255, 120, 0.2);
}

body.light-theme .github-link::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
}

/* Animação de brilho verde */
@keyframes greenGlow {
    0% {
        box-shadow: 0 5px 15px rgba(13, 188, 79, 0.1);
    }
    50% {
        box-shadow: 
            0 8px 20px rgba(13, 188, 79, 0.2),
            0 0 30px rgba(20, 255, 120, 0.1);
    }
    100% {
        box-shadow: 0 5px 15px rgba(13, 188, 79, 0.1);
    }
}

body.light-theme .project-card {
    animation: greenGlow 3s infinite;
}

body.light-theme .project-card:hover {
    animation: none;
    transform: translateY(-10px);
    box-shadow: 
        0 15px 30px rgba(13, 188, 79, 0.3),
        0 0 40px rgba(20, 255, 120, 0.2);
}

/* Efeito de borda brilhante */
body.light-theme .project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(13, 188, 79, 0.3),
        rgba(20, 255, 120, 0.1),
        rgba(13, 188, 79, 0.3)
    );
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.light-theme .project-card:hover::before {
    opacity: 1;
}

#formacao-academica {
    padding: 5rem 2rem;
    background: linear-gradient(165deg, #0d1117, #131720);
    position: relative;
    overflow: hidden;
}

#formacao-academica::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(13, 188, 79, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(50, 255, 156, 0.1) 0%, transparent 25%);
    pointer-events: none;
}

#formacao-academica h1 {
    text-align: center;
    color: #0dbc4f;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#formacao-academica h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0dbc4f, #098f3c);
    border-radius: 2px;
}

.education-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.education-item {
    background: rgba(19, 23, 32, 0.95);
    border: 1px solid rgba(13, 188, 79, 0.15);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 188, 79, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.education-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(13, 188, 79, 0.4);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(13, 188, 79, 0.2);
}

.education-item:hover::before {
    opacity: 1;
}

.education-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(13, 188, 79, 0.2);
    transition: all 0.3s ease;
}

.education-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.education-item:hover .education-icon {
    border-color: #0dbc4f;
    transform: scale(1.05);
}

.education-content {
    flex-grow: 1;
}

.education-content h2 {
    color: #0dbc4f;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0dbc4f, #32ff9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.education-status {
    color: #0dbc4f;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-period {
    color: #a4b1cd;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.9;
}

.education-details {
    list-style: none;
    padding: 0;
}

.education-details li {
    color: #a4b1cd;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.education-details li::before {
    content: '•';
    color: #0dbc4f;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Tema Claro */
body.light-theme #formacao-academica {
    background: linear-gradient(165deg, rgba(13, 188, 79, 0.05), rgba(50, 255, 156, 0.02));
}

body.light-theme .education-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(13, 188, 79, 0.1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(13, 188, 79, 0.05);
}

body.light-theme .education-item:hover {
    border-color: #0dbc4f;
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(13, 188, 79, 0.2),
        inset 0 0 30px rgba(13, 188, 79, 0.1);
}

body.light-theme .tech-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(13, 188, 79, 0.1);
    backdrop-filter: blur(5px);
}

body.light-theme .tech-item:hover {
    background: rgba(13, 188, 79, 0.1);
    border-color: #0dbc4f;
}

body.light-theme .tech-item i {
    color: #0dbc4f;
    text-shadow: 0 0 10px rgba(13, 188, 79, 0.3);
}

body.light-theme .tech-item span {
    color: #2c3e50;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para a seção de Certificados */
#certificates {
    position: relative;
    padding: 4rem 2rem;
    background: var(--bg-color);
    overflow: hidden;
}

/* Fundo animado */
#certificates::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(13, 188, 79, 0.1) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grid de certificados */
.certificates-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Cards dos certificados */
.certificate-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Tema escuro */
.certificate-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Tema claro */
body.light-theme #certificates {
    background: linear-gradient(135deg, rgba(13, 188, 79, 0.05), rgba(50, 255, 156, 0.02));
    position: relative;
    overflow: hidden;
}

body.light-theme #certificates::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(13, 188, 79, 0.1) 0%, transparent 70%);
    animation: rotateGlow 15s linear infinite;
}

body.light-theme .certificate-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 188, 79, 0.1);
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.1);
}

body.light-theme .certificate-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    border-color: #0dbc4f;
    box-shadow: 0 10px 25px rgba(13, 188, 79, 0.2);
}

body.light-theme .certificate-card h2 {
    color: #0dbc4f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

body.light-theme .certificate-card p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

body.light-theme .certificate-link {
    display: inline-block;
    background: linear-gradient(145deg, #0dbc4f, #098f3c);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

body.light-theme .certificate-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 188, 79, 0.3);
}

/* Estilos dos botões de certificado para ambos os temas */
.certificate-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
}

/* Tema escuro */
.certificate-link {
    background: linear-gradient(145deg, #0dbc4f, #098f3c);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.3);
}

.certificate-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.certificate-link::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.certificate-link:hover::after {
    opacity: 1;
    bottom: -30px;
}

/* Ícone do certificado */
.certificate-link i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.certificate-link:hover i {
    transform: translateX(3px);
}

/* Ajuste para a seção de certificados */
#certificates {
    background: var(--bg-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

#certificates::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(13, 188, 79, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

#certificates .main-container {
    position: relative;
    z-index: 1;
}

#certificates .project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

#certificates .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

#certificates .project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

#certificates .project-card h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

#certificates .project-card p {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Tema claro */
body.light-theme #certificates .project-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 188, 79, 0.1);
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.1);
}

body.light-theme #certificates .project-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(13, 188, 79, 0.2);
    border-color: rgba(13, 188, 79, 0.2);
}

/* Animação do fundo */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Grid responsivo */
#certificates .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    #certificates {
        padding: 2rem 0;
    }
    
    #certificates .projects-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Estilos do botão Ver Mais */
#certificates .load-more-btn {
    display: block;
    width: fit-content;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0dbc4f 0%, #098f3c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#certificates .load-more-btn:hover {
    transform: translate(-50%, -3px);
    box-shadow: 0 10px 20px rgba(13, 188, 79, 0.3);
}

/* Tema claro */
body.light-theme #certificates .load-more-btn {
    background: linear-gradient(135deg, #0dbc4f 0%, #098f3c 100%);
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

body.light-theme #certificates .load-more-btn:hover {
    box-shadow: 0 10px 20px rgba(13, 188, 79, 0.3);
}

/* Animação para mostrar os cards */
#certificates .project-card {
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Botão Ver Mais para certificados */
.load-more-btn {
    display: block;
    width: fit-content;
    margin: 2rem auto;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 188, 79, 0.3);
}

.hidden-certificates {
    display: none;
}

/* Container dos certificados */
#certificates .main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#certificates .projects-grid {
    width: 100%;
    margin-bottom: 2rem;
}

/* Estilos compartilhados para projetos e certificados */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-bottom: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.project-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    flex: 1;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #0dbc4f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.github-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 188, 79, 0.3);
}

.load-more-btn {
    display: block;
    width: fit-content;
    margin: 2rem auto;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 188, 79, 0.3);
}

.hidden-cards {
    display: none;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Tema claro */
body.light-theme .project-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Estilos do botão Ver Mais */
#projects .load-more-btn,
#certificates .load-more-btn {
    display: block;
    width: fit-content;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0dbc4f 0%, #098f3c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#projects .load-more-btn:hover,
#certificates .load-more-btn:hover {
    transform: translate(-50%, -3px);
    box-shadow: 0 10px 20px rgba(13, 188, 79, 0.3);
}

/* Container para os projetos e certificados */
#projects .main-container,
#certificates .main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

#projects .projects-grid,
#certificates .projects-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Tema claro */
body.light-theme #projects .load-more-btn,
body.light-theme #certificates .load-more-btn {
    background: linear-gradient(135deg, #0dbc4f 0%, #098f3c 100%);
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

body.light-theme #projects .load-more-btn:hover,
body.light-theme #certificates .load-more-btn:hover {
    box-shadow: 0 10px 20px rgba(13, 188, 79, 0.3);
}

/* Estilos compartilhados para as seções de projetos e certificados */
#projects, #certificates {
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(13, 188, 79, 0.06),
        transparent 40%
    );
}

#projects::before,
#certificates::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(13, 188, 79, 0.1),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#projects:hover::before,
#certificates:hover::before {
    opacity: 1;
}

#projects h1,
#certificates h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--heading-color);
}

#projects .main-container,
#certificates .main-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Tema claro */
body.light-theme #projects,
body.light-theme #certificates {
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(13, 188, 79, 0.1),
        transparent 40%
    );
}

body.light-theme #projects::before,
body.light-theme #certificates::before {
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(13, 188, 79, 0.15),
        transparent 40%
    );
}

/* Tema escuro */
body:not(.light-theme) #projects,
body:not(.light-theme) #certificates {
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(13, 188, 79, 0.06),
        transparent 40%
    );
}

body:not(.light-theme) #projects::before,
body:not(.light-theme) #certificates::before {
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(13, 188, 79, 0.1),
        transparent 40%
    );
}

/* Seção de Conhecimentos - Tema Claro */
body.light-theme #knowledge {
    background-color: #ffffff !important;
    color: var(--text-color);
}

body.light-theme .knowledge-grid {
    background: transparent;
}

body.light-theme .knowledge-card {
    background: #ffffff;
    border: 1px solid rgba(13, 188, 79, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body.light-theme .knowledge-card:hover {
    transform: translateY(-10px);
    border-color: #0dbc4f;
    box-shadow: 0 10px 25px rgba(13, 188, 79, 0.2);
}

body.light-theme .knowledge-card h2 {
    color: #0dbc4f;
    background: linear-gradient(45deg, #0dbc4f, #14ff78);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .knowledge-card:hover h2 {
    text-shadow: 0 0 20px rgba(13, 188, 79, 0.3);
}

body.light-theme .knowledge-card p {
    color: #2c3e50;
}

body.light-theme .knowledge-card:hover p {
    color: #1a1a1a;
}

body.light-theme .github-link {
    background: linear-gradient(45deg, #0dbc4f, #14ff78);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

body.light-theme .github-link:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(13, 188, 79, 0.3),
        0 0 20px rgba(20, 255, 120, 0.2);
}

body.light-theme .github-link::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
}

/* Animação de brilho verde */
@keyframes greenGlow {
    0% {
        box-shadow: 0 5px 15px rgba(13, 188, 79, 0.1);
    }
    50% {
        box-shadow: 
            0 8px 20px rgba(13, 188, 79, 0.2),
            0 0 30px rgba(20, 255, 120, 0.1);
    }
    100% {
        box-shadow: 0 5px 15px rgba(13, 188, 79, 0.1);
    }
}

body.light-theme .knowledge-card {
    animation: greenGlow 3s infinite;
}

body.light-theme .knowledge-card:hover {
    animation: none;
    transform: translateY(-10px);
    box-shadow: 
        0 15px 30px rgba(13, 188, 79, 0.3),
        0 0 40px rgba(20, 255, 120, 0.2);
}

/* Efeito de borda brilhante */
body.light-theme .knowledge-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(13, 188, 79, 0.3),
        rgba(20, 255, 120, 0.1),
        rgba(13, 188, 79, 0.3)
    );
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.light-theme .knowledge-card:hover::before {
    opacity: 1;
}

/* Tema claro - Formação Acadêmica */
body.light-theme #formacao-academica {
    background: #ffffff;
}

body.light-theme #formacao-academica h1,
body.light-theme #formacao-academica h2 {
    color: #1a1a1a;
}

body.light-theme #formacao-academica h3 {
    color: #333333;
}

body.light-theme #formacao-academica p,
body.light-theme #formacao-academica li {
    color: #444444;
}

body.light-theme .education-item {
    background: #ffffff;
    border: 1px solid rgba(13, 188, 79, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .education-item:hover {
    transform: translateY(-10px);
    border-color: #0dbc4f;
    box-shadow: 0 10px 25px rgba(13, 188, 79, 0.2);
}

body.light-theme .education-status {
    color: #0dbc4f;
}

body.light-theme .education-period {
    color: #666666;
}

body.light-theme .education-details li {
    color: #444444;
}

/* Ajuste do título com underline verde */
body.light-theme #formacao-academica h1.section-title {
    color: #1a1a1a;
}

body.light-theme #formacao-academica h1.section-title::after {
    background: linear-gradient(90deg, #0dbc4f, #098f3c);
}

/* Espaçamento compartilhado para projetos e certificados */
#projects,
#certificates {
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
}

.projects-grid,
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card,
.certificate-card {
    width: 100%;
    margin-bottom: 2rem;
}

/* Container principal compartilhado */
#projects .main-container,
#certificates .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Ajuste do botão Ver Mais */
#projects .load-more-btn,
#certificates .load-more-btn {
    margin: 3rem auto;
    display: block;
}

/* Responsividade compartilhada */
@media (max-width: 768px) {
    #projects,
    #certificates {
        padding: 3rem 1rem;
    }

    .projects-grid,
    .certificates-grid {
        gap: 1.5rem;
    }
}

.project-card, .certificate-card {
    background: rgba(19, 23, 32, 0.95);
    border: 1px solid rgba(13, 188, 79, 0.15);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 450px;
}

.project-card > *, .certificate-card > * {
    padding: 0 1.5rem;
}

.project-card img, .certificate-card img {
    width: calc(100% + 3rem);
    height: 200px;
    object-fit: cover;
    margin: 0 -1.5rem;
    padding: 0;
    border-bottom: 1px solid rgba(13, 188, 79, 0.15);
}

.project-card h2, .certificate-card h2 {
    color: #ffffff;
    font-size: 1.5rem; /* Título maior */
    text-align: center;
    margin: 1.5rem 0; /* Espaçamento em volta do título */
}

.project-card p, .certificate-card p {
    color: #e9ecef;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.ab{
    display: block;
    text-align: center;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: #7d9128;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    
}

.project-card a, .certificate-card a {
    display: block;
    text-align: center;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0dbc4f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    
}

.project-card a:hover, .certificate-card a:hover {
    background-color: white;
    color: #0dbc4f;
    transform: scale(1.1);
}

.load-more-btn {
    display: none;
    margin: 2rem auto;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 188, 79, 0.3);
}

body.light-theme .load-more-btn {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
}

/* Estilo base para os links */
.project-card a, .certificate-card a {
    display: block;
    text-align: center;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0dbc4f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.project-card a:hover, .certificate-card a:hover {
    background-color: white;
    color: #0dbc4f;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.3);
}

/* Ajustes para o tema claro */
body.light-theme .project-card a, 
body.light-theme .certificate-card a {
    background-color: #0dbc4f;
    color: white;
    border: 1px solid #0dbc4f;
}

body.light-theme .project-card a:hover, 
body.light-theme .certificate-card a:hover {
    background-color: white;
    color: #0dbc4f;
    border-color: #0dbc4f;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.3);
}

.project-card .github-link,
.certificate-card .github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #0dbc4f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.project-card .github-link i,
.certificate-card .github-link i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.project-card .github-link:hover,
.certificate-card .github-link:hover {
    background-color: transparent;
    color: #0dbc4f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 188, 79, 0.3);
}

/* Tema claro */
body.light-theme .project-card .github-link,
body.light-theme .certificate-card .github-link {
    background-color: #0dbc4f;
    color: #ffffff;
    border: 2px solid #0dbc4f;
}

body.light-theme .project-card .github-link:hover,
body.light-theme .certificate-card .github-link:hover {
    background-color: #ffffff;
    color: #0dbc4f;
    border-color: #0dbc4f;
}

.experience-image {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(13, 188, 79, 0.2),
        0 0 0 4px rgba(13, 188, 79, 0.1),
        inset 0 0 20px rgba(13, 188, 79, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.experience-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #0dbc4f, #32ff9c);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.experience-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(13, 188, 79, 0.05) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.02) contrast(1.02);
}

.experience-image:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 40px rgba(13, 188, 79, 0.3),
        0 0 0 4px rgba(13, 188, 79, 0.2),
        inset 0 0 25px rgba(13, 188, 79, 0.1);
}

.experience-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.05);
}

.experience-image:hover::before {
    opacity: 1;
}

.experience-image:hover::after {
    opacity: 1;
}

/* Tema claro */
body.light-theme .experience-image {
    box-shadow: 
        0 10px 30px rgba(13, 188, 79, 0.15),
        0 0 0 4px rgba(13, 188, 79, 0.1),
        inset 0 0 20px rgba(13, 188, 79, 0.03);
}

body.light-theme .experience-image:hover {
    box-shadow: 
        0 20px 40px rgba(13, 188, 79, 0.25),
        0 0 0 4px rgba(13, 188, 79, 0.2),
        inset 0 0 25px rgba(13, 188, 79, 0.08);
}

/* Animação de brilho */
@keyframes glowPulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.experience-image::before {
    animation: glowPulse 3s infinite;
}
.project-card, .certificate-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(19, 23, 32, 0.95);
    border: 1px solid rgba(13, 188, 79, 0.15);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 450px;
}

.project-card > *, .certificate-card > * {
    padding: 0 1.5rem;
}

.project-card img, .certificate-card img {
    width: calc(100% + 3rem);
    height: 200px;
    object-fit: cover;
    margin: 0 -1.5rem;
    padding: 0;
    border-bottom: 1px solid rgba(13, 188, 79, 0.15);
}

.project-card h2, .certificate-card h2 {
    color: #ffffff;
    font-size: 1.5rem; /* Título maior */
    text-align: center;
    margin: 1.5rem 0; /* Espaçamento em volta do título */
}

.project-card p, .certificate-card p {
    color: #e9ecef;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-footer {
    margin-top: auto;
}

.project-card a, .certificate-card a, .github-link {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background-color: #0dbc4f;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
}

.project-card a:hover, .certificate-card a:hover, .github-link:hover {
    background-color: white;
    color: #0dbc4f !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.3);
    border: 1px solid #0dbc4f;
}

.load-more-btn {
    display: none;
    margin: 2rem auto;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 188, 79, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0dbc4f, #098f3c);
    z-index: -1;
    transition: 0.5s;
    opacity: 0;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    color: white;
}

.load-more-btn:hover::before {
    opacity: 1;
}

.load-more-btn:active {
    transform: translateY(-1px);
}

/* Container para centralizar os botões */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 2rem;
}

/* Ajuste para o grid de projetos e certificados */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

/* Estrelas no fundo */
@keyframes move-twinkle {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent url('img/stars.png') repeat top center;
    z-index: -1;
    animation: move-twinkle 200s linear infinite;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent url('img/twinkling.png') repeat top center;
    z-index: -1;
    animation: move-twinkle 150s linear infinite;
    opacity: 0.5;
}

body.light-theme .stars,
body.light-theme .twinkling {
    display: none;
}

/* Estrelas no fundo */
@keyframes twinkle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
    z-index: -1;
}

.twinkling {
    display: none;
}

body.light-theme .stars {
    display: none;
}