/* Identidade Visual Pedro Stein Serer - Deep Tech & Vivid Bronze */

:root {
    --bg-main: #0B0E14; /* Fundo abissal, extremamente premium */
    --bg-card: #151A23; /* Fundo dos cards com leve contraste */
    
    /* Bronze Industrial mais vivo e saturado */
    --gold: #D87D3A; 
    --gold-dim: rgba(216, 125, 58, 0.15); /* Aura/glow bronze ajustado */
    --gold-hover: #E69A5D; /* Bronze mais claro para interações */
    
    --text-main: #F8F9FA; /* Branco puro e nítido */
    --text-dim: #9CA3AF; /* Cinza técnico para textos longos */
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    /* Padrão sutil de trilhas de circuito para o fundo global */
    --trace-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g stroke="rgba(216, 125, 58, 0.03)" stroke-width="0.5"><path d="M10,10 L30,10 L40,20 L40,50 L50,60 L80,60" fill="none"/><path d="M90,10 L70,10 L60,20 L60,40 L70,50 L70,80" fill="none"/><circle cx="10" cy="10" r="1" fill="rgba(216, 125, 58, 0.03)"/><circle cx="80" cy="60" r="1" fill="rgba(216, 125, 58, 0.03)"/><path d="M20,90 L20,70 L30,60 L50,60 M50,60 L60,50 L80,50" fill="none"/><circle cx="20" cy="90" r="1" fill="rgba(216, 125, 58, 0.03)"/><circle cx="80" cy="50" r="1" fill="rgba(216, 125, 58, 0.03)"/></g></svg>');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } /* Rolagem suave nativa */

/* Aplicação do padrão de trilhas no fundo global */
body { 
    background-color: var(--bg-main); 
    background-image: var(--trace-pattern);
    background-size: 300px; /* Tamanho do padrão */
    color: var(--text-main); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

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

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: rgba(11, 14, 20, 0.95); backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--gold-dim); }
.logo { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--gold); font-weight: 700; text-decoration: none; text-shadow: 0 2px 10px var(--gold-dim); transition: var(--transition); }
.logo:hover { transform: scale(1.05); text-shadow: 0 2px 15px var(--gold); }
.logo span { color: var(--text-main); }
nav a { color: var(--text-dim); text-decoration: none; margin-left: 30px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; transition: var(--transition); position: relative; }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: var(--transition); }
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--gold-hover); }
.hamburger { display: none; }

/* Seções Gerais */
section { margin-bottom: 80px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 40px; color: var(--gold); border-bottom: 1px solid var(--gold-dim); padding-bottom: 10px; line-height: 1; }

/* Refatoração CSS (Sem Inline Styles) */
.sobre-texto { max-width: 800px; font-size: 1.1rem; color: var(--text-dim); }
.projetos-extras { margin-top: 30px; display: none; }
.btn-container { text-align: center; margin-top: 40px; }

/* Botão Carregar Mais com Shimmer */
.btn-load-more { position: relative; overflow: hidden; background: var(--gold); color: var(--bg-main); border: none; padding: 15px 40px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: var(--transition); border-radius: 2px; }
.btn-load-more::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: 0.5s; }
.btn-load-more:hover::before { left: 150%; }
.btn-load-more:hover { background: var(--gold-hover); transform: translateY(-5px); box-shadow: 0 15px 30px var(--gold-dim); }

