/* Reset básico e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configurações do corpo da página */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Menu de navegação - SEMPRE VISÍVEL */
.menu {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 1rem 0;
    position: sticky; /* Menu fica fixo no topo ao rolar */
    top: 0;
    z-index: 1000; /* Garante que fica por cima de outros elementos */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.menu a.ativo {
    background-color: #e74c3c;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Conteúdo principal */
.conteudo {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
}

.conteudo h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2.5rem;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 1rem;
}

.conteudo h2 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

/* === ESTILOS PÁGINA SOBRE MIM === */
.sobre-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.foto-perfil {
    text-align: center;
}

.placeholder-foto {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 8px 16px rgba(231, 76, 60, 0.3);
}

.foto-perfil img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.texto-sobre {
    flex: 1;
}

.texto-sobre p {
    margin-bottom: 1rem;
    text-align: justify;
    font-size: 1.1rem;
}

.lista-hobbies {
    list-style: none;
    margin: 1rem 0;
}

.lista-hobbies li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.lista-hobbies li:hover {
    background-color: #f8f9fa;
    padding-left: 1rem;
    border-left: 4px solid #e74c3c;
}

.info-adicional {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-radius: 12px;
}

/* === ESTILOS PÁGINA FORMAÇÃO === */
.formacao-secao {
    margin-bottom: 3rem;
}

.item-formacao {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 5px solid #e74c3c;
    transition: transform 0.3s ease;
}

.item-formacao:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.item-formacao h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.item-formacao p {
    margin-bottom: 0.5rem;
}

.lista-idiomas {
    list-style: none;
}

.lista-idiomas li {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.lista-idiomas li:last-child {
    border-bottom: none;
}

.nivel-idioma {
    margin-top: 0.5rem;
}

.barra-progresso {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progresso {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: width 0.3s ease;
}

.descricao-nivel {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.proximos-estudos ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.proximos-estudos li {
    background-color: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    font-weight: 500;
}

/* === ESTILOS PÁGINA PORTFÓLIO === */
.intro-portfolio {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.projeto-item {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #e74c3c;
}

.projeto-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.projeto-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.tags-projeto {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    font-weight: 500;
}

.projeto-detalhes {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.projeto-detalhes p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.btn-projeto {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-projeto:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Habilidades técnicas */
.habilidades-secao {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-radius: 12px;
}

.habilidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.habilidade-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.habilidade-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.nivel-habilidade {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.barra-habilidade {
    flex: 1;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progresso-habilidade {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.3s ease;
}

.estudos-atuais {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #e8f5e8;
    border-radius: 12px;
    border-left: 5px solid #27ae60;
}

.lista-estudos {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.lista-estudos li {
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.lista-estudos li:hover {
    transform: translateX(10px);
}

/* === ESTILOS PÁGINA CONTATO === */
.intro-contato {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.contato-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.formulario-contato {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.formulario-contato h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-contato {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campo {
    display: flex;
    flex-direction: column;
}

.campo.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.campo.checkbox input {
    width: auto;
}

.campo label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.campo input,
.campo textarea,
.campo select {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.btn-enviar {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.mensagem-retorno {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    text-align: center;
    font-weight: 500;
}

/* Informações de contato */
.info-contato {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.info-contato h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contato-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.contato-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contato-item p {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.3rem;
}

.contato-item small {
    color: #7f8c8d;
    font-style: italic;
}

.disponibilidade {
    padding: 1rem;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.disponibilidade h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.disponibilidade ul {
    list-style: none;
}

.disponibilidade li {
    padding: 0.3rem 0;
    color: #856404;
}

/* Dicas de contato */
.dicas-contato {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    border-radius: 12px;
}

.dicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.dica-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.dica-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.dica-item p {
    color: #34495e;
    font-size: 0.9rem;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    /* Menu responsivo */
    .menu ul {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Conteúdo */
    .conteudo {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .conteudo h1 {
        font-size: 2rem;
    }
    
    /* Sobre mim responsivo */
    .sobre-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* Formação responsiva */
    .item-formacao {
        padding: 1.5rem;
    }
    
    /* Portfólio responsivo */
    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .habilidades-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contato responsivo */
    .contato-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dicas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .conteudo {
        padding: 1rem;
    }
    
    .conteudo h1 {
        font-size: 1.8rem;
    }
    
    .menu ul {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .projeto-item,
    .item-formacao,
    .formulario-contato {
        padding: 1rem;
    }
}

/* Animações e efeitos especiais */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conteudo {
    animation: slideInUp 0.6s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* desataque */
.projeto-item.destaque {
    background: linear-gradient(135deg, #f0f9ff, #e6f7ff);
    border-left: 6px solid #3498db;
    box-shadow: 0 8px 16px rgba(52, 152, 219, 0.2);
    transform: scale(1.02);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.projeto-item.destaque:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 24px rgba(52, 152, 219, 0.3);
}

.projeto-item.destaque::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    z-index: 0;
    border-radius: 12px;
    filter: blur(6px);
    opacity: 0.7;
    animation: animarBorda 3s linear infinite;
}

.projeto-item.destaque > * {
    position: relative;
    z-index: 1;
}

@keyframes animarBorda {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
