.grid-realizacje {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .grid-realizacje {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .grid-realizacje {
        grid-template-columns: 1fr;
    }
}
.box-realizacje {
    background: var(--base-2);
    box-shadow: 0 8px 24px #619fec29, 0 1.5px 4px #619fec33;
    border-radius: 24px;
    padding: 18px 16px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: boxFadeIn 0.6s cubic-bezier(.23,1.01,.32,1) forwards;
}

.box-realizacje:hover {
    box-shadow: 0 16px 32px #619fec44, 0 2px 8px #619fec55;
    background: linear-gradient(135deg, var(--base-2) 80%, var(--accent) 100%);
    transform: scale(1.03) translateY(-4px);
    z-index: 2;
}

@keyframes boxFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.box-image img {
    width: 100%;
    height:300px;
    object-fit: cover;
    border-radius: 10px;
}
.box-title h2 {
    font-size: 1.5em;
    margin: 10px 0;
}
.box-kategorie {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.box-excerpt {
    font-size: 1em;
    margin-bottom: 15px;
}
.box-button a {
    background: var(--accent);
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    display: inline-block;
    border-radius:10px;
}
.box-button a:hover {
    background: var(--contrast);
    color:#fff;
}
.box-wiecej {
    text-align: center;
    margin-top: 30px;
}
.box-wiecej button {
    padding: 10px 20px;
    font-size: 16px;
    background:var(--contrast);
    color: #fff;
    border-radius:10px;
}
.box-wiecej button:hover {
    background: var(--accent);
    color: #fff;
}
/* Custom filter buttons */
.filter-kategorie {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-btn {
    background: #f2f2f2;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.filter-btn.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent)44;
}

/* Loader styles */
.realizacje-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}
.realizacje-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
