html, body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: aliceblue;
}

header{
    background-attachment: scroll;
    display: flex;
    width: 100%;
    height: 65px;
    background-color: none;
    background-size: cover; 
    align-items: center ;
    justify-content: space-between;    
}
header .logo img{
    width: 100px;
    height: 80px;
}
header h3{
    margin: 10px 7px;
    padding: 15px 15px;
    font-family: "Lato", sans-serif;
    color: white;
    font-size: 25px;
    text-shadow: 3px 3px black;
}
header .lang-switch {
    width: auto;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

header .lang-switch img {
    width: 30px !important;
    height: 20px !important;
    object-fit: cover !important;
    margin-left: 8px !important;
    cursor: pointer;
    border-radius: 3px;
}

.logo{
    margin: 10px 15px;
    display: flex;
}

.brojevi{
    margin-left: auto;
}
.brojevi a{
font-family: Verdana, Geneva, Tahoma, sans-serif;    color: white;
    font-weight: bold;
    font-size: 12px;
    margin: 0 25px;
    padding: 15px;
    text-decoration: none;
    background-color: #1E90FF;
    border-radius: 15px;
    border: 1px solid transparent;
    transition: 0.3s ease;
}

.brojevi a:hover{
    border-color: lightgray;
    background-color: lightgrey;
    color: black;
}

.navbar {
    background-attachment: scroll;
    margin: -59px auto;
    width: 100%;
    height: fit-content;

}

.navbar .nav-menu{
    padding: 20px;
    margin: auto;
    text-align: center;  
          
}

.navbar .nav-menu .nav-item{
    display: inline;
    padding: 20px;
}

.navbar a{
    list-style-type: none;
    text-decoration: none;
    color:white;
 font-family: "Lato", sans-serif;
 border: 1px solid transparent;
    transition: 0.3s ease;
    border-radius: 10px;
    font-weight: bold;
    text-shadow: 3px 2px black;
}

.navbar a:hover{    
    color: gray;  
    text-shadow: none;  
}


.home-image{
    /* background-attachment: scroll   ;
    /* background-image:url('images/backg.jpg'); */
    /* background-repeat: no-repeat;
    background-size: cover; */
    width: 100%;
    height: 100vh;         
}
.home-image video{
    position:absolute;
    pointer-events: none;
    width: 100%;
    height: 100vh;
    z-index: -2;
    top: 0;
    object-fit: fill;    
}

.home-image .home-card{
    display: block;
    margin: auto;
    margin-top: 20%;
    width: 600px;
    height: 150px;
    text-align: center;
}

.home-image h1{
    color: white;
    font-family: "Lato", sans-serif;
    font-size: 50px;
    text-shadow: 7px 7px black;
}

.home-card a:link,
.home-card a:visited{
    color: black;
    background-color: white;
    text-decoration: none;
    font-size: 20px;
     font-family: "Lato", sans-serif;
    border-radius: 20px;
    padding: 10px;
    transition: 0.3s ease;
}

.home-card a:hover,
.home-card a:active{
    background-color: lightgray;
    color: red;
}

.o-nama{
    display: flex;
    align-items: center;
    justify-content: center;
    margin:  100px auto;
    width: 65%;
    height: 500px;
box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px; transition: 0.3s ease;
    border-radius: 15px;
}

.o-nama .o-nama-left{
    margin: 0 30px;
    text-align: justify;
     font-family: "Lato", sans-serif;
    font-size: 13px;
    color: #0073e6;  
    font-style: normal;
}

.o-nama .o-nama-right{
    margin: 0 30px;    
}

.o-nama:hover{
    transform: scale(1.02);
}

.p-usluge{
    display: flex;
    align-items: center;
    justify-content: center;
    margin:  100px auto;
    width: 75%;
    height: 500px;
box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;    border-radius: 15px;
transition: 0.3s ease;
}

.p-usluge .p-right{
    margin: 0 25px;
    text-align: justify;
     font-family: "Lato", sans-serif;
    font-size: 17px;
    color: #0073e6;    
}

.p-usluge .p-right #dugme{
    background-color: #1E90FF;
    padding: 7px;
    width: fit-content;
    height: auto;
    border-radius: 15px;
    transition: 0.3. ease;
}

.p-usluge .p-right #dugme a{
    text-decoration: none;
    color: white;
     font-family: "Lato", sans-serif;
    font-weight: bold;    
}

.p-usluge .p-right #dugme:hover{
    background-color: blue;
}


.p-usluge .p-left img{
    width: 600px;
    height: 400px;
    margin: 0 30px;    
}

.p-usluge:hover{
    transform: scale(1.02);
}

.video{
    display: flex;
    align-items: center;
    justify-content: center;
    margin:  100px auto;
    width: 65%;
    height: 500px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;    transition: 0.3s ease;
    border-radius: 15px;
}
.video .video-left{
        margin: 0 30px;
        text-align: justify;
         font-family: "Lato", sans-serif;
        font-size: 13px;
        color: #0073e6;        
}
.video .video-right{
    margin: 0 25px;
    text-align: justify;
     font-family: "Lato", sans-serif;
    font-size: 17px;
    color: #0073e6;  
}
.video:hover{
    transform: scale(1.02);
}

.autic{
    width: 100%;
    height: fit-content;
    position: relative;    
    
}
.autic img{
    width: 120px;
    height: 80px;
    margin-bottom: -18px ;
    animation: autic 5s infinite ease-in-out;      
    
}
footer{
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: fit-content;
    background-color: #1E90FF;    
    position: relative;
}

