/* Paleta de Cores e Tipografia */
:root {
    --vermelho-tecnico: #B40000;
    --preto-institucional: #0F0F0F;
    --branco-tecnico: #FFFFFF;
    --grafite-secundario: #3C3C3C;
    --font-titulos: 'Montserrat', sans-serif;
    --font-textos: 'Open Sans', sans-serif;
}

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

/* Preloader Estilizado */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Fundo preto imediato */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Acima de TUDO */
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    text-align: center;
}

.loader-content img {
    width: 180px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Spinner de carregamento técnico */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgb(207, 10, 43);
    border-top: 3px solid var(--vermelho-tecnico);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* Classe para remover o loader via JS */
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

/*
.h1-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
*/

body {
    background-color: var(--preto-institucional);
    color: var(--branco-tecnico);
    font-family: var(--font-textos);
    overflow: hidden; /* Evita rolagem na home principal */
}

/* Fundo com imagem e sobreposição escura para contraste */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Imagem temporária focada em segurança contra incêndio */
    background: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZzSjwcotyMDHV9UwCwWc52lb-L61m0Rt6ShwF4ReGpwCBacNqZhNKsnCcc-O3yjTDrgDkD7P7kHtXcuauBEQG9_eHlVb_yWj9XrUMSuxUwTCjYHGZ-BFLCWb1htGIfkJ8M15GUFdHd96bxEcgJzdidji694BzZxbl6PDVe772sajrJHGCrkKB5IvcxKB2/s16000/backgroud-lexfire.webp') center/cover no-repeat;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.85) 0%, rgba(15, 15, 15, 0.8) 100%);
    z-index: -1;
}

/* Layout Principal */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 20px;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.8));
    margin-bottom: 50px;
}

/* Menu e Botões Estilo Extintor */
.menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.extinguisher-btn {
    position: relative;
    background: linear-gradient(145deg, #c70000, var(--vermelho-tecnico));
    border: none;
    width: 200px;
    height: 80px;
    border-radius: 10px 10px 5px 5px;
    cursor: pointer;
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.7), inset 0px 2px 5px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

/* O gatilho/válvula do extintor no topo do botão */
.extinguisher-btn::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: linear-gradient(to right, #2a2a2a, var(--grafite-secundario), #2a2a2a);
    border-radius: 5px 5px 0 0;
    box-shadow: 0px -2px 5px rgba(0,0,0,0.5);
}

/* A mangueira lateral (detalhe) */
.extinguisher-btn::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 65px;
    width: 10px;
    height: 35px;
    background: var(--preto-institucional);
    border-radius: 5px;
    border: 1px solid #1a1a1a;
}

.extinguisher-btn:hover {
    background: linear-gradient(145deg, #ff1f1f, var(--vermelho-tecnico));
    transform: translateY(-5px);
    box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.9), inset 0px 2px 5px rgba(255, 255, 255, 0.3);
}

.btn-text {
    font-family: var(--font-titulos);
    font-weight: 700;
    color: var(--branco-tecnico);
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.divisor-gradient {
     height: 3px;
     background: linear-gradient(
         to right,
         rgba(207, 10, 44, 0),
         rgba(207, 10, 44, 1),
         rgba(207, 10, 44, 0)
     );
     border: none;
     border-radius: 2px;
     margin: 30px 0;
}


/* Rodapé */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: transparent;
    font-family: var(--font-textos);
    font-size: 12px;
    color: #fff;
}

/* Modais Animados */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    
    /* Estado inicial (Escondido e Transparente) */
    display: flex; 
    justify-content: center;
    align-items: flex-start;
    padding: 40px 10px;
    z-index: 9999;
    overflow-y: auto;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Impede cliques enquanto escondido */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Quando o modal está ATIVO */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Conteúdo do Modal (A Caixa Branca/Escura) */
.modal-content {
    background-color: #111;
    width: 95%;
    max-width: 850px;
    margin: auto;
    position: relative;
    border: 1px solid var(--grafite-secundario);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    
    /* Efeito de Animação: Começa um pouco abaixo e menor */
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
}

/* Animação de entrada do conteúdo quando o pai (overlay) estiver ativo */
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content h2 {
    font-family: var(--font-titulos);
    color: var(--branco-tecnico);
    margin-bottom: 20px;
}

.modal-content p, .modal-content ul {
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 15px;
}

.modal-content ul {
    list-style-position: inside;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--branco-tecnico);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--vermelho-tecnico);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .extinguisher-btn {
        width: 80vw;
        max-width: 300px;
        height: 60px;
    }
    
    .extinguisher-btn::after {
        right: 25vw;
    }
    
    .logo-container img {
        width: 250px;
    }
}

/* Estilos Específicos do Modal de Contato */
.contact-modal {
    text-align: center;
}

.modal-logo img {
    max-width: 190px;
    margin-bottom: 20px;
}

.contact-modal h3 {
    font-family: var(--font-titulos);
    color: #cccccc;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Estilo dos Inputs */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid var(--grafite-secundario);
    border-radius: 5px;
    color: var(--branco-tecnico);
    font-family: var(--font-textos);
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--vermelho-tecnico);
    background: #252525;
}