/* Hero */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: 
        linear-gradient(rgba(11, 14, 20, 0.9), rgba(11, 14, 20, 0.98)), 
        url(../_img/blueprint-architecture.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid var(--gold-dim);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Glow central ajustado para o novo bronze vivo */
    background: radial-gradient(circle at center, rgba(216, 125, 58, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { max-width: 900px; z-index: 2; padding: 0 20px; animation: fadeUp 1.2s cubic-bezier(0.23, 1, 0.32, 1); }
.pre-title { color: var(--gold); text-transform: uppercase; letter-spacing: 5px; font-size: 14px; margin-bottom: 25px; font-weight: 600; animation: tracking 1.5s cubic-bezier(0.23, 1, 0.32, 1); }
h1 { font-family: 'Playfair Display', serif; font-size: 4.5rem; line-height: 1.1; margin-bottom: 30px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
h1 span { color: var(--gold); }
.hero-text { color: var(--text-dim); font-size: 1.3rem; margin-bottom: 45px; font-weight: 300; max-width: 700px; margin-inline: auto; }
.hero-cta { display: inline-flex; }

/* Botões da Hero com Shimmer */
.btn-gold { position: relative; overflow: hidden; background: var(--gold); color: var(--bg-main); padding: 18px 45px; text-decoration: none; font-weight: 700; margin-right: 15px; transition: var(--transition); display: inline-block; border-radius: 2px; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.btn-gold::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: 0.5s; }
.btn-gold:hover::before { left: 150%; }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-5px); box-shadow: 0 15px 30px var(--gold-dim); }

.btn-outline { border: 1px solid var(--text-main); color: var(--text-main); padding: 18px 45px; text-decoration: none; transition: var(--transition); display: inline-block; border-radius: 2px; text-transform: uppercase; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); transform: translateY(-5px); }

/* --- PROJETOS --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.project-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.03); overflow: hidden; transition: var(--transition); border-radius: 4px; position: relative; }
.project-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 1px solid var(--gold); opacity: 0; transition: var(--transition); pointer-events: none; z-index: 10; }
.project-card:hover::before { opacity: 0.5; }
.project-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 15px var(--gold-dim); }
.project-img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid var(--gold-dim); filter: grayscale(20%); transition: var(--transition); }
.project-card:hover .project-img { filter: grayscale(0%); transform: scale(1.05); }
.card-body { padding: 25px; position: relative; z-index: 2; background: var(--bg-card); }
.card-body h4 { color: var(--text-main); font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 10px; }
.card-body p { color: var(--text-dim); }
.btn-project { display: inline-block; margin-top: 15px; color: var(--gold); text-decoration: none; font-size: 12px; font-weight: 700; text-transform: uppercase; border: 1px solid var(--gold); padding: 8px 16px; transition: var(--transition); cursor: pointer; background: transparent; border-radius: 2px; }
.btn-project:hover { background: var(--gold); color: var(--bg-main); box-shadow: 0 5px 15px var(--gold-dim); }

/* --- MODAL DE DETALHES --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 14, 20, 0.95); backdrop-filter: blur(10px); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: var(--bg-card); border: 1px solid var(--gold); max-width: 600px; width: 100%; padding: 40px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--gold-dim); border-radius: 4px; animation: modalPop 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.close-modal { position: absolute; top: 20px; right: 20px; color: var(--gold); font-size: 24px; cursor: pointer; text-decoration: none; border: none; background: transparent; transition: var(--transition); }
.close-modal:hover { color: var(--gold-hover); transform: rotate(90deg); }
.modal-title { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 2rem; margin-bottom: 15px; line-height: 1; }
.modal-desc { color: var(--text-dim); margin-bottom: 25px; line-height: 1.8; }

/* --- SKILLS --- */
.skills-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.skill-block { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.03); padding: 25px; border-radius: 4px; transition: var(--transition); }
/* MODAL DE DETALHES: Glow ajustado nas skills */
.skill-block:hover { border-color: rgba(216, 125, 58, 0.4); background: rgba(21, 26, 35, 0.8); transform: scale(1.02); }
.skill-block h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; border-left: 3px solid var(--gold); padding-left: 15px; }
.skill-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.skill-item { display: flex; align-items: center; gap: 15px; font-size: 0.9rem; color: var(--text-main); font-weight: 300; transition: var(--transition); cursor: default; }
.skill-item:hover { color: var(--gold); transform: translateX(5px); }
.icon-25 { width: 25px; height: 25px; object-fit: contain; transition: var(--transition); }
/* MODAL DE DETALHES: Shadow ajustado nos ícones */
.skill-item:hover .icon-25 { filter: drop-shadow(0 0 5px var(--gold-dim)); transform: scale(1.1); }

