
    /* ==========================================================================
       1. VARIÁVEIS E CONFIGURAÇÕES TÉCNICAS
       ========================================================================== */
    :root {
        /* Paleta de Identidade */
        --maker-blue: #0084FF;
        --mourao-orange: #FF6B00;
        
        /* Interface Light (Padrão) */
        --bg-main: #FFFFFF;
        --bg-alt: #F4F7FA;
        --bg-card: #FFFFFF;
        --text-main: #1A1F26;
        --text-dim: #5E6771;
        --border: #E2E8F0;
        --accent: var(--maker-blue);
    }

    [data-theme="dark"] {
        /* Interface Dark Industrial */
        --bg-main: #0B121E; 
        --bg-alt: #161D29;
        --bg-card: #1C2533;
        --text-main: #F1F5F9;
        --text-dim: #94A3B8;
        --border: rgba(255, 255, 255, 0.08);
    }

    /* ==========================================================================
       2. RESET E BASE
       ========================================================================== */
    * { 
        box-sizing: border-box; 
        margin: 0; 
        padding: 0; 
        text-decoration: none !important; 
    }
    
    body { 
        font-family: 'Montserrat', sans-serif; 
        background: var(--bg-main); 
        color: var(--text-main); 
        padding-top: 80px; 
        transition: background 0.4s ease;
        line-height: 1.6;
        overflow-x: hidden;
    }

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

    section { padding: 100px 0; }
    .section-alt { background-color: var(--bg-alt); }
    
    .section-header { text-align: center; margin-bottom: 60px; }
    .section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
    .section-header::after {
        content: ''; display: block; width: 50px; height: 4px; 
        background: var(--mourao-orange); margin: 0 auto; border-radius: 2px;
    }

    /* ==========================================================================
       3. HEADER E NAVEGAÇÃO
       ========================================================================== */
    #header-nav {
        position: fixed; top: 0; width: 100%; height: 80px;
        background: rgba(var(--bg-main), 0.8);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        z-index: 1000; display: flex; align-items: center;
    }

    .logo { 
        display: flex; align-items: center; gap: 12px;
        font-weight: 900; font-size: 1.3rem; 
    }

    .nav-logo-img { height: 45px; width: auto; }
    .brand-maker { color: var(--maker-blue); }
    .brand-mourao { color: var(--mourao-orange); }

    .nav-controls { display: flex; align-items: center; gap: 25px; }

    .menu-links a { 
        color: var(--text-main) !important; 
        font-weight: 600; 
        font-size: 0.85rem; 
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: 0.3s;
        padding: 10px 15px; 
        display: inline-block;
    }

    .menu-links a:hover { color: var(--maker-blue) !important; }
    #theme-btn { background: none; border: none; color: var(--text-main); cursor: pointer; font-size: 1.2rem; }

    /* ==========================================================================
       4. HERO SELECTION (CARROSSEL & TEXTO)
       ========================================================================== */
    #hero-carousel {
        position: relative;
        width: 100%;
        height: 85vh;
        min-height: 500px;
        overflow: hidden;
        background: #000;
    }

    /* Slides e Animação Ken Burns */
    .slide {
        position: absolute; 
        inset: 0; 
        opacity: 0;
        transition: opacity 1.5s ease-in-out; 
        background-size: cover; 
        background-position: center; 
        z-index: 1;
        filter: grayscale(30%) brightness(0.6);
    }

    .slide.active { 
        opacity: 1; 
        z-index: 10; 
        animation: kenburns 8s ease-out forwards;
    }

    @keyframes kenburns {
        from { transform: scale(1.15); }
        to { transform: scale(1); }
    }

    /* Overlay Estático e Conteúdo Hero */
    .hero-overlay-static {
        position: absolute;
        inset: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        background: linear-gradient(to right, rgba(11, 18, 30, 0.9) 30%, rgba(11, 18, 30, 0.2) 100%);
        pointer-events: none;
    }

    .hero-overlay-static .container { pointer-events: auto; }

    .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
        gap: 40px;
        height: 100%;
    }

    .brand-badge {
        display: inline-block;
        padding: 5px 15px;
        background: rgba(0, 132, 255, 0.1);
        border: 1px solid var(--maker-blue);
        border-radius: 50px;
        color: var(--maker-blue);
        font-size: 0.8rem;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 20px;
        letter-spacing: 2px;
    }

    .hero-title-main {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
        font-weight: 900;
        line-height: 1;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        color: var(--text-dim);
        margin-bottom: 35px;
        max-width: 500px;
    }

    .hero-logo-display img {
        max-width: 100%;
        filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-20px) rotate(2deg); }
    }

    /* ==========================================================================
       5. COMPONENTES (BOTÕES, CARDS, FORMS)
       ========================================================================== */
    /* Botões */
    .hero-cta-group { display: flex; gap: 15px; flex-wrap: wrap; }

    .btn-neon { 
        background: var(--mourao-orange); 
        color: white !important; 
        padding: 18px 36px; 
        border-radius: 8px; 
        font-weight: 800; 
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer; 
        transition: 0.3s;
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    }

    .btn-neon:hover { 
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    }

    .btn-whatsapp {
        background: #25D366;
        color: white !important;
        padding: 18px 36px;
        border-radius: 8px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        transition: 0.3s;
    }

    .btn-whatsapp:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    }

    /* Cards e Grid */
    .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

    .card { 
        background: var(--bg-card); 
        padding: 40px; 
        border-radius: 16px; 
        border: 1px solid var(--border); 
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        position: relative;
        overflow: hidden;
    }

    .card:hover { 
        transform: translateY(-10px); 
        border-color: var(--maker-blue);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .card i { 
    color: var(--maker-blue); 
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
   /* Tipografia interna do card */
.card p {
    line-height: 1.5;
    font-size: 0.9rem;
}

.card h3 {
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/**/

/* Badge de etapas para o Ciclo Maker */

/* Melhoria na legibilidade do badge de etapas */
.step-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 900;
    color: var(--border);
    font-size: 2.5rem;
    opacity: 0.15;
    transition: 0.3s;
}

.card:hover .step-badge {
    opacity: 0.4;
    color: var(--maker-blue);
}


.card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--mourao-orange);
}

