/* ==========================================================================
   1. VARIÁVEIS DE DESIGN (Para mudar as cores do site facilmente)
   ========================================================================== */
:root {
    --bg-primary: #0f172a;       /* Azul escuro quase preto (fundo do header) */
    --bg-secondary: #f8fafc;     /* Cinza bem claro (fundo do site) */
    --card-bg: #ffffff;          /* Branco para os cards de projetos */
    --text-main: #1e293b;        /* Cinza escuro para textos principais */
    --text-muted: #64748b;       /* Cinza médio para descrições */
    --accent-pbi: #f2c811;       /* Amarelo característico do Power BI */
    --accent-git: #24292f;       /* Preto do GitHub */
    --accent-linkedin: #0a66c2;   /* Azul oficial do LinkedIn */
    --accent-python: #3776ab;    /* Azul do Python */
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* ==========================================================================
   2. ESTILOS GERAIS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-main);
    line-height: 1.6;
}

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

/* ==========================================================================
   3. HERO HEADER (Apresentação Principal)
   ========================================================================== */
header {
    background: radial-gradient(circle at top right, #1e293b, var(--bg-primary));
    color: white;
    padding: 80px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-pbi);
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-content h1 span {
    color: var(--accent-pbi);
}

.hero-content p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

/* Redes sociais e links de contato rápidos */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

.social-btn-git {
    background-color: var(--accent-git);
    color: white;
    border: 1px solid #475569;
}

.social-btn-git:hover {
    background-color: #000000;
    transform: translateY(-2px);
}
.social-btn-linkedin {
    background-color: var(--accent-linkedin);
    color: white;
    border: 1px solid #004182;
}

.social-btn-linkedin:hover {
    background-color: #004182;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. SEÇÕES E CARDS DE PROJETOS
   ========================================================================== */
main {
    padding: 50px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--accent-pbi);
    border-radius: 2px;
}

/* Layout Grid para os Cards */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* Um por linha em telas menores */
    gap: 35px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden; /* Garante que as bordas do iframe não passem do limite arredondado */
    border: 1px solid #e2e8f0;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Informações do projeto (Texto) */
.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Selos de tecnologia (Badges) */
.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-pbi {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-py {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

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

/* ==========================================================================
   5. SUPORTE RESPONSIVO PARA IFRAME DO POWER BI (PROPORÇÃO 16:9)
   ========================================================================== */
.pbi-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Isso força exatamente a proporção 16:9 widescreen */
    background: #e2e8f0; /* Fundo cinza enquanto o dashboard carrega */
}

.pbi-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Botão secundário de ação para projetos de Python/Git */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all var(--transition-speed) ease;
}

.action-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

/* Footer simples */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 50px;
}

/* ==========================================================================
   6. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (min-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
}