/* AI Tools Section Redesign */

/* Card hover effects */
.ai-tool-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2) !important;
}

.ai-tool-card {
    cursor: pointer;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ai-tools-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
    }
    
    .ai-tool-card {
        padding: 25px 20px !important;
    }
    
    .ai-header h2 {
        font-size: 2rem !important;
    }
    
    .ai-header p:first-of-type {
        font-size: 1.1rem !important;
    }
    
    .ai-tool-card h3 {
        font-size: 1.3rem !important;
    }
    
    .ai-tool-card p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    #ai-tools {
        padding: 60px 0 !important;
    }
    
    .ai-header {
        margin-bottom: 40px !important;
    }
    
    .ai-tool-card {
        padding: 20px 15px !important;
        border-radius: 15px !important;
    }
    
    .ai-tool-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .ai-tool-card > div:first-child {
        height: 3px !important;
    }
    
    .ai-tool-card .metric {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }
}

/* Tablet specific */
@media (min-width: 769px) and (max-width: 1024px) {
    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

/* Large screens - 3 columns */
@media (min-width: 1025px) {
    .ai-tools-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Animation on scroll */
.ai-tool-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.ai-tool-card:nth-child(1) {
    animation-delay: 0.1s;
}

.ai-tool-card:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-tool-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure text doesn't overflow */
.ai-tool-card h3,
.ai-tool-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .ai-tool-card {
        min-height: 280px;
    }
    
    .ai-tool-card > div:last-child {
        padding: 10px 0;
    }
}