/* Basic Reset & Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eef2f7; /* Light blue-gray background */
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #2c3e50; /* Dark blue-gray */
    color: #fff;
    padding: 1.5em 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    letter-spacing: 1px;
}

header p {
    margin: 0.5em 0 0;
    font-size: 1.2em;
    opacity: 0.9;
}

/* Main Content Area */
main {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Section Headers */
main h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 2em;
    border-bottom: 2px solid #3498db; /* Blue accent */
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

/* Tool Grid Layouts */
.tool-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

/* Tool Card Styles */
.tool-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

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

.tool-card h2 {
    font-size: 1.6em;
    margin-top: 0;
    color: #3498db; /* Bright blue */
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 0.95em;
    color: #666;
    flex-grow: 1;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1.5em 0;
    margin-top: 40px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

/* Custom Alert Styles (Keep as is or refine if needed) */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Hidden by default */
}

.custom-alert-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.custom-alert-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

.custom-alert-content button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.custom-alert-content button:hover {
    background-color: #0056b3;
}

/* Easter Egg Styles */
.hidden-easter-egg {
    display: none;
    background-color: #ffeb3b; /* Yellow */
    color: #333;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hidden-easter-egg.show {
    display: block;
}