/* --- Definições Globais e Variáveis de Cores --- */
:root {
    --bg-dark: #0f0f0f;
    /* Preto levemente grafite */
    --text-light: #ffffff;
    /* Branco puro para texto principal */
    --text-muted: #b0b0b0;
    /* Cinza claro para subtítulos/intro */
    --primary-yellow: #ffdf00;
    /* Amarelo vibrante */
    --accent-purple: #8a2be2;
    /* Roxo (Blue Violet) */

    --font-main: 'Inter', sans-serif;
    /* Sugestão de fonte moderna */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    /* Evita barras de rolagem horizontais indesejadas */
}

/* --- Estilização da Seção Hero --- */
.hero-section {
    height: 100vh;
    /* Ocupa toda a altura da tela */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    /* Necessário para o posicionamento do scroll indicator */
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

/* --- Esquerda: Texto --- */
.hero-text-content {
    flex: 1;
    /* Ocupa metade do espaço */
    display: flex;
    flex-direction: column;
    gap: 15px;
}



/* Badge do Nome */
.hero-name-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-yellow);
    /* Amarelo para destacar o nome */
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.hero-name-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-purple);
    /* Ponto roxo clássico de design moderno */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-purple);
}

/* Intro em Roxo */
.hero-intro {
    font-size: 0.8rem;
    color: var(--accent-purple);
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 5px;
    display: block;
}

/* Destaque no Título */
.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-light);
    /* Efeito de texto vazado moderno */
    display: block;
    /* Joga para a linha de baixo para dar peso */
}

/* Descrição */
.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 450px;
    margin-top: 20px;
}

/* Link Secundário */
.hero-btn-link {
    margin-left: 25px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s;
}

.hero-btn-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-yellow);
    transition: 0.3s;
}

.hero-btn-link:hover::after {
    width: 100%;
}

/* Linha sutil antes do texto 'Olá' */
.hero-intro::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--accent-purple);
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    /* Peso extra para impacto moderno */
    margin: 0;
}

/* Exemplo de destaque em roxo no título */
.hero-title span {
    color: var(--accent-purple);
}

.hero-btn {
    margin-top: 30px;
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-yellow);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    width: fit-content;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
}

.hero-btn:hover {
    transform: translateY(-3px);
    /* Levanta o botão suavemente */
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
    /* Glow roxo suave */
}

/* --- Direita: Foto --- */
.hero-image-content {
    flex: 1;
    /* Ocupa a outra metade */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Alinha a imagem na parte inferior do container se necessário */
    position: relative;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    position: relative;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Garante que a foto não seja distorcida */
    position: relative;
    z-index: 2;
    /* Fica acima do efeito de background */
}

/* Efeito de círculo/glow atrás da foto */
.image-wrapper::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(15, 15, 15, 0) 70%);
    border-radius: 50%;
    top: -10%;
    left: -10%;
    z-index: 1;
}

/* --- Detalhe de Scroll --- */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.mouse-body {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-yellow);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 1.5s infinite;
    /* Animação simples de subir e descer */
}

@keyframes scrollAnim {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

/* --- Direita: Área da Foto (Atualizado) --- */
.hero-image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centraliza verticalmente */
    position: relative;
}

/* O container circular */
.image-wrapper {
    width: 420px;
    /* Aumentei um pouco */
    height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Torna o container redondo */
    /* Cria uma borda sutil em gradiente */
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.3), rgba(0, 0, 0, 0));
    padding: 10px;
    /* Espaço para a borda */
    transition: all 0.5s ease;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.1);
    /* Glow roxo inicial bem sutil */
}

/* Efeito de Glow no background ao passar o mouse */
.image-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    /* Pequeno zoom e levanta */
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.4);
    /* Glow roxo mais forte */
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.5), rgba(255, 223, 0, 0.1));
    /* Mix Roxo/Amarelo */
}

/* --- A Foto Profissional --- */
.profile-photo {
    width: 95%;
    /* Ligeiramente menor que o wrapper para mostrar a borda */
    height: 95%;
    object-fit: cover;
    /* Faz a foto preencher o círculo cortando o excesso */
    border-radius: 50%;
    /* Corta a imagem em círculo */

    /* ESTILIZAÇÃO CHAVE: P&B e Contraste */
    filter: grayscale(100%) contrast(1.2) brightness(0.9);

    /* MODO DE MESCLAGEM: Faz a imagem interagir com as cores do fundo */
    mix-blend-mode: luminosity;

    transition: all 0.5s ease;
    /* Transição suave para o hover */
    z-index: 2;
    /* Fica acima de efeitos de fundo se houver */
}