/* Ajuste de tipografia nos cards para melhor legibilidade */
.card h3 {
    color: var(--maker-blue);
    margin-top: 10px;
}

.card p strong {
    color: var(--text-main);
}

    /*REPOSITÓRIOS GRID*/

  /* ==========================================================================
   ESTILO DOS REPOSITÓRIOS (HORIZONTAL COM MAIS ALTURA)
   ========================================================================== */

.grid-repos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px; /* Aumentei o espaço entre os cards */
}

.card-repo {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 40px 30px; /* Aumentei consideravelmente o preenchimento vertical */
    min-height: 160px;   /* Garante que o card tenha uma altura imponente */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.repo-icon {
    min-width: 80px;  /* Ícone maior */
    height: 80px;     /* Ícone maior */
    background: var(--bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maker-blue);
    transition: 0.3s;
    font-size: 1.2rem; /* Aumenta o ícone do FontAwesome internamente */
}

.repo-content h3 {
    font-size: 1.3rem; /* Título um pouco maior */
    margin-bottom: 8px;
    color: var(--text-main);
}

.repo-content p {
    font-size: 0.95rem; /* Texto mais legível */
    color: var(--text-dim);
    line-height: 1.5;
}

/* Efeito de Hover */
.card-repo:hover {
    transform: scale(1.02) translateX(10px); /* Leve aumento + deslize */
    border-color: var(--maker-blue);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-repo:hover .repo-icon {
    background: var(--maker-blue);
    color: white;
    transform: rotate(-5deg); /* Charme extra no ícone */
}

/* Ajuste para Mobile */
@media (max-width: 480px) {
    .card-repo {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        min-height: auto;
    }
}


/* Efeito de Glassmorphism para o rodapé do card de projetos */
.card-glass-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(28, 37, 51, 0.7); /* Cor baseada no seu --bg-card */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

/* Ajuste no card para suportar o rodapé flutuante */
.card-portfolio-item {
    position: relative;
    height: 350px; /* Altura fixa para manter o grid elegante */
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.card-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-portfolio-item:hover img {
    transform: scale(1.1); /* Zoom suave na peça ao passar o mouse */
}

/* Badge de Categoria para Laboratório Criativo */
.lab-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--maker-blue);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}




/**/
/* Container do Grid */
#posts-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    min-height: 200px; /* Garante que a seção não colapse */
}

/* Card Estilo Laboratório */
.card-portfolio-item {
    position: relative;
    height: 400px; 
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex; /* Mudança para garantir alinhamento */
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none !important;
    background: #000; /* Fundo preto para as fotos brilharem */
    transition: transform 0.4s ease;
}

.card-portfolio-item:hover {
    transform: translateY(-10px);
}

/* Imagem de Fundo */
.card-portfolio-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s ease;
}

.card-portfolio-item:hover img {
    transform: scale(1.1);
}

