/* Tools Section Styles */
.tools {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.02"><path fill="%23535da1" d="M500,250c138,0,250,112,250,250S638,750,500,750S250,638,250,500S362,250,500,250z"/></svg>') repeat;
    z-index: 0;
}

.tools .container {
    position: relative;
    z-index: 1;
}

.tools .section-title-wrap {
    margin-bottom: 60px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-item {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #535da1, #4ecdc4, #ff6b6b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tool-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.tool-item:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #535da1 0%, #3f4b9b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.tool-item:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(83, 93, 161, 0.3);
}

.tool-item:hover .tool-icon::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.tool-item h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tool-item:hover h4 {
    color: #535da1;
}

.tool-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Tool-specific colors and animations */
.tool-item:nth-child(1):hover .tool-icon {
    background: linear-gradient(135deg, #34a853 0%, #2e8b47 100%);
}

.tool-item:nth-child(2):hover .tool-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
}

.tool-item:nth-child(3):hover .tool-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e6ac00 100%);
}

.tool-item:nth-child(4):hover .tool-icon {
    background: linear-gradient(135deg, #6f42c1 0%, #5e3aa8 100%);
}

.tool-item:nth-child(5):hover .tool-icon {
    background: linear-gradient(135deg, #e83e8c 0%, #d91a72 100%);
}

.tool-item:nth-child(6):hover .tool-icon {
    background: linear-gradient(135deg, #20c997 0%, #1ba87e 100%);
}

.tool-item:nth-child(7):hover .tool-icon {
    background: linear-gradient(135deg, #007bff 0%, #0069d9 100%);
}

.tool-item:nth-child(8):hover .tool-icon {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.tool-item:nth-child(9):hover .tool-icon {
    background: linear-gradient(135deg, #fd7e14 0%, #e6690e 100%);
}

.tool-item:nth-child(10):hover .tool-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* Staggered animation for tool items */
.tool-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.tool-item:nth-child(1) { animation-delay: 0.1s; }
.tool-item:nth-child(2) { animation-delay: 0.2s; }
.tool-item:nth-child(3) { animation-delay: 0.3s; }
.tool-item:nth-child(4) { animation-delay: 0.4s; }
.tool-item:nth-child(5) { animation-delay: 0.5s; }
.tool-item:nth-child(6) { animation-delay: 0.6s; }
.tool-item:nth-child(7) { animation-delay: 0.7s; }
.tool-item:nth-child(8) { animation-delay: 0.8s; }
.tool-item:nth-child(9) { animation-delay: 0.9s; }
.tool-item:nth-child(10) { animation-delay: 1s; }

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

/* Responsive Design */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .tool-item {
        padding: 30px 20px;
    }
    
    .tool-icon {
        width: 70px;
        height: 70px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .tool-item h4 {
        font-size: 1.1rem;
    }
    
    .tool-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tool-item {
        padding: 25px 15px;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .tool-item h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}