.projects-section {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto;
    padding: 40px 0;
}

.projects-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 40px;
    text-align: center;
}



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


.project-card {
    background: #f8f8f8;
    border: 1px solid #dedede;
    border-radius: 18px;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}


.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}


.project-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #222;

    margin: 20px 20px 10px;
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;

    margin: 0 20px 20px;
}


.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 20px 20px;
}

.technologies span {
    font-size: 0.8rem;
    color: #555;

    background: #e9e9e9;
    border: 1px solid #ddd;

    padding: 6px 12px;
    border-radius: 20px;
}


.project-card a {
    display: inline-block;
    width: fit-content;

    margin: auto 20px 20px;
    padding: 10px 20px;

    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;

    color: #222;
    background: #fff;

    border: 1px solid #ccc;
    border-radius: 25px;

    transition: background 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease;
}

.project-card a:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}



@media (max-width: 768px) {

    .projects-section {
        width: 92%;
        margin: 60px auto;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card img {
        height: 220px;
    }

    .projects-section h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {

    .project-card img {
        height: 180px;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }
}