/* --- Variáveis CSS --- */
/* opção 01 */
/* :root {
    --primary-color: #4e576a; 
    --secondary-color: #6c727e;
    --accent-color: #8a8d92;   
    --text-color-dark: #4e576a; 
    --text-color-light: #ffffff; 
    --background-light: #faf2dc; 
    --background-dark: #4e576a; 
    --card-background: #ffffff;
    --border-color: #a8a8a6;   
    --font-family-primary: 'Arial', sans-serif; 
    --font-family-secondary: 'Helvetica', sans-serif;
} */

/* --- 1. Variáveis CSS (Dark Tech Theme) --- */
:root {
    /* Fundos */
    --bg-base: #050505;
    --bg-surface: #121214;
    --bg-glass: rgba(18, 18, 20, 0.6);
    
    /* Acentos / Glow */
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-purple: #8b5cf6;
    
    /* Textos */
    --text-heading: #f8fafc;
    --text-body: #9ca3af;
    --text-muted: #6b7280;
    
    /* Bordas e UI */
    --border-subtle: #27272a;
    --border-glow: rgba(0, 242, 254, 0.3);
    
    /* Fontes */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* --- 2. Reset Básico e Estilos Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-base);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0; /* Espaçamento padrão para todas as seções */
}

/* --- 3. Cabeçalho Principal (Header) --- */
#main-header {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-heading);
    padding: 1rem 0;
    position: fixed; /* MUDANÇA: 'fixed' para o efeito de esconder/mostrar */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s ease-in-out; /* Adiciona transição para o efeito de slide */
}

/* CLASSE PARA ESCONDER O HEADER */
#main-header.header-hidden {
    top: -80px; /* Ajuste este valor para a altura exata do seu header */
}


#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo para a imagem da logo */
#main-header .logo-img {
    height: 48px; /* Aumentado para melhor visibilidade do ícone */
    width: auto;
    transition: transform 0.3s ease;
}

#main-header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1; /* Alinhamento vertical compacto */
}

.logo-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1.8px;
    margin-top: 4px;
}

#main-header nav ul {
    display: flex;
}

#main-header nav ul li {
    margin-left: 1.5rem;
}

#main-header nav ul li a {
    color: var(--text-heading);
    font-weight: 500;
    transition: all 0.3s ease;
}

#main-header nav ul li a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--border-glow);
    text-decoration: none;
}

/* --- 4. Seção de Início (Hero) --- */
#home {
    background-color: var(--bg-base);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#home .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
}

#home .profile-pic-container {
    position: relative;
    width: 310px;
    height: 310px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

#home .profile-pic-container::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-primary), var(--accent-purple), var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    opacity: 0.4;
    filter: blur(25px);
    animation: rotate-glow 8s linear infinite;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#home .profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-surface);
    box-shadow: 0 0 0 2px var(--accent-primary);
    position: relative;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.02) saturate(1.05);
}

#home .profile-pic:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 0 0 5px var(--accent-primary), 0 0 60px var(--border-glow);
}

/* Responsividade Refinada da Foto de Perfil */
@media (max-width: 1024px) {
    #home .profile-pic-container {
        width: 260px;
        height: 260px;
        margin-bottom: 2.5rem;
    }

    #home .profile-pic {
        width: 250px;
        height: 250px;
    }

    #home .profile-pic-container::before {
        inset: -12px;
        filter: blur(20px);
    }
}

@media (max-width: 768px) {
    #home .profile-pic-container {
        width: 210px;
        height: 210px;
        margin-bottom: 2rem;
    }

    #home .profile-pic {
        width: 200px;
        height: 200px;
        border-width: 4px;
    }

    #home .profile-pic-container::before {
        inset: -10px;
        filter: blur(15px);
    }
}

@media (max-width: 480px) {
    #home .profile-pic-container {
        width: 190px;
        height: 190px;
        margin-bottom: 1.5rem;
    }

    #home .profile-pic {
        width: 180px;
        height: 180px;
        border-width: 3px;
    }

    #home .profile-pic-container::before {
        inset: -8px;
        filter: blur(12px);
    }
}

