body {
    font-family: 'Inter', sans-serif;
    background-color: #050505; /* Fundo ainda mais escuro, quase preto absoluto */
    color: #e0e0e0; /* Cor do texto claro */
    scroll-behavior: smooth; /* Rolagem suave para navegação */
    opacity: 0; /* Inicialmente invisível para animação de carregamento */
    transition: opacity 0.8s ease-in-out; /* Transição de fade-in para o corpo */
}
body.loaded {
    opacity: 1;
}
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
}
#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
.spinner {
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid #10b981; /* Cor do spinner */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animated-text {
    display: inline-block;
    min-width: 280px; /* Aumenta o espaço para a animação */
}
.button-primary {
    background-color: #10b981; /* Verde esmeralda */
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 0.75rem; /* Cantos mais arredondados */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.button-primary:hover {
    background-color: #059669; /* Verde mais escuro no hover */
    transform: translateY(-2px);
}
.button-secondary {
    background-color: transparent; /* Fundo transparente */
    color: #10b981; /* Texto verde esmeralda */
    border: 2px solid #10b981; /* Borda verde esmeralda */
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem; /* Cantos mais arredondados */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.button-secondary:hover {
    background-color: #10b981; /* Fundo verde esmeralda no hover */
    color: white; /* Texto branco no hover */
    transform: translateY(-2px);
}
/* Estilos para ícones de redes sociais */
.social-icon {
    font-size: 1.75rem; /* Ícones maiores */
    color: #e0e0e0;
    transition: color 0.3s ease, transform 0.2s ease;
}
.social-icon:hover {
    color: #10b981; /* Verde esmeralda no hover */
    transform: translateY(-3px);
}
/* Efeito de hover para cards */
.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3.5rem; /* Aumenta a margem inferior do título da seção */
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #10b981; /* Verde esmeralda */
    border-radius: 2px;
}
.nav-link-icon {
    margin-right: 0.5rem;
}
.nav-link.active {
    color: #10b981; /* Cor ativa para o link de navegação */
    font-weight: 700;
}
/* --- MENU HAMBÚRGUER E OVERLAY RESPONSIVO --- */
#mobile-menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.77,0,.18,1);
    /* Esconde o menu por padrão */
    pointer-events: none;
    opacity: 0;
}
#mobile-menu.is-open {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
}
#mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
}
#mobile-menu li {
    list-style: none;
}
#mobile-menu .nav-link {
    font-size: 2rem;
    color: #e0e0e0;
    font-weight: 600;
    transition: color 0.2s;
    text-align: center;
}
#mobile-menu .nav-link:hover,
#mobile-menu .nav-link.active {
    color: #10b981;
}
#close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1100;
    transition: color 0.2s;
}
#close-menu:hover {
    color: #10b981;
}

/* Esconde o menu desktop se existir */
#desktop-nav {
    display: none !important;
}

/* Responsividade extra para o overlay */
@media (max-width: 600px) {
    #mobile-menu .nav-link {
        font-size: 1.3rem;
    }
    #close-menu {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }
}

/* --- ANIMAÇÕES E BARRAS DE HABILIDADE --- */
.section-animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section-animated.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.bar-fill.animated .bar-percentage {
    opacity: 1;
}

/* Responsividade para barras de habilidade */
@media (max-width: 900px) {
    .skill-bar-container {
        height: 180px;
        padding: 10px;
    }
    .skill-bar-column {
        width: 18%;
        max-width: 60px;
    }
}
@media (max-width: 600px) {
    .skill-bar-container {
        height: 120px;
        padding: 5px;
    }
    .skill-bar-column {
        width: 22%;
        max-width: 40px;
    }
    .bar-label {
        font-size: 0.75rem;
    }
    .bar-percentage {
        font-size: 0.9rem;
        top: -1.2rem;
    }
}

/* --- COMPETÊNCIAS TÉCNICAS --- */
#competencias-tecnicas .competencias-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}
#competencias-tecnicas .competencia-badge {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(16,185,129,0.10);
    margin-bottom: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    outline: none;
}
#competencias-tecnicas .competencia-badge:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 16px rgba(16,185,129,0.18);
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

/* --- HABILIDADES TÉCNICAS (ÍCONES) --- */
.tech-icon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0 0 0;
}
.tech-icon {
    font-size: 2.5rem;
    color: #e0e0e0;
    background: #23272a;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    box-shadow: 0 2px 8px rgba(16,185,129,0.08);
    transition: color 0.3s, background 0.3s, transform 0.2s;
    cursor: pointer;
}
.tech-icon:hover {
    color: #10b981;
    background: #18181b;
    transform: translateY(-6px) scale(1.12);
}

