 /* --- PALETA DE CORES E VARIÁVEIS --- */
 :root {

     --cor-laranja: #FF6B00;
     --cor-laranja-glow: rgba(255, 107, 0, 0.18);
     --cor-preto: #0D0E10;
     --cor-grafite-card: #16181D;
     --cor-cinza-escuro: #1F222A;
     --cor-cinza-texto: #aeb0b7;
     --cor-cinza-borda: #2A2E39;
     --cor-branco: #FFFFFF;
     --altura-header: 85px;

     --fonte-titulo: 'Montserrat', sans-serif;
     --fonte-corpo: 'Inter', sans-serif;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 html {
     scroll-behavior: smooth;
 }

 body {
     background-color: var(--cor-preto);
     color: var(--cor-branco);
     font-family: var(--fonte-corpo);
     line-height: 1.6;
     padding-top: var(--altura-header);
     -webkit-font-smoothing: antialiased;
 }

 /* --- CABEÇALHO FIXO COM MENU NAV --- */
 header {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: var(--altura-header);
     background-color: rgba(255, 255, 255, 0.96);
     backdrop-filter: blur(10px);
     border-bottom: 3px solid var(--cor-laranja);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
     z-index: 1000;
     display: flex;
     align-items: center;
 }

 .header-container {
     max-width: 1200px;
     width: 100%;
     margin: 0 auto;
     padding: 0 20px;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo-g9 {
     max-height: 65px;
     width: auto;
     transition: transform 0.3s ease;
 }

 .logo-g9:hover {
     transform: scale(1.03);
 }

 /* --- MENU DESKTOP & ANIMAÇÕES --- */
 .nav-menu {
     display: flex;
     list-style: none;
     gap: 25px;
 }

 .nav-menu li a {
     font-family: var(--fonte-corpo);
     text-decoration: none;
     color: #121212;
     font-weight: 600;
     font-size: 0.9rem;
     letter-spacing: 0.5px;
     text-transform: uppercase;
     padding: 8px 12px;
     display: inline-block;
     position: relative;
     transition: color 0.3s ease, transform 0.25s ease;
 }

 .nav-menu li a::after {
     content: '';
     position: absolute;
     width: 0%;
     height: 3px;
     bottom: 0;
     left: 50%;
     background-color: var(--cor-laranja);
     border-radius: 2px;
     transition: width 0.3s ease, left 0.3s ease;
 }

 .nav-menu li a:hover {
     color: var(--cor-laranja);
     transform: translateY(-2px);
 }

 .nav-menu li a:hover::after {
     width: 100%;
     left: 0;
 }

 /* --- MENU HAMBÚRGUER --- */
 .hamburger {
     display: none;
     cursor: pointer;
     background: none;
     border: none;
     font-size: 2rem;
     color: #121212;
     margin-left: auto;
     padding: 5px;
     transition: color 0.3s ease, transform 0.3s ease;
 }

 .hamburger:hover {
     color: var(--cor-laranja);
     transform: scale(1.1);
 }

 /* --- HERO (LOGO DA FEIRA DO CONHECIMENTO) --- */
 .hero {
     background: linear-gradient(180deg, #050506 0%, #0D0E10 100%);
     color: var(--cor-branco);
     text-align: center;
     padding: 60px 20px 40px 20px;
     border-bottom: 1px solid var(--cor-cinza-borda);
 }

 .logo-feira {
     max-width: 640px;
     width: 100%;
     height: auto;
     margin-bottom: 20px;
     filter: drop-shadow(0px 8px 16px rgba(255, 107, 0, 0.2));
 }

 .hero h1 {
     font-family: var(--fonte-titulo);
     font-weight: 800;
     font-size: 2.3rem;
     letter-spacing: -0.5px;
     margin-bottom: 12px;
     color: var(--cor-branco);
 }

 .hero h1 span {
     color: var(--cor-laranja);
 }

 .hero p {
     font-family: var(--fonte-corpo);
     font-weight: 300;
     font-size: 1.15rem;
     max-width: 600px;
     margin: 0 auto;
     color: var(--cor-cinza-texto);
 }

 /* --- BACKGROUND MODERNO E LUXUOSO PARA OS TRABALHOS --- */
 .main-wrapper {
     background-color: var(--cor-preto);
     /* Efeito de Iluminação de Fundo com Focos Gradient em Laranja */
     background-image:
         radial-gradient(ellipse 60% 40% at 20% 20%, rgba(255, 107, 0, 0.08) 0%, transparent 70%),
         radial-gradient(ellipse 50% 50% at 80% 70%, rgba(255, 107, 0, 0.06) 0%, transparent 70%),
         radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
     padding: 60px 0;
     position: relative;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
 }

 .categoria-section {
     margin-bottom: 60px;
 }

 .categoria-titulo {
     font-family: var(--fonte-titulo);
     font-weight: 800;
     color: var(--cor-branco);
     border-left: 5px solid var(--cor-laranja);
     padding-left: 16px;
     margin-bottom: 30px;
     font-size: 1.7rem;
     text-transform: uppercase;
     letter-spacing: 1px;
     display: flex;
     align-items: center;
 }

 .grid-trabalhos {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
     gap: 10px;

 }

  .grid-logo {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
     gap: 10px;

 }

 /* --- CARDS DE TRABALHOS (ESTILO DARK FUTURISTA E ELEGANTE) --- */
 .card {
     background-color: var(--cor-grafite-card);
     border-radius: 16px;
     border: 1px solid var(--cor-cinza-borda);
     overflow: hidden;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
     transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
         box-shadow 0.35s ease,
         border-color 0.35s ease;
     display: flex;
     flex-direction: column;
     position: relative;
     margin-bottom: 5px;
     /* Espaço extra para o conteúdo do card */
 }

 .card:hover {
     transform: translateY(-8px);
     box-shadow: 0 15px 35px var(--cor-laranja-glow), 0 5px 15px rgba(0, 0, 0, 0.5);
     border-color: var(--cor-laranja);
 }

 .card-img-wrapper {
     position: relative;
     overflow: hidden;
     height: 210px;
 }

 .card img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s ease;
 }

 .card:hover img {
     transform: scale(1.06);
     /* Zoom suave na imagem no hover */
 }

 /* Badge da Categoria sobre a Imagem */
 .badge {
     position: absolute;
     top: 15px;
     left: 15px;
     /* background: rgba(13, 14, 16, 0.85); */
     background: var(--cor-laranja);
     backdrop-filter: blur(8px);
     color: rgba(239, 239, 239, 0.85);
     font-family: var(--fonte-titulo);
     font-size: 0.75rem;
     font-weight: 700;
     text-transform: uppercase;
     padding: 5px 12px;
     border-radius: 20px;
     border: 1px solid rgba(159, 82, 27, 0.32);
 }

 /* .card-content {
     padding: 24px;
     flex-grow: 1;
     display: flex;
     flex-direction: column;
 } */

/* Transforma o conteúdo em Flexbox */
.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz essa área crescer e preencher o espaço que sobrar no card */
    padding: 20px; /* Ajuste o espaçamento interno se precisar */
}





 .card-content h3 {
     font-family: var(--fonte-titulo);
     font-weight: 700;
     color: var(--cor-branco);
     margin-bottom: 12px;
     font-size: 1.25rem;
     line-height: 1.35;
     transition: color 0.3s ease;
 }

 .card:hover .card-content h3 {
     color: var(--cor-laranja);
 }

 .card-content p {
     font-family: var(--fonte-corpo);
     font-weight: 400;
     color: var(--cor-cinza-texto);
     font-size: 0.95rem;
     line-height: 1.6;
     flex-grow: 1;
     margin-bottom: 20px;
 }

 /* --- RODAPÉ --- */
 footer {
     background-color: #050506;
     color: var(--cor-cinza-texto);
     text-align: center;
     padding: 35px 20px;
     font-family: var(--fonte-corpo);
     font-size: 0.9rem;
     border-top: 2px solid var(--cor-cinza-borda);
 }

 footer span {
     color: var(--cor-laranja);
     font-weight: 600;
 }

 /* --- RESPONSIVIDADE --- */
 @media (max-width: 768px) {
     .hamburger {
         display: block;
     }

     .nav-menu {
         position: absolute;
         top: var(--altura-header);
         left: 0;
         width: 100%;
         background-color: var(--cor-branco);
         flex-direction: column;
         align-items: center;
         gap: 0;
         border-bottom: 3px solid var(--cor-laranja);
         box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

         max-height: 0;
         opacity: 0;
         overflow: hidden;
         transition: max-height 0.4s ease, opacity 0.3s ease;
     }

     .nav-menu.active {
         max-height: 350px;
         opacity: 1;
     }

     .nav-menu li {
         width: 100%;
         text-align: center;
     }

     .nav-menu li a {
         display: block;
         padding: 16px 0;
         border-bottom: 1px solid #eee;
         width: 100%;
     }

     .nav-menu li a::after {
         display: none;
     }

     .hero h1 {
         font-size: 1.7rem;
     }

     .categoria-titulo {
         font-size: 1.3rem;
     }
 }


 


 /* Garante que o link ocupe toda a altura do card */
.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
/* 
 

/* Efeito bacana: Quando o mouse passa no card inteiro, o botão acende */
.card-link:hover .card-btn {
    background-color: #ff6a00;
    transform: translateX(5px); /* Move o botão levemente pra direita indicando a ação */
}

 /* O Botão alinhado à Direita e no Fundo */
.card-btn {
    margin-top: auto; /* A MÁGICA: Empurra o botão pro fundo do card! */
    align-self: flex-end; /* A MÁGICA 2: Joga o botão pra direita! */
    
    /* Estilo visual do botão */
    background-color: #ea5a21; /* Laranja combinando com o tema que criamos */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}