#home h1 {
    font-size: 4.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-heading);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

#home h2 {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--accent-primary);
    margin-bottom: 2.5rem;
    font-weight: 500;
    min-height: 1.6em;
    display: block;
    text-align: center;
}

#home h2::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 5px;
    color: var(--accent-purple);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#home .intro-summary {
    max-width: 800px;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha em telas pequenas */
    justify-content: center;
    gap: 1.25rem; /* Espaçamento entre os botões */
}

/* Estilo para botões */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-base);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
    color: var(--bg-base);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-heading);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background-color: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 15px var(--border-glow);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Links Sociais (Ícones) */
.social-links {
    margin-top: 2.5rem;
}

.social-links a {
    color: var(--text-color-dark);
    margin: 0 0.8rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- 5. Seções de Conteúdo (Projetos, Pesquisa, Sobre Mim, Contato) --- */
.projects-section, .research-section, .about-section, .contact-section {
    background-color: var(--bg-surface);
    padding: 6rem 0;
    text-align: center;
    overflow-x: hidden; /* Impede que efeitos 3D criem scroll horizontal */
}

/* Alterna cor de fundo para melhor visualização entre seções */
.projects-section:nth-of-type(odd),
.about-section:nth-of-type(odd) {
    background-color: var(--bg-base);
}

.projects-section h2, .research-section h2, .about-section h2, .contact-section h2 {
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: 2.5rem;
}

.projects-section h2::after, .research-section h2::after, .about-section h2::after, .contact-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-purple));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}


/* --- 6. Projetos (Swiper 3D Carousel) --- */
.projects-slider {
    width: 100%;
    padding: 60px 0;
    overflow: visible !important; /* Essencial para o efeito 3D Coverflow */
}

.projects-slider .swiper-slide {
    width: 700px; /* Largura Desktop Premium */
    max-width: 92vw; /* Margem de segurança */
    height: auto;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.15; /* Mais foco no central */
    filter: blur(8px) brightness(0.3);
    transform: scale(0.65);
    display: flex;
    flex-direction: column;
}

@media (max-width: 1200px) {
    .projects-slider .swiper-slide {
        width: 600px;
    }
}

@media (max-width: 992px) {
    .projects-slider .swiper-slide {
        width: 480px;
        opacity: 0.4;
        filter: blur(2px) brightness(0.6);
    }
}

@media (max-width: 480px) {
    .projects-slider .swiper-slide {
        width: 320px;
    }
}

.projects-slider .swiper-slide-active {
    opacity: 1;
    filter: blur(0) brightness(1.1);
    transform: scale(1); /* Central sem zoom exagerado para não cortar conteúdo */
    z-index: 10;
    box-shadow: 0 0 80px rgba(0, 242, 254, 0.25);
}

.projects-slider .swiper-slide-next,
.projects-slider .swiper-slide-prev {
    opacity: 0.6;
    filter: blur(1px) brightness(0.8);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--accent-primary) !important;
    background: rgba(18, 18, 20, 0.6);
    width: 60px !important; /* Tamanho confortável para clique */
    height: 60px !important;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 254, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.4rem !important; /* Tamanho proporcional ao círculo */
    font-weight: 800;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: scale(1.1);
}

.swiper-button-next { right: 20px !important; }
.swiper-button-prev { left: 20px !important; }

/* Ocultar em telas muito pequenas se desejar focar na paginação */
@media (max-width: 480px) {
    .swiper-button-next, .swiper-button-prev {
        display: none !important;
    }
}

.swiper-pagination-bullet {
    background: var(--accent-primary) !important;
    opacity: 0.4;
    width: 12px !important;
    height: 12px !important;
    margin: 0 12px !important; /* Espaçamento extra para acessibilidade */
    position: relative;
    transition: all 0.3s ease;
}

/* Área de toque invisível de 44px para acessibilidade (WCAG) */
.swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
}

