* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    width: 100%;
    margin: 0 auto;
}
.container h1, .container h2
{
    margin-top: 5%;
    font-family:Georgia, 'Times New Roman', Times, serif;
}

header {
    color: white;
    padding: 10px 0;
    top: 0;
    z-index: 1000;
    height: 480px;
    background-image: url("banner1.jpg");
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out; /* Glatka tranzicija slike */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480px;
    background-color: rgba(0, 0, 0, 0.5); /* Crni sloj sa 50% prozirnosti */
    z-index: 0;
}

/* Osigurava da tekst i dugmad budu iznad tamnog sloja */
.header .container {
    position: relative;
    z-index: 2;
}

.logo
{
    float: left;
   
}
.logo img
{
    width: 60%;
    float: left;
    margin-left: 10%;
}
nav {
    float: right;
    margin-right: 20px;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.main-banner {
    
    color: white;
    padding: 80px 0;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.main-banner h1, .main-banner h2 {
    font-size: 2.5em;
    margin-bottom: 5px;
    animation: slideIn 1s ease-out;
}
.main-banner h2
{
    font-size: 2em;
    margin-bottom: 2%;
    margin-top: -1%;
}

.main-banner .btn-primary {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-button {
    background: #333; /* Plava boja pozadine */
    color: #ffffff; /* Bela boja teksta */
    text-decoration: none; /* Uklanja podvlačenje teksta */
    border-radius: 8px; /* Zaobljeni uglovi */
    padding: 10px 10px; /* Unutrašnji razmak */
    font-size: 16px; /* Veličina teksta */
    display: inline-block; /* Omogućava dimenzionisanje kao dugme */
    margin-right: 150px; /* Razmak između dugmadi */
    cursor: pointer; /* Kursor "ruka" pri prelasku mišem */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animacija */
    text-align: center;
    margin-top: 5%;
    width: 90%;
    margin:20px;
    margin-left: 5px;
  }
  /* Hover efekat */
  .nav-button:hover {
    background: linear-gradient(-45deg, #949494, #2e62af); /* Svetloplava boja na hover */
    transform: scale(1.05); /* Blago povećanje */
  }
  /* Fokus efekat */
  .nav-button:focus {
    outline: 2px solid #87CEFA; /* Svetloplavi okvir kod fokusa */
    outline-offset: 2px;
  }

.services {
    padding: 50px 0;
    text-align: center;
    background-color: #dae1e2;
    animation: fadeInUp 1s ease-out;
    
}

.services h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.service-item {
    display: inline-block;
    width: 25%;
    height: 350px;
    padding: 20px;
    margin: 10px;
    background-color: #f4f4f4;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service-item h3 {
    font-size: 20px;
    color: #333;
}


.footer {
    background: linear-gradient(-45deg,#02BAF8, #010A4F);
    color: white;
    font-size: 14px;
    padding: 10px 0;
    opacity: 0.98;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    
}

.footer-left {
    text-align: left;
    margin-left: 25%;
}

.footer-right {
    text-align: right;
    margin-right: 25%;
}

.footer-right img {
    width: 30%;
    height: 105px;
    
}
.footer h2, .footer p
{
    margin: 15px;
}
.footer-right p
{
    margin: 15px
}
/*DODATO*/
.card {
    position: relative; /* Omogućava da price-tag bude unutar kartice */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.card h3 {
    margin: 1rem 0;
}


.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 1rem;

}
.card:hover{
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
    
.container1
{
    margin-left: 5%;
    margin-right: 5%;
}
.sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* Sakriveno izvan ekrana */
    width: 250px;
    height: 100%;
    background-color: #003366;
    color: #fff;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #BB090F;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

   
@media (max-width: 768px) 
{
    footer{
        font-size: 70%;
        opacity: 0.97;
      
    }
    .footer {
        flex-direction: column; /* Postavlja right ispod left */
        text-align: center;
        align-items: center;
    }
    .footer-right img  {
        display: none; /* Sakrij slike na ekranima manjim od 768px */
    }
    .footer-right
    {
        text-align: center;
        margin-left: 5%;
        margin-right: 0%;
    }
    .footer-right p{
        justify-content: center;
        text-align: center;
        margin-top: -5%;
    }
    .footer-left
    {
        
        text-align: center;
        margin-left: 5%;
    }
    .grid {
        display: grid;
        grid-template-columns: repeat(1, minmax(300px, 1fr));
        gap: 1rem;
    
    }
    .logo img{
        width: 40%;
        height: 40%;
        margin-left: 3%;
    }
    .logo{
        width: 90%;
    }
    .nav-button{
        display: none;
    }
    .sidebar
    {
        border-right: 1px solid rgb(142, 170, 239);
        width: 52%;
        opacity: 0.99;
        background: linear-gradient(-45deg,#02BAF8, #010A4F);
    }
    .sidebar ul li:nth-child(4)::after {
        content: "";
        display: block;
        width: 85%; /* Širina linije */
        height: 3px; /* Debljina linije */
        background-color: white; /* Boja linije */
        margin-top: 10px; /* Razmak ispod teksta */
        margin-bottom: 10px;
    }
    .sidebar, .main-content {
        padding: 15px;
        background-color: #f1f1f1;
        
    }
    
    .sidebar h2, .main-content h2 {
        font-size: 25px;
        margin-bottom: 10px;
        border-bottom: 2px solid #f1f1f1;
    }
    
    .sidebar ul {
        list-style: none;
        padding: 0;
        
    }
    
    .sidebar ul li{
        margin: 10px 0;
       font-size: 20px;
    }
    
    .sidebar ul li a{
        text-decoration: none;
        color: white;
    }
    .menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        display: none; /* Prikazuje se samo na manjim ekranima */
    }
  
}
    
/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
