/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    background-color: #1f1f1f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5em; /* Spacing between navbar items */
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 0.5em 1em;
}

/* Hover Effect for Navbar Links */
.nav-links a:hover {
    color: #00adb5;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
    border-radius: 5px;
    transform: translateY(-2px);
}

/* Mobile Toggle Button */
.hamburger {
    display: none;
    font-size: 1.5em;
    color: #ffffff;
    cursor: pointer;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1em;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: #1f1f1f;
        padding: 1em;
        border-top: 1px solid #333;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* Page Heading */
h1 {
    text-align: center;
    margin: 1em 0;
}

/* Card Container */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1em;
    padding: 1em;
}

/* Card Styling */
.card {
    background-color: #ffffff;
    padding: 1em;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    border-radius: 8px;
    filter: brightness(1);
}

.card h3 {
    margin-top: 0.5em;
    color: #333;
}

/* Modal Popup */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.modal img {
    display: block;
    max-width: 90%;
    margin-bottom: 1em;
    border-radius: 8px;
}

.modal .close {
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 2em;
    color: black;
    cursor: pointer;
}

/* Button Styling */
button {
    margin: 0.5em;
    padding: 0.5em 1em;
    background-color: #3a3a3a;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #575757;
}



/* Search box */
/* Search Container Styling */
.search-container {
    display: flex;
    justify-content: center;
    margin: 1em 0;
}

#searchBox {
    width: 80%;
    max-width: 400px;
    padding: 0.7em;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #333;
    color: #ffffff;
    transition: box-shadow 0.3s ease;
}

#searchBox::placeholder {
    color: #aaa;
}

#searchBox:focus {
    outline: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
