/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #020205; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #374151;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: transparent;
}

/* ==========================================================================
   Integração Three.js (Canvas)
   ========================================================================== */
.webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Tipografia Global e Links
   ========================================================================== */
h1, h2, h3 {
    color: #111827; 
    line-height: 1.3;
}

p {
    margin-bottom: 16px;
}

strong {
    color: #1f2937;
    font-weight: 700;
}

ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 12px;
}

a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ==========================================================================
   Cards (Glassmorphism / Frosted Glass)
   ========================================================================== */
header, section {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 40px; /* Padding base */
    margin-bottom: 35px;
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Propriedade crucial para mascarar as bordas superiores do banner de imagem */
    overflow: hidden; 
}

header:hover, section:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Header Específico
   ========================================================================== */
header {
    text-align: center;
    border-bottom: 4px solid #2563eb;
    overflow: visible; /* Header precisa de overflow visible caso a sombra do avatar vaze */
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

header h2 {
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

header p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 4px;
}

/* ==========================================================================
   Imagens (Avatar e Banners Full Bleed)
   ========================================================================== */
   
/* Estilo Base para as Imagens */
.custom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--img-pos, center center);
    transition: transform 0.5s ease;
}

/* 1. O Avatar do Header */
.profile-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 24px;
    border: 4px solid #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
    overflow: hidden;
}

/* 2. O Banner das Seções (Efeito Full Bleed) */
.banner-container {
    /* Margens negativas para anular o padding da section de 40px */
    margin-top: -40px;
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: 30px;
    
    /* Largura compensando a margem negativa lateral */
    width: calc(100% + 80px);
    height: 240px;
    
    border-radius: 0; /* Bordas inferiores retas */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Divisória sutil da imagem com o texto */
    
    overflow: hidden;
    position: relative;
    background: rgba(243, 244, 246, 0.5);
}

.banner-container:hover .custom-img {
    transform: scale(1.03);
}

/* ==========================================================================
   Estilização Temática por Seção
   ========================================================================== */
section h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

#sobre-mim-e-lideranca { border-left: 6px solid #06b6d4; }
#habilidades { border-left: 6px solid #10b981; }
#habilidades li strong { color: #047857; }

#experiencia-corporativa { border-left: 6px solid #2563eb; }
#experiencia-corporativa ul { list-style: none; padding-left: 0; }
#experiencia-corporativa li {
    background: rgba(243, 244, 246, 0.9);
    border: 1px solid #e5e7eb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: background 0.2s;
}
#experiencia-corporativa li:hover {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
#experiencia-corporativa li strong {
    font-size: 1.15rem;
    color: #111827;
    display: block;
    margin-bottom: 4px;
}
#experiencia-corporativa li em {
    font-style: normal;
    font-weight: 700;
    font-size: 0.85rem;
    color: #2563eb;
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

#inicio-de-carreira-indie { border-left: 6px solid #8b5cf6; }
#inicio-de-carreira-indie h3 { color: #6d28d9; border-bottom-color: #ede9fe; }
#inicio-de-carreira-indie li strong { color: #6d28d9; }

#formacao { border-left: 6px solid #9ca3af; }

/* ==========================================================================
   Certificações (Grid e Cards)
   ========================================================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.cert-card {
    background: rgba(243, 244, 246, 0.7);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #9ca3af;
    transition: background 0.3s;
}

.cert-card:hover {
    background: #ffffff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.cert-card:hover::before {
    background: #2563eb;
}

.cert-header h4 {
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.cert-date {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.cert-tags span {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
}

.cert-link {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
    margin-top: auto;
}

.cert-link:hover {
    color: #059669;
    text-decoration: none;
}

section .final-section {
    margin-bottom: 500px;
}
/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 768px) {
    body { 
        padding: 20px 10px; 
    }
    header, section {
        padding: 25px 20px; /* Padding reduzido no mobile */
        border-radius: 12px;
    }
    header h1 { 
        font-size: 2.2rem; 
    }
    .profile-container {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    .banner-container {
        /* Margens negativas sincronizadas com o novo padding (25px top/bottom, 20px laterais) */
        margin-top: -25px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        height: 160px;
        margin-bottom: 24px;
    }
}