/* 1. Global Reset & Body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* A soft gradient background looks more modern than flat white */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d3436;
    line-height: 1.6;
    padding: 40px 20px;
}

/* 2. Main Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* 3. Header Section */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    color: #636e72;
    font-size: 1.1rem;
}

/* 4. Your Updated Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* 5. Tool Card Refinements */
.tool-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
/* --- RESPONSIVE DESIGN (Media Queries) --- */

/* For Tablets (Screens smaller than 768px) */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem; /* Shrink title slightly */
    }
    
    .tools-grid {
        gap: 15px; /* Tighter gap on smaller screens */
        padding: 10px;
    }
}

/* For Mobile Phones (Screens smaller than 480px) */
@media (max-width: 480px) {
    body {
        padding: 20px 10px; /* Less padding on the edges of the phone */
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .tool-card {
        padding: 16px; /* Save space inside the card */
    }

    .tool-card img {
        height: 120px; /* Smaller images so you can see more cards while scrolling */
    }
}

/* --- BONUS: CATEGORY TAGS --- */
/* Add <span class="category">Design</span> inside your .tool-card */

.category {
    display: inline-block;
    background: #e1f5fe;
    color: #039be5;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    align-self: center; /* Centers the pill in the card */
}
