* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #1f1f1f;
    font-family: 'Segoe UI', sans-serif;
    color: #e0e0e0;
}
header{
    background-color: #2e2e2e;
    color: #f4c542;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    border-radius: 0;
}
footer {
    background-color: #2e2e2e;
    color: #f4c542;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    border-radius: 0;
}
.izbornik{
    margin: 10px;
    padding: 10px;
}
.izbornik a {
    background-color: transparent;
    color: #f4c542;
    text-decoration: none;
    margin: 10px;
    padding: 10px 15px;
    border: 1px solid #f4c542;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}
.izbornik a:hover {
    background-color: #f4c542;
    color: #1f1f1f;
    transform: scale(1.1);
}
.izbornik a:hover {
    transform: rotateY(30deg) scale(1.3);
    box-shadow: 0 5px 15px rgba(244, 197, 66, 0.4);
}
main {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    background-color: #2e2e2e;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.4s ease;
    display: inline-block;
}
main:hover {
    transform: scale(1.05) rotate(-1deg);
}
.hero-slika {
    height: 100vh;
    background-image: url('../img/pozadina.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    color: #fff;
}
.hero-slika::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* tamni overlay */
    z-index: 0;
}
.hero-tekst {
    position: relative;
    z-index: 1;
    padding: 20px;
    font-size: 1.6rem;
}
.hero-tekst h1 {
    margin: 0;
    font-size: 3rem;
    color: #f4c542;
}
.hero-tekst p {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #e0e0e0;
}
/*Usluge*/
.usluge-lista{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    flex:1;
}
.usluga-card {
    max-width:300px;
    max-height:300px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 10px;
    margin: 10px auto;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.usluga-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.cijena {
    font-size: 1.25rem;
    font-weight: bold;
    color: #f4c542;
}
/*Kontakt*/
.kontakt-info{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
.kontakt-info p {
    color: #e0e0e0;
}
/*O nama*/
.o-nama {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.o-nama p {
    max-width: 700px;
    line-height: 1.6;
}
.tim h2 {
    color: #f4c542;
    text-align: center;
    margin-bottom: 20px;
}

.tim-kartice {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.card {
    width: 250px;
    height: 300px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-front, .card-back {
    width: 100%;
    height: 100%;
    padding: 15px;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
}

.profilna {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 15px;
}

.card-front h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: #f4c542;
}

.card-front p {
    font-size: 1rem;
    color: #ccc;
    text-align: center;
}

.card-back p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
    text-align: justify;
}

.card:hover .card-front {
    transform: rotateY(180deg);
}

.card:hover .card-back {
    transform: rotateY(0deg);
}
