/* Tools Page Specific Styles */

#tools-intro {
    text-align: center;
    padding: 0rem 2rem;
    margin-top: 0px;
    /* Space for fixed header if needed, though header seems relative in index */
}

#tools-intro h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#tools-intro p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

:is(.dark-mode) #tools-intro p {
    color: #ccc;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 4rem;
    margin-bottom: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

:is(.dark-mode) .tool-card {
    background: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: default;
}

.tool-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.tool-desc {
    font-size: 0.9rem;
    color: #666;
}

:is(.dark-mode) .tool-desc {
    color: #aaa;
}

@media screen and (max-width: 768px) {
    .tools-grid {
        padding: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-icon {
        font-size: 3rem;
    }
}