.products ul.grid-view li a:hover img {
    filter: invert(1);
}
.products ul.grid-view li a{
    text-align: center;
}

h2, .h2 {
    color: var(--bs-heading-color);
}
footer.footer{
    padding-left: 0px;
}

/* ===== Modern AI Tool Cards ===== */
.ai-tool-card {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(74, 144, 226, 0.1) 0%, 
        rgba(144, 19, 254, 0.1) 25%,
        rgba(45, 212, 191, 0.1) 50%,
        rgba(251, 146, 60, 0.1) 75%,
        rgba(239, 68, 68, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.ai-tool-card:hover::before {
    opacity: 1;
}

.ai-tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 5px 20px rgba(0, 0, 0, 0.08);
}

.ai-tool-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.ai-tool-card-inner {
    position: relative;
    padding: 2rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.ai-tool-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.ai-tool-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2.5rem;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.ai-tool-icon i {
    font-size: 2.5rem;
}

.ai-tool-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.ai-tool-icon-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ai-tool-icon-class {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.ai-tool-icon-default {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.ai-tool-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.ai-tool-card:hover .ai-tool-glow {
    opacity: 1;
    animation: pulse-glow 2s infinite;
}

.ai-tool-card:hover .ai-tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.ai-tool-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a202c;
    line-height: 1.3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.ai-tool-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.ai-tool-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4;
}

.ai-tool-card:hover .ai-tool-overlay {
    opacity: 1;
}

.ai-tool-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ai-tool-card:hover .ai-tool-action {
    transform: translateY(0);
}

.ai-tool-action i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.ai-tool-card:hover .ai-tool-action i {
    transform: translateX(5px);
}

/* Floating Particles Animation */
.ai-tool-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    opacity: 0;
    animation: float-particles 3s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 70%;
    animation-delay: 2s;
}

.ai-tool-card:hover .particle {
    opacity: 0.6;
}

/* Keyframe Animations */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ai-tool-card-inner {
        padding: 1.5rem;
        min-height: 240px;
    }
    
    .ai-tool-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .ai-tool-icon i {
        font-size: 2rem;
    }
    
    .ai-tool-icon img {
        width: 35px;
        height: 35px;
    }
    
    .ai-tool-title {
        font-size: 1.1rem;
    }
    
    .ai-tool-description {
        font-size: 0.8rem;
    }
}

/* Grid Layout Enhancement */
.products ul.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.products ul.grid-view li {
    display: contents;
}