/* Retorna a cor ao passar o mouse */
.image-wrapper:hover .profile-photo {
    filter: grayscale(0%) contrast(1) brightness(1);
    mix-blend-mode: normal;
    /* Retorna ao modo normal */
}


/* --- Seção de Projetos --- */
.projects-section {
    padding: 100px 5%;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.purple-text {
    color: var(--accent-purple);
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 10px;
}

/* Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Individual */
.project-card {
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #252525;
    /* Cor de placeholder */
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tags span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--primary-yellow);
    padding: 2px 10px;
    border-radius: 20px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Links */
.project-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-project {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.view-project:hover {
    color: var(--primary-yellow);
    padding-left: 5px;
}

.section-header {
    text-align: center;
    /* Voltamos ao centro para um look mais organizado com títulos menores */
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.header-pre-title {
    color: var(--primary-yellow);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    /* Tamanho reduzido e mais elegante */
    line-height: 1.3;
    font-weight: 800;
    color: var(--text-light);
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-purple);
    /* Roxo no vazado para sutileza */
}

.purple-text {
    color: var(--accent-purple);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 15px;
}

/* 1. O card agora controla a estrutura total */
.project-card {
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;

    /* Configuração para o conteúdo interno */
    display: flex;
    flex-direction: column;
}

/* 2. O container do texto agora vai preencher o espaço restante */
.project-info {
    padding: 25px;
    flex-grow: 1;
    /* Faz esta div esticar */
    display: flex;
    flex-direction: column;
}

/* 3. O parágrafo empurra os links para baixo */
.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;

    flex-grow: 1;
    /* Ocupa o espaço entre o título e os links */
}

/* 4. Os links ficam travados na base */
.project-links {
    margin-top: auto;
    /* Garante que fiquem no fim */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skills-section {
    padding: 80px 5%;
    background-color: var(--bg-dark);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: #161616;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efeito de hover nos cards */
.skill-category:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
}

/* Card central com leve destaque em amarelo */
.highlight-card {
    border-bottom: 3px solid var(--primary-yellow);
}

.category-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.skill-category h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

/* O ponto decorativo em amarelo */
.skill-list li .dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-yellow);
}

/* Decoração sutil de fundo no card */
.skill-category::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--accent-purple);
    filter: blur(80px);
    opacity: 0.1;
    pointer-events: none;
}

.about-section {
    padding: 100px 5%;
    background-color: var(--bg-dark);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* --- Stats (Lado Esquerdo) --- */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-yellow);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
}

/* --- Texto (Lado Direito) --- */
.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.highlight-yellow {
    color: var(--primary-yellow);
    font-weight: 600;
}

.about-signature {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sig-name {
    font-family: 'serif';
    /* Ou uma fonte cursiva se tiver */
    font-size: 1.5rem;
    color: var(--accent-purple);
    font-style: italic;
}

.sig-dash {
    width: 50px;
    height: 2px;
    background-color: var(--accent-purple);
}

/* Responsividade */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

/* --- Footer Section --- */
.footer-section {
    padding: 100px 5% 40px 5%;
    background: linear-gradient(to bottom, var(--bg-dark), #050505);
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-cta {
    text-align: center;
    margin-bottom: 100px;
}

.footer-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin: 20px 0;
    line-height: 1.1;
}

.footer-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* Botão de E-mail de Alto Impacto */
.footer-main-btn {
    display: inline-block;
    padding: 20px 50px;
    background-color: var(--primary-yellow);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 223, 0, 0.2);
}

.footer-main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
    /* Glow roxo no hover do botão amarelo */
    background-color: #fff;
}

/* --- Rodapé Inferior --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.yellow-dot {
    color: var(--primary-yellow);
}

.footer-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.footer-socials {
    display: flex;
    gap: 30px;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

.social-link:hover {
    color: var(--accent-purple);
}

.social-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-yellow);
    transition: 0.3s;
}

.social-link:hover::after {
    width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* Estado inicial: Invisível e 30px abaixo */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.17, 0.55, 0.55, 1);
    transition-delay: 0.1s;
}

/* Estado final: Visível e na posição original */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay opcional para itens em lista (como os cards de projetos) */
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

.experience-section {
    padding: 80px 5%;
    background-color: var(--bg-dark);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px; /* Espaço para a linha vertical */
}

/* A linha vertical roxa */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-purple), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

/* O ponto amarelo na linha */
.timeline-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--primary-yellow);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-yellow);
    z-index: 2;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-purple);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.company-name {
    display: block;
    color: var(--primary-yellow);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 700px;
}

/* Tags pequenas de tecnologias usadas na experiência */
.experience-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.experience-tags span {
    font-size: 0.75rem;
    background: rgba(138, 43, 226, 0.1);
    color: var(--accent-purple);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

/* Efeito de hover suave */
.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    transition: 0.3s;
}