/* --- SITES DESENVOLVIDOS: COMPETIÇÃO (CAMPEÃO) --- */
#sites .grid > div {
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.3s;
    opacity: 0.92;
    filter: blur(0.2px);
    position: relative;
}
#sites .grid > div:nth-child(1) {
    background: linear-gradient(120deg, #ffd700 0%, #10b981 100%);
    color: #222;
    border: 3.5px solid #ffd700;
    box-shadow:
        0 0 0 6px rgba(255,215,0,0.10),
        0 12px 40px 0 rgba(255,215,0,0.22),
        0 2px 8px rgba(16,185,129,0.13),
        0 0 32px 8px #ffd70066;
    transform: scale(1.12) translateY(-18px) rotate(-2deg);
    opacity: 1;
    filter: none;
    z-index: 3;
    position: relative;
    overflow: hidden;
    animation: champion-glow 2.2s infinite alternate;
}
#sites .grid > div:nth-child(1)::after {
    content: "★";
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.3rem;
    color: #fffbe7;
    text-shadow: 0 0 16px #ffd700, 0 0 8px #fffbe7;
    pointer-events: none;
    opacity: 0.85;
    animation: star-spin 2.5s linear infinite;
}
@keyframes champion-glow {
    0% {
        box-shadow:
            0 0 0 6px rgba(255,215,0,0.10),
            0 12px 40px 0 rgba(255,215,0,0.22),
            0 2px 8px rgba(16,185,129,0.13),
            0 0 32px 8px #ffd70066;
    }
    100% {
        box-shadow:
            0 0 0 12px rgba(255,215,0,0.18),
            0 18px 60px 0 rgba(255,215,0,0.32),
            0 2px 12px rgba(16,185,129,0.18),
            0 0 48px 16px #ffd70099;
    }
}
@keyframes star-spin {
    0% { transform: rotate(0deg) scale(1); }
    80% { transform: rotate(360deg) scale(1.12);}
    100% { transform: rotate(360deg) scale(1);}
}
#sites .grid > div:nth-child(1)::before {
    content: "🏆 Melhor";
    position: absolute;
    top: -1.5rem;
    left: 1.5rem;
    background: #ffd700;
    color: #222;
    font-weight: bold;
    padding: 0.3rem 1.1rem;
    border-radius: 1.5rem;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(255,215,0,0.18);
    letter-spacing: 1px;
}
#sites .grid > div:nth-child(1) h3,
#sites .grid > div:nth-child(1) p,
#sites .grid > div:nth-child(1) a {
    color: #fff !important;
}
#sites .grid > div:nth-child(2),
#sites .grid > div:nth-child(3) {
    border: 2px solid #10b981;
    box-shadow: 0 6px 18px 0 rgba(16,185,129,0.13);
    transform: scale(1.03) translateY(-4px);
    opacity: 0.97;
    filter: blur(0px);
    z-index: 1;
}
#sites .grid > div:nth-child(2)::before {
    content: "🥈 2º Melhor";
    position: absolute;
    top: -1.5rem;
    left: 1.5rem;
    background: #c0c0c0;
    color: #222;
    font-weight: bold;
    padding: 0.3rem 1.1rem;
    border-radius: 1.5rem;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(192,192,192,0.13);
    letter-spacing: 1px;
}
#sites .grid > div:nth-child(3)::before {
    content: "🥉 3º Melhor";
    position: absolute;
    top: -1.5rem;
    left: 1.5rem;
    background: #cd7f32;
    color: #fff;
    font-weight: bold;
    padding: 0.3rem 1.1rem;
    border-radius: 1.5rem;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(205,127,50,0.13);
    letter-spacing: 1px;
}
#sites .grid > div:nth-child(n+4) {
    border: 1px solid #374151;
    opacity: 0.7;
    filter: blur(0.5px);
    z-index: 0;
}
#sites .grid > div:hover {
    transform: scale(1.06) translateY(-6px);
    box-shadow: 0 12px 32px 0 rgba(16,185,129,0.18), 0 2px 8px rgba(16,185,129,0.10);
    opacity: 1;
    filter: none;
    z-index: 3;
}

/* --- SITES DESENVOLVIDOS: ORGANIZAÇÕES E ACADÊMICOS (PROFISSIONAL) --- */
#sites .container > .container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2.5rem;
}
@media (min-width: 768px) {
    #sites .container > .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    #sites .container > .container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
#sites .container > .container > div {
    background: linear-gradient(120deg, #23272a 60%, #1e293b 100%);
    border: 2px solid #10b981;
    box-shadow: 0 4px 24px 0 rgba(16,185,129,0.10);
    color: #e0e0e0;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
}
#sites .container > .container > div:hover {
    border-color: #059669;
    box-shadow: 0 8px 32px 0 rgba(16,185,129,0.18);
    transform: scale(1.03) translateY(-4px);
}
#sites .container > .container > div h3 {
    color: #10b981;
    font-weight: 700;
    letter-spacing: 0.5px;
}
#sites .container > .container > div a {
    color: #10b981;
    font-weight: 600;
    border-bottom: 1.5px dashed #10b981;
    transition: color 0.2s, border-color 0.2s;
}
#sites .container > .container > div a:hover {
    color: #059669;
    border-color: #059669;
}

/* Responsividade para ambas as seções */
@media (max-width: 900px) {
    #sites .grid > div:nth-child(1) {
        transform: scale(1.03) translateY(-4px);
    }
    #sites .grid > div:nth-child(2),
    #sites .grid > div:nth-child(3) {
        transform: scale(1.01) translateY(-2px);
    }
    #sites .container > .container {
        gap: 1.2rem;
    }
}
@media (max-width: 600px) {
    #sites .grid > div,
    #sites .grid > div:nth-child(1),
    #sites .grid > div:nth-child(2),
    #sites .grid > div:nth-child(3) {
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
        border-width: 1.5px !important;
    }
    #sites .grid > div::before {
        position: static !important;
        display: block;
        margin-bottom: 0.5rem;
        left: 0 !important;
        top: 0 !important;
        border-radius: 1rem !important;
        font-size: 1rem !important;
        padding: 0.2rem 0.7rem !important;
    }
    #sites .container > .container {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}