/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #05050a;
    background: #141422;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(26, 26, 31, 1); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    cursor: pointer;
}

header nav a {
    margin: 0 1rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

header nav a:hover {
    color: #3498db;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    color: #e0e0e0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #a0a0a0;
}

.hero #searchBar {
    padding: 0.8rem 1.2rem;
    width: 60%;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    outline: none;
    background: #1a1a1f;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero #searchBar:focus {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.tools {
    padding: 3rem 2rem;
    background: #1a1a1f;
    border-top: 2px solid #3498db;
    flex-grow: 1;
}

.tools h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Adjust grid layout */
    gap: 2rem; /* Reduced gap for better compactness */
    justify-items: center;
    padding: 2rem;
}

.card {
    background: #141422;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: #e0e0e0;
    width: 200%; /* Ensure cards take full width of their grid container */
    max-width: 250px; /* Limit max width for better compact look */
}

.card img {
    width: 70px;
    margin-bottom: 0.8rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: #3498db;
}

.card p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #737376;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(52, 152, 219, 0.3);
}

footer {
    background: #141422;
    padding: 1.5rem;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.footer-content .social-links a {
    color: #3498db;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-content .social-links a:hover {
    text-decoration: underline;
}