.swiper-pagination-bullet-active {
    background: var(--accent-secondary) !important;
    opacity: 1;
    width: 30px !important; /* Um pouco maior para destaque */
    border-radius: 10px;
}

.project-card {
    background-color: rgba(18, 18, 20, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.7);
    padding: 3rem; /* Padding generoso */
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    width: 100%; /* Herda do slide pai */
}

.project-card:hover {
    border-color: var(--accent-primary);
}

.project-card h3 {
    color: var(--text-heading);
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}


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

.project-card .technologies {
    font-size: 0.95rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    background-color: rgba(0, 242, 254, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.project-card p {
    font-size: 1.15rem; /* Fonte maior para legibilidade */
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 2rem;
    color: var(--text-body);
}

.project-card p a {
    color: var(--accent-secondary);
    text-decoration: underline;
    font-weight: 500;
}

.project-card p a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--border-glow);
    text-decoration: none;
}

.project-card .project-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    height: 420px; /* Altura ideal acompanhando a largura de 700px */
    border: 1px solid var(--border-subtle);
    background-color: #f7f7f7; /* Fundo claro para camuflar capturas de tela brancas */
}

.project-card .project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: object-position 5s linear;
}

.project-card .project-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease-in-out;
    border-radius: inherit;
    z-index: 1;
}

.project-card:hover .project-image-wrapper::before {
    background-color: rgba(0, 0, 0, 0.4);
}

.project-card:hover .project-image-wrapper img {
    object-position: bottom;
}

/* Theme Switcher dentro do Card de Projeto */
.theme-switcher-project {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    background: rgba(5, 5, 5, 0.8);
    padding: 4px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(-5px);
}

.project-card:hover .theme-switcher-project {
    opacity: 1;
    transform: translateY(0);
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.theme-btn:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.1);
}

.theme-btn.active {
    background: var(--accent-primary);
    color: var(--bg-base);
    box-shadow: 0 0 10px var(--accent-primary);
}

.theme-btn[data-theme="light"].active {
    background: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    color: #333;
}

.project-links {
    margin-top: auto; /* Empurra os links para baixo do card */
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
}

.btn-project {
    background-color: rgba(0, 242, 254, 0.05); /* Fundo Neon leve */
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-project:hover {
    background-color: var(--accent-primary);
    color: var(--bg-base);
    box-shadow: 0 0 15px var(--border-glow);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-project-disabled {
    background-color: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: not-allowed;
    text-decoration: none;
}

/* Estilos para o placeholder (sem imagem) */
.project-placeholder {
    width: 100%;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px dashed var(--border-subtle);
}

.project-placeholder .material-icons.huge-placeholder-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.project-placeholder h4 {
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 0;
    line-height: 1.2;
}

.project-placeholder i.material-icons {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-placeholder.no-image {
    background-color: var(--background-light);
    border: 1px dashed var(--accent-color);
}


/* --- 7. Timeline de Pesquisa (Research Timeline) --- */
.research-timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    padding-left: 50px;
}

.research-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-purple), transparent);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 25px;
    width: 18px;
    height: 18px;
    background: var(--bg-surface);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 15px var(--accent-primary);
}

.timeline-year {
    position: absolute;
    left: -120px;
    top: 18px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.research-item {
    background-color: rgba(18, 18, 20, 0.7);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-purple);
    padding: 2rem;
    box-shadow: 0 4px 25px rgba(0,0,0,0.4);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    text-align: left;
}

.research-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.research-item h3 {
    color: var(--text-heading);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    transform: translateZ(30px);
}

.research-item .details {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
    margin-bottom: 1.2rem;
    transform: translateZ(25px);
}

.research-item p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--text-body);
    line-height: 1.7;
    transform: translateZ(20px);
}

.btn-research {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    transform: translateZ(35px);
}

.btn-research:hover {
    background-color: var(--accent-purple);
    color: var(--bg-base);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transform: translateZ(45px) translateY(-2px);
}

