/* Global Variables */
:root {
    --header-bg: #000000;
    --header-text: #ffffff;
    --logo-size: 30px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.navbar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: block;
    width: var(--logo-size);
    height: var(--logo-size);
    background-color: white;
    /* White block as requested */
    margin-right: 20px;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    /* Explicitly white distinct from other styles */
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.nav-links li a:hover {
    text-decoration: underline;
    color: #cccccc;
}

/* Footer Styles */
footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: auto;
    /* Push to bottom if using flex column on body */
}

/* Tools Grid Styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #252525;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s, background-color 0.2s;
    aspect-ratio: 1;
    /* Make it square */
    border: 1px solid #333;
}

.tool-card:hover {
    transform: translateY(-5px);
    background-color: #333;
    border-color: #555;
    text-decoration: none;
    color: #fff;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tool-name {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

/* Navigation CTA */
.nav-cta {
    margin-left: auto;
}

.btn-cta {
    background-color: #3b82f6;
    color: white !important;
    /* Override nav link color */
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.1s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-block;
}

.btn-cta:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    text-decoration: none;
}