body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px;
    background: #2c3e50;
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* CSS Grid raspored */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: background 0.3s;
}

.card:hover {
    background: #f9f9f9;
}

/* Stilovi za demo kutije */
.box-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.demo-box {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.5s ease;
    /* Glatka animacija */
}

code {
    display: block;
    background: #272822;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-top: 15px;
}

/* Definiranje transformacija na hover */
.card-translate:hover .demo-box {
    transform: translate(30px, -10px);
}

.card-rotate:hover .demo-box {
    transform: rotate(45deg);
}

.card-scale:hover .demo-box {
    transform: scale(1.5);
}

.card-skew:hover .demo-box {
    transform: skewX(20deg);
}

.card-matrix:hover .demo-box {
    transform: matrix(1, 0.5, -0.5, 1, 0, 0);
}