.projects {
    padding: 70px 8% 5%;
    width: 100%;
}

.projects div2 {
    font-size: x-large;
    display: flex;
    justify-content: center;
    margin-bottom: 3%;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 50px;
    padding-bottom: 50px;
}

.project-card {
    background: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.project-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 8px 25px rgba(0, 238, 255, 0.15);
    border-color: rgba(0, 238, 255, 0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
    padding: 25px;
    text-align: left;
}

.project-info h4 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 12px;
}

.project-info p {
    color: #b1b1b1;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background: #2a2a2a;
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .projects {
        padding: 50px 5% 0;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}