@media (max-width: 992px) {
    .research-timeline {
        padding-left: 40px;
        margin-right: 1rem;
    }
    .timeline-year {
        position: relative;
        left: 0;
        top: -10px;
        display: block;
        margin-bottom: 10px;
    }
}


/* --- 8. Sobre Mim (About Section) --- */
.about-section .container {
    max-width: 900px;
    /* text-align: center; */
    margin: 0 auto;
}

.about-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

/* --- 9. Contato (Contact Section) --- */
.contact-section .container {
    max-width: 700px;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-section form {
    background-color: rgba(18, 18, 20, 0.7);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-heading);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    background-color: rgba(0, 242, 254, 0.02);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-section .btn-primary {
    width: auto;
    cursor: pointer;
    /* MELHORIA 4: Botão de enviar mais robusto */
    padding: 0.9rem 2.5rem; /* Aumenta o padding para um botão mais imponente */
    font-size: 1.1rem;
    border: none; /* Remover a borda para um look mais sólido */
}


.contact-info {
    margin-top: 2rem;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.contact-info p i {
    color: var(--accent-primary);
    font-size: 1.4em;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.contact-info a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-info a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* --- 10. Rodapé (Footer) --- */
#main-footer {
    padding: 4rem 0 3rem;
}

#main-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-social-links a {
    color: var(--text-muted);
    font-size: 1.6rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
}

.footer-social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-5px);
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Cursor Toggle Button Redesign */
.btn-toggle-cursor {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-heading);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.btn-toggle-cursor .toggle-icon {
    font-size: 0.9rem;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.btn-toggle-cursor .toggle-switch {
    width: 28px;
    height: 14px;
    background: #1a1a1e;
    border-radius: 10px;
    position: relative;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.btn-toggle-cursor .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Estado Ativo (Cursor Customizado ON - Body NÃO tem .default-cursor) */
body:not(.default-cursor) .btn-toggle-cursor .toggle-switch {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-primary);
}

body:not(.default-cursor) .btn-toggle-cursor .toggle-switch::after {
    left: 16px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

body:not(.default-cursor) .btn-toggle-cursor {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

/* Estado Inativo (Cursor Padrão - Body TEM .default-cursor) */
body.default-cursor .btn-toggle-cursor .toggle-switch::after {
    left: 2px;
}

body.default-cursor .btn-toggle-cursor .toggle-icon {
    color: var(--text-muted);
}

.btn-toggle-cursor:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}


/* --- 11. Responsividade (Media Queries) --- */

/* Estilos para o botão de menu (hambúrguer) */
.menu-toggle {
    background: none;
    border: none;
    color: var(--text-color-light); /* Cor do ícone Material Icons */
    font-size: 1.8rem; /* Tamanho do ícone */
    cursor: pointer;
    display: none; /* ESCONDE por padrão em telas grandes */
    z-index: 1001; /* Garante que fique acima da nav ao abrir */
}

/* Estilo para links ativos (Scroll Spy) */
#main-header nav ul li a.active {
    color: var(--text-color-light); /* Cor do texto para links ativos no header */
    border-bottom: 2px solid var(--text-color-light); /* Borda com a cor branca suave */
    padding-bottom: 5px; /* Adiciona um pequeno espaçamento */
}

/* Telas menores que 768px (tablets e celulares) */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    .projects-slider .swiper-slide {
        width: 85vw;
    }
    
    .projects-slider {
        padding: 40px 0;
    }

    .menu-toggle {
        display: block; /* MOSTRA o botão em telas menores */
    }

    #main-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    #main-header {
        background-color: rgba(5, 5, 5, 0.98); /* Fundo quase sólido no mobile */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    #main-header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(5, 5, 5, 0.98); /* Fundo sólido para o menu suspenso */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1.5rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    }

    #main-header nav ul.active {
        display: flex;
    }

    #main-header nav ul li {
        margin: 0;
        padding: 1rem 1.5rem; /* Aumenta área de toque */
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03); /* Divisão sutil entre itens */
    }
    
    #main-header nav ul li:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    #main-header nav ul li a {
        display: block;
        width: 100%;
        color: var(--text-color-light); /* Garante que os links sejam brancos no menu mobile */
    }

    /* Ajuste para o link ativo no menu mobile */
    #main-header nav ul li a.active {
        color: var(--accent-primary);
        border-bottom: none;
        background-color: rgba(0, 242, 254, 0.15); /* Destaque mais visível */
        border-radius: 8px;
        padding: 0.5rem 1rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }

    #home {
        padding-top: 100px;
        padding-bottom: 4rem;
    }
    #home .profile-pic {
        width: 220px;
        height: 220px;
        margin-top: 0;
    }
    #home h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    #home h2 {
        font-size: 1.3rem;
    }
    .intro-summary {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto 0;
    }
    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }

    .project-card {
        padding: 1.2rem;
    }

    /* Timeline Mobile Fix */
    .research-timeline {
        padding-left: 35px;
        margin-top: 3rem;
    }
    .research-timeline::before {
        left: 15px;
    }
    .timeline-dot {
        left: -29px;
        top: 20px;
    }
    .timeline-year {
        position: relative;
        left: 0;
        top: 0;
        display: block;
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
    .research-item {
        padding: 1.5rem;
    }
    .research-item h3 {
        font-size: 1.3rem;
    }

    .about-section p, .contact-section p {
        font-size: 0.95rem;
        text-align: center;
        padding: 0 10px;
    }

    .skills-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .terminal-body {
        padding: 15px;
        font-size: 0.85rem;
    }

    .contact-section form {
        padding: 1.2rem;
    }

    /* Tamanho da logo em telas menores */
    #main-header .logo-img {
        height: 25px; /* Reduzido para telas menores */
    }
}