/* Rodapé com Glassmorphism Real */
.card-glass-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 25px 20px;
    background: rgba(15, 23, 42, 0.7); /* Cor de fundo semi-transparente */
    backdrop-filter: blur(15px); /* O efeito de vidro */
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge Superior */
.lab-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--maker-blue);
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 15px;
    border-radius: 50px;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 1px;
}


    /* Formulário */



    
    .form-box { background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border); }
    input, textarea { 
        width: 100%; padding: 15px; margin: 10px 0 20px; 
        background: var(--bg-alt); border: 1px solid var(--border); 
        color: var(--text-main); border-radius: 8px; font-family: inherit;
    }
    input:focus, textarea:focus { outline: 2px solid var(--maker-blue); border-color: transparent; }

    /* ==========================================================================
       6. SEÇÃO CONTATO E FOOTER
       ========================================================================== */
    .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 60px; }
    .contact-info h2 { font-size: 3rem; margin-bottom: 20px; }
    .contact-details { display: flex; flex-direction: column; gap: 15px; }
    .contact-details i { width: 25px; color: var(--maker-blue); }

    footer { background-color: var(--bg-alt); border-top: 1px solid var(--border); padding: 80px 0 40px; }
    .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
    .footer-col h4 { margin-bottom: 25px; font-size: 1rem; text-transform: uppercase; color: var(--maker-blue); }
    .footer-links li { list-style: none; margin-bottom: 12px; }
    .footer-links a { color: var(--text-dim) !important; transition: 0.3s; font-size: 0.9rem; }
    .footer-links a:hover { color: var(--maker-blue) !important; padding-left: 5px; }

    .social-icons { display: flex; gap: 12px; margin-top: 20px; }
    .social-icons a {
        width: 40px; height: 40px; border-radius: 8px; background: var(--bg-main);
        display: flex; align-items: center; justify-content: center;
        color: var(--text-main); border: 1px solid var(--border); transition: 0.3s;
    }
    .social-icons a:hover { background: var(--maker-blue); color: white !important; transform: translateY(-3px); }

    #back-to-top {
        position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
        background: var(--maker-blue); color: white !important; border-radius: 12px;
        display: flex; align-items: center; justify-content: center; cursor: pointer;
        opacity: 0; visibility: hidden; transition: 0.4s; z-index: 1000;
    }
    #back-to-top.show { opacity: 1; visibility: visible; }

    /* ==========================================================================
       7. MENU MOBILE (OVERLAY)
       ========================================================================== */
    .mobile-menu-btn {
        display: none; background: none; border: none;
        color: var(--text-main); font-size: 1.5rem; cursor: pointer; z-index: 1001;
    }

    .mobile-overlay {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--bg-card); z-index: 1000;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        display: flex; align-items: center; justify-content: center;
    }

    .mobile-overlay.active { right: 0; }
    .overlay-content { display: flex; flex-direction: column; gap: 30px; text-align: center; }
    .overlay-content a { font-size: 1.2rem; color: var(--text-main); font-weight: 700; }
    .btn-budget { color: var(--mourao-orange) !important; }

    /* ==========================================================================
       8. RESPONSIVIDADE (MEDIA QUERIES)
       ========================================================================== */
    @media (max-width: 992px) {
        .hero-grid { grid-template-columns: 1fr; text-align: center; }
        .hero-logo-display { order: -1; }
        .hero-logo-display img { max-width: 200px; margin-bottom: -40px; }
        .hero-overlay-static {
            background: linear-gradient(to top, rgba(11, 18, 30, 0.95) 60%, rgba(11, 18, 30, 0.4) 100%);
        }
        .hero-cta-group { justify-content: center; }
        .contact-grid { grid-template-columns: 1fr; gap: 40px; }
        .contact-info h2 { font-size: 2.2rem; text-align: center; }
    }

    @media (max-width: 768px) {
        .menu-links { display: none; }
        .mobile-menu-btn { display: block; }
        .footer-grid { grid-template-columns: 1fr 1fr; }
        .hero-title-main { font-size: 2.8rem; }
    }


    /* Transições suaves para o formulário */
#maker-contact-form, #success-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Efeito de balanço no ícone de sucesso */
.success-animation i {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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



/* NOVO */


/* Ajuste para imagens de proporção variada no Hero */
.slide {
    background-size: cover;
    background-position: center 25%; /* Foca um pouco mais no topo, onde geralmente fica a "cabeça" das peças */
    background-repeat: no-repeat;
    /* Overlay suave individual para cada slide para garantir contraste do texto */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.4); 
}

/* Transição de opacidade mais elegante */
.slide {
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilo para os títulos no Laboratório (CSS purificado) */
.footer-label {
    color: var(--mourao-orange);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-title {
    font-size: 1.1rem;
    margin-top: 5px;
    color: #FFFFFF;
    font-weight: 700;
}




/* Animação do Ícone de Sucesso */
.success-animation i {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}