/* --- PATENTES --- */
.patente-box { background: rgba(216, 125, 58, 0.05); border: 1px solid var(--gold); padding: 40px; border-radius: 4px; position: relative; overflow: hidden; }
.patente-box::after { content: ''; position: absolute; top: 0; left: -100%; width: 20%; height: 100%; background: linear-gradient(90deg, transparent, rgba(216,125,58,0.2), transparent); animation: scanline 4s infinite linear; }

/* --- ACADÊMICOS --- */
.academic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.academic-card { background: var(--bg-card); padding: 20px; border: 1px solid rgba(255,255,255,0.03); text-decoration: none; color: var(--text-main); transition: var(--transition); border-radius: 4px; display: block; position: relative; overflow: hidden; }
/* MODAL DE DETALHES: Glow ajustado nos acadêmicos */
.academic-card:hover { background: rgba(216, 125, 58, 0.05); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.academic-card strong { color: var(--gold); display: block; margin-bottom: 5px; font-size: 1.1rem; }

/* --- CONTATO (Nova Seção) --- */
.contato-wrapper { text-align: center; background: rgba(21, 26, 35, 0.5); padding: 50px 20px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.03); }
.contato-wrapper .btn-gold { margin-bottom: 30px; margin-right: 0; }
.social { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-text { color: var(--text-dim); font-size: 1rem; margin-right: 10px; font-weight: 300; }
.social-icon { width: 30px; height: 30px; object-fit: contain; transition: var(--transition); filter: grayscale(100%) opacity(0.7); }
.social a:hover .social-icon { filter: grayscale(0%) opacity(1) drop-shadow(0 0 8px var(--gold-dim)); transform: translateY(-3px) scale(1.1); }


/* Disclaimer & Footer */
.footer { padding: 60px 20px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.disclaimer { font-size: 10.8px; color: var(--text-dim); max-width: 900px; margin: 20px auto; text-align: center; line-height: 1.5; background: rgba(0,0,0,0.3); padding: 20px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.02); }

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

@keyframes tracking {
    from { letter-spacing: -2px; opacity: 0; }
    to { letter-spacing: 5px; opacity: 1; }
}

@keyframes scanline {
    0% { left: -100%; }
    100% { left: 200%; }
}

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

/* Classes para o JavaScript (Scroll Reveal) */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* RESPONSIVO */
@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .navbar {
        padding: 15px 20px;
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100dvh;
        background: rgba(11, 14, 20, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 999;
    }

    .navbar nav.active {
        right: 0;
    }

    .navbar nav a {
        font-size: 1.5rem;
        margin: 20px 0;
        opacity: 0;
        transition: var(--transition);
    }

    .navbar nav.active a {
        opacity: 1;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--gold);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 100px 20px 60px;
        background-attachment: scroll;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
        width: 100%;
        text-align: center;
    }

    .hero-text {
        font-size: 1.1rem;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
        padding: 0;
    }

    .btn-gold, .btn-outline, .btn-load-more {
        width: 100%;
        margin: 0;
        padding: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .projects-grid, .skills-wrapper, .academic-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .project-card, .skill-block, .academic-card {
        width: 100%;
        margin-bottom: 0;
        box-sizing: border-box;
    }

    .modal-content {
        height: 50%;
        max-width: 100%;
        border-radius: 0;
        padding: 60px 20px 30px;
        overflow-y: auto;
        width: 100%;
    }

    .close-modal {
        top: 20px;
        right: 20px;
        font-size: 32px;
    }

    .social {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .social .social-text {
        flex-basis: 100%;
        text-align: center;
        margin: 0 0 10px 0;
    }
}