.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid var(--grafite-secundario);
    border-radius: 5px;
    color: var(--branco-tecnico);
    font-family: var(--font-textos);
    resize: vertical;
    min-height: 110px;
    transition: border-color 0.3s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--vermelho-tecnico);
    background: #252525;
}

.form-status {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    color: #cccccc;
}

.form-status.success {
    color: #28a745;
}

.form-status.error {
    color: #ff4d4d;
}

/* Botão de Envio */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--vermelho-tecnico);
    color: white;
    border: none;
    border-radius: 5px;
    font-family: var(--font-titulos);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(180, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #d60000;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(180, 0, 0, 0.5);
}

/* Validação de Erro do Telefone */
.error-text {
    color: var(--vermelho-tecnico);
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-family: var(--font-textos);
}

.input-error {
    border-color: var(--vermelho-tecnico) !important;
    box-shadow: 0 0 5px rgba(180, 0, 0, 0.5);
}

/* Definição da animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classe para aplicar nos elementos que devem animar */
.reveal {
    opacity: 0; /* Começa invisível */
    animation: fadeInUp 0.8s ease forwards;
}

/* Delays para criar o efeito cascata nos botões */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Ajuste no Modal para suavizar ainda mais a abertura */
.modal-content {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
}

/* MODAL CONTATO */
/* Layout do Modal de Contato */
.contact-modal-large {
    max-width: 850px !important;
    width: 100%;
    background: #111;
    border-radius: 12px;
    padding: 0 !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.contact-form-side {
    padding: 40px;
    background: #111;
}

.contact-info-side {
    background: #1a1a1a;
    padding: 40px;
    border-left: 1px solid var(--grafite-secundario);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #eee;
}

.info-item i {
    color: var(--vermelho-tecnico);
    font-size: 1.2rem;
    width: 25px;
}

.map-container {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    filter: grayscale(1) invert(1) contrast(1.2); /* Estilo Dark para o mapa */
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 20px 10px; /* Reduz o espaçamento em telas pequenas */
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Empilha as colunas */
    }

    .contact-info-side {
        padding: 30px 20px;
    }

    /* Garante que o botão de fechar (X) fique sempre visível e acessível */
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
        z-index: 100;
    }

}

/* Estilo do Modal Sobre */
.about-modal-large {
    max-width: 750px !important;
    padding: 50px !important;
    text-align: center;
}

.about-subtitle {
    font-family: var(--font-titulos);
    color: var(--vermelho-tecnico);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-top: 15px;
    animation: fadeIn 2s ease-in;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 25px;
}

/* Lista de Expertise */
.expertise-list {
    list-style: none;
    text-align: left;
    display: inline-block;
    max-width: 550px;
    margin: 0 auto;
    animation: fadeIn 2s ease-in;
}

.expertise-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
    color: #eee;
    font-size: 0.95rem;
}

.expertise-list i {
    color: var(--vermelho-tecnico);
    margin-top: 4px;
}

/* Diferencial */
.differential-section h3 {
    font-family: var(--font-titulos);
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.differential-section p {
    font-style: italic;
    color: #aaa;
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
    .about-modal-large {
        padding: 40px 20px !important;
    }
    
    .about-subtitle {
        font-size: 0.9rem;
    }
}

.texto-destaque {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    background-color: #faf4f409; /* Fundo levemente azulado para destacar a introdução */
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--vermelho-tecnico);
    text-align: justify;
    animation: fadeIn 2s ease-in;
}

.texto-destaque-right {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    background-color: #faf4f409; /* Fundo levemente azulado para destacar a introdução */
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid var(--vermelho-tecnico);
    text-align: justify;
    animation: fadeIn 2s ease-in;
}

