/*
Theme Name: Estrada Real Tech - Glass Effect
Author: Marcos Paulo
Version: 2.1
*/

/* RESET BÁSICO */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #1b1b1b;
    color: #ffffff;
    transition: opacity 0.5s ease;
    padding-top: 140px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(27,27,27,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(46,204,113,0.2);
}

.nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* LOGO + NOME - COM ANIMAÇÃO */
.logo {
    display: flex;
    align-items: center;
    gap: 25px;
    animation: slideInLogo 1.2s ease-out;
    transition: all 0.3s ease;
}

/* EFEITO DE SCROLL NA LOGO */
.logo.scrolled {
    transform: scale(0.9);
    opacity: 0.9;
}

.logo img {
    height: 120px;
    width: auto;
    animation: rotateLogo 1.5s ease-out;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(46,204,113,0.3));
}

.logo img:hover {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 0 20px rgba(46,204,113,0.8));
}

/* ANIMAÇÃO DE SCROLL */
@keyframes floatLogo {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
        filter: drop-shadow(0 0 15px rgba(46,204,113,0.5));
    }
    100% {
        transform: translateY(0);
    }
}

.logo.scrolled img {
    animation: floatLogo 3s infinite ease-in-out;
}

.logo span {
    font-size: 36px;
    font-weight: bold;
    color: #2ecc71;
    letter-spacing: 2px;
    animation: fadeInText 1.2s ease-out;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #2ecc71;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px #2ecc71;
}

.logo:hover span::after {
    width: 100%;
}

.logo.scrolled span {
    text-shadow: 0 0 15px rgba(46,204,113,0.5);
}

/* HAMBURGER */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 28px;
    cursor: pointer;
    margin-left: auto;
    z-index: 1100;
    animation: fadeIn 1s ease-out;
}

.hamburger span {
    display: block;
    height: 5px;
    width: 100%;
    background: #2ecc71;
    border-radius: 3px;
    transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 8px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -9px);
}

/* MENU */
.menu {
    position: fixed;
    top: 140px;
    right: -200px;
    width: auto;
    min-width: 140px;
    max-width: 200px;
    height: auto;
    background: rgba(27,27,27,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    gap: 8px;
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    transition: right 0.4s ease;
    z-index: 1000;
    border-left: 2px solid rgba(46,204,113,0.5);
}

.menu.active {
    right: 0;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.menu-list li {
    list-style: none;
    margin: 0;
    animation: slideInMenu 0.5s ease-out forwards;
    opacity: 0;
}

.menu-list li:nth-child(1) { animation-delay: 0.1s; }
.menu-list li:nth-child(2) { animation-delay: 0.2s; }
.menu-list li:nth-child(3) { animation-delay: 0.3s; }
.menu-list li:nth-child(4) { animation-delay: 0.4s; }
.menu-list li:nth-child(5) { animation-delay: 0.5s; }

.menu-list li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 6px 12px;
    border-radius: 5px;
    display: block;
    white-space: nowrap;
}

.menu-list li a:hover {
    color: #2ecc71;
    background: rgba(46,204,113,0.2);
    padding-left: 18px;
    transform: translateX(3px);
}

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    animation: pulse 2s infinite, fadeIn 1.5s ease-out;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border-radius: 50%;
    color: white;
    font-size: 35px;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(46,204,113,0.6);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.whatsapp-float a:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 10px 35px rgba(46,204,113,0.8);
}

