#project-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #0e0f1a;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
}

#project-nav ul {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

#project-nav ul li {
    flex-shrink: 0;
}

#project-nav ul li a {
    text-decoration: none;
    color: rgb(192, 192, 192);
    font-weight: bold;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#project-nav ul li a:hover {
    background-color: rgb(251, 150, 255);
    color: #fff;
}

#project-nav ul li a.active {
    background-color: rgb(255, 143, 218);
    color: #fff;
}

#project-nav::-webkit-scrollbar {
    height: 5px;
}

#project-nav::-webkit-scrollbar-thumb {
    background: rgba(192, 192, 192, 0.6);
    border-radius: 5px;
}

#project-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 192, 192, 0.8);
}

@media (max-width: 768px) {
    #project-nav ul li a {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    #project-nav ul li a {
        font-size: 11px;
        padding: 6px 10px;
    }
}

#img {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    height: auto;
    border: none;
    background-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#img:hover {
    filter: grayscale(1);
    transform: scale(1.05);
}

button {
    background-color: rgb(255, 143, 218);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: rgb(251, 150, 255);
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.card {
    background-color: #0e0f1a;
    color: rgb(192, 192, 192);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 300px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card img:hover {
    transform: scale(1.05);
    filter: grayscale(0.5);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
}

.card button {
    margin-top: 10px;
}