.texto-nosso-diferencial {
    color: #ffffff;
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Seção "Por que escolher" */
.why-choose-section {
    margin-top: 10px;
    padding-bottom: 20px;
}

.why-title {
    font-family: var(--font-titulos);
    color: #fff;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.why-subtitle {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Container de Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

/* Estilo Individual do Card */
.stat-card {
    background: linear-gradient(145deg, #1a1a1a, #111);
    border: 1px solid var(--grafite-secundario);
    padding: 35px 20px;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Animação de Hover */
.stat-card:hover {
    transform: translateY(-12px);
    border-color: var(--vermelho-tecnico);
    box-shadow: 0 15px 35px rgba(180, 0, 0, 0.25);
    background: #161616;
}

/* Números em Destaque */
.stat-number {
    display: block;
    font-family: var(--font-titulos);
    font-size: 2.8rem;
    font-weight: 700;
    color: #f2e2c2; /* Tom champanhe elegante conforme a imagem */
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.stat-label {
    display: block;
    font-family: var(--font-titulos);
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.stat-text {
    color: #999;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Responsividade para Tablets e Celulares */
@media (max-width: 850px) {
    .cards-container {
        grid-template-columns: 1fr; /* Empilha os cards no mobile */
        gap: 15px;
    }
    
    .stat-card {
        padding: 25px;
    }
}

/* Container Principal do Modal de Serviços */
.services-modal-large {
    max-width: 900px !important;
    padding: 50px 40px !important;
}

.services-title {
    font-family: var(--font-titulos);
    color: var(--vermelho-tecnico);
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-top: 15px;
}

/* Caixa de Destaque */
.highlight-box {
    background: rgba(180, 0, 0, 0.05);
    border-left: 4px solid var(--vermelho-tecnico);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
}

.highlight-box p {
    color: #dfdfdf;
    font-size: 1.05rem;
    line-height: 1.7;
}

.highlight-box p:last-child {
    margin-bottom: 0;
    margin-top: 10px;
}

/* Acordeão (Sanfona) */
.ecosystem-layers h3 {
    color: #fff;
    font-family: var(--font-titulos);
    margin-bottom: 5px;
}

.layers-subtitle {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background: #1a1a1a;
    border: 1px solid var(--grafite-secundario);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-titulos);
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header i {
    color: var(--vermelho-tecnico);
    transition: transform 0.4s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #161616;
}

.accordion-content ul {
    padding: 0 20px 0 40px;
    margin: 0;
    color: #ccc;
    font-size: 0.95rem;
}

.accordion-content ul li {
    margin-bottom: 10px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Grid de Cards de Expertise */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.expertise-card {
    background: #151515;
    border: 1px solid var(--grafite-secundario);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-color: #333;
}

.expertise-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

/*
.expertise-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
*/

.expertise-card:hover .expertise-img-wrapper img {
    transform: scale(1.05);
}

.expertise-content {
    padding: 25px;
}

.expertise-content h4 {
    font-family: var(--font-titulos);
    color: var(--vermelho-tecnico);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.expertise-content p {
    color: #aaa;
    font-size: 1.0rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .services-modal-large {
        padding: 40px 20px !important;
    }
}

/* MODAL PORTFÓLIO */
/* Container do Modal de Portfólio */
.portfolio-modal-large {
    max-width: 1000px !important;
    padding: 50px 30px !important;
    text-align: center;
}

.portfolio-title {
    font-family: var(--font-titulos);
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-top: 20px;
}

/* Grid dos Cards (Estilo Imagem Anexada) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.portfolio-card {
    background: #0a0a0a;
    border: 1px solid rgba(207, 10, 44, 0.2);
    border-radius: 12px;
    padding: 30px 15px 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(207, 10, 44, 0.15);
    border-color: rgba(207, 10, 44, 0.6);
}

/* Ícones com Efeito Neon Vermelho */
.port-icon {
    font-size: 2.5rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--vermelho-tecnico);
    text-shadow: 0 0 15px rgba(207, 10, 44, 0.5);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.portfolio-card:hover .port-icon {
    color: var(--vermelho-tecnico);
    text-shadow: 0 0 25px rgba(207, 10, 44, 0.8);
    transform: scale(1.1);
}

.portfolio-card h3 {
    color: #fff;
    font-family: var(--font-titulos);
    font-size: 1rem;
    margin-bottom: 15px;
    height: 40px; /* Alinha os títulos */
}

.portfolio-card p {
    color: #888;
    font-size: 1.0rem;
    text-align: justify;
    line-height: 1.5;
    flex-grow: 1; /* Empurra o botão pro final */
    margin-bottom: 25px;
}

/* Botão Moderno "VER PROJETO" */
.btn-wrapper {
    width: 100%;
    margin-top: auto;
}

.btn-ver-projeto {
    background: linear-gradient(to right, #111, #1a1a1a);
    border: 1px solid #333;
    color: #ddd;
    padding: 10px 20px;
    font-family: var(--font-titulos);
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 85%;
}

.portfolio-card:hover .btn-ver-projeto {
    border-color: var(--vermelho-tecnico);
    color: #fff;
    box-shadow: 0 0 10px rgba(207, 10, 44, 0.3);
}

/* ================================= */
/* LIGHTBOX GALERIA (SISTEMA DE FOTOS)*/
/* ================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999; /* Por cima do modal ativo */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox-content img.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--vermelho-tecnico);
    font-family: var(--font-titulos);
    z-index: -1;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(207, 10, 44, 0.2);
    border: 1px solid var(--vermelho-tecnico);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background: var(--vermelho-tecnico);
    box-shadow: 0 0 15px rgba(207, 10, 44, 0.6);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover { color: var(--vermelho-tecnico); }

/* Responsividade do Grid */
@media (max-width: 950px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-modal-large { padding: 40px 15px !important; }
}

/* USAR PRÓPRIO ÍCONE */
/* Container do Ícone (Imagem) */
.port-icon {
    width: 60px; /* Tamanho visual no layout */
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.port-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Efeito de Brilho Inicial (Sutil) */
    filter: drop-shadow(0 0 8px rgba(207, 10, 44, 0.4)); 
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse no Card */
.portfolio-card:hover .port-icon img {
    /* Brilho Intenso (Neon) ao fazer hover */
    filter: drop-shadow(0 0 15px rgba(207, 10, 44, 0.9));
    transform: scale(1.1);
}