
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #383636;
    color: #fff;


}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background-color: #000;
    color: #fff;
}

.navbar h2:hover{
    color: #ffc107;
   }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffc107;
}





.projects-section {
    text-align: center;
    padding: 50px 20px;
}


.projects-section h1 {
    font-size: 3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.projects-section p {
    margin-bottom: 40px;
    font-size: 1.1em;
    color: rgb(251, 247, 247);
    margin-top: 50px;
    padding-bottom: 70px;
}

.projects-section h1:hover {
    color: crimson;
}

.projects-section p:hover {
    color: #ff3700;
}

/* Grid for project cards */
.project-cards {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    gap: 10px;
    margin-top: 20px;
    
}

.project-cards p:hover {
    color: #37d91a;
}

.card {
    background-color: #222;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    max-width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #fff;
    text-align: left;
    margin-right: 20px;
    margin-top: 20px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 18px 30px rgba(255, 0, 0, 0.7);
}

.card img {
    width: 160%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffcc00;
}

.card p {
    font-size: 0.95em;
    color: #ccc;
    line-height: 1.4;
    text-align: justify;
}
.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #fff;
}



@media (max-width: 420px){   

    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }


    .projects-section {
        padding: 20px;
    }

    .projects-section h1 {
        font-size: 2em;
        text-align: center;
    }

    .projects-section p {
        font-size: 1em;
        text-align: center;
        padding-bottom: 20px;
    }

    /* Switch grid to a single column */
    .project-cards {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 15px;
    }

    .card {
        max-width: 90%;
        padding: 15px;
        text-align: center;
    }

    .card img {
        height: 150px;
        width: 100%;
    }

    .card h3 {
        font-size: 1.2em;
        text-align: center;
    }

    .card p {
        font-size: 0.9em;
        line-height: 1.3;
    }
    .footer {
        padding: 10px 0;
    }
}
