.portfolio {
    padding: 120px 9% 50px;
    background: #1f242d;
}

.heading {
    text-align: center;
    font-size: 45px;
    margin-bottom: 4rem;
    color: white;
}

.heading span {
    color: #5ca5ee;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    position: relative;
    background: #2a2f3b;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s ease;
    border: 1px solid rgba(92, 165, 238, 0.1);
}

.project-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
    filter: grayscale(20%);
}

.project-info {
    padding: 25px;
    background: #2a2f3b;
    transition: 0.5s ease;
}

.project-tags {
    margin-bottom: 12px;
}

.project-tags span {
    font-size: 11px;
    background: rgba(92, 165, 238, 0.1);
    color: #5ca5ee;
    padding: 4px 10px;
    border-radius: 50px;
    margin-right: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.project-info h4 {
    font-size: 22px;
    color: white;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    font-size: 20px;
    color: #5ca5ee;
    transition: 0.3s;
}

.project-links a:hover {
    color: white;
    transform: translateY(-3px);
}

/* Hover Effektusok */
.project-card:hover {
    transform: translateY(-10px);
    border-color: #5ca5ee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

@media (max-width: 450px) {
    .portfolio-container {
        grid-template-columns: 1fr; /* Egészen kicsi mobilon csak 1 kártya széles */
    }
    
    .project-card {
        height: auto; /* Engedjük, hogy a tartalom szabja meg a magasságot */
    }
}