@import url('https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400&display=swap');
body {
    background: #f9f9f9;
    color: #333;
    font-family: 'Jost', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

nav img {
    max-height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 25px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 10px 15px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #bbb;
}
.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: black;
}
.menu-icon, .close-icon {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: black;
    z-index: 101;
    position: absolute;
    right: 30px;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    color: black;
    border-radius: 10px;
    animation: pop 0.5s ease-out;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-card {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid black;
}

.project-card h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.project-card p {
    margin: 0;
    font-size: 1rem;
}

.project-card a {
    text-decoration: none; /* Removes the underline */
    color: inherit;
    display: block;
    transition: color 0.3s;
}

.project-card a:hover {
    color: #FFD700;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s, opacity 0.3s;
}

.project-card:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #e4d6fb, #8400ff);
    color: white;
}
.no-underline {
    text-decoration: none;
  }
@keyframes pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* Hide menu icons for larger screens */
@media (min-width: 769px) {
    .menu-icon, .close-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .menu-icon {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: black;
        z-index: 101;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        text-align: center;
        padding: 0;
        opacity: 0;
        transform: translateY(-100%);
        transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
        pointer-events: none; /* Prevents interaction when hidden */
    }

    nav ul.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 24px;
        padding: 15px;
        display: block;
        color: #000;
        text-decoration: none;
        transition: color 0.3s;
    }

    nav ul li a:hover {
        color: blueviolet;
    }
    .container {
        flex-direction: column;
        text-align: center;
    }

    .right {
        margin-top: 40px;
    }
    .projects-grid {
        grid-template-columns: 1fr; /* Make the cards one after the other */
    }
}