/* HERO */
.hero {
    padding: 40px 20px 60px;
    margin-top: 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 52px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 800px;
    text-align: center;
    display: block;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

.hero h1 span {
    color: #2ecc71;
    display: inline-block;
    animation: glow 3s infinite;
}

.hero p {
    color: #cccccc;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 1;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.3px;
    text-align: center;
    display: block;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 25px;
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* CARDS - EFEITO VIDRO */
.card {
    background: rgba(36, 36, 36, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(46, 204, 113, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }

/* EFEITO DE VIDRO REFLEXO */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.8s ease;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.card p {
    color: #e0e0e0;
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(46, 204, 113, 0.15);
    backdrop-filter: blur(15px);
    border-color: #2ecc71;
    box-shadow: 0 20px 50px rgba(46, 204, 113, 0.4);
}

/* EFEITO DE VIDRO BORDA ILUMINADA */
.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2ecc71, transparent, #27ae60);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::after {
    opacity: 0.3;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px;
    background: rgba(27,27,27,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    opacity: 0.9;
    border-top: 1px solid rgba(46,204,113,0.2);
    animation: fadeIn 1.5s ease-out;
}

/* KEYFRAMES */
@keyframes slideInLogo {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateLogo {
    0% {
        opacity: 0;
        transform: rotate(-360deg) scale(0.3);
    }
    80% {
        transform: rotate(10deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes slideInMenu {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(46,204,113,0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(46,204,113,0.8), 0 0 30px rgba(46,204,113,0.5);
    }
    100% {
        text-shadow: 0 0 5px rgba(46,204,113,0.3);
    }
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    body {
        padding-top: 130px;
    }
    
    .hero h1 {
        font-size: 46px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }
    
    .header {
        padding: 15px 25px;
    }
    
    .logo img { 
        height: 90px;
    }
    
    .logo span { 
        font-size: 26px;
    }
    
    .menu { 
        top: 120px;
        padding: 15px 10px;
        min-width: 130px;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .logo img { 
        height: 70px; 
    }
    
    .logo span { 
        font-size: 22px; 
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
}

/* SCRIPT PARA EFEITO DE SCROLL */

/* =========================
   ESTILOS PARA CATEGORIAS
========================= */

/* Ícone da categoria */
.categoria-icon {
    height: 140px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
}

.categoria-icon span {
    font-size: 48px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

/* Contador de itens */
.categoria-count {
    color: #2ecc71;
    font-size: 0.9rem;
    display: block;
    margin-top: 15px;
}

/* Link voltar */
.voltar-link {
    color: #2ecc71;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.voltar-link:hover {
    transform: translateX(-5px);
}

/* Informações do arquivo */
.file-info {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.file-info span {
    color: #2ecc71;
    font-size: 0.85rem;
}

/* Imagem padrão */
.default-image {
    height: 180px;
    background: linear-gradient(135deg, #333, #444);
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-image span {
    color: #2ecc71;
    font-size: 48px;
}

/* Mensagem sem resultados */
.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    background: #242424;
    border-radius: 18px;
}

.no-results h3 {
    color: #2ecc71;
    margin-bottom: 15px;
}

.no-results p {
    color: #ccc;
}
/* =========================
   ESTILOS PARA CATEGORIAS COM IMAGENS - CORRIGIDO
========================= */

/* Área da imagem */
.card-image-area {
    height: 160px;
    background: linear-gradient(135deg, #1e2a3a, #2d3b4f);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

/* Imagens normais */
.categoria-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ícones SVG */
.categoria-icon-svg {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Deixa o ícone branco */
    transition: all 0.3s ease;
}

/* Efeito no hover do card - ícone fica verde */
.card:hover .categoria-icon-svg {
    filter: brightness(0) saturate(100%) invert(72%) sepia(61%) saturate(469%) hue-rotate(90deg) brightness(95%) contrast(95%);
    transform: scale(1.1);
}

/* Para imagens JPG/PNG normais */
.card:hover .categoria-imagem {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* GARANTIR QUE NÃO TEM LINHA AZUL */
.card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.card-link:visited,
.card-link:active,
.card-link:focus,
.card-link:hover {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

/* Ajuste na altura do card */
.card {
    min-height: 320px;
    position: relative; /* IMPORTANTE para o hover */
    overflow: hidden; /* Garante que nada vaza */
}

/* =========================
   CORREÇÃO DO HOVER - BOTÃO CENTRALIZADO
========================= */

/* Overlay que aparece no hover */
.card-hover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(11, 15, 26, 0.9) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 10 !important;
    border-radius: 18px !important;
    pointer-events: none !important;
}

/* Mostra o overlay no hover do CARD */
.card:hover .card-hover {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Estilo do botão */
.card-hover .btn {
    display: inline-block !important;
    padding: 14px 32px !important;
    background: #2ecc71 !important;
    color: #000 !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transform: scale(1);
    transition: transform 0.2s ease !important;
}

/* Efeito hover no botão *//* =========================
   CARDS COM ÍCONE SVG (DOCKER, LINUX, ETC)
========================= */

.card-image-area {
    height: 160px;
    background: linear-gradient(135deg, #1e2a3a, #2d3b4f);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.categoria-icon-svg {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.card:hover .categoria-icon-svg {
    filter: brightness(0) saturate(100%) invert(72%) sepia(61%) saturate(469%) hue-rotate(90deg) brightness(95%) contrast(95%);
    transform: scale(1.1);
}

/* =========================
   CARD COM IMAGEM DE FUNDO (ZABBIX)
========================= */

.card-imagem-fundo {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    min-height: 350px !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 0 !important;
}

/* Overlay escuro para o texto aparecer */
.card-imagem-fundo .card-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1 !important;
}

/* Conteúdo do card com imagem de fundo */
.card-imagem-fundo .card-content {
    position: relative !important;
    z-index: 2 !important;
    color: #fff !important;
    padding: 25px !important;
    width: 100% !important;
}

.card-imagem-fundo h3 {
    color: #2ecc71 !important;
    font-size: 1.8rem !important;
    margin-bottom: 10px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.card-imagem-fundo p {
    color: #fff !important;
    font-size: 1rem !important;
    margin: 0 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Hover para card com imagem de fundo */
.card-imagem-fundo .card-hover {
    background: rgba(46, 204, 113, 0.9) !important;
    backdrop-filter: blur(3px) !important;
}

.card-imagem-fundo .card-hover .btn {
    background: #fff !important;
    color: #2ecc71 !important;
    font-size: 1.3rem !important;
    padding: 15px 35px !important;
}

.card-imagem-fundo .card-hover .btn:hover {
    background: #000 !important;
    color: #2ecc71 !important;
}

/* =========================
   HOVER PADRÃO PARA TODOS OS CARDS
========================= */

.card-hover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(11, 15, 26, 0.9) !important;
    backdrop-filter: blur(5px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 10 !important;
    border-radius: 18px !important;
    pointer-events: none !important;
}

.card:hover .card-hover {
    opacity: 1 !important;
    pointer-events: all !important;
}

.card-hover .btn {
    display: inline-block !important;
    padding: 14px 32px !important;
    background: #2ecc71 !important;
    color: #000 !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
}

.card-hover .btn:hover {
    background: #27ae60 !important;
    color: #fff !important;
    transform: scale(1.05) !important;
}

/* =========================
   GERAIS
========================= */

.card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.card {
    position: relative;
    min-height: 350px;
    border-radius: 18px;
    overflow: hidden;
}

.card-content {
    padding: 20px;
}

.card h3 {
    color: #2ecc71;
    margin-bottom: 10px;
}
/* ============================================
   NOVOS ESTILOS PARA CARDS COM IMAGENS - VERSÃO FINAL
   ============================================ */

/* =========================
   CARDS COM ÍCONE SVG (DOCKER, LINUX, ETC)
========================= */

.card-image-area {
    height: 160px;
    background: linear-gradient(135deg, #1e2a3a, #2d3b4f);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.categoria-icon-svg {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Ícone branco por padrão */
    transition: all 0.3s ease;
}

/* Hover mostra a cor original do ícone */
.card:hover .categoria-icon-svg {
    filter: none !important; /* Remove filtro, mostra cor original */
    transform: scale(1.1);
}

/* Para imagens JPG/PNG normais */
.categoria-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .categoria-imagem {
    transform: scale(1.05);
}

/* =========================
   CARD COM IMAGEM DE FUNDO (ZABBIX)
========================= */

.card-imagem-fundo {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    min-height: 350px !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 0 !important;
}

/* Overlay escuro para o texto aparecer */
.card-imagem-fundo .card-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1 !important;
    transition: opacity 0.3s ease !important;
}

/* Conteúdo do card com imagem de fundo */
.card-imagem-fundo .card-content {
    position: relative !important;
    z-index: 2 !important;
    color: #fff !important;
    padding: 25px !important;
    width: 100% !important;
}

.card-imagem-fundo h3 {
    color: #2ecc71 !important;
    font-size: 1.8rem !important;
    margin-bottom: 10px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.card-imagem-fundo p {
    color: #fff !important;
    font-size: 1rem !important;
    margin: 0 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Overlay do card de fundo fica mais escuro no hover */
.card-imagem-fundo:hover .card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%) !important;
}

/* =========================
   HOVER PADRÃO PARA TODOS OS CARDS
   AGORA MOSTRA AS CORES DA IMAGEM
========================= */

.card-hover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important; /* Fundo transparente */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 20 !important; /* Maior que o overlay */
    border-radius: 18px !important;
    pointer-events: none !important;
}

.card:hover .card-hover {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Botão com fundo semi-transparente */
.card-hover .btn {
    display: inline-block !important;
    padding: 14px 32px !important;
    background: rgba(46, 204, 113, 0.9) !important;
    color: #000 !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(2px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.card-hover .btn:hover {
    background: rgba(46, 204, 113, 1) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5) !important;
    color: #fff !important;
}

/* Ajuste especial para card com imagem de fundo */
.card-imagem-fundo .card-hover {
    background: transparent !important;
}

/* Remove o fundo verde do hover no card de fundo */
.card-imagem-fundo:hover .card-hover {
    background: transparent !important;
}

/* =========================
   GARANTIR QUE NÃO TEM LINHA AZUL
========================= */

.card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.card-link:visited,
.card-link:active,
.card-link:focus,
.card-link:hover {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

/* =========================
   AJUSTES GERAIS
========================= */

.card {
    position: relative;
    min-height: 350px;
    border-radius: 18px;
    overflow: hidden;
}

.card-content {
    padding: 20px;
}

.card h3 {
    color: #2ecc71;
    margin-bottom: 10px;
}

.card p {
    color: #ccc;
}

/* =========================
   RESPONSIVO PARA OS NOVOS CARDS
========================= */

@media (max-width: 768px) {
    .card-image-area {
        height: 140px;
    }
    
    .categoria-icon-svg {
        width: 60px;
        height: 60px;
    }
    
    .card-imagem-fundo {
        min-height: 300px !important;
    }
    
    .card-imagem-fundo h3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .card-image-area {
        height: 120px;
    }
    
    .categoria-icon-svg {
        width: 50px;
        height: 50px;
    }
    
    .card-hover .btn {
        padding: 10px 24px !important;
        font-size: 1rem !important;
    }
}

/* ========== FIM DOS NOVOS ESTILOS ========== */
.card p {
    color: #ccc;
}
.card-hover .btn:hover {
    background: #27ae60 !important;
    color: #fff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5) !important;
}

/* Remove qualquer transformação anterior */
.card-hover .btn {
    transform: none !important;
}

/* =========================
   CORREÇÃO URGENTE - CARDS (LINHA AZUL + EFEITOS)
========================= */

/* Reset completo para remover linha azul */
.card-link,
a.card-link,
a[class*="card"],
.card a,
.card-link a {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.card-link:visited,
.card-link:active,
.card-link:focus,
.card-link:hover,
.card a:visited,
.card a:active,
.card a:focus,
.card a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Garantir que textos dentro do card não tenham linha */
.card h3,
.card p,
.card span,
.card .btn,
.card .card-content *,
.card-link h3,
.card-link p,
.card-link span {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* =========================
   RESTAURAR EFEITOS DOS CARDS
========================= */

/* Efeito hover do card */
.card:hover {
    transform: translateY(-10px) !important;
    border-color: #2ecc71 !important;
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.4) !important;
}

/* Efeito vidro reflexo */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 5;
}

.card:hover::before {
    left: 100%;
}

/* Borda iluminada */
.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2ecc71, transparent, #27ae60);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::after {
    opacity: 0.3;
}

/* Hover overlay */
.card-hover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 20 !important;
    border-radius: 18px !important;
    pointer-events: none !important;
}

.card:hover .card-hover {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Botão no hover */
.card-hover .btn {
    display: inline-block !important;
    padding: 12px 28px !important;
    background: rgba(46, 204, 113, 0.9) !important;
    color: #000 !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(2px) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}

.card-hover .btn:hover {
    background: #2ecc71 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 20px rgba(46,204,113,0.5) !important;
}

/* =========================
   CORREÇÃO PARA CARDS COM IMAGEM DE FUNDO
========================= */

.card-imagem-fundo {
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    min-height: 350px !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 0 !important;
}

.card-imagem-fundo .card-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1 !important;
}

.card-imagem-fundo .card-content {
    position: relative !important;
    z-index: 2 !important;
    color: #fff !important;
    padding: 25px !important;
    width: 100% !important;
}

.card-imagem-fundo h3 {
    color: #2ecc71 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* =========================
   CORREÇÃO MOBILE PARA OS CARDS
========================= */

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 15px !important;
        padding: 20px !important;
    }
    
    .card {
        min-height: 300px !important;
    }
    
    .card:hover {
        transform: translateY(-5px) !important;
    }
    
    .card-hover .btn {
        padding: 10px 20px !important;
        font-size: 1rem !important;
    }
    
    .card-image-area {
        height: 140px !important;
    }
    
    .categoria-icon-svg {
        width: 60px !important;
        height: 60px !important;
    }
    
    .card-imagem-fundo {
        min-height: 280px !important;
    }
}
/* =========================
   EFEITOS ESPECÍFICOS PARA CELULAR
   ========================= */

@media (max-width: 768px) {
    /* Remover efeitos de hover no celular */
    .card:hover {
        transform: none !important;
        background: rgba(36, 36, 36, 0.6) !important;
        border-color: rgba(46, 204, 113, 0.2) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }
    
    .card:hover::before {
        left: -100% !important; /* Remove efeito de reflexo */
    }
    
    .card:hover::after {
        opacity: 0 !important; /* Remove borda iluminada */
    }
    
    /* Cards com imagem de fundo no celular */
    .card-imagem-fundo:hover {
        transform: none !important;
    }
    
    .card-imagem-fundo:hover .card-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%) !important;
    }
    
    /* Ícones SVG no celular */
    .card:hover .categoria-icon-svg {
        filter: brightness(0) invert(1) !important; /* Mantém branco */
        transform: none !important;
    }
    
    /* Overlay de hover - NÃO aparece no celular a menos que clique */
    .card-hover {
        display: none !important; /* Esconde overlay no celular */
    }
    
    /* =========================
       EFEITOS AO ROLAR A PÁGINA (SCROLL)
       ========================= */
    
    /* Cards aparecem com fade in ao rolar */
    .card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease !important;
        animation: none !important; /* Remove animações antigas */
    }
    
    /* Cards visíveis quando estão na tela */
    .card.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Efeito de aparecer em cascata */
    .card.visible:nth-child(1) { transition-delay: 0.1s; }
    .card.visible:nth-child(2) { transition-delay: 0.2s; }
    .card.visible:nth-child(3) { transition-delay: 0.3s; }
    .card.visible:nth-child(4) { transition-delay: 0.4s; }
    .card.visible:nth-child(5) { transition-delay: 0.5s; }
    .card.visible:nth-child(6) { transition-delay: 0.6s; }
    
    /* Efeito de toque no card (quando clica) */
    .card.tap-effect {
        transform: scale(0.98) !important;
        transition: transform 0.2s ease !important;
    }
}

/* Efeito para telas muito pequenas */
@media (max-width: 480px) {
    .card {
        transform: translateY(20px);
    }
}
@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr !important;
        padding: 15px !important;
    }
    
    .card-image-area {
        height: 120px !important;
    }
    
    .categoria-icon-svg {
        width: 50px !important;
        height: 50px !important;
    }
}

