/* General Styles */
body {
    background-color: #1a1a1a;
    color: #ecf0f1;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23333" fill-opacity="0.1" fill-rule="evenodd"%3E%3Cpath d="M0 40L40 0H20L0 20M40 40V20L20 40"/%3E%3C/g%3E%3C/svg%3E');
}

/* Header */
header {
    background-color: #2c3e50;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1001;
}

#menu-icon {
    cursor: pointer;
    padding: 0.5rem;
}

#menu-icon svg {
    stroke: #ecf0f1;
}

h1 a {
    font-family: 'Montserrat', sans-serif;
    color: #3498db;
    margin: 0;
    text-decoration: none;
}

#search-filter-container {
    display: flex;
    gap: 1rem;
}

#search-bar {
    background-color: #34495e;
    border: 1px solid #3498db;
    color: #ecf0f1;
    padding: 0.5rem;
    border-radius: 4px;
}

#filter-container button {
    background-color: #3498db;
    color: #ecf0f1;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#filter-container button:hover, #filter-container button.active {
    background-color: #2980b9;
}

/* Navigation Menu */
#nav-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #2c3e50;
    padding-top: 60px;
    transition: left 0.3s ease;
    z-index: 1000;
}

#nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#nav-menu ul li a {
    display: block;
    color: #ecf0f1;
    padding: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#nav-menu ul li a:hover {
    background-color: #34495e;
}

body.menu-open #nav-menu {
    left: 0;
}

/* Main Content */
main {
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

body.menu-open main {
    margin-left: 250px;
}

#tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Tool Card */
tool-card {
    background-color: #2c3e50;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    overflow: hidden;
    transition: transform 0.3s ease;
}

tool-card:hover {
    transform: translateY(-5px);
}

/* Blog */
#blog-posts .blog-post-card {
    background-color: #2c3e50;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

#blog-posts .blog-post-card h2 a {
    color: #3498db;
    text-decoration: none;
}
