* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: white;
    overflow-x: hidden;
}


.navigacija {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span { color:  #00ff6a; }

.poveznice {
    display: flex;
    list-style: none;
}

.poveznice li a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    transition: 0.3s;
}

.poveznice li a:hover { color: #00ff6a; }


.izbornik { 
    display: none; 
    cursor: pointer; 
}

.crta {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px;
}

/*Hero*/
.glavna {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: linear-gradient(45deg, #0f0f0f, #1a1a1a);
}

.sadrzaj h1 {
    font-size: 4rem;
    animation: ulazSlijeva 1s ease-out;
}

.sadrzaj span { color:  #00ff6a; }

.gumb {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #00ff6a;
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gumb:hover { transform: scale(1.1); }

.kontejner { 
    padding: 100px 10%; 
    text-align: center; 
}

.naslov { 
    font-size: 2.5rem; 
    margin-bottom: 40px; 
}

.usluge-mreza {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.kartica {
    height: 300px;
    perspective: 1000px;
}

.unutarnja {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.kartica:hover .unutarnja { 
    transform: rotateY(180deg); 
}

.prednja, .straznja {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    font-size: 1.2rem;
}

.straznja {
    background:  #00ff6a;
    color: black;
    transform: rotateY(180deg);
}


@keyframes screen{
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

/*Responzivnost*/
@media (max-width: 768px) {
    .izbornik { display: block; }
    
    .poveznice {
        display: none; 
        position: absolute;
        top: 70px;
        right: 10%;
        background: #1a1a1a;
        flex-direction: column;
        width: 200px;
        padding: 20px;
        border: 1px solid #333;
    }

    .poveznice li { margin: 10px 0; }
    
    .sadrzaj h1 { font-size: 2.5rem; }
}