/* Telas menores que 480px (celulares muito pequenos) */
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.4rem; }
    #home .profile-pic {
        width: 190px;
        height: 190px;
    }
    #main-header .logo-img {
        height: 18px; /* Ainda menor para telas muito pequenas */
    }
    .social-links a {
        margin: 0 0.5rem;
    }
}

/* --- 12. Modal de Imagem --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #ff4d4d; /* Vermelho vibrante para melhor contraste no hover */
    text-decoration: none;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

/* --- 15. Skills Terminal & Snake Game --- */
.terminal-window {
    background: #0d0d0f;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    text-align: left;
    font-family: var(--font-mono);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-header {
    background: #1a1a1e;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; cursor: pointer; }

.terminal-title {
    color: #9ca3af;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    padding: 20px;
    color: #e5e7eb;
    font-size: 0.95rem;
    min-height: 300px;
}

.terminal-line {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Permite que o comando desça se necessário */
    gap: 5px;
}

.prompt {
    color: var(--accent-primary);
    margin-right: 10px;
    display: flex;
    gap: 2px;
}

.prompt-user {
    display: inline;
}

.command {
    color: #f8fafc;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.skill-tag {
    color: var(--accent-secondary);
    border-left: 2px solid var(--accent-primary);
    padding-left: 10px;
    animation: fadeIn 0.3s forwards;
    opacity: 0;
}

.cursor-blink {
    animation: blink 0.8s infinite;
}

/* Snake Game Overlay */
.snake-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.snake-game-modal {
    width: 450px;
    background: #000;
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.3);
}

.game-content {
    padding: 20px;
    text-align: center;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 1.1rem;
}

#snakeCanvas {
    background: #050505;
    border: 2px solid #1a1a1e;
    image-rendering: pixelated;
}