footer .footer-icon img{
    width: 260px;
    height: 140px;
    margin: auto 30px;      
}

footer .footer-text{
     font-family: "Lato", sans-serif;      
}

footer .footer-links ul li{
    display: block;
    text-align: center;
    list-style-type: none;
     font-family: "Lato", sans-serif;
    padding: 4px 0px;
      
}
footer #h-links{
    text-align: center;
    text-decoration: none;
    color: black;
    font-weight: bold;    
}
footer .footer-links ul li a{  
    text-align: center;
    text-decoration: none;
    color: blue;  
}
footer .footer-social a{
    font-size: 30px;
    color: black;
    padding: 15px;
}
footer .footer-social img{
    width: 45px;
    height: 30px;
}

@keyframes autic{
    0%{
        transform: translateX(0);
    }
    50%{
        transform: translateX(90vw);
    }
    100%{
        transform: translateX(0vw);
    }
}



/* ===== HAMBURGER MENU ===== */

.hamburger {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    margin: 6px 0;
    transition: 0.4s;
}

/* Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
}

/* Mobile menu */
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100vh;
        background: #1E90FF;
        transition: right 0.3s ease;
        z-index: 1002;
        padding-top: 80px;
    }

    .navbar.active {
        right: 0;
    }

    .navbar .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 25px;
        text-align: left;
        padding-left: 30px;
    }

    .navbar .nav-item {
        display: block;
    }

    .navbar a {
        font-size: 18px;
        text-shadow: none;
    }

    .menu-overlay.active {
        display: block;
    }

    /* sakrij desktop stil */
    .navbar {
        margin: 0;
    }

@media (max-width: 768px) {

    .home-image {
        height: 100vh;
        position: relative;
        overflow: hidden;
    }

    .home-image video {
        height: 100%;
        width: 100%;
        pointer-events: none;
        object-fit: cover;
        top: 0;
        left: 0;
    }
}
@media (max-width: 768px) {

    .home-image .home-card {
        width: 90%;
        margin: 0 auto;
        margin-top: 35vh;
        text-align: center;
    }

    .home-image .home-card h1 {
        font-size: 26px;
        margin: 0 0 15px 0;
        text-shadow: 3px 3px black;
        display: block;
    }

    .home-image .home-card a {
        display: inline-block;
        margin: 8px;
        font-size: 16px;
        padding: 10px 14px;
    }
}
@media (max-width: 768px) {

    header {
        position: absolute;
         top: 0;
    left: 0;
    z-index: 9998;
    }

    header .logo img {
        width: 60px;
        height: auto;
    }

    header h3 {
        font-size: 16px;
        padding: 0;
        margin: 0 0 0 8px;
    }

    .logo {
        align-items: center;
    }

    .brojevi {
        display: none; /* sakrij telefone – previše zauzimaju mesta */
    }
     .o-nama{
        display: block;
        width: 90%;
        height: fit-content;
        margin: 100px 20px;
        padding: 20px 0;
        border-radius: 15px;
    }
    .o-nama .o-nama-right img{
        width: 100%;             
    }
    .o-nama .o-nama-left p{
        font-size: 15px;
    }
    .p-usluge{
        display: block;
        width: 90%;
        height: fit-content;
        margin: 100px 20px;
        padding: 20px 0;
        border-radius: 15px;
    }
    .p-usluge .p-left img{
        width: 80%; 
        height: 60%;
    } 
    .p-usluge .p-right #dugme{
       text-align: center;
       margin: auto 25%;
    }
    .p-usluge .p-right h2{
        text-align: center;
        font-size: 20px;
    }
    .p-usluge .p-right p{
        font-size: 15px;
        text-align: center;
    }
    .video{
        display: block;
        width: 90%;
        height: fit-content;
        margin: 100px 20px;
        padding: 20px 0;
        text-align: center;
        border-radius: 15px;
    }
    .video iframe{
        width: 100%;
        height: 60%;        
    }
    .video .video-right h3{
        text-align: center;
    }
    .video .video-right p{
        font-size: 15px;
        text-align: center;
    }
    footer{
        display: block;
        text-align: center;
        width: auto;
    }
    footer .footer-links{
        display: none;        
    }
    .autic{       
        display: none;
    }
    
}
header .lang-switch img:hover {
    transform: scale(1.1);
    border: 1px solid white;
}

/* ================= MOBILE LANG SWITCH ================= */
@media (max-width: 768px) {

    /* Sakrij originalno pored brojeva */
    header .lang-switch {
        position: absolute;
        bottom: 20px;   /* na dnu hamburger menija */
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        order: 99;
        margin: 0 auto;
    }

    /* Zastavice manje */
    header .lang-switch img {
        width: 18px;
        height: 12px;
        object-fit: cover;
        border-radius: 3px;
        cursor: pointer;
    }

    /* Premesti lang-switch u hamburger vizuelno */
    .navbar.active + .lang-switch {
        display: flex;
    }
     .navbar .lang-switch {
        display: flex;
        justify-content: flex-start; /* ili center po želji */
        margin: 20px 0 0 0;
        gap: 10px;
    }

    .navbar .lang-switch img {
        width: 22px;  /* ili 16px ako hoćeš još manje */
        height: 15px;
        cursor: pointer;
    }
}


}
