/* Tools Index Page Styles */

/* Page Header */
.tools-header {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.tools-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.tools-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tools-header p {
    font-size: 1.25rem;
    color: #efefef;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab i {
    font-size: 1.1rem;
}

.filter-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Tools Grid Section */
.tools-grid-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.tool-card.hidden {
    display: none;
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

.tool-icon i {
    font-size: 1.75rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-link:hover {
    gap: 0.75rem;
    color: #7c3aed;
}

.tool-link i {
    transition: transform 0.3s ease;
}

.tool-link:hover i {
    transform: translateX(4px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    padding: 5rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: #efefef;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #2563eb;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    gap: 1rem;
}

.cta-button i {
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tools-header {
        padding: 60px 0 40px;
    }

    .tools-header h1 {
        font-size: 2.25rem;
    }

    .tools-header p {
        font-size: 1.125rem;
    }

    .filter-section {
        padding: 1.5rem 0;
        position: static;
    }

    .filter-tabs {
        gap: 0.75rem;
    }

    .filter-tab {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.125rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tools-header h1 {
        font-size: 1.875rem;
    }

    .tools-header p {
        font-size: 1rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .filter-tab i {
        font-size: 1rem;
    }

    .tool-icon {
        width: 50px;
        height: 50px;
    }

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

    .tool-card h3 {
        font-size: 1.25rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* Animation for cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.15s; }
.tool-card:nth-child(3) { animation-delay: 0.2s; }
.tool-card:nth-child(4) { animation-delay: 0.25s; }
.tool-card:nth-child(5) { animation-delay: 0.3s; }
.tool-card:nth-child(6) { animation-delay: 0.35s; }
.tool-card:nth-child(7) { animation-delay: 0.4s; }
.tool-card:nth-child(8) { animation-delay: 0.45s; }
.tool-card:nth-child(9) { animation-delay: 0.5s; }
.tool-card:nth-child(10) { animation-delay: 0.55s; }
.tool-card:nth-child(11) { animation-delay: 0.6s; }
.tool-card:nth-child(12) { animation-delay: 0.65s; }
.tool-card:nth-child(n+13) { animation-delay: 0.7s; }