.game-controls {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.game-controls-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.ctrl-row {
    display: flex;
    gap: 12px;
}

.ctrl-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-primary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ctrl-btn:active {
    transform: scale(0.92);
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.ctrl-btn.exit-game {
    width: auto;
    min-width: 160px;
    height: 48px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 15px;
    background: rgba(255, 95, 86, 0.05);
    border-color: rgba(255, 95, 86, 0.4);
    color: #ff5f56;
    letter-spacing: 1px;
}

.ctrl-btn.exit-game:active {
    background: rgba(255, 95, 86, 0.15);
    box-shadow: 0 0 20px rgba(255, 95, 86, 0.4);
    border-color: #ff5f56;
}

@media (max-width: 768px) {
    .game-controls-mobile {
        display: flex;
    }
    .game-controls {
        display: none;
    }
    .snake-game-modal {
        width: 95%;
        max-width: 400px;
    }
    #snakeCanvas {
        width: 100%;
        height: auto;
    }
}

/* --- 10. Modais Premium --- */
.modal-premium {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-premium.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    background: rgba(18, 18, 20, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    height: 85vh; /* Altura fixa para estabilidade */
    margin: 20px auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-premium.active .modal-container {
    transform: scale(1);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: 100%; /* Ocupa toda a altura do container fixo */
}

@media (max-width: 992px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

/* Lado Visual */
.modal-visual {
    position: relative;
    background-color: #050505;
    display: flex;
    align-items: flex-start; /* Alinha no topo para screenshots */
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid var(--border-subtle);
    height: 100%;
}

.modal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantém largura, corta altura se necessário para scroll */
    object-position: top;
    transition: object-position 6s linear; /* Scroll suave */
}

/* Para imagens menores que não precisam de scroll, o object-fit contain garante visibilidade */
.modal-visual img.fit-image {
    object-fit: contain;
}

.modal-visual:hover img {
    object-position: bottom;
}

.modal-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
}

#modal-project-badge {
    background: var(--accent-primary);
    color: var(--bg-base);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Lado Info */
.modal-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.4), rgba(10, 10, 12, 0.4));
}

@media (max-width: 992px) {
    .modal-container {
        height: 90vh; /* Mais altura em mobile */
        margin: 10px auto;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 1fr; /* Altura fixa para imagem no mobile */
    }
    .modal-visual {
        height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }
    .modal-info {
        padding: 25px 20px;
        max-height: none;
        overflow-y: auto;
    }
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.close-modal-btn:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

#modal-project-title {
    font-size: 2.2rem;
    color: var(--text-heading);
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.modal-tech-badges span {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-body-content {
    color: var(--text-body);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 35px;
}

.modal-body-content h4 {
    color: var(--accent-secondary);
    font-size: 1rem;
    margin: 25px 0 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.tech-list-full {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tech-list-full li {
    position: relative;
    padding-left: 25px;
    color: var(--text-body);
}

.tech-list-full li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.modal-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid var(--border-subtle);
}

/* Scrollbar para o modal info */
.modal-info::-webkit-scrollbar {
    width: 6px;
}

.modal-info::-webkit-scrollbar-track {
    background: transparent;
}

.modal-info::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-info::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* --- 11. Utilitários --- */
.hidden { display: none; }

/* --- Ajustes Finos para Telas Muito Pequenas --- */
@media (max-width: 480px) {
    .prompt-user {
        display: none;
    }
    .terminal-title {
        font-size: 0.75rem;
        max-width: 180px;
        margin: 0 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 400px) {
    #home h1 {
        font-size: 1.8rem;
    }
    .terminal-window {
        margin-top: 2rem;
    }
}

/* Responsividade da Logo */
@media (max-width: 768px) {
    #main-header .logo-img { height: 40px; }
    .logo-name { font-size: 1.3rem; }
    .logo-tagline { font-size: 0.65rem; letter-spacing: 1.5px; }
}

@media (max-width: 480px) {
    #main-header .logo-img { height: 34px; }
    .logo-name { font-size: 1.15rem; }
    .logo-tagline { font-size: 0.6rem; letter-spacing: 1px; }
    #main-header .logo { gap: 10px; }
}

/* --- ATENÇÃO: Borda de depuração - REMOVER NO PRODUTO FINAL --- */
/*
div {
    border: 1px solid red !important;
    padding: 5px !important;
}
div:empty {
    background-color: rgba(255, 0, 0, 0.1) !important;
}
*/