/* =========================================
   1. VARIÁVEIS & RESET (Enterprise Dark Mode)
   ========================================= */
:root {
    --bg-body: #0a0a0a;       
    --bg-card: #111111;       
    --bg-offset: #0f0f0f;     
    
    --text-main: #ededed;     
    --text-muted: #888888;    
    
    --border: #262626;        
    --accent: #ffffff;        
    --accent-blue: #3b82f6;   
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; border-top: 1px solid var(--border); }
.bg-offset { background-color: var(--bg-offset); }

.bg-base { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-body); z-index: -2; }
.bg-glow-top { position: fixed; top: -30%; right: -10%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(255,255,255,0.03), transparent 60%); z-index: -1; pointer-events: none; }

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    padding: 24px 0;
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 600; font-size: 1rem; color: #fff; display: flex; align-items: center; gap: 12px; }
.badge { background: #222; color: #aaa; font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; font-weight: 500; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: #fff; }
.contact-btn { background: #fff; color: #000 !important; padding: 8px 16px; border-radius: 4px; font-weight: 600; transition: 0.3s; }
.contact-btn:hover { background: #e0e0e0; transform: translateY(-2px); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero { padding: 120px 0 100px; }

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
    margin-bottom: 24px; max-width: 900px;
}
.highlight { background: linear-gradient(90deg, #fff, #999); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text-block { margin-bottom: 60px; max-width: 700px; }
.lead-text { font-size: 1.5rem; color: #fff; font-weight: 500; margin-bottom: 15px; line-height: 1.4; }
.sub-text { font-size: 1.1rem; color: var(--text-muted); }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; border-top: 1px solid var(--border); padding-top: 40px; }
.metric-item { display: flex; flex-direction: column; }
.metric-value { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500; color: #fff; margin-bottom: 8px; }
.metric-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.metric-label small { display: block; font-size: 0.75rem; text-transform: none; opacity: 0.7; margin-top: 4px; }

/* =========================================
   4. EXPERTISE
   ========================================= */
.section-header { margin-bottom: 60px; display: flex; align-items: center; gap: 20px; }
.section-header h2 { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; }
.line { height: 1px; flex-grow: 1; background: var(--border); }

.grid-cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.card { background: var(--bg-card); padding: 32px; border: 1px solid var(--border); border-radius: 8px; transition: 0.3s ease; display: flex; flex-direction: column; }
.card:hover { border-color: #444; transform: translateY(-5px); background: #161616; }
.card-icon { font-size: 2rem; color: #fff; margin-bottom: 20px; }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; color: #fff; }
.card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 24px; flex-grow: 1; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-family: var(--font-mono); font-size: 0.75rem; background: #222; padding: 4px 10px; border-radius: 4px; color: #ccc; border: 1px solid rgba(255,255,255,0.05); }

/* =========================================
   5. PORTFÓLIO
   ========================================= */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.portfolio-card {
    display: block; height: 400px; border-radius: 12px; overflow: hidden; position: relative;
    border: 1px solid var(--border); background-color: #1a1a1a;
    background-size: 100%; background-repeat: no-repeat; background-position: top center;
    transition: background-position 8s ease-in-out;
}
.portfolio-card:hover { background-position: bottom center; }

.card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    opacity: 0; transition: opacity 0.3s ease;
    display: flex; align-items: center; justify-content: center; padding: 30px;
}
.portfolio-card:hover .card-overlay { opacity: 1; }

.overlay-content { text-align: center; transform: translateY(20px); transition: transform 0.3s ease; }
.portfolio-card:hover .overlay-content { transform: translateY(0); }

.proj-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-blue); text-transform: uppercase; margin-bottom: 10px; display: block; }
.overlay-content h3 { font-size: 1.8rem; color: #fff; margin-bottom: 10px; font-weight: 700; }
.overlay-content p { color: #ccc; margin-bottom: 20px; font-size: 0.95rem; }

.tech-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 25px; }
.tech-row span { font-size: 0.75rem; border: 1px solid #444; padding: 4px 10px; border-radius: 4px; color: #aaa; }

.view-btn { font-size: 0.9rem; font-weight: 600; color: #fff; border-bottom: 1px solid #fff; padding-bottom: 4px; }
.text-white { color: #fff; }

/* =========================================
   6. PROFILE & BADGES (Atualizado)
   ========================================= */
.profile-layout { display: grid; grid-template-columns: 350px 1fr; gap: 60px; align-items: start; }

.profile-sidebar { display: flex; flex-direction: column; gap: 30px; }

.profile-image { 
    width: 100%; height: 400px; overflow: hidden; border-radius: 8px; 
    border: 1px solid var(--border); background-color: #000; 
}
.profile-image img { 
    width: 100%; height: 100%; object-fit: cover; 
    object-position: 50% 20%; 
    filter: none; transition: 0.5s; 
}
.profile-image img:hover { transform: scale(1.02); }

/* ESTILO SÓBRIO E ESTÁTICO PARA BADGES */
.badges-container {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espaçamento generoso */
    margin-top: -10px;
}
.badge-item {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Sem transform ou transition de movimento */
}
.badge-item img {
    max-height: 130px; /* Tamanho grande e legível */
    width: auto;
    object-fit: contain;
    /* Sombra fixa para destacar do fundo */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); 
}

.profile-bio { position: relative; }
.profile-bio h3 { font-size: 2rem; margin-bottom: 24px; color: #fff; }
.lead { font-size: 1.2rem; color: #fff; margin-bottom: 24px; line-height: 1.5; }
.profile-bio p { color: var(--text-muted); margin-bottom: 32px; font-size: 1rem; position: relative; z-index: 2; }

.certifications { background: var(--bg-card); padding: 24px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 32px; display: flex; gap: 40px; position: relative; z-index: 2; }
.cert-col h4 { font-size: 1rem; margin-bottom: 16px; color: #fff; }
.cert-col ul li { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); padding: 6px 0; border-bottom: 1px dashed #333; }
.cert-col ul li:last-child { border-bottom: none; }

.social-links { display: flex; gap: 20px; position: relative; z-index: 2; }
.social-links a { display: flex; align-items: center; gap: 8px; font-weight: 500; padding: 10px 20px; background: #222; border-radius: 4px; color: #fff; transition: 0.3s; }
.social-links a:hover { background: #333; }

.watermark-logo { position: absolute; bottom: -10px; right: 0; width: 140px; opacity: 0.12; z-index: 0; pointer-events: none; filter: grayscale(100%); }

/* =========================================
   7. CTA & FOOTER
   ========================================= */
.section-cta { padding: 80px 0; text-align: center; border-top: 1px solid var(--border); }
.cta-content h2 { font-size: 2rem; color: #fff; margin-bottom: 15px; font-weight: 700; }
.cta-content p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.1rem; }
.btn-main { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #000; padding: 12px 30px; border-radius: 6px; font-weight: 600; font-size: 1rem; transition: 0.3s; }
.btn-main:hover { background: #e0e0e0; transform: translateY(-2px); }

.footer { padding: 40px 0; background: var(--bg-card); border-top: 1px solid var(--border); }
.footer-flex { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.9rem; align-items: flex-start; }
.footer-left strong { color: #fff; display: block; font-size: 1rem; }
.email-link { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--accent-blue); text-decoration: none; transition: 0.2s; }
.email-link:hover { text-decoration: underline; color: #fff; }

/* =========================================
   8. RESPONSIVO (MOBILE & TABLET)
   ========================================= */
@media (max-width: 900px) {
    .nav-links { display: none; }
    
    .hero { 
        padding-top: 40px; 
        padding-bottom: 60px; 
        text-align: left; 
    }

    .hero-title { font-size: 2rem; margin-bottom: 15px; line-height: 1.2; }
    .hero-text-block { margin-bottom: 30px; }
    .lead-text { font-size: 1.1rem; margin-bottom: 8px; }
    .sub-text { font-size: 0.95rem; }

    .metrics-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding-top: 20px; 
        border-top: 1px dashed #333;
    }
    
    .grid-cols-3, .portfolio-grid, .profile-layout { grid-template-columns: 1fr; }

    .profile-image { 
        max-width: 320px; 
        height: 380px; 
        margin: 0 auto 0 auto; 
    }
    
    .profile-image img {
        object-position: 50% 20% !important;
    }

    .badges-container {
        max-width: 320px;
        margin: 0 auto 30px auto;
        gap: 20px;
    }
    
    /* No mobile, reduzimos um pouco o tamanho das badges para caber melhor */
    .badge-item img {
        max-height: 100px;
    }

    .certifications { flex-direction: column; gap: 20px; }
    .watermark-logo { display: none; }

    .footer-flex { flex-direction: column; gap: 20px; text-align: center; align-items: center; }
    .email-link { justify